md
This commit is contained in:
parent
b592850a0a
commit
d867e19fbe
@ -8,6 +8,7 @@
|
||||
</template>
|
||||
<div>
|
||||
|
||||
|
||||
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;">
|
||||
|
||||
|
||||
@ -486,7 +487,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="包装类型" prop="packType" label-width="70px"">
|
||||
<el-select v-model="form.packType" placeholder="请选择">
|
||||
<el-select multiple="" v-model="form.packType" placeholder="请选择">
|
||||
<el-option
|
||||
v-for="dict in dict.type.emis_tab_packing_type"
|
||||
:key="dict.value"
|
||||
@ -1058,6 +1059,8 @@ methods: {
|
||||
distinguishCancelAndClose: true,
|
||||
closeOnClickModal: false
|
||||
}).then(() => {
|
||||
this.billCode=null;
|
||||
this.form.billCode=null;
|
||||
this.initData();
|
||||
});
|
||||
}
|
||||
@ -1105,16 +1108,19 @@ methods: {
|
||||
distinguishCancelAndClose: true,
|
||||
closeOnClickModal: false
|
||||
}).then(() => {
|
||||
this.billCode=null;
|
||||
this.form.billCode=null;
|
||||
this.initData();
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
onDestCountryChange(item){
|
||||
this.form.reciever.country=item.code;
|
||||
if(item){
|
||||
this.form.reciever.country=item.code;
|
||||
}
|
||||
},
|
||||
onSelectMonthUser(item){
|
||||
console.log(item);
|
||||
this.form.payee=item.payee;
|
||||
this.form.salesmen=item.salesmen;
|
||||
},
|
||||
@ -1169,7 +1175,6 @@ methods: {
|
||||
initData() {
|
||||
this.reset();
|
||||
|
||||
console.log(this.billCode)
|
||||
if(this.billCode && this.billCode!=undefined) {
|
||||
this.loading = true;
|
||||
getWaybillDetail(this.billCode).then(response => {
|
||||
@ -1181,6 +1186,9 @@ methods: {
|
||||
this.form.printTypeCheckList=[1,5]
|
||||
this.form.destinationCountry=this.form.reciever.country;
|
||||
|
||||
if(this.form.packType){
|
||||
this.form.packType=this.form.packType.split(",");
|
||||
}
|
||||
});
|
||||
}else{
|
||||
|
||||
@ -1196,7 +1204,7 @@ methods: {
|
||||
// this.form.billWeight=1.0;
|
||||
// this.form.totalVolume=0.0;
|
||||
this.form.parcelQty=1;
|
||||
this.form.packType='2';
|
||||
this.form.packType=['2'];
|
||||
this.form.blOverWeight='0';
|
||||
this.form.blGenSubbill=1;
|
||||
this.form.paymentType='1';
|
||||
@ -1341,20 +1349,38 @@ methods: {
|
||||
}
|
||||
|
||||
if(this.action=="modify" && this.billCode !=this.form.billCode){
|
||||
this.$modal.msgError("当前单号"+this.form.billCode+"与编辑单号"+this.billCode+"不一致,不允许提交");
|
||||
return ;
|
||||
this.$confirm("当前单号"+this.form.billCode+"与修改单号"+this.billCode+"不一致,不允许提交!", '提示', {
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '返回',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.calcDestSite();
|
||||
}).catch(() => {
|
||||
|
||||
})
|
||||
}else{
|
||||
this.realSaveOrderInfo();
|
||||
}
|
||||
|
||||
realSubmitOrder(this.form).then(response => {
|
||||
this.$modal.msgSuccess("下单成功");
|
||||
|
||||
// 弹出打印预览界面
|
||||
this.handlePrintPreview();
|
||||
|
||||
// this.$emit("on-changed");
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
realSaveOrderInfo(){
|
||||
|
||||
// 调整包装类型为多选
|
||||
if(this.form.packType){
|
||||
this.form.packType=this.form.packType.join(",");
|
||||
}
|
||||
|
||||
|
||||
realSubmitOrder(this.form).then(response => {
|
||||
this.$modal.msgSuccess("下单成功");
|
||||
|
||||
// 弹出打印预览界面
|
||||
this.handlePrintPreview();
|
||||
|
||||
// this.$emit("on-changed");
|
||||
});
|
||||
},
|
||||
// 弹出地址簿选择
|
||||
handleSelectCustomerAddress(addressType){
|
||||
@ -1422,7 +1448,6 @@ methods: {
|
||||
|
||||
if(this.form.reciever.province){
|
||||
getDestSite(queryParams).then(response => {
|
||||
console.log(response);
|
||||
this.form.destinationCode = response.data.destCode+'';
|
||||
this.form.dispatchSiteCode= response.data.siteCode;
|
||||
this.form.dispatchSite = response.data.siteName;
|
||||
@ -1672,9 +1697,6 @@ methods: {
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
// let newList = this.form.cargoList.filter(item => item.goodsName !== row.goodsName);
|
||||
// this.form.cargoList=newList;
|
||||
console.log(index);
|
||||
this.form.cargoList.splice(index,1)
|
||||
this.handleCalcVolume(row);
|
||||
}).catch(() => {
|
||||
|
||||
@ -487,7 +487,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="包装类型" prop="packType" label-width="70px"">
|
||||
<el-select v-model="form.packType" placeholder="请选择">
|
||||
<el-select multiple="" v-model="form.packType" placeholder="请选择">
|
||||
<el-option
|
||||
v-for="dict in dict.type.emis_tab_packing_type"
|
||||
:key="dict.value"
|
||||
@ -1059,6 +1059,8 @@ methods: {
|
||||
distinguishCancelAndClose: true,
|
||||
closeOnClickModal: false
|
||||
}).then(() => {
|
||||
this.billCode=null;
|
||||
this.form.billCode=null;
|
||||
this.initData();
|
||||
});
|
||||
}
|
||||
@ -1106,16 +1108,19 @@ methods: {
|
||||
distinguishCancelAndClose: true,
|
||||
closeOnClickModal: false
|
||||
}).then(() => {
|
||||
this.billCode=null;
|
||||
this.form.billCode=null;
|
||||
this.initData();
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
onDestCountryChange(item){
|
||||
this.form.reciever.country=item.code;
|
||||
if(item){
|
||||
this.form.reciever.country=item.code;
|
||||
}
|
||||
},
|
||||
onSelectMonthUser(item){
|
||||
console.log(item);
|
||||
this.form.payee=item.payee;
|
||||
this.form.salesmen=item.salesmen;
|
||||
},
|
||||
@ -1170,7 +1175,6 @@ methods: {
|
||||
initData() {
|
||||
this.reset();
|
||||
|
||||
console.log(this.billCode)
|
||||
if(this.billCode && this.billCode!=undefined) {
|
||||
this.loading = true;
|
||||
getWaybillDetail(this.billCode).then(response => {
|
||||
@ -1182,6 +1186,9 @@ methods: {
|
||||
this.form.printTypeCheckList=[1,5]
|
||||
this.form.destinationCountry=this.form.reciever.country;
|
||||
|
||||
if(this.form.packType){
|
||||
this.form.packType=this.form.packType.split(",");
|
||||
}
|
||||
});
|
||||
}else{
|
||||
|
||||
@ -1197,7 +1204,7 @@ methods: {
|
||||
// this.form.billWeight=1.0;
|
||||
// this.form.totalVolume=0.0;
|
||||
this.form.parcelQty=1;
|
||||
this.form.packType='2';
|
||||
this.form.packType=['2'];
|
||||
this.form.blOverWeight='0';
|
||||
this.form.blGenSubbill=1;
|
||||
this.form.paymentType='1';
|
||||
@ -1342,20 +1349,38 @@ methods: {
|
||||
}
|
||||
|
||||
if(this.action=="modify" && this.billCode !=this.form.billCode){
|
||||
this.$modal.msgError("当前单号"+this.form.billCode+"与编辑单号"+this.billCode+"不一致,不允许提交");
|
||||
return ;
|
||||
this.$confirm("当前单号"+this.form.billCode+"与修改单号"+this.billCode+"不一致,不允许提交!", '提示', {
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '返回',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.calcDestSite();
|
||||
}).catch(() => {
|
||||
|
||||
})
|
||||
}else{
|
||||
this.realSaveOrderInfo();
|
||||
}
|
||||
|
||||
realSubmitOrder(this.form).then(response => {
|
||||
this.$modal.msgSuccess("下单成功");
|
||||
|
||||
// 弹出打印预览界面
|
||||
this.handlePrintPreview();
|
||||
|
||||
// this.$emit("on-changed");
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
realSaveOrderInfo(){
|
||||
|
||||
// 调整包装类型为多选
|
||||
if(this.form.packType){
|
||||
this.form.packType=this.form.packType.join(",");
|
||||
}
|
||||
|
||||
|
||||
realSubmitOrder(this.form).then(response => {
|
||||
this.$modal.msgSuccess("下单成功");
|
||||
|
||||
// 弹出打印预览界面
|
||||
this.handlePrintPreview();
|
||||
|
||||
// this.$emit("on-changed");
|
||||
});
|
||||
},
|
||||
// 弹出地址簿选择
|
||||
handleSelectCustomerAddress(addressType){
|
||||
@ -1423,7 +1448,6 @@ methods: {
|
||||
|
||||
if(this.form.reciever.province){
|
||||
getDestSite(queryParams).then(response => {
|
||||
console.log(response);
|
||||
this.form.destinationCode = response.data.destCode+'';
|
||||
this.form.dispatchSiteCode= response.data.siteCode;
|
||||
this.form.dispatchSite = response.data.siteName;
|
||||
@ -1673,9 +1697,6 @@ methods: {
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
// let newList = this.form.cargoList.filter(item => item.goodsName !== row.goodsName);
|
||||
// this.form.cargoList=newList;
|
||||
console.log(index);
|
||||
this.form.cargoList.splice(index,1)
|
||||
this.handleCalcVolume(row);
|
||||
}).catch(() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user