From 09832fcba58d4f22348c7bad184f21086060747b Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 10 Aug 2022 13:46:59 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=8E=92=E4=BA=A7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E5=92=8C=E6=B5=81=E7=A8=8B=E4=B8=AD=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=87=87=E8=B4=AD=E7=B1=BB=E5=9E=8B=E3=80=81=E6=8E=92?= =?UTF-8?q?=E4=BA=A7=E7=B1=BB=E5=9E=8B=E6=94=B9=E4=B8=BA=E9=87=87=E8=B4=AD?= =?UTF-8?q?=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cheliangpaichan/cheliangpaichan.vue | 36 +++++++++++++++--- .../cheliangpaichan/cheliangpaichanAdd.vue | 37 +++++++++++++++++-- .../cheliangpaichan/cheliangpaichanInfo.vue | 9 ++++- .../cheliangpaichanDaiBanInfo.vue | 9 ++++- .../paichanguanli/cheliangpaichanEdit.vue | 35 ++++++++++++++++-- .../cheliangpaichanYiBanInfo.vue | 9 ++++- 6 files changed, 116 insertions(+), 19 deletions(-) diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichan.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichan.vue index 05432b88c8..2ab0b63a94 100644 --- a/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichan.vue +++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichan.vue @@ -13,8 +13,15 @@
- - + + + + + + + + +
@@ -44,7 +51,7 @@ {{ scope.row.nodeState }} - + @@ -127,6 +134,8 @@ export default { // sid数组 sids: [], // 用于导出的时候保存已选择SID sides: '', // 一条数据的sid + schedulingType_list: [], + applyType_list: [], queryParams: { current: 1, size: 10, @@ -134,7 +143,8 @@ export default { params: { applicationDateStart: '', applicationDateEnd: '', - modelName: '', // 车型 + applyTypeKey: '', + schedulingTypeKey: '', userSid: '' } }, @@ -142,6 +152,7 @@ export default { } }, created() { + this.init() this.loadList() }, mounted() { @@ -179,6 +190,20 @@ export default { } this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params))) }, + init() { + req.pullDown({ type: 'schedulingType' }).then((res) => { + if (res.success) { + this.schedulingType_list = res.data + console.log('下拉框请求111', res.data) + } + }) + req.pullDown({ type: 'applyType' }).then((res) => { + if (res.success) { + this.applyType_list = res.data + console.log('下拉框请求111', res.data) + } + }) + }, btnHandle(btnKey) { console.log('XXXXXXXXXXXXXXX' + btnKey) switch (btnKey) { @@ -234,7 +259,8 @@ export default { params: { applicationDateStart: '', applicationDateEnd: '', - modelName: '', // 车型 + applyTypeKey: '', + schedulingTypeKey: '', userSid: '' } } diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue index 9d1fe7011b..cb8f294888 100644 --- a/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue +++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue @@ -34,8 +34,16 @@ - -
排产类型:
+ +
采购类型:
+ + + + + +
+ +
采购原因:
@@ -150,6 +158,7 @@ export default { tableKey: 0, // 下拉框 schedulingType_list: [], // 排产订金使用 + applyType_list: [], isRead: false, // 表单数据 formobj: { @@ -159,7 +168,9 @@ export default { createByName: '', // 制单人 applicationCode: '', // 申请编号 applicationDate: '', // 申请日期 - schedulingType: '', // 排产类型 + applyType: '', // 采购类型 + applyTypeKey: '', + schedulingType: '', // 采购原因 schedulingTypeKey: '', remarks: '', // 备注 currentAmount: '', // 当前订金金额 @@ -179,7 +190,11 @@ export default { req.pullDown({ type: 'schedulingType' }).then((res) => { if (res.success) { this.schedulingType_list = res.data - console.log('下拉框请求111', res.data) + } + }) + req.pullDown({ type: 'applyType' }).then((res) => { + if (res.success) { + this.applyType_list = res.data } }) }, @@ -285,6 +300,18 @@ export default { }) } }, + changeApplyType(value) { + let bb = null + this.applyType_list.forEach((e) => { + if (e.dictValue === value) { + bb = { + key: e.dictKey, + value: e.dictValue + } + } + }) + this.formobj.applyTypeKey = bb.key + }, changeSchedulingType(value) { let bb = null this.schedulingType_list.forEach((e) => { @@ -408,6 +435,8 @@ export default { // 返回(===既判断) handleReturn(isreload) { if (isreload === 'true') this.$emit('reloadlist') + this.formobj.applyType = '' + this.formobj.applyTypeKey = '' this.formobj.schedulingType = '' // 排产类型 this.formobj.schedulingTypeKey = '' this.formobj.remarks = '' // 备注 diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanInfo.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanInfo.vue index f3be1e0de8..2d519f47f9 100644 --- a/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanInfo.vue +++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanInfo.vue @@ -30,8 +30,13 @@
- -
排产类型:
+ +
采购类型:
+ {{ formobj.applyType }} + +
+ +
采购原因:
{{ formobj.schedulingType }}
diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanDaiBanInfo.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanDaiBanInfo.vue index d8509f37ce..ac5000e597 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanDaiBanInfo.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanDaiBanInfo.vue @@ -32,8 +32,13 @@
- -
排产类型:
+ +
采购类型:
+ {{ formobj.applyType }} + +
+ +
采购原因:
{{ formobj.schedulingType }}
diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanEdit.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanEdit.vue index e86fc47c94..960201d296 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanEdit.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanEdit.vue @@ -33,8 +33,16 @@
- -
排产类型:
+ +
采购类型:
+ + + + + +
+ +
采购原因:
@@ -148,6 +156,7 @@ export default { tableKey: 0, // 下拉框 schedulingType_list: [], // 排产订金使用 + applyType_list: [], isRead: false, // 表单数据 formobj: { @@ -157,7 +166,9 @@ export default { createByName: '', // 制单人 applicationCode: '', // 申请编号 applicationDate: '', // 申请日期 - schedulingType: '', // 排产类型 + applyType: '', // 采购类型 + applyTypeKey: '', + schedulingType: '', // 采购原因 schedulingTypeKey: '', remarks: '', // 备注 currentAmount: '', // 当前订金金额 @@ -196,7 +207,11 @@ export default { req.pullDown({ type: 'schedulingType' }).then((res) => { if (res.success) { this.schedulingType_list = res.data - console.log('下拉框请求111', res.data) + } + }) + req.pullDown({ type: 'applyType' }).then((res) => { + if (res.success) { + this.applyType_list = res.data } }) }, @@ -263,6 +278,18 @@ export default { }) } }, + changeApplyType(value) { + let bb = null + this.applyType_list.forEach((e) => { + if (e.dictValue === value) { + bb = { + key: e.dictKey, + value: e.dictValue + } + } + }) + this.formobj.applyTypeKey = bb.key + }, changeSchedulingType(value) { let bb = null this.schedulingType_list.forEach((e) => { diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanYiBanInfo.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanYiBanInfo.vue index 5be6cbfa4c..584327c768 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanYiBanInfo.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanYiBanInfo.vue @@ -30,8 +30,13 @@
- -
排产类型:
+ +
采购类型:
+ {{ formobj.applyType }} + +
+ +
采购原因:
{{ formobj.schedulingType }}
From 34d2bd2be53804e15042ddb8a2b75ac9e4a90b28 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 10 Aug 2022 13:49:04 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=8E=82=E5=AE=B6=E8=AE=A2=E9=87=91?= =?UTF-8?q?=E8=AE=A4=E6=AC=BE=E6=8E=92=E4=BA=A7=E7=94=B3=E8=AF=B7=E7=BC=96?= =?UTF-8?q?=E5=8F=B7=E6=94=B9=E4=B8=BA=E7=94=B3=E8=AF=B7=E7=BC=96=E5=8F=B7?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E9=87=87=E8=B4=AD=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../changjiaxitong/manufacturers.vue | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/changjiaxitong/manufacturers.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/changjiaxitong/manufacturers.vue index 71de0afe9e..5c721235d6 100644 --- a/anrui-scm/anrui-scm-ui/src/views/supplychain/changjiaxitong/manufacturers.vue +++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/changjiaxitong/manufacturers.vue @@ -8,7 +8,7 @@ {{ searchxianshitit }} - + + + + + +
查询 @@ -54,11 +59,16 @@ {{ scope.row.state == '0' ? '未认款' : '已认款' }} - + + + +