|
|
|
@ -153,7 +153,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<vol-table
|
|
|
|
|
ref="table2" v-show="!isFEST&&!isBatchStock"
|
|
|
|
|
ref="table2" v-show="!isFEST && !isBatchStock"
|
|
|
|
|
:loadKey="true"
|
|
|
|
|
:columns="tableColumns2"
|
|
|
|
|
:pagination-hide="false"
|
|
|
|
@ -199,7 +199,7 @@
|
|
|
|
|
<!-- 显示操作按钮 -->
|
|
|
|
|
<!--<div class="message">tableColumns2配置,双击可以开启编辑</div>-->
|
|
|
|
|
<div class="btn-group">
|
|
|
|
|
<Button ref="btn_addcondition" type="info" size="small" ghost icon="md-add-circle" @click="addcondition">{{this.$t('ADDDETAIL')}}</Button>
|
|
|
|
|
<Button ref="btn_addcondition" type="info" size="small" ghost icon="md-add-circle" @click="addcondition">{{this.$t('ADDDETAIL')}}</Button>
|
|
|
|
|
<Button ref="btn_delcondition" type="info" size="small" ghost icon="md-remove-circle" @click="delcondition">{{this.$t('DELDETAIL')}}</Button>
|
|
|
|
|
|
|
|
|
|
<Button ref="btn_refresh" type="info" size="small" icon="md-refresh" ghost @click="()=>{$refs.tab_condition.load()}">{{this.$t('refrash')}}</Button>
|
|
|
|
@ -257,6 +257,29 @@
|
|
|
|
|
@loadAfter="loadTableAfter_tab_nodr"
|
|
|
|
|
></vol-table>
|
|
|
|
|
</TabPane>
|
|
|
|
|
|
|
|
|
|
<TabPane :label="this.$t('labeltitle.op_wms_fee')" icon="ios-aperture">
|
|
|
|
|
<div class="tabs1-header">
|
|
|
|
|
<div class="btn-group">
|
|
|
|
|
<Button ref="btn_addwmsfee" type="info" size="small" ghost icon="md-add-circle" @click="addwmsfee">{{this.$t('ADDDETAIL')}}</Button>
|
|
|
|
|
<Button ref="btn_delwmsfee" type="info" size="small" ghost icon="md-remove-circle" @click="delwmsfee">{{this.$t('DELDETAIL')}}</Button>
|
|
|
|
|
|
|
|
|
|
<Button type="info" size="small" icon="md-refresh" ghost @click="()=>{$refs.tab_wmsfee.load()}">{{this.$t('refrash')}}</Button>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<vol-table
|
|
|
|
|
ref="tab_wmsfee"
|
|
|
|
|
:loadKey="true"
|
|
|
|
|
:columns="tableColumnswmsfee"
|
|
|
|
|
:pagination-hide="false"
|
|
|
|
|
:max-height="300"
|
|
|
|
|
:url="tab_wmsfeeUrl"
|
|
|
|
|
:index="true"
|
|
|
|
|
@loadBefore="loadTableBefore_wmsfee"
|
|
|
|
|
@loadAfter="loadTableAfter_wmsfee"
|
|
|
|
|
></vol-table>
|
|
|
|
|
</TabPane>
|
|
|
|
|
</Tabs>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
@ -448,7 +471,11 @@ export default {
|
|
|
|
|
{field:'SBRQ',title:'申报日期',type: "date",width:140, edit: { type: "date", keep: true },align:'left',sort:true},
|
|
|
|
|
{field:'RULEPRICE',title:this.$t('RULEPRICE'),type: "decimal",width:140, edit: { type: "decimal", keep: true },align:'left',sort:true},
|
|
|
|
|
{field:'RULEAMOUNT',title:this.$t('RULEAMOUNT'),type: "decimal",width:140, edit: { type: "decimal", keep: true },align:'left',sort:true},
|
|
|
|
|
|
|
|
|
|
{field:'TRUCKNO',title:this.$t('TRUCKNO')
|
|
|
|
|
,bind:{ key:'blankdic',data:[]}
|
|
|
|
|
,edit:{ type:'select',keep:true}
|
|
|
|
|
,normal:true,type: "text",width:90,align:'left',sort:true},
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
searchField_planlist: {
|
|
|
|
|
CUSTOMERNAME: "",
|
|
|
|
@ -649,6 +676,48 @@ export default {
|
|
|
|
|
{field:'NETWEIGHT_TON_REMAIN',title:this.$t('NETWEIGHT_TON_REMAIN'),type: "decimal",width:90,align:'left'},
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
,tab_wmsfeeUrl: "api/OP_WMS_FEE/GetPageData", //GetTruckData
|
|
|
|
|
//表配置的字段注意要与后台返回的查询字段大小写一致
|
|
|
|
|
tableColumnswmsfee: [
|
|
|
|
|
|
|
|
|
|
{field:'FEEID',title:'FEEID',type:'string',width:90,align:'left',hidden:true},
|
|
|
|
|
{field:'PID',title:'FEEID',type:'string',width:90,align:'left',hidden:true},
|
|
|
|
|
|
|
|
|
|
{field:'CUSTOMERNAME',title:this.$t('feetitle').CUSTOMERNAME,type:'string',width:150,require:true,align:'left',require:true,sort:true,bind:{ key:'CustName',data:[]},edit:{type:'select',keep:true}},
|
|
|
|
|
{field:'FEETYPE',title:this.$t('feetitle.FEETYPE'),type:'string',width:90,require:true,align:'left',require:true,bind:{ key:'feetype',data:[]},edit:{type:'select',keep:true}},
|
|
|
|
|
{field:'FEENAME',title:this.$t('feetitle.FEENAME'),type:'string',width:140,require:true,align:'left',require:true,bind:{ key:'feename',data:[]},edit:{type:'select',keep:true}},
|
|
|
|
|
{field:'PRICE',title:this.$t('feetitle.TAXUNITPRICE'),type:'decimal',width:90,align:'left'
|
|
|
|
|
,edit: { type: "decimal", keep: true }
|
|
|
|
|
,onChange: (row,value,tabledata) => {
|
|
|
|
|
|
|
|
|
|
if(row["PRICE"]==null||row["PRICE"]=="") return;
|
|
|
|
|
if(row["QUANTITY"]==null||row["QUANTITY"]=="") return;
|
|
|
|
|
let PRICE=parseFloat(row["PRICE"]);
|
|
|
|
|
let QUANTITY=parseFloat(row["QUANTITY"]);
|
|
|
|
|
|
|
|
|
|
row["AMOUNT"]=(PRICE*QUANTITY).toFixed(2);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{field:'QUANTITY',title:this.$t('QUANTITY'),type:'decimal',width:90,require:true,align:'left',summary:true,require:true,edit: { type: "decimal", keep: true }
|
|
|
|
|
,onChange: (row,value,tabledata) => {
|
|
|
|
|
|
|
|
|
|
if(row["PRICE"]==null||row["PRICE"]=="") return;
|
|
|
|
|
if(row["QUANTITY"]==null||row["QUANTITY"]=="") return;
|
|
|
|
|
let PRICE=parseFloat(row["PRICE"]);
|
|
|
|
|
let QUANTITY=parseFloat(row["QUANTITY"]);
|
|
|
|
|
|
|
|
|
|
row["AMOUNT"]=(PRICE*QUANTITY).toFixed(2);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{field:'AMOUNT',title:this.$t('AMOUNT'),type:'decimal',width:90,require:true,align:'left',summary:true},
|
|
|
|
|
{field:'CURRENCY',title:this.$t('feetitle.CURRENCY'),type:'string',bind:{ key:'bibie',data:[]},width:90,align:'left',edit: { type: "select", keep: true }},
|
|
|
|
|
{field:'REMARK',title:this.$t('REMARK'),type:'string',width:160,align:'left',edit:{type:'text',keep:true}},
|
|
|
|
|
{field:'CreateID',title:'CreateID',type:'guid',width:80,hidden:true,align:'left',hidden:true},
|
|
|
|
|
{field:'CreateDate',title:this.$t('CreateDate'),type:'datetime',width:150,align:'left',hidden:true,sort:true},
|
|
|
|
|
{field:'Creator',title:'Creator',type:'string',width:130,align:'left',hidden:true},
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,loadKey: true
|
|
|
|
|
,isFEST:false
|
|
|
|
@ -668,7 +737,8 @@ export default {
|
|
|
|
|
GoodsModelShow:{},
|
|
|
|
|
options:[],
|
|
|
|
|
conditionList:[],
|
|
|
|
|
IsBatchStock:false
|
|
|
|
|
IsBatchStock:false,
|
|
|
|
|
trucknoList:[]
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -856,6 +926,19 @@ export default {
|
|
|
|
|
// }
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
loadTableBefore_wmsfee(param, callBack) {
|
|
|
|
|
let _this=this.$store.getters.data().outplan_parent_head;
|
|
|
|
|
if (_this.currentAction == "Add") {
|
|
|
|
|
return callBack(false);
|
|
|
|
|
}
|
|
|
|
|
param.wheres=[];
|
|
|
|
|
let headid =this.getheadid()
|
|
|
|
|
param.wheres.push({ Name:"PID",Value:headid,displayType:'='});
|
|
|
|
|
},
|
|
|
|
|
loadTableAfter_wmsfee(data, callBack) {
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
//从后台加载从表数据后
|
|
|
|
|
loadTableAfter1(data, callBack) {
|
|
|
|
|
this.getphysics(data);
|
|
|
|
@ -875,6 +958,20 @@ export default {
|
|
|
|
|
|
|
|
|
|
this.$refs.tab_infofiles.setTruckinfo(trucklist);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.trucknoList=[];
|
|
|
|
|
var _this=this;
|
|
|
|
|
data.forEach((x)=>{
|
|
|
|
|
_this.trucknoList.push({key:x.TRUCKNO,value:x.TRUCKNO});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
_this.$refs.table1.columns.forEach((x)=>{
|
|
|
|
|
|
|
|
|
|
if(x.field=='TRUCKNO'){
|
|
|
|
|
x.bind.data=_this.trucknoList;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
loadTableBefore_Infofile(param) {
|
|
|
|
@ -1278,6 +1375,72 @@ export default {
|
|
|
|
|
tigger = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//如果是新建功能,禁止从后台查询
|
|
|
|
|
if (_this.currentAction == "Add") {
|
|
|
|
|
// this.$refs.table1.reset();
|
|
|
|
|
_this.$refs.tab_condition.delRow(rows);
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
let url = "api/Op_Wms_Logic/DelDetail";
|
|
|
|
|
this.http.post(url, formData, this.$t('MSG.DeleteingData')).then(x => {
|
|
|
|
|
if (!x.status) return this.$Message.error(x.message);
|
|
|
|
|
tigger = false;
|
|
|
|
|
_this.$refs.tab_condition.delRow(rows);
|
|
|
|
|
|
|
|
|
|
//this.refresh();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
} //, onCancel: () => {}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
addwmsfee(){
|
|
|
|
|
let _headform=this.$store.getters.data().outplan_parent_head;
|
|
|
|
|
let editFormFields = _headform.geteditformfield();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$refs.tab_wmsfee.addRow(
|
|
|
|
|
{FEEID:'00000000-0000-0000-0000-000000000000'
|
|
|
|
|
,PID :'00000000-0000-0000-0000-000000000000'
|
|
|
|
|
,CUSTOMERNAME:editFormFields.CUSTOMERNAME
|
|
|
|
|
,FEETYPE:1
|
|
|
|
|
,PRICE:0
|
|
|
|
|
,QUANTITY:1
|
|
|
|
|
,AMOUNT:0
|
|
|
|
|
,CURRENCY:'RMB'
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
delcondition() {
|
|
|
|
|
let _this=this;
|
|
|
|
|
if(!this.check())
|
|
|
|
|
return;
|
|
|
|
|
let rows = this.$refs.tab_condition.getSelected();
|
|
|
|
|
if (rows.length == 0) {
|
|
|
|
|
return this.$Message.error(this.$t('MSG.PleaseSelectRow'));
|
|
|
|
|
}
|
|
|
|
|
let delKeys = rows.map(x => {
|
|
|
|
|
return x['WMSLOGICID'];
|
|
|
|
|
});
|
|
|
|
|
let headid = this.getheadid();
|
|
|
|
|
let formData = {
|
|
|
|
|
mainData: {PID:headid},
|
|
|
|
|
detailData: null,
|
|
|
|
|
delKeys: delKeys,
|
|
|
|
|
workKeys: null,
|
|
|
|
|
extra:null
|
|
|
|
|
};
|
|
|
|
|
let tigger = false;
|
|
|
|
|
let delmsg = this.$t('MSG.DeleteAlertConfirm');
|
|
|
|
|
this.$Modal.confirm({
|
|
|
|
|
title: this.$t('MSG.DeleteAlert'),
|
|
|
|
|
content:
|
|
|
|
|
'<p style="color: red;font-weight: bold;letter-spacing: 3px;">'+delmsg+'?</p>',
|
|
|
|
|
onOk: () => {
|
|
|
|
|
if (tigger) return;
|
|
|
|
|
tigger = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//如果是新建功能,禁止从后台查询
|
|
|
|
|
if (_this.currentAction == "Add") {
|
|
|
|
|
// this.$refs.table1.reset();
|
|
|
|
|