From 661d24d8878de17ba3fff18886e87bb77385d9ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Wed, 13 Dec 2023 10:28:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E5=93=81=E5=9F=BA=E7=A1=80=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E7=BB=93=E7=AE=97=E6=96=B9=E5=BC=8F=20?= =?UTF-8?q?=E5=8F=8A=20=E9=9A=90=E8=97=8F=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E7=89=A9=E5=93=81=20=E7=BB=93=E7=AE=97=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemManage/itembasic/itembasic.data.ts | 11 +++++++++ .../supplieritem/supplieritem.data.ts | 24 +++++++++---------- .../onlinesettlementRequestMain/index.vue | 24 ++++++++++--------- 3 files changed, 36 insertions(+), 23 deletions(-) diff --git a/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts b/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts index b422e5187..ddf7bb6d9 100644 --- a/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts +++ b/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts @@ -277,6 +277,17 @@ export const Itembasic = useCrudSchemas(reactive([ width: 100 } , }, + { + label: '结算方式', + field: 'settlementType', + dictType: DICT_TYPE.SETTLEMENT_TYPE, + dictClass: 'string', + sort: 'custom', + isTable: true, + table: { + width: 120 + } , + }, { label: '项目', field: 'project', diff --git a/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts b/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts index 535480fce..3ca507505 100644 --- a/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts +++ b/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts @@ -221,18 +221,18 @@ export const Supplieritem = useCrudSchemas(reactive([ } } }, - { - label: '结算方式', - field: 'settlementType', - dictType: DICT_TYPE.SETTLEMENT_TYPE, - dictClass: 'string', - isSearch: true, - isTable: true, - sort: 'custom', - table: { - width: 150 - } - }, + // { + // label: '结算方式', + // field: 'settlementType', + // dictType: DICT_TYPE.SETTLEMENT_TYPE, + // dictClass: 'string', + // isSearch: true, + // isTable: true, + // sort: 'custom', + // table: { + // width: 150 + // } + // }, { label: '是否可用', field: 'available', diff --git a/src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue b/src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue index 151aeaad1..7f5cc651b 100644 --- a/src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue +++ b/src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue @@ -128,17 +128,19 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => //row['uom'] = val[0]['uom'] } else { const setV = {} - SupplieritemApi.getSupplieritemPage({ - supplierCode: val[0]['supplierCode'], - itemCode: val[0]['itemCode'] - }).then(res => { - if(res?.list[0]?.settlementType == 'ONLINE'){ - setV['issueRecordNumber'] = val[0]['number'] - formRef.setValues(setV) - } else{ - message.error('找不到对应的结算方式') - } - }) + setV[formField] = val[0][searchField] + // SupplieritemApi.getSupplieritemPage({ + // supplierCode: val[0]['supplierCode'], + // itemCode: val[0]['itemCode'] + // }).then(res => { + // if(res?.list[0]?.settlementType == 'ONLINE'){ + // setV['issueRecordNumber'] = val[0]['number'] + // formRef.setValues(setV) + // } else{ + // message.error('找不到对应的结算方式') + // } + // }) + formRef.setValues(setV) } }) }