Commit ee47ae6e authored by zhoutong's avatar zhoutong

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

parent 699cfdab
...@@ -236,6 +236,9 @@ export default { ...@@ -236,6 +236,9 @@ export default {
dcDecTime: [ dcDecTime: [
{ required: true, message: this.$t("必填"), trigger: "change" }, { required: true, message: this.$t("必填"), trigger: "change" },
], ],
overMachineStatus: [
{pattern: /^[12]$/, message: this.$t("必填")}
],
}, },
// 弹窗配置 // 弹窗配置
dialogConfig: { dialogConfig: {
...@@ -288,11 +291,11 @@ export default { ...@@ -288,11 +291,11 @@ export default {
]); ]);
oldData.overDealUser = this.strToArray(oldData.overDealUser) oldData.overDealUser = this.strToArray(oldData.overDealUser)
oldData.overOrders = this.strToArray(oldData.overOrders) oldData.overOrders = this.strToArray(oldData.overOrders)
this.cusDeclarationObj = oldData;
this.cusDeclarationObj = oldData;console.log(this.cusDeclarationObj.overDealUser)
}, },
methods: { methods: {
strToArray(str) { strToArray(str) {
if(str == 0) return []
let array = str?.split(",") ?? [] let array = str?.split(",") ?? []
return array.map(item=>{return Number(item)}) return array.map(item=>{return Number(item)})
}, },
...@@ -352,10 +355,11 @@ export default { ...@@ -352,10 +355,11 @@ export default {
return newList.length >= 2 ? this.$t("混合报关") : this.$t("VGM声明"); return newList.length >= 2 ? this.$t("混合报关") : this.$t("VGM声明");
}, },
submitCustomsCreate(operateType) { submitCustomsCreate(operateType) {
this.cusDeclarationObj.overDealUser = this.cusDeclarationObj.overDealUser.join(',') let parems = {... this.cusDeclarationObj}
this.cusDeclarationObj.overOrders = this.cusDeclarationObj.overOrders.join(',') parems.overDealUser = !Array.isArray(parems.overDealUser)?null:parems.overDealUser.join(',')
parems.overOrders = !Array.isArray(parems.overOrders)?null:parems.overOrders.join(',')
customsCreate({ customsCreate({
...this.cusDeclarationObj, ...parems,
shipmentId: this.shipmentObj.id, shipmentId: this.shipmentObj.id,
operateType, operateType,
}).then((res) => { }).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