diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_SuperVision_Truck/MsOp_SuperVision_TruckEdit.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_SuperVision_Truck/MsOp_SuperVision_TruckEdit.js index a96490ff..198e9b02 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_SuperVision_Truck/MsOp_SuperVision_TruckEdit.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_SuperVision_Truck/MsOp_SuperVision_TruckEdit.js @@ -1676,9 +1676,21 @@ Ext.extend(Shipping.MsOp_SuperVision_TruckEdit, Ext.Panel, { this.panelFee.EditRecord = this.editRecord; this.panelFee.strBSNO = this.editRecord.get('BSNO'); this.panelFee.strMBLNO = this.editRecord.get('MBLNO'); + + var feebltype = ""; + if (this.editRecord.get('BILLTYPE') == "主单") feebltype = "主票"; + if (this.editRecord.get('BILLTYPE') == "分单") feebltype = "分票"; + + this.panelFee.strbltype = feebltype; + + if ( this.panelFee.strbltype == '主票') { + this.panelFee.tabTotal.add(this.panelFee.panelCustMaster); + this.panelFee.storeChFeeMasterGain.load({ params: { bsno: this.panelFee.strBSNO } }); + } + this.panelFee.StoreUnit.load({ params: { BSNO: data.BSNO, bstype: "op_other" } }); this.panelFee.StoreDateCurr.load({ params: { optype: "op_other", BSNO: data.BSNO } }); - + this.panelFee.storeDrChFee.load({ params: { billno: data.BSNO, type: 1, optype: "op_other" } }); this.panelFee.storeCrChFee.load({ params: { billno: data.BSNO, type: 2, optype: "op_other" } });