diff --git a/src/views/main/BookingLedger/detail/modules/preOrder.vue b/src/views/main/BookingLedger/detail/modules/preOrder.vue
index 1a5bbf6..44adbce 100644
--- a/src/views/main/BookingLedger/detail/modules/preOrder.vue
+++ b/src/views/main/BookingLedger/detail/modules/preOrder.vue
@@ -2391,6 +2391,9 @@ export default {
this.orderDetails[type] = res['ediCode'] || ''
this.orderDetails[type.replace('id', '')] = res['enName'] || ''
this.orderDetails.forwarder = ''
+ if(type==='portloadid'){
+ console.log(res)
+ }
}
console.log('== 模糊搜索后的预定舱 ==', this.orderDetails)
},
diff --git a/src/views/main/CommondbPackage/index.vue b/src/views/main/CommondbPackage/index.vue
index 7407c27..f4dda9c 100644
--- a/src/views/main/CommondbPackage/index.vue
+++ b/src/views/main/CommondbPackage/index.vue
@@ -27,9 +27,9 @@
- {{ item.cnName
- }}/ {{ item.enName}}
-
+ {{ item.cnName
+ }}/ {{ item.enName }}
+
@@ -56,7 +56,14 @@
-
+
-
+
+ v-if="ItemData.length > 0 && !multiSelect && showSelect">
{{ item.itemName }}
+
+
+
+ {{ item.itemName }} / {{ item.itemCode }}
+
+
+
{
@@ -141,8 +162,9 @@ export default {
return Rdata
},
FnChangeTypeCode(e) {
- if (e) {
+ if (e !== 'CarrierProp' && e !== 'LaneProp') {
this.ItemCodeDisabled = false
+ this.showSelect = true
this.WTypeData.forEach(item => {
if (item.paraCode === e) {
this.multiSelect = item.multiSelect
@@ -157,6 +179,26 @@ export default {
this.ItemData = res.data
})
}
+ if (e === 'CarrierProp') {
+ const arr = JSON.parse(JSON.stringify(this.carrierList))
+ this.showSelect = false
+ this.multiSelect = true
+ arr.forEach(item => {
+ item.itemName = item.cnName
+ item.itemCode = item.enName
+ })
+ this.ItemData = arr
+ }
+ if (e === 'LaneProp') {
+ const arr = JSON.parse(JSON.stringify(this.lineList))
+ this.showSelect = true
+ this.multiSelect = true
+ arr.forEach(item => {
+ item.itemName = item.name
+ item.itemCode = item.name
+ })
+ this.ItemData = arr
+ }
},
tenantIdSearch(value) {
if (value) {
@@ -165,6 +207,11 @@ export default {
})
}
},
+ filterOption(input, option) {
+ return (
+ option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
+ );
+ },
handleChange(val) {
console.log(val)
},
@@ -210,15 +257,26 @@ export default {
values.paramType = item.type
}
})
- const arr = []
- this.ItemData.forEach(item => {
- if (item.itemCode == values.itemCode) {
- values.itemName = item.itemName
- arr.push(1)
+ if (!this.multiSelect) {
+ const arr = []
+ this.ItemData.forEach(item => {
+ if (item.itemCode == values.itemCode) {
+ values.itemName = item.itemName
+ arr.push(1)
+ }
+ })
+ if (arr.length === 0) {
+ values.itemName = values.itemCode
}
- })
- if (arr.length === 0) {
- values.itemName = values.itemCode
+ } else {
+ values.itemName = []
+ this.ItemData.forEach(item => {
+ values.itemCode.forEach(ite => {
+ if (ite === item.itemCode) {
+ values.itemName.push(item.itemName)
+ }
+ })
+ })
}
if (Array.isArray(values.itemCode)) {
values.itemCode = values.itemCode.join(',')
diff --git a/src/views/main/customerParam/editItemForm.vue b/src/views/main/customerParam/editItemForm.vue
index 1b4d476..0cdc467 100644
--- a/src/views/main/customerParam/editItemForm.vue
+++ b/src/views/main/customerParam/editItemForm.vue
@@ -29,7 +29,11 @@
-
+
+ v-if="ItemData.length > 0 && !multiSelect && showSelect">
{{ item.itemName }}
+
+
+
+ {{ item.itemName }} / {{ item.itemCode }}
+
+
+
{
if (item.paraCode === e) {
@@ -164,6 +190,28 @@ export default {
this.ItemData = res.data
})
}
+ if (e === 'CarrierProp') {
+ const arr = JSON.parse(JSON.stringify(this.carrierList))
+ this.showSelect = false
+ this.ItemCodeDisabled = false
+ this.multiSelect = false
+ arr.forEach(item => {
+ item.itemName = item.cnName
+ item.itemCode = item.enName
+ })
+ this.ItemData = arr
+ }
+ if (e === 'LaneProp') {
+ const arr = JSON.parse(JSON.stringify(this.lineList))
+ this.showSelect = true
+ this.ItemCodeDisabled = false
+ this.multiSelect = false
+ arr.forEach(item => {
+ item.itemName = item.name
+ item.itemCode = item.name
+ })
+ this.ItemData = arr
+ }
},
tenantIdSearch(value) {
if (value) {
@@ -189,14 +237,14 @@ export default {
if (res2) {
this.WTypeData = res2.data
res2.data.forEach(item => {
- if (item.paraCode === editRow.paraCode) {
- this.multiSelect = item.multiSelect
- if (this.multiSelect) {
- editRow.itemCode = editRow.itemCode.split(',')
- editRow.itemName = editRow.itemName.split(',')
+ if (item.paraCode === editRow.paraCode) {
+ this.multiSelect = item.multiSelect
+ if (this.multiSelect) {
+ editRow.itemCode = editRow.itemCode.split(',')
+ editRow.itemName = editRow.itemName.split(',')
+ }
}
- }
- })
+ })
}
this.loading = false
this.form.setFieldsValue({
@@ -209,6 +257,11 @@ export default {
})
})
},
+ filterOption(input, option) {
+ return (
+ option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
+ );
+ },
handleSubmit() {
const {
form: { validateFields }
@@ -233,15 +286,26 @@ export default {
values.paramType = item.type
}
})
- const arr = []
- this.ItemData.forEach(item => {
- if (item.itemCode == values.itemCode) {
- values.itemName = item.itemName
- arr.push(1)
+ if (!this.multiSelect) {
+ const arr = []
+ this.ItemData.forEach(item => {
+ if (item.itemCode == values.itemCode) {
+ values.itemName = item.itemName
+ arr.push(1)
+ }
+ })
+ if (arr.length === 0) {
+ values.itemName = values.itemCode
}
- })
- if (arr.length === 0) {
- values.itemName = values.itemCode
+ } else {
+ values.itemName = []
+ this.ItemData.forEach(item => {
+ values.itemCode.forEach(ite => {
+ if (ite === item.itemCode) {
+ values.itemName.push(item.itemName)
+ }
+ })
+ })
}
if (Array.isArray(values.itemCode)) {
values.itemCode = values.itemCode.join(',')