From 0fa4a675ece2e88ccc159ecd24ef8acb43bbde6b Mon Sep 17 00:00:00 2001 From: lxf Date: Tue, 11 Nov 2025 15:24:59 +0800 Subject: [PATCH] fix: 宁夏邮政定制 --- pages.json | 5 +++++ pages/goodSource/add.vue | 37 ++++++++++++++++++++++--------------- pages/goodSource/detail.vue | 12 ++++++++++++ pages/goodSource/goods-info.vue | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pages/me/index.vue | 10 +++++----- pages/order/add.vue | 49 ++++++++++++++++++++++++++++++++----------------- 6 files changed, 188 insertions(+), 37 deletions(-) create mode 100644 pages/goodSource/goods-info.vue diff --git a/pages.json b/pages.json index 437a05f..36e77ed 100644 --- a/pages.json +++ b/pages.json @@ -28,6 +28,11 @@ "navigationBarTitleText": "创建货源" } },{ + "path": "pages/goodSource/goods-info", + "style": { + "navigationBarTitleText": "货物信息" + } + },{ "path": "pages/goodSource/select-remark", "style": { "navigationBarTitleText": "填写备注" diff --git a/pages/goodSource/add.vue b/pages/goodSource/add.vue index 8c73c8a..7b77b73 100644 --- a/pages/goodSource/add.vue +++ b/pages/goodSource/add.vue @@ -24,7 +24,7 @@ - + @@ -161,6 +161,9 @@ export default { specification: '', vanType: '', goodsName: '', + dispatchUnit: '', + customerContractNo: '', + transportShiftNo: '', priceType: 'VEHICLE', // VEHICLE, TON priceTypeName: '', goodsWeight: '', @@ -178,7 +181,7 @@ export default { }; }, computed: { - ...mapGetters(['dictList', 'dictValue', 'userInfo']), + ...mapGetters(['dictList', 'dictValue', 'userInfo', 'freightInfo']), // 箱型 vanTypeList() { return [...this.dictList('VEHICLE_COMPARTMENT_TYPE'), { valueCode: 'ALL', valueName: '不限' }]; @@ -212,6 +215,9 @@ export default { priceTypeColumns() { return [this.dictList('FREIGHT_GOODS_SOURCE_PRICE_TYPE')]; }, + ningXiaYouZhengFlag() { + return this.freightInfo.enterpriseName === '中国邮政速递物流股份有限公司宁夏物流运营分公司' && this.form.projectName === 'JYYJ'; + }, }, onLoad(option) { if (option.code) { @@ -310,20 +316,21 @@ export default { chosePriceType() { this.priceTypeVisible = true; }, - choseGoodsName() { - uni.$off('select-common'); - uni.$once('select-common', option => { - this.form.goodsName = option.name; - }); + selectGoodsInfo() { uni.navigateTo({ - url: `/pages/global/search-common${urlParam({ - mode: 'select', - url: 'goodsName', - title: '货物名称', - label: 'name', - value: '', - params: `{"projectCode":"${this.form.projectCode}"}`, - })}`, + url: `/pages/goodSource/goods-info`, + events: { + submitData: option => { + this.form = { + ...this.form, + ...option, + }; + uni.navigateBack(); + }, + }, + success: res => { + res.eventChannel.emit('data', { form: this.form, ningXiaYouZhengFlag: this.ningXiaYouZhengFlag }); + }, }); }, selectAddress(index) { diff --git a/pages/goodSource/detail.vue b/pages/goodSource/detail.vue index 1ed44ab..16c7aad 100644 --- a/pages/goodSource/detail.vue +++ b/pages/goodSource/detail.vue @@ -7,6 +7,18 @@ 货物类型 {{ form.goodsName || '' }} + + 发货单位 + {{ form.dispatchUnit || '' }} + + + 合同号 + {{ form.customerContractNo || '' }} + + + 运输班次号 + {{ form.transportShiftNo || '' }} +