diff --git a/src/views/main/BookingLedger/detail/modules/sedOrder.vue b/src/views/main/BookingLedger/detail/modules/sedOrder.vue index 1418806..4912f64 100644 --- a/src/views/main/BookingLedger/detail/modules/sedOrder.vue +++ b/src/views/main/BookingLedger/detail/modules/sedOrder.vue @@ -639,7 +639,7 @@ export default { return false } } - if (this.hasTableRules) { + if (this.hasTableRules && this.editDetails.carrierid !== 'GGPX') { if (this.editDetails.ctnInputs.length === 0) { this.$message.error('保存失败,箱信息未填写') return false diff --git a/src/views/main/CommondbYardlist/addForm.vue b/src/views/main/CommondbYardlist/addForm.vue index 61ef1a8..3251dd0 100644 --- a/src/views/main/CommondbYardlist/addForm.vue +++ b/src/views/main/CommondbYardlist/addForm.vue @@ -40,6 +40,24 @@ + + + + + {{ item.cnName }} + + + + import { CommondbAddorupdatemappingyard, commondbYardlist } from '@/api/modular/main/CommondbYardlist' +import { commondbCarrierlist } from '@/api/modular/main/CommondbCtnlist' import { commondbModules } from '@/api/modular/main/ShippingCompanyMapping' export default { data() { @@ -94,7 +113,8 @@ export default { confirmLoading: false, form: this.$form.createForm(this), CodeData: [], - ModulesData: [] + ModulesData: [], + carrierCodeData: [] } }, mounted() {}, @@ -102,8 +122,13 @@ export default { filterOption(input, option) { return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 }, + CarrierHandleSearch(data) { + commondbCarrierlist({ KeyWord: data }).then((res) => { + this.carrierCodeData = res.data + }) + }, handleSearch(data) { - commondbYardlist({ KeyWord: data }).then(res => { + commondbYardlist({ KeyWord: data }).then((res) => { this.CodeData = res.data console.log(this.CodeData) }) @@ -111,12 +136,15 @@ export default { // 初始化方法 add(record) { this.visible = true - commondbYardlist().then(res => { + commondbYardlist().then((res) => { this.CodeData = res.data }) - commondbModules().then(res => { + commondbModules().then((res) => { this.ModulesData = res.data }) + commondbCarrierlist().then((res) => { + this.carrierCodeData = res.data + }) }, /** * 提交表单 @@ -134,7 +162,7 @@ export default { } } CommondbAddorupdatemappingyard(values) - .then(res => { + .then((res) => { if (res.success) { this.$message.success('新增成功') this.confirmLoading = false @@ -144,7 +172,7 @@ export default { this.$message.error(`新增失败,${res.message}`) } }) - .finally(res => { + .finally((res) => { this.confirmLoading = false }) } else { diff --git a/src/views/main/CommondbYardlist/editForm.vue b/src/views/main/CommondbYardlist/editForm.vue index a1409a8..113ebab 100644 --- a/src/views/main/CommondbYardlist/editForm.vue +++ b/src/views/main/CommondbYardlist/editForm.vue @@ -40,6 +40,24 @@ + + + + + {{ item.cnName }} + + + + import { CommondbAddorupdatemappingyard, commondbYardlist } from '@/api/modular/main/CommondbYardlist' +import { commondbCarrierlist } from '@/api/modular/main/CommondbCtnlist' import { commondbModules } from '@/api/modular/main/ShippingCompanyMapping' export default { data() { @@ -96,7 +115,8 @@ export default { form: this.$form.createForm(this), data: {}, CodeData: [], - ModulesData: [] + ModulesData: [], + carrierCodeData: [] } }, mounted() {}, @@ -105,11 +125,16 @@ export default { return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 }, handleSearch(data) { - commondbYardlist({ KeyWord: data }).then(res => { + commondbYardlist({ KeyWord: data }).then((res) => { this.CodeData = res.data console.log(this.CodeData) }) }, + CarrierHandleSearch(data) { + commondbCarrierlist({ KeyWord: data }).then((res) => { + this.carrierCodeData = res.data + }) + }, // 初始化方法 edit(record) { this.data = record @@ -117,19 +142,23 @@ export default { this.visible = true const typeOption = this.$options this.typeData = typeOption.filters['dictData']('edi_type') - commondbYardlist().then(res => { + commondbYardlist().then((res) => { this.CodeData = res.data }) - commondbModules().then(res => { + commondbModules().then((res) => { this.ModulesData = res.data }) + commondbCarrierlist().then((res) => { + this.carrierCodeData = res.data + }) setTimeout(() => { this.form.setFieldsValue({ code: record.code, module: record.module, mapName: record.mapName, mapCode: record.mapCode, - remark: record.remark + remark: record.remark, + carrierCode: record.carrierCode }) console.log(this.form.getFieldsValue()) }, 100) @@ -152,7 +181,7 @@ export default { values.gid = this.data.gid console.log(values) CommondbAddorupdatemappingyard(values) - .then(res => { + .then((res) => { if (res.success) { this.$message.success('编辑成功') this.confirmLoading = false @@ -162,7 +191,7 @@ export default { this.$message.error(`编辑失败,${res.message}`) } }) - .finally(res => { + .finally((res) => { this.confirmLoading = false }) } else { diff --git a/src/views/main/CommondbYardlist/index.vue b/src/views/main/CommondbYardlist/index.vue index 3372461..4836b7e 100644 --- a/src/views/main/CommondbYardlist/index.vue +++ b/src/views/main/CommondbYardlist/index.vue @@ -124,6 +124,12 @@ export default { width: '80', dataIndex: 'module' }, + { + title: '船公司', + align: 'center', + width: '80', + dataIndex: 'carrierCode' + }, { title: '映射名称', align: 'center', @@ -162,14 +168,14 @@ export default { this.FnGetData() }, handleSearch(data) { - commondbYardlist({ Name: data }).then(res => { + commondbYardlist({ Name: data }).then((res) => { this.WCodeData = res.data console.log(this.CodeData) }) }, FnCode(data) { let RData = '' - this.CodeData.forEach(item => { + this.CodeData.forEach((item) => { if (data == item.code) { RData = item.name } @@ -178,7 +184,7 @@ export default { }, FnModule(data) { let RData = '' - this.ModulesData.forEach(item => { + this.ModulesData.forEach((item) => { if (data == item.code) { RData = item.name } @@ -192,18 +198,18 @@ export default { Object.assign(this.$data, this.$options.data()) this.ColumnsQuery = this.columns this.FnGetData() - commondbYardlist().then(res => { + commondbYardlist().then((res) => { this.CodeData = res.data this.WCodeData = res.data }) - commondbModules().then(res => { + commondbModules().then((res) => { this.ModulesData = res.data }) }, FnGetData() { if (this.queryParam.module) { this.loading = true - CommondbPageMappingyardlist(this.queryParam).then(res => { + CommondbPageMappingyardlist(this.queryParam).then((res) => { if (res.code == 200) { this.loadData = res.data.items this.queryParam.totalCount = res.data.totalCount