|
@@ -156,6 +156,9 @@
|
|
|
<button class="layui-btn left-bnt1 in-b" id="printGiveOut">结算单打印
|
|
|
</button>
|
|
|
|
|
|
+ <button class="layui-btn left-bnt1 in-b" id="updatePrice">修改结算价
|
|
|
+ </button>
|
|
|
+
|
|
|
<button class="layui-btn left-bnt1 in-b" id="closeOprate" status = "on">
|
|
|
<i class="layui-icon"></i> 操作栏靠右
|
|
|
</button>
|
|
@@ -213,6 +216,7 @@ if(!isEmpty(stockId)){
|
|
|
$("#onOrderInventoryDiv").hide();
|
|
|
$("#stockIdInventoryDiv").hide();
|
|
|
$("#printGiveOut").hide();
|
|
|
+ $("#updatePrice").hide();
|
|
|
$("#printChaMoneyOut").hide();
|
|
|
if((parseFloat(reaWeight))> 0 && !isEmpty(reaWeight)){//没有确认入库前可以新增
|
|
|
$("#selectGive").hide();
|
|
@@ -234,6 +238,7 @@ if(!isEmpty(stockId)){
|
|
|
$("#onOrderInventoryDiv").show();
|
|
|
$("#stockIdInventoryDiv").show();
|
|
|
$("#printGiveOut").show();
|
|
|
+ $("#updatePrice").show();
|
|
|
$("#printChaMoneyOut").show();
|
|
|
}
|
|
|
|
|
@@ -276,7 +281,7 @@ if(!isEmpty(stockId)){
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if(type === 'bar1'){debugger;
|
|
|
+ if(type === 'bar1'){
|
|
|
setTempVal("chooseTableData", gloable_pm_id);
|
|
|
setTempVal("chooseTableDataCols", cols);
|
|
|
layer.open({
|
|
@@ -519,7 +524,7 @@ if(!isEmpty(stockId)){
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- table.on('checkbox(tableFilterOne)', function(obj){debugger;
|
|
|
+ table.on('checkbox(tableFilterOne)', function(obj){
|
|
|
gloable_pm_id = checkBoxCache(obj,"agoId",gloable_pm_id,table_data);
|
|
|
var checkWeight = 0;
|
|
|
for (var i = 0; i < gloable_pm_id.length; i ++) {
|
|
@@ -808,6 +813,73 @@ if(!isEmpty(stockId)){
|
|
|
$(document).on('click','#printGiveOut',function(){
|
|
|
openMainTabPageParent(tabPageId+'-16', '打印', 'giveOutManage/printGiveOut.html?tabPageId='+tabPageId+'-16&contractId='+contractId+'&contractNo='+contractNo,'',tabPageId,null);
|
|
|
});
|
|
|
+
|
|
|
+ $(document).on('click','#updatePrice',function(){
|
|
|
+ if(gloable_pm_id.length == 0){
|
|
|
+ layer.msg('请勾选修改的数据!', {icon: 5});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ for(var i = 0 ; i < gloable_pm_id.length;i++){
|
|
|
+ if(gloable_pm_id[i].state != '02'){
|
|
|
+ layer.msg('第'+(i+1)+"条数据未入库,请入库后再修改结算价", {icon: 5});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var cols2 = [[ //表头
|
|
|
+ {type:'numbers',title: '序号',width:'5%', sort: true}
|
|
|
+ ,{field: 'fhDate', title: '发货日期',templet: function (d) {
|
|
|
+ if(isEmpty(d.fhDate)){
|
|
|
+ return "";
|
|
|
+ }else{
|
|
|
+ return d.fhDate;
|
|
|
+ }
|
|
|
+ },width:"10%"}
|
|
|
+ ,{field: 'consignee', title: '收货单位名称', width:"15%"}
|
|
|
+ ,{field: 'shippingAddress', title: '发货地', width:"10%"}
|
|
|
+ ,{field: 'station', title: '到站地', width:"10%"}
|
|
|
+ ,{field: 'carNumber', title: '车号', width:"10%"}
|
|
|
+ ,{field: 'caseNo', title: '箱号',width:"10%"}
|
|
|
+ ,{field: 'cardNo', title: '编号', width:"10%"}
|
|
|
+ ,{field: 'specName', title: '规格',width:"8%"}
|
|
|
+ ,{field: 'weight', title: '发出量',width:"8%"}
|
|
|
+ ,{field: 'fYwAY', title: '发运方式', width:"10%"}
|
|
|
+ ,{field: 'abfName', title: '品牌',width:"10%"}
|
|
|
+ ,{field: 'shidaoweight', title: '实到量',width:"10%"}
|
|
|
+ ,{field: 'dhDate', title: '到货日期', templet: function (d) {
|
|
|
+ if(isEmpty(d.dhDate)){
|
|
|
+ return "";
|
|
|
+ }else{
|
|
|
+ return d.dhDate;
|
|
|
+ }
|
|
|
+ },width:"10%"}
|
|
|
+ ,{field: 'forwardingUnit', title: '发货单位名称', width:"10%"}
|
|
|
+ ,{field: 'settlementPrice', title: '结算单价', width:"10%"}
|
|
|
+ ,{field: 'transPrice', title: '运输单价', width:"10%"}
|
|
|
+ ,{field: 'contractNo', title: '合同单号', width:"10%"}
|
|
|
+ ,{field: 'extras', title: '杂费', width:"10%"}
|
|
|
+ ,{field: 'escortFee', title: '押运费', width:"10%"}
|
|
|
+ ,{field: 'railwayCost', title: '地方地铁费用', width:"10%"}
|
|
|
+ ,{field: 'changeTrains', title: '中转信息费', width:"10%"}
|
|
|
+ ,{field: 'region', title: '区域',width:"10%"}
|
|
|
+ ,{field: 'payUnitDesc', title: '支付类型',width:"10%"}
|
|
|
+ ,{field: 'remarks', title: '备注',width:"10%"}
|
|
|
+ ,{field: 'createUser', title: '创建人',width:"10%"}
|
|
|
+ ]];
|
|
|
+
|
|
|
+ setTempVal("chooseTableData", gloable_pm_id);
|
|
|
+ setTempVal("chooseTableDataCols", cols2);
|
|
|
+ layer.open({
|
|
|
+ type: 2,
|
|
|
+ title: '修改数据详情',
|
|
|
+ shadeClose: true,
|
|
|
+ // shade: true ,
|
|
|
+ shade: 0.8,
|
|
|
+ //maxmin: true, //开启最大化最小化按钮
|
|
|
+ area: ['95%', '90%'],
|
|
|
+ content: 'updateChooseTable.html?primaryKey=agoId'
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
$(document).on('click','#printChaMoneyOut',function(){
|
|
|
openMainTabPageParent(tabPageId+'-17', '差额打印', 'advancePayment/editChaAdvance.html?tabPageId='+tabPageId+'-17','',tabPageId,null);
|
|
|
});
|