Commit ee47ae6e authored by zhoutong's avatar zhoutong

【2.0-空运】CNA233764出货操作-报关放行报错

parent 699cfdab
......@@ -236,6 +236,9 @@ export default {
dcDecTime: [
{ required: true, message: this.$t("必填"), trigger: "change" },
],
overMachineStatus: [
{pattern: /^[12]$/, message: this.$t("必填")}
],
},
// 弹窗配置
dialogConfig: {
......@@ -288,11 +291,11 @@ export default {
]);
oldData.overDealUser = this.strToArray(oldData.overDealUser)
oldData.overOrders = this.strToArray(oldData.overOrders)
this.cusDeclarationObj = oldData;console.log(this.cusDeclarationObj.overDealUser)
this.cusDeclarationObj = oldData;
},
methods: {
strToArray(str) {
if(str == 0) return []
let array = str?.split(",") ?? []
return array.map(item=>{return Number(item)})
},
......@@ -352,10 +355,11 @@ export default {
return newList.length >= 2 ? this.$t("混合报关") : this.$t("VGM声明");
},
submitCustomsCreate(operateType) {
this.cusDeclarationObj.overDealUser = this.cusDeclarationObj.overDealUser.join(',')
this.cusDeclarationObj.overOrders = this.cusDeclarationObj.overOrders.join(',')
let parems = {... this.cusDeclarationObj}
parems.overDealUser = !Array.isArray(parems.overDealUser)?null:parems.overDealUser.join(',')
parems.overOrders = !Array.isArray(parems.overOrders)?null:parems.overOrders.join(',')
customsCreate({
...this.cusDeclarationObj,
...parems,
shipmentId: this.shipmentObj.id,
operateType,
}).then((res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment