Browse Source

修改箱管字段

Qukatie 10 months ago
parent
commit
2c383c6207

+ 5 - 5
src/views/boxManagement/buyContainer/detailsPage.vue

@@ -1296,19 +1296,19 @@ export default {
       }
       if (name == 'restrictedPortsName') {
         if (row) {
-          el.restrictedPortsId = row.ids
+          el.restrictedPortsIds = row.ids
           el.restrictedPortsName = row.names
         } else {
-          el.restrictedPortsId = null
+          el.restrictedPortsIds = null
           el.restrictedPortsName = null
         }
       }
       if (name == 'restrictingShippingCompaniesName') {
         if (row) {
-          el.restrictingShippingCompaniesId = row.ids
+          el.restrictingShippingCompaniesIds = row.ids
           el.restrictingShippingCompaniesName = row.names
         } else {
-          el.restrictingShippingCompaniesId = null
+          el.restrictingShippingCompaniesIds = null
           el.restrictingShippingCompaniesName = null
         }
       }
@@ -1492,7 +1492,7 @@ export default {
         }
       }
       if (name == '批量删除') {
-        for (let item of this.form.tradingBoxItemsList) {
+        for (let item of this.selectionList) {
           if (item.whetherEnable == '是') {
             return this.$message.error("启用状态不能删除!");
           }

+ 1 - 1
src/views/boxManagement/owTask/detailsPage.vue

@@ -2162,7 +2162,7 @@ export default {
         }
       }
       if (name == '批量删除') {
-        for (let item of this.form.tradingBoxItemsList) {
+        for (let item of this.selectionListt) {
           if (item.whetherEnable == '是') {
             return this.$message.error("启用状态不能删除!");
           }