From 8ad90f9a7c2a26acd9642bbdb159633beec2821a Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 6 Sep 2024 09:15:53 +0800 Subject: [PATCH 01/21] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=A6=81=E8=B4=A7?= =?UTF-8?q?=E9=A2=84=E6=B5=8B=E5=88=86=E9=A1=B5=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=EF=BC=8C=E5=A4=B4=E9=83=A8=E6=8E=A5=E5=8F=A3=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliver/demandforecastingMain/index.vue | 5 ++++- .../supplierdeliver/demandforecastingSupplierMain/index.vue | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue index 9db63afdf..d36758d0f 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue @@ -122,7 +122,10 @@ const { tableObject, tableMethods } = useTable({ // 获得表格的各种操作 const { getList, setSearchParams } = tableMethods - +watch(()=>tableObject.currentPage,async ()=>{ + tableObjectHead.currentPage = tableObject.currentPage + updateDateTableColumns() +}) // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultExportBtn({hasPermi:'wms:demandforecasting-main:export'}), // 导出 diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingSupplierMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingSupplierMain/index.vue index e2a1bf390..49eb20d07 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingSupplierMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingSupplierMain/index.vue @@ -130,7 +130,10 @@ const { tableObject, tableMethods } = useTable({ // 获得表格的各种操作 const { getList, setSearchParams } = tableMethods - +watch(()=>tableObject.currentPage,async ()=>{ + tableObjectHead.currentPage = tableObject.currentPage + updateDateTableColumns() +}) // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultExportBtn({hasPermi:'wms:demandforecasting-main:export'}), // 导出 From 6b49371d22bcbe52fcd5f168dada9478e26f7df3 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 6 Sep 2024 10:10:20 +0800 Subject: [PATCH 02/21] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E5=8F=91?= =?UTF-8?q?=E7=A5=A8=E7=94=B3=E8=AF=B7--=E6=96=B0=E5=8A=A0=E4=B8=89?= =?UTF-8?q?=E4=B8=AA=E5=AD=97=E6=AE=B5hella=E4=BB=A3=E7=A0=81=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierinvoiceRecordMain/index.vue | 12 +++++ .../supplierinvoiceRecordMain.data.ts | 9 ++++ .../supplierinvoiceRequestMain/index.vue | 19 +++++++- .../supplierinvoiceRequestMain.data.ts | 47 ++++++++++++++++++- .../index.vue | 12 +++++ ...pplierinvoiceRequestMainDifference.data.ts | 9 ++++ 6 files changed, 104 insertions(+), 4 deletions(-) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue index d60e64faf..ff49c7c11 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue @@ -138,6 +138,18 @@ :apiPage="SupplierinvoiceRecordDetailApi.getSupplierinvoiceRecordDeatilPage" @buttonBaseClick="detailButtonBaseClick" > + + + + + + diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts index 3183fa5b7..459b0be99 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts @@ -1218,6 +1218,9 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive + + + + + + diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts index 060b95ccd..becf3987b 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts @@ -434,7 +434,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( // } // }, { - label: '折扣金额', + label: '返利未税金额', field: 'discountAmount1', formatter: accountantFormart, table: { @@ -470,6 +470,40 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( }, isTableForm:false, }, + { + label: '返利税额', + field: 'rebateTax', + formatter: accountantFormart, + table: { + width: 150 + }, + sortTableDefault:4, + form: { + component: 'InputNumber', + componentProps: { + precision: 2, + disabled: true, + } + }, + isTableForm:false, + }, + { + label: '返利价税合计', + field: 'rebateTotal', + formatter: accountantFormart, + table: { + width: 150 + }, + sortTableDefault:4, + form: { + component: 'InputNumber', + componentProps: { + precision: 2, + disabled: true, + } + }, + isTableForm:false, + }, { label: '发票税额', field: 'totalTaxAmount', @@ -579,7 +613,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( precision: 2, disabled: true, } - }, + } }, // { @@ -1473,6 +1507,9 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive + + + + + + diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainDifference/supplierinvoiceRequestMainDifference.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainDifference/supplierinvoiceRequestMainDifference.data.ts index 5bdc5ec06..93482a5c1 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainDifference/supplierinvoiceRequestMainDifference.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainDifference/supplierinvoiceRequestMainDifference.data.ts @@ -1489,6 +1489,9 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive Date: Fri, 6 Sep 2024 10:39:48 +0800 Subject: [PATCH 03/21] =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=8E=BB=E6=8E=89=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.development b/.env.development index bed5e9cb9..8db04bcf0 100644 --- a/.env.development +++ b/.env.development @@ -43,4 +43,4 @@ VITE_TENANT='["长春1379","成都1397","长春2379"]' VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400' # 是否需要验证码 -VITE_NEED_CODE = true +VITE_NEED_CODE = false From 13f6f85a9e89ea551b04ba57b2da63b761998220 Mon Sep 17 00:00:00 2001 From: bjang03 <259278618@qq.com> Date: Fri, 6 Sep 2024 11:02:46 +0800 Subject: [PATCH 04/21] =?UTF-8?q?1=E3=80=81=E5=AF=86=E7=A0=81=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E4=BC=98=E5=8C=96(=E4=BB=8E=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E8=A1=A8=E8=BF=81=E7=A7=BB=E5=88=B0=E7=8B=AC=E7=AB=8B=E8=A1=A8?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/password/index.ts | 25 ++++ src/views/system/passwordRule/index.vue | 153 ++++++++++++++++++++++++ 2 files changed, 178 insertions(+) create mode 100644 src/api/system/password/index.ts create mode 100644 src/views/system/passwordRule/index.vue diff --git a/src/api/system/password/index.ts b/src/api/system/password/index.ts new file mode 100644 index 000000000..cc2495169 --- /dev/null +++ b/src/api/system/password/index.ts @@ -0,0 +1,25 @@ +import request from '@/config/axios' + +export interface PassWordConfigVO { + id: number + status: boolean + ruleLevel: string + ruleDesc: string + tryCount: number + lockMinutes: number + updatePeriod: number +} +// 获取密码策略 +export const getConfig = () => { + return request.get({ url: '/system/password/getConfig' }) +} + +// 设置密码策略 +export const setConfig = (data: PassWordConfigVO) => { + return request.post({ url: '/system/password/setConfig', data }) +} + +// 获取密码复杂度 +export const getRuleList = () => { + return request.get({ url: '/system/password/getRuleList'}) +} diff --git a/src/views/system/passwordRule/index.vue b/src/views/system/passwordRule/index.vue new file mode 100644 index 000000000..d5f964e88 --- /dev/null +++ b/src/views/system/passwordRule/index.vue @@ -0,0 +1,153 @@ + + + From db7ec25557a05899983df29be1fd5700ee483023 Mon Sep 17 00:00:00 2001 From: "YEJIAXING-PC\\lenovo" <591141169@qq.com> Date: Fri, 6 Sep 2024 11:04:53 +0800 Subject: [PATCH 05/21] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=EF=BC=8C=E6=9A=82=E5=AD=98=E5=90=8E=E5=86=8D=E5=8F=91=E5=B8=83?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E7=A4=BA=E4=BB=BB=E5=8A=A1=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20=20=20HL-5848?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionJob/index.vue | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/views/qms/inspectionJob/index.vue b/src/views/qms/inspectionJob/index.vue index 7be97e488..0cecf6f33 100644 --- a/src/views/qms/inspectionJob/index.vue +++ b/src/views/qms/inspectionJob/index.vue @@ -238,15 +238,6 @@ const isShowMainButton3 = (row) => { } } -// 根据状态返回该按钮是否显示 -const isShowMainButton2 = (row, val) => { - if (val.indexOf(row.isStaging) > -1) { - return false - } else { - return true - } -} - // 根据状态返回该按钮是否显示 const isShowMainButton1 = (row, val) => { if (val.indexOf(row.status) > -1) { @@ -278,10 +269,6 @@ const butttondata = (row) => { hide: isShowMainButton(row, ['1', '2']), hasPermi: 'qms:inspection-job-main:execute' }), // 执行 - defaultButtons.mainListOrderPubBtn({ - hide: isShowMainButton2(row, ['TRUE']), - hasPermi: 'qms:inspection-job-main:execute' - }), // 发布 defaultButtons.mainListPackageBtn(null), // 包装 defaultButtons.mainListPlanCheckQualityReportBtn({ hide: isShowMainButton3(row) From 316686aea324387beffc1d1d347f4297ebbbf47a Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Fri, 6 Sep 2024 11:19:47 +0800 Subject: [PATCH 06/21] =?UTF-8?q?WMS=20bug=EF=BC=9AHL-5847=20=E7=89=A9?= =?UTF-8?q?=E6=96=99=E9=9A=94=E7=A6=BB=E7=9B=B8=E5=85=B3=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E4=B8=AD=E5=A2=9E=E5=8A=A0=E4=BE=9B=E5=BA=94=E5=95=86=E6=89=B9?= =?UTF-8?q?=E6=AC=A1=E7=9A=84=E9=80=89=E6=8B=A9=E5=92=8C=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventoryManage/balance/balance.data.ts | 9 +++++++++ .../inventorymoveRequestMain.data.ts | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/src/views/wms/inventoryManage/balance/balance.data.ts b/src/views/wms/inventoryManage/balance/balance.data.ts index 9e954f518..a41edccf0 100644 --- a/src/views/wms/inventoryManage/balance/balance.data.ts +++ b/src/views/wms/inventoryManage/balance/balance.data.ts @@ -44,6 +44,15 @@ export const Balance = useCrudSchemas( }, isSearch: true }, + { + label: '供应商批次', + field: 'altBatch', + sort: 'custom', + table: { + width: 150 + }, + isSearch: false + }, { label: '包装号', field: 'packingNumber', diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts index 56874d08b..6ac9dab6d 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts @@ -606,6 +606,24 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( } } }, + { + label: '供应商批次', + field: 'altBatch', + sort: 'custom', + isForm:false, + isSearch: true, + table: { + width: 150 + }, + form: { + componentProps: { + disabled: true + } + }, + tableForm: { + disabled: true + } + }, { label: '到批次', field: 'toBatch', From c762c70a2d723b584b02eda015e2164d8a264614 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 6 Sep 2024 13:17:47 +0800 Subject: [PATCH 07/21] =?UTF-8?q?HL-5785=E5=88=B6=E5=93=81=E5=AD=90?= =?UTF-8?q?=E4=BB=B6=E6=8A=A5=E5=BA=9F=E5=AD=97=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productscrapRequestMain/index.vue | 11 +- .../productscrapRequestMain.data.ts | 123 +++++++++--------- 2 files changed, 75 insertions(+), 59 deletions(-) diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index 51c90e5f1..2fbbba948 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -417,7 +417,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => label:item1, value:item1 })) - newRow['bomVersion'] = item['bomList'][0] + console.log('bomList',item['bomList']) + if(item['bomList'].indexOf('1')>-1){ + newRow['bomVersion'] = '1' + }else{ + newRow['bomVersion'] = item['bomList'][0] + } } // // 查询标准价格 // let param = {'itemCodes':item['itemCode'] as string} @@ -674,11 +679,15 @@ const openForm =async (type: string, row?: number) => { defaultButtons.formCloseBtn(null) // 关闭 ] if(type == 'create'){ + ProductscrapRequestMain.allSchemas.formSchema.forEach((item) => { if (item.field == 'workshopCode') { item.componentProps.disabled = true item.componentProps.isSearchList = true } + if (item.field == 'scrappingReason'){ + item.value = '' + } }) } if(type == 'update'){ diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts b/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts index fa27a4d5e..2a3e7c522 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts @@ -145,6 +145,7 @@ export const ProductscrapRequestMain = useCrudSchemas( }], // 失去焦点校验参数 }, form: { + value:'DEFC', // labelMessage: '信息提示说明!!!', componentProps: { enterSearch: true, @@ -177,68 +178,74 @@ export const ProductscrapRequestMain = useCrudSchemas( table: { width: 150 }, - tableForm: { - enterSearch: true, - isInpuFocusShow: true, // 开启查询弹窗 - searchListPlaceholder: '请选择成本中心原因代码', - searchField: 'code', - searchTitle: '原因代码', - searchAllSchemas: SubjectAccount.allSchemas, - searchPage: SubjectAccountApi.getSubjectAccountPage, - searchCondition: [{ - key: 'available', - value: 'TRUE', - isMainValue: false - },{ - key: 'costCenterCode', - value: 'costCenterCode', - message: '成本中代码不能为空!', - isMainValue: true - },{ - key: 'costcentreType', - value: 'costCenterType', - message: '成本中心类型不能为空!', - isMainValue: true - }], - verificationParams: [{ - key: 'code', - action: '==', - value: '', - isMainValue: false, - isSearch: true, - isFormModel: true, - }], // 失去焦点校验参数 - }, form: { - // labelMessage: '信息提示说明!!!', + value:'SC99', componentProps: { - enterSearch: true, - isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择领用原因代码', // 输入框占位文本 - searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '领用原因代码', // 查询弹窗标题 - searchAllSchemas: SubjectAccount.allSchemas, // 查询弹窗所需类 - searchPage: SubjectAccountApi.getSubjectAccountPage, // 查询弹窗所需分页方法 - searchCondition: [{ - key: 'available', - value: 'TRUE', - isMainValue: false - },{ - key: 'costcentreType', - value: 'costCenterType', - message: '成本中心类型不能为空!', - isMainValue: true - }], - verificationParams: [{ - key: 'code', - action: '==', - value: '', - isMainValue: false, - isSearch: true, - isFormModel: true, - }], // 失去焦点校验参数 + disabled: true } } + // tableForm: { + // enterSearch: true, + // isInpuFocusShow: true, // 开启查询弹窗 + // searchListPlaceholder: '请选择成本中心原因代码', + // searchField: 'code', + // searchTitle: '原因代码', + // searchAllSchemas: SubjectAccount.allSchemas, + // searchPage: SubjectAccountApi.getSubjectAccountPage, + // searchCondition: [{ + // key: 'available', + // value: 'TRUE', + // isMainValue: false + // },{ + // key: 'costCenterCode', + // value: 'costCenterCode', + // message: '成本中代码不能为空!', + // isMainValue: true + // },{ + // key: 'costcentreType', + // value: 'costCenterType', + // message: '成本中心类型不能为空!', + // isMainValue: true + // }], + // verificationParams: [{ + // key: 'code', + // action: '==', + // value: '', + // isMainValue: false, + // isSearch: true, + // isFormModel: true, + // }], // 失去焦点校验参数 + // }, + // form: { + // // labelMessage: '信息提示说明!!!', + // componentProps: { + // enterSearch: true, + // isSearchList: true, // 开启查询弹窗 + // searchListPlaceholder: '请选择领用原因代码', // 输入框占位文本 + // searchField: 'code', // 查询弹窗赋值字段 + // searchTitle: '领用原因代码', // 查询弹窗标题 + // searchAllSchemas: SubjectAccount.allSchemas, // 查询弹窗所需类 + // searchPage: SubjectAccountApi.getSubjectAccountPage, // 查询弹窗所需分页方法 + // searchCondition: [{ + // key: 'available', + // value: 'TRUE', + // isMainValue: false + // },{ + // key: 'costcentreType', + // value: 'costCenterType', + // message: '成本中心类型不能为空!', + // isMainValue: true + // }], + // verificationParams: [{ + // key: 'code', + // action: '==', + // value: '', + // isMainValue: false, + // isSearch: true, + // isFormModel: true, + // }], // 失去焦点校验参数 + // } + // } }, { label: '状态', From 59b537d04f0d212a9681cd1bcaf8930394c6f6ba Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Fri, 6 Sep 2024 13:56:53 +0800 Subject: [PATCH 08/21] =?UTF-8?q?WMS=20bug=EF=BC=9AHL-5860=20=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E4=BD=99=E9=A2=9D=E4=B8=AD=E9=9C=80=E8=A6=81=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E7=89=A9=E6=96=99=E6=8F=8F=E8=BF=B01=EF=BC=8C?= =?UTF-8?q?=E7=89=A9=E6=96=99=E6=8F=8F=E8=BF=B02=E7=9A=84=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventoryManage/balance/balance.data.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/views/wms/inventoryManage/balance/balance.data.ts b/src/views/wms/inventoryManage/balance/balance.data.ts index a41edccf0..c811382b0 100644 --- a/src/views/wms/inventoryManage/balance/balance.data.ts +++ b/src/views/wms/inventoryManage/balance/balance.data.ts @@ -24,6 +24,24 @@ export const Balance = useCrudSchemas( }, isSearch: true }, + { + label: '物料描述1', + field: 'itemDesc1', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true + }, + { + label: '物料描述2', + field: 'itemDesc2', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true + }, { label: '物料类型', field: 'itemType', From 8d005088182c67a8dd524761a76c767a8dfe3247 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 6 Sep 2024 14:20:25 +0800 Subject: [PATCH 09/21] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E5=8F=91?= =?UTF-8?q?=E7=A5=A8=E7=94=B3=E8=AF=B7--=E6=8F=92=E6=A7=BD=E5=85=AC?= =?UTF-8?q?=E7=94=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Descriptions/src/Descriptions.vue | 1 + src/types/descriptions.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/Descriptions/src/Descriptions.vue b/src/components/Descriptions/src/Descriptions.vue index 4c175bf89..eadbce97d 100644 --- a/src/components/Descriptions/src/Descriptions.vue +++ b/src/components/Descriptions/src/Descriptions.vue @@ -151,6 +151,7 @@ const showAll = () =>{ item.valueFilter(data[item.field]) }} + {{ data[item.field] }}
diff --git a/src/types/descriptions.d.ts b/src/types/descriptions.d.ts index 70be082d8..62810c7ef 100644 --- a/src/types/descriptions.d.ts +++ b/src/types/descriptions.d.ts @@ -10,5 +10,6 @@ export interface DescriptionsSchema { labelClassName?: string dateFormat?: string // add by 星语:支持时间的格式化 valueFilter?: function // 展示的过滤函数 + slotFilter?:boolean // 插槽自定义内容 dictType?: string // add by 星语:支持 dict 字典数据 } From f63133b34107133cb6a88c9d04389ea7e6dc7c52 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 6 Sep 2024 14:28:53 +0800 Subject: [PATCH 10/21] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E5=8F=91?= =?UTF-8?q?=E7=A5=A8=E7=94=A8=E5=88=B0=E7=9A=84=E5=85=AC=E7=94=A8=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Detail/src/Detail.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 6b485a7fe..53b17e764 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -23,7 +23,11 @@ :schema="allSchemas.detailSchema" :columns="2" width="200px" - /> + > + +
From 2bc871eefda8fb9ac2acfd5648fec17cf2f66556 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 6 Sep 2024 15:04:00 +0800 Subject: [PATCH 11/21] =?UTF-8?q?HL-5785=E5=88=B6=E5=93=81=E5=AD=90?= =?UTF-8?q?=E4=BB=B6=E6=8A=A5=E5=BA=9F=E5=AD=97=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productscrap/productscrapRequestMain/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index 2fbbba948..7b8c16871 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -80,6 +80,7 @@ :buttondataTable="buttondataTable" @tableFormButton="tableFormButton" :detailValidate="detailValidate" + :detailButtonIsShowAdd="false" /> From dece466f89a869d14692339b7255993fcfa4cf07 Mon Sep 17 00:00:00 2001 From: "YEJIAXING-PC\\lenovo" <591141169@qq.com> Date: Fri, 6 Sep 2024 15:09:16 +0800 Subject: [PATCH 12/21] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=EF=BC=8C=E6=9A=82=E5=AD=98=E5=90=8E=E5=86=8D=E5=8F=91=E5=B8=83?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E7=A4=BA=E4=BB=BB=E5=8A=A1=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20=20HL-5848?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionJob/index.vue | 13 +++++++++++++ src/views/qms/inspectionQ2/inspectionQ2.data.ts | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/views/qms/inspectionJob/index.vue b/src/views/qms/inspectionJob/index.vue index 0cecf6f33..7be97e488 100644 --- a/src/views/qms/inspectionJob/index.vue +++ b/src/views/qms/inspectionJob/index.vue @@ -238,6 +238,15 @@ const isShowMainButton3 = (row) => { } } +// 根据状态返回该按钮是否显示 +const isShowMainButton2 = (row, val) => { + if (val.indexOf(row.isStaging) > -1) { + return false + } else { + return true + } +} + // 根据状态返回该按钮是否显示 const isShowMainButton1 = (row, val) => { if (val.indexOf(row.status) > -1) { @@ -269,6 +278,10 @@ const butttondata = (row) => { hide: isShowMainButton(row, ['1', '2']), hasPermi: 'qms:inspection-job-main:execute' }), // 执行 + defaultButtons.mainListOrderPubBtn({ + hide: isShowMainButton2(row, ['TRUE']), + hasPermi: 'qms:inspection-job-main:execute' + }), // 发布 defaultButtons.mainListPackageBtn(null), // 包装 defaultButtons.mainListPlanCheckQualityReportBtn({ hide: isShowMainButton3(row) diff --git a/src/views/qms/inspectionQ2/inspectionQ2.data.ts b/src/views/qms/inspectionQ2/inspectionQ2.data.ts index 898bb7f94..91802924c 100644 --- a/src/views/qms/inspectionQ2/inspectionQ2.data.ts +++ b/src/views/qms/inspectionQ2/inspectionQ2.data.ts @@ -329,7 +329,7 @@ export const Q2 = useCrudSchemas( } }, { - label: '整灯物料代码', + label: '整灯/分总成物料代码', field: 'lightItemCode', sort: 'custom', table: { @@ -372,7 +372,7 @@ export const Q2 = useCrudSchemas( } }, { - label: '整灯物料名称', + label: '整灯/分总成物料名称', field: 'lightItemName', sort: 'custom', dictClass: 'string', @@ -454,7 +454,7 @@ export const Q2 = useCrudSchemas( } }, { - label: '标准成本价格', + label: '销售价格', field: 'standardCostPrice', sort: 'custom', isSearch: false, From b121c2f1e38564cfad3b44713d8e747472fc11bf Mon Sep 17 00:00:00 2001 From: "YEJIAXING-PC\\lenovo" <591141169@qq.com> Date: Fri, 6 Sep 2024 15:44:49 +0800 Subject: [PATCH 13/21] =?UTF-8?q?=E4=BF=AE=E6=94=B9Q2=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E5=8D=95=E7=9A=84=E9=94=80=E5=94=AE=E4=BB=B7=E6=A0=BC=E5=8F=96?= =?UTF-8?q?=E5=80=BC=E6=96=B9=E5=BC=8F=20=20=20HL-5882?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionQ2/index.vue | 60 +++++++++++++++++-- .../qms/inspectionQ2/inspectionQ2.data.ts | 2 +- 2 files changed, 57 insertions(+), 5 deletions(-) diff --git a/src/views/qms/inspectionQ2/index.vue b/src/views/qms/inspectionQ2/index.vue index 2f06c656f..5e88f8696 100644 --- a/src/views/qms/inspectionQ2/index.vue +++ b/src/views/qms/inspectionQ2/index.vue @@ -108,6 +108,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' import * as StdcostpriceApi from '@/api/wms/stdcostprice' +import * as SalepriceApi from '@/api/wms/saleprice' import { formatDate } from '@/utils/formatTime' import * as SupplieritemApi from '@/api/wms/supplieritem' import * as SupplierApi from '@/api/wms/supplier' @@ -171,6 +172,29 @@ const clearSearchInput = (formField) => { }) } }) + SalepriceApi.getSalepricePage(params2).then((res) => { + if (res.list?.length > 0) { + priceObj.value = res.list[0] + + basicFormRef.value.formRef.setValues({ + standardCostPrice: priceObj.value.price + }) + } else { + StdcostpriceApi.getStdcostpricePage(params2).then((res) => { + if (res.list?.length > 0) { + priceObj.value = res.list[0] + + basicFormRef.value.formRef.setValues({ + standardCostPrice: priceObj.value.price + }) + } else { + formRef.setValues({ + standardCostPrice: 0 + }) + } + }) + } + }) } } // 查询页面返回 @@ -230,12 +254,25 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { sort: '' } params2.isSearch = true - StdcostpriceApi.getStdcostpricePage(params2).then((res) => { + SalepriceApi.getSalepricePage(params2).then((res) => { if (res.list?.length > 0) { priceObj.value = res.list[0] formRef.setValues({ standardCostPrice: priceObj.value.price }) + } else { + StdcostpriceApi.getStdcostpricePage(params2).then((res) => { + if (res.list?.length > 0) { + priceObj.value = res.list[0] + formRef.setValues({ + standardCostPrice: priceObj.value.price + }) + } else { + formRef.setValues({ + standardCostPrice: 0 + }) + } + }) } }) setV[formField] = val[0][searchField] @@ -304,8 +341,9 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { }) } }) - if (basicFormRef.value.formRef.formModel.lightItemCode == null|| - basicFormRef.value.formRef.formModel.lightItemCode == '' + if ( + basicFormRef.value.formRef.formModel.lightItemCode == null || + basicFormRef.value.formRef.formModel.lightItemCode == '' ) { setV['standardCostPrice'] = '' setV['lightQty'] = 0 @@ -322,12 +360,26 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { sort: '' } params2.isSearch = true - StdcostpriceApi.getStdcostpricePage(params2).then((res) => { + + SalepriceApi.getSalepricePage(params2).then((res) => { if (res.list?.length > 0) { priceObj.value = res.list[0] formRef.setValues({ standardCostPrice: priceObj.value.price }) + } else { + StdcostpriceApi.getStdcostpricePage(params2).then((res) => { + if (res.list?.length > 0) { + priceObj.value = res.list[0] + formRef.setValues({ + standardCostPrice: priceObj.value.price + }) + } else { + formRef.setValues({ + standardCostPrice: 0 + }) + } + }) } }) } diff --git a/src/views/qms/inspectionQ2/inspectionQ2.data.ts b/src/views/qms/inspectionQ2/inspectionQ2.data.ts index 91802924c..4112c30fd 100644 --- a/src/views/qms/inspectionQ2/inspectionQ2.data.ts +++ b/src/views/qms/inspectionQ2/inspectionQ2.data.ts @@ -341,7 +341,7 @@ export const Q2 = useCrudSchemas( componentProps: { enterSearch: true, isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择物料代码', // 输入框占位文本 + searchListPlaceholder: '请选择整灯/分总成物料代码', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 searchTitle: '物料基础信息', // 查询弹窗标题 searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 From ef5c3d5ac3a31743dca3a7ddb4b72f7caa0b91de Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Fri, 6 Sep 2024 16:08:30 +0800 Subject: [PATCH 14/21] =?UTF-8?q?WMS=20bug=EF=BC=9AHL-5847=20=E7=89=A9?= =?UTF-8?q?=E6=96=99=E9=9A=94=E7=A6=BB=E7=9B=B8=E5=85=B3=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E4=B8=AD=E5=A2=9E=E5=8A=A0=E4=BE=9B=E5=BA=94=E5=95=86=E6=89=B9?= =?UTF-8?q?=E6=AC=A1=E7=9A=84=E9=80=89=E6=8B=A9=E5=92=8C=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorymoveJobMain.data.ts | 8 ++++++++ .../inventorymoveRecordMain.data.ts | 8 ++++++++ .../inventorymoveRequestMain.data.ts | 20 +++++++++---------- 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/inventorymoveJobMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/inventorymoveJobMain.data.ts index eef4d6bb0..0ad508ced 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/inventorymoveJobMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/inventorymoveJobMain.data.ts @@ -680,6 +680,14 @@ export const InventorymoveJobDetail = useCrudSchemas(reactive([ width: 150 }, }, + { + label: '供应商批次', + field: 'altBatch', + sort: 'custom', + table: { + width: 150 + }, + }, { label: '包装号', field: 'packingNumber', diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/inventorymoveRecordMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/inventorymoveRecordMain.data.ts index 6c3323a0a..a8ec0a04d 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/inventorymoveRecordMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/inventorymoveRecordMain.data.ts @@ -473,6 +473,14 @@ export const InventorymoveRecordDetail = useCrudSchemas(reactive([ width: 150 }, }, + { + label: '供应商批次', + field: 'altBatch', + sort: 'custom', + table: { + width: 150 + }, + }, { label: '从包装号', field: 'fromPackingNumber', diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts index 6ac9dab6d..a3c76a5c5 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts @@ -606,6 +606,16 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( } } }, + { + label: '到批次', + field: 'toBatch', + sort: 'custom', + table: { + width: 150 + }, + isTableForm: false, + isForm: false, + }, { label: '供应商批次', field: 'altBatch', @@ -624,16 +634,6 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( disabled: true } }, - { - label: '到批次', - field: 'toBatch', - sort: 'custom', - table: { - width: 150 - }, - isTableForm: false, - isForm: false, - }, { label: '从包装号', field: 'fromPackingNumber', From 4fa5609a71a04f829c470634fa4338ab71e60891 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 6 Sep 2024 16:38:11 +0800 Subject: [PATCH 15/21] =?UTF-8?q?HL-5861=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E5=8F=91=E7=A5=A8=E7=94=B3=E8=AF=B7=E5=8F=8A=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=92=8C=E4=BB=B7=E5=B7=AE=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E7=9A=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierinvoiceRecordMain.data.ts | 2 +- .../supplierinvoice/supplierinvoiceRequestMain/index.vue | 4 +++- .../supplierinvoiceRequestMain.data.ts | 2 +- .../supplierinvoiceRequestMainDifference.data.ts | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts index 459b0be99..bdd554d54 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts @@ -1234,7 +1234,7 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive( // } // }, { - label: '折扣金额', + label: '返利未税金额', field: 'discountAmount1', formatter: accountantFormart, table: { @@ -1505,7 +1505,7 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive Date: Fri, 6 Sep 2024 16:53:23 +0800 Subject: [PATCH 16/21] =?UTF-8?q?HL-5785=E5=88=B6=E5=93=81=E5=AD=90?= =?UTF-8?q?=E4=BB=B6=E6=8A=A5=E5=BA=9F=E5=AD=97=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productscrapRequestMain/index.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index 7b8c16871..e84101374 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -81,6 +81,8 @@ @tableFormButton="tableFormButton" :detailValidate="detailValidate" :detailButtonIsShowAdd="false" + :detailButtonIsShowEdit="false" + :detailButtonIsShowDelete="false" /> @@ -689,6 +691,11 @@ const openForm =async (type: string, row?: number) => { if (item.field == 'scrappingReason'){ item.value = '' } + if(item.field == 'productionLineCode'){ + item.componentProps.disabled = false + item.componentProps.enterSearch = true + item.componentProps.isSearchList = true + } }) } if(type == 'update'){ @@ -697,6 +704,15 @@ const openForm =async (type: string, row?: number) => { item.componentProps.disabled = true item.componentProps.isSearchList = false } + if(item.field == 'productionLineCode'){ + item.componentProps.enterSearch = true + item.componentProps.isSearchList = true + } + if(item.field == 'productionLineCode'){ + item.componentProps.disabled = true + item.componentProps.enterSearch = false + item.componentProps.isSearchList = false + } }) } formRef.value.open(type, row) From 1539bb7d4af93486b001dda3a7cfdd1fcc079919 Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Fri, 6 Sep 2024 17:24:13 +0800 Subject: [PATCH 17/21] =?UTF-8?q?WMS=20bug=EF=BC=9AHL-5847=20=E9=9A=94?= =?UTF-8?q?=E7=A6=BB=E8=BD=AC=E5=90=88=E6=A0=BC=E3=80=81=E7=89=A9=E6=96=99?= =?UTF-8?q?=E9=9A=94=E7=A6=BB=EF=BC=8C=E5=AF=BC=E5=85=A5=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E5=A4=B1=E8=B4=A5=EF=BC=8C=E5=BA=94=E5=BC=B9?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=9A=84excel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/inventorymoveRequestMain/index.ts | 4 +- .../inventorymoveRequestMain/index.vue | 24 +++--- .../inventorymoveRequestMainMOVE/index.vue | 24 +++--- .../inventorymoveRequestMainOKHOLD/index.vue | 77 +++++++++++++++++-- 4 files changed, 95 insertions(+), 34 deletions(-) diff --git a/src/api/wms/inventorymoveRequestMain/index.ts b/src/api/wms/inventorymoveRequestMain/index.ts index 68784d189..72e91ea6c 100644 --- a/src/api/wms/inventorymoveRequestMain/index.ts +++ b/src/api/wms/inventorymoveRequestMain/index.ts @@ -129,11 +129,11 @@ export const exportScrapToHoldRequestMain = async (params) => { } // 下载用户导入模板 +// 下载用户导入模板(除库存移动外) + export const importTemplate = () => { return request.download({ url: '/wms/inventorymove-request-main/get-import-template' }) } - -// 下载用户导入模板(除库存移动外) export const importTemplateExceptMove = () => { return request.download({ url: '/wms/inventorymove-request-main/get-import-template-exceptMove' }) } diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue index f6dff9ecf..20689e6b7 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue @@ -122,8 +122,8 @@ if ( routeName.value == 'OktoholdRequestMain') { // toInventoryStatus:'HOLD', businessType :'OkToHold' } - // fromInventoryStatus.value = 'OK' - // toInventoryStatus.value = "HOLD" + fromInventoryStatus.value = 'OK' + toInventoryStatus.value = "HOLD" businessType.value = 'OkToHold' importFileName.value = '物料转隔离申请' } @@ -133,8 +133,8 @@ else if ( routeName.value == 'NoktoholdRequestMain') { // toInventoryStatus:'HOLD', businessType :'NokToHold' } - // fromInventoryStatus.value = 'NOK' - // toInventoryStatus.value = "HOLD" + fromInventoryStatus.value = 'NOK' + toInventoryStatus.value = "HOLD" businessType.value = 'NokToHold' importFileName.value = '不合格转隔离申请' } @@ -144,8 +144,8 @@ else if ( routeName.value == 'HoldtookRequestMain') { // toInventoryStatus:'OK', businessType :'HoldToOk' } - // fromInventoryStatus.value = 'HOLD' - // toInventoryStatus.value = "OK" + fromInventoryStatus.value = 'HOLD' + toInventoryStatus.value = "OK" businessType.value = 'HoldToOk' importFileName.value = '隔离转合格申请' } else if ( routeName.value == 'HoldtoscrapRequestMain') { @@ -154,8 +154,8 @@ else if ( routeName.value == 'HoldtookRequestMain') { // toInventoryStatus:'SCRAP', businessType:'HoldToScrap' } - // fromInventoryStatus.value = 'HOLD' - // toInventoryStatus.value = "SCRAP" + fromInventoryStatus.value = 'HOLD' + toInventoryStatus.value = "SCRAP" businessType.value = 'HoldToScrap' importFileName.value = '隔离转报废申请' } else if ( routeName.value == 'OktoscrapRequestMain') { @@ -164,8 +164,8 @@ else if ( routeName.value == 'HoldtookRequestMain') { // toInventoryStatus:'SCRAP', businessType :'OkToScrap' } - // fromInventoryStatus.value = 'OK' - // toInventoryStatus.value = "SCRAP" + fromInventoryStatus.value = 'OK' + toInventoryStatus.value = "SCRAP" businessType.value = 'OkToScrap' importFileName.value = '合格转报废申请' } @@ -175,8 +175,8 @@ else if ( routeName.value == 'ScraptoholdRequestMain') { // toInventoryStatus:'HOLD', businessType :'ScrapToHold' } - // fromInventoryStatus.value = 'SCRAP' - // toInventoryStatus.value = "HOLD" + fromInventoryStatus.value = 'SCRAP' + toInventoryStatus.value = "HOLD" businessType.value = 'ScrapToHold' importFileName.value = '报废转隔离申请' } else { diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue index 06788711b..f52cd62b5 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue @@ -123,8 +123,8 @@ if ( routeName.value == 'OktoholdRequestMain') { // toInventoryStatus:'HOLD', businessType :'OkToHold' } - // fromInventoryStatus.value = 'OK' - // toInventoryStatus.value = "HOLD" + fromInventoryStatus.value = 'OK' + toInventoryStatus.value = "HOLD" businessType.value = 'OkToHold' importFileName.value = '物料转隔离申请' } @@ -134,8 +134,8 @@ else if ( routeName.value == 'NoktoholdRequestMain') { // toInventoryStatus:'HOLD', businessType :'NokToHold' } - // fromInventoryStatus.value = 'NOK' - // toInventoryStatus.value = "HOLD" + fromInventoryStatus.value = 'NOK' + toInventoryStatus.value = "HOLD" businessType.value = 'NokToHold' importFileName.value = '不合格转隔离申请' } @@ -145,8 +145,8 @@ else if ( routeName.value == 'HoldtookRequestMain') { // toInventoryStatus:'OK', businessType :'HoldToOk' } - // fromInventoryStatus.value = 'HOLD' - // toInventoryStatus.value = "OK" + fromInventoryStatus.value = 'HOLD' + toInventoryStatus.value = "OK" businessType.value = 'HoldToOk' importFileName.value = '隔离转合格申请' } else if ( routeName.value == 'HoldtoscrapRequestMain') { @@ -155,8 +155,8 @@ else if ( routeName.value == 'HoldtookRequestMain') { // toInventoryStatus:'SCRAP', businessType:'HoldToScrap' } - // fromInventoryStatus.value = 'HOLD' - // toInventoryStatus.value = "SCRAP" + fromInventoryStatus.value = 'HOLD' + toInventoryStatus.value = "SCRAP" businessType.value = 'HoldToScrap' importFileName.value = '隔离转报废申请' } else if ( routeName.value == 'OktoscrapRequestMain') { @@ -165,8 +165,8 @@ else if ( routeName.value == 'HoldtookRequestMain') { // toInventoryStatus:'SCRAP', businessType :'OkToScrap' } - // fromInventoryStatus.value = 'OK' - // toInventoryStatus.value = "SCRAP" + fromInventoryStatus.value = 'OK' + toInventoryStatus.value = "SCRAP" businessType.value = 'OkToScrap' importFileName.value = '合格转报废申请' } @@ -176,8 +176,8 @@ else if ( routeName.value == 'ScraptoholdRequestMain') { // toInventoryStatus:'HOLD', businessType :'ScrapToHold' } - // fromInventoryStatus.value = 'SCRAP' - // toInventoryStatus.value = "HOLD" + fromInventoryStatus.value = 'SCRAP' + toInventoryStatus.value = "HOLD" businessType.value = 'ScrapToHold' importFileName.value = '报废转隔离申请' } else { diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue index 003fa48bc..0be2f9677 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue @@ -116,15 +116,76 @@ const { tableObject, tableMethods } = useTable({ getListApi: InventorymoveRequestDetailApi.getInventorymoveRequestDetailPage // 分页接口 }) -tableObject.params = { - // fromInventoryStatus: 'OK', - // toInventoryStatus:'HOLD', - businessType :'OkToHold' +if ( routeName.value == 'OktoholdRequestMain') { + tableObject.params = { + // fromInventoryStatus: 'OK', + // toInventoryStatus:'HOLD', + businessType :'OkToHold' + } + fromInventoryStatus.value = 'OK' + toInventoryStatus.value = "HOLD" + businessType.value = 'OkToHold' + importFileName.value = '物料转隔离申请' +} +else if ( routeName.value == 'NoktoholdRequestMain') { + tableObject.params = { + // fromInventoryStatus: 'NOK', + // toInventoryStatus:'HOLD', + businessType :'NokToHold' + } + fromInventoryStatus.value = 'NOK' + toInventoryStatus.value = "HOLD" + businessType.value = 'NokToHold' + importFileName.value = '不合格转隔离申请' +} +else if ( routeName.value == 'HoldtookRequestMain') { + tableObject.params = { + // fromInventoryStatus: 'HOLD', + // toInventoryStatus:'OK', + businessType :'HoldToOk' + } + fromInventoryStatus.value = 'HOLD' + toInventoryStatus.value = "OK" + businessType.value = 'HoldToOk' + importFileName.value = '隔离转合格申请' +} else if ( routeName.value == 'HoldtoscrapRequestMain') { + tableObject.params = { + // fromInventoryStatus: 'HOLD', + // toInventoryStatus:'SCRAP', + businessType:'HoldToScrap' + } + fromInventoryStatus.value = 'HOLD' + toInventoryStatus.value = "SCRAP" + businessType.value = 'HoldToScrap' + importFileName.value = '隔离转报废申请' +} else if ( routeName.value == 'OktoscrapRequestMain') { + tableObject.params = { + // fromInventoryStatus: 'OK', + // toInventoryStatus:'SCRAP', + businessType :'OkToScrap' + } + fromInventoryStatus.value = 'OK' + toInventoryStatus.value = "SCRAP" + businessType.value = 'OkToScrap' + importFileName.value = '合格转报废申请' +} +else if ( routeName.value == 'ScraptoholdRequestMain') { + tableObject.params = { + // fromInventoryStatus: 'SCRAP', + // toInventoryStatus:'HOLD', + businessType :'ScrapToHold' + } + fromInventoryStatus.value = 'SCRAP' + toInventoryStatus.value = "HOLD" + businessType.value = 'ScrapToHold' + importFileName.value = '报废转隔离申请' +} else { + tableObject.params = { + businessType :'Move' + } + businessType.value = 'Move' + importFileName.value = '库存移动申请' } -// fromInventoryStatus.value = 'OK' -// toInventoryStatus.value = "HOLD" -businessType.value = 'OkToHold' -importFileName.value = '物料转隔离申请' InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{ if(item.field == 'fromWarehouseCode') { From 8be363477ccd8a9ebbfbf4dcc7d7e52f91dbe6b1 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 6 Sep 2024 17:51:56 +0800 Subject: [PATCH 18/21] =?UTF-8?q?HL-5887SCP=E4=B8=AD=E6=89=93=E5=BC=80?= =?UTF-8?q?=E6=9F=90=E4=B8=AA=E6=9F=A5=E8=AF=A2=E8=8F=9C=E5=8D=95=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E8=BE=93=E5=85=A5=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E7=82=B9=E5=87=BB=E6=9F=A5=E8=AF=A2=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E6=95=B0=E6=8D=AE=E6=B2=A1=E6=9C=89=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=9B=E5=86=8D=E5=8E=BB=E6=89=93=E5=BC=80=E5=8F=A6=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=9F=A5=E8=AF=A2=E8=8F=9C=E5=8D=95=EF=BC=8C=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=88=9A=E6=89=8D=E8=8F=9C=E5=8D=95=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=EF=BC=8C=E4=B9=8B=E5=89=8D=E8=BE=93=E5=85=A5=E7=9A=84=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9D=A1=E4=BB=B6=E8=A2=AB=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereceipt/purchasereceiptRecordMain/index.vue | 3 +++ .../purchasereturn/purchasereturnRecordMain/index.vue | 3 +++ .../supplierdeliver/supplierdeliverRecordMain/index.vue | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue index bf3d77e54..f1ac5f3da 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue @@ -363,4 +363,7 @@ const changeTabs = (data) =>{ onMounted(async () => { getList() }) +onActivated(() => { + getList() +}) diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue index b32e4d42e..48e60e3f1 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue @@ -197,4 +197,7 @@ const searchFormClick = (searchData) => { onMounted(async () => { getList() }) +onActivated(() => { + getList() +}) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue index b8e88cc6f..cb270d6c0 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue @@ -306,4 +306,7 @@ const searchFormClick = (searchData) => { onMounted(async () => { getList() }) +onActivated(() => { + getList() +}) From 1d58a4f622f57dfd317d4cf1d7127ae2415f3282 Mon Sep 17 00:00:00 2001 From: "YEJIAXING-PC\\lenovo" <591141169@qq.com> Date: Fri, 6 Sep 2024 23:54:43 +0800 Subject: [PATCH 19/21] =?UTF-8?q?=E4=BF=AE=E6=94=B9Q2=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E5=8D=95=E7=9A=84=E9=94=80=E5=94=AE=E4=BB=B7=E6=A0=BC=E5=8F=96?= =?UTF-8?q?=E5=80=BC=E6=96=B9=E5=BC=8F=20HL-5882?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionQ2/index.vue | 135 ++++++++++++------ src/views/qms/inspectionQ3/index.vue | 4 +- .../qms/inspectionQ3/inspectionQ3.data.ts | 8 +- 3 files changed, 101 insertions(+), 46 deletions(-) diff --git a/src/views/qms/inspectionQ2/index.vue b/src/views/qms/inspectionQ2/index.vue index 5e88f8696..48af18b0f 100644 --- a/src/views/qms/inspectionQ2/index.vue +++ b/src/views/qms/inspectionQ2/index.vue @@ -142,10 +142,62 @@ const clearSearchInput = (formField) => { item.componentProps.options = [] } }) + if (basicFormRef.value.formRef.formModel.lightItemCode) { + basicFormRef.value.formRef.setValues({ + lightQty: 0, + claimAmount: '', + otherClaimAmount: 0, + summaryAmount: 0, + disbursementAmount: 0, + remainingAmount: 0 + }) + + const params2 = { + by: 'ASC', + filters: [ + { + column: 'itemCode', + action: '==', + value: basicFormRef.value.formRef.formModel.lightItemCode + } + ], + pageNo: 1, + pageSize: 500, + sort: '' + } + params2.isSearch = true + SalepriceApi.getSalepricePage(params2).then((res) => { + if (res.list?.length > 0) { + priceObj.value = res.list[0] + + basicFormRef.value.formRef.setValues({ + standardCostPrice: priceObj.value.price + }) + } else { + params2.isSearch = true + StdcostpriceApi.getStdcostpricePage(params2).then((res) => { + if (res.list?.length > 0) { + priceObj.value = res.list[0] + + basicFormRef.value.formRef.setValues({ + standardCostPrice: priceObj.value.price + }) + } else { + basicFormRef.value.formRef.setValues({ + standardCostPrice: 0 + }) + } + }) + } + }) + } else { + basicFormRef.value.formRef.setValues({ + standardCostPrice: '' + }) + } } if (formField == 'lightItemCode') { basicFormRef.value.formRef.setValues({ - standardCostPrice: '', lightItemName: '', lightQty: 0, claimAmount: '', @@ -154,47 +206,47 @@ const clearSearchInput = (formField) => { disbursementAmount: 0, remainingAmount: 0 }) - const params2 = { - by: 'ASC', - filters: [ - { column: 'itemCode', action: '==', value: basicFormRef.value.formRef.formModel.itemCode } - ], - pageNo: 1, - pageSize: 500, - sort: '' - } - params2.isSearch = true - StdcostpriceApi.getStdcostpricePage(params2).then((res) => { - if (res.list?.length > 0) { - priceObj.value = res.list[0] - basicFormRef.value.formRef.setValues({ - standardCostPrice: priceObj.value.price - }) + + if (basicFormRef.value.formRef.formModel.itemCode) { + const params2 = { + by: 'ASC', + filters: [ + { column: 'itemCode', action: '==', value: basicFormRef.value.formRef.formModel.itemCode } + ], + pageNo: 1, + pageSize: 500, + sort: '' } - }) - SalepriceApi.getSalepricePage(params2).then((res) => { - if (res.list?.length > 0) { - priceObj.value = res.list[0] + params2.isSearch = true + SalepriceApi.getSalepricePage(params2).then((res) => { + if (res.list?.length > 0) { + priceObj.value = res.list[0] - basicFormRef.value.formRef.setValues({ - standardCostPrice: priceObj.value.price - }) - } else { - StdcostpriceApi.getStdcostpricePage(params2).then((res) => { - if (res.list?.length > 0) { - priceObj.value = res.list[0] + basicFormRef.value.formRef.setValues({ + standardCostPrice: priceObj.value.price + }) + } else { + params2.isSearch = true + StdcostpriceApi.getStdcostpricePage(params2).then((res) => { + if (res.list?.length > 0) { + priceObj.value = res.list[0] - basicFormRef.value.formRef.setValues({ - standardCostPrice: priceObj.value.price - }) - } else { - formRef.setValues({ - standardCostPrice: 0 - }) - } - }) - } - }) + basicFormRef.value.formRef.setValues({ + standardCostPrice: priceObj.value.price + }) + } else { + basicFormRef.value.formRef.setValues({ + standardCostPrice: 0 + }) + } + }) + } + }) + } else { + basicFormRef.value.formRef.setValues({ + standardCostPrice: '' + }) + } } } // 查询页面返回 @@ -261,6 +313,7 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { standardCostPrice: priceObj.value.price }) } else { + params2.isSearch = true StdcostpriceApi.getStdcostpricePage(params2).then((res) => { if (res.list?.length > 0) { priceObj.value = res.list[0] @@ -360,14 +413,16 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { sort: '' } params2.isSearch = true - + console.log(123) SalepriceApi.getSalepricePage(params2).then((res) => { + console.log(456) if (res.list?.length > 0) { priceObj.value = res.list[0] formRef.setValues({ standardCostPrice: priceObj.value.price }) } else { + params2.isSearch = true StdcostpriceApi.getStdcostpricePage(params2).then((res) => { if (res.list?.length > 0) { priceObj.value = res.list[0] diff --git a/src/views/qms/inspectionQ3/index.vue b/src/views/qms/inspectionQ3/index.vue index a061d7ab9..a444cafdf 100644 --- a/src/views/qms/inspectionQ3/index.vue +++ b/src/views/qms/inspectionQ3/index.vue @@ -106,6 +106,7 @@ import * as InspectionQ3MainApi from '@/api/qms/inspectionQ3/inspectionQ3Main' import * as InspectionQ3DetailApi from '@/api/qms/inspectionQ3/inspectionQ3Detail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as ProductionlineitemApi from '@/api/wms/productionlineitem' +import * as ProductionlineApi from '@/api/wms/productionline' import * as StdcostpriceApi from '@/api/wms/stdcostprice' import { formatDate } from '@/utils/formatTime' import { async } from '@antv/x6/lib/registry/marker/async' @@ -173,7 +174,7 @@ const setTableFormsValues = async (val, index1) => { newRow['uom'] = val[index1]['uom'] newRow['qty'] = 0 newRow.defectLocation = val[index1]['productionLineCode'] - await ProductionlineitemApi.selectItemCodeToProductionLineCode(val[index1].itemCode).then( + await ProductionlineApi.getProductionlineNoPage({}).then( (res) => { console.log(res) if (res?.length > 0) { @@ -419,7 +420,6 @@ const submitForm = async (formType, submitData) => { return; } let flag = false; - console.log(1111) data.subList.forEach((item) => { if(item.qty == 0){ message.warning("数量不能为0") diff --git a/src/views/qms/inspectionQ3/inspectionQ3.data.ts b/src/views/qms/inspectionQ3/inspectionQ3.data.ts index dd059b76e..8fbdeb017 100644 --- a/src/views/qms/inspectionQ3/inspectionQ3.data.ts +++ b/src/views/qms/inspectionQ3/inspectionQ3.data.ts @@ -485,16 +485,16 @@ export const InspectionQ3Detail = useCrudSchemas( filterable: true, options: [], optionsAlias: { - labelField: 'productionLineName', - valueField: 'productionLineCode' + labelField: 'name', + valueField: 'code' } } }, tableForm: { type: 'Select', filterable: true, - valueField: 'productionLineName', - labelField: 'productionLineCode' + valueField: 'name', + labelField: 'code' } }, { From e795034da869673bff43cfd9c723a981e8e64a75 Mon Sep 17 00:00:00 2001 From: "YEJIAXING-PC\\lenovo" <591141169@qq.com> Date: Sat, 7 Sep 2024 10:13:10 +0800 Subject: [PATCH 20/21] =?UTF-8?q?Q3=E6=98=8E=E7=BB=86=E4=B8=AD=E7=BC=BA?= =?UTF-8?q?=E9=99=B7=E4=BD=8D=E7=BD=AE=E5=B8=A6=E5=87=BA=E9=94=99=E8=AF=AF?= =?UTF-8?q?=EF=BC=8C=E7=BC=BA=E9=99=B7=E4=BD=8D=E7=BD=AE=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=89=8B=E5=8A=A8=E8=BE=93=E5=85=A5=20=20HL-?= =?UTF-8?q?5894?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qms/inspectionQ3/inspectionQ3.data.ts | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/views/qms/inspectionQ3/inspectionQ3.data.ts b/src/views/qms/inspectionQ3/inspectionQ3.data.ts index 8fbdeb017..23d415a91 100644 --- a/src/views/qms/inspectionQ3/inspectionQ3.data.ts +++ b/src/views/qms/inspectionQ3/inspectionQ3.data.ts @@ -323,16 +323,18 @@ export const InspectionQ3Detail = useCrudSchemas( ], verificationPage: ProductionlineitemApi.getProductionLineCodelistByCodes, // tableForm下方输入框校验失去焦点之后是否正确的方法 isShowTableFormSearch: true, //tableForm下方是否出现输入框 - isRepeat: true,//tableForm下方输入框是否可以重复添加该条数据 + isRepeat: true, //tableForm下方输入框是否可以重复添加该条数据 // 失去焦点校验参数 - verificationParams: [{ - key: 'itemCode', - action: '==', - value: '', - isMainValue: false, - isSearch: 'true', - isFormModel: true, - }] + verificationParams: [ + { + key: 'itemCode', + action: '==', + value: '', + isMainValue: false, + isSearch: 'true', + isFormModel: true + } + ] }, form: { // labelMessage: '信息提示说明!!!', @@ -485,7 +487,7 @@ export const InspectionQ3Detail = useCrudSchemas( filterable: true, options: [], optionsAlias: { - labelField: 'name', + labelField: 'code', valueField: 'code' } } @@ -493,8 +495,8 @@ export const InspectionQ3Detail = useCrudSchemas( tableForm: { type: 'Select', filterable: true, - valueField: 'name', - labelField: 'code' + labelField: 'code', + valueField: 'code' } }, { From 743aeeb5fbed229cbe0f2f8c1c25942bdf3bfa00 Mon Sep 17 00:00:00 2001 From: "YEJIAXING-PC\\lenovo" <591141169@qq.com> Date: Sat, 7 Sep 2024 10:35:21 +0800 Subject: [PATCH 21/21] =?UTF-8?q?Q3=E6=98=8E=E7=BB=86=E4=B8=AD=E7=BC=BA?= =?UTF-8?q?=E9=99=B7=E4=BD=8D=E7=BD=AE=E5=B8=A6=E5=87=BA=E9=94=99=E8=AF=AF?= =?UTF-8?q?=EF=BC=8C=E7=BC=BA=E9=99=B7=E4=BD=8D=E7=BD=AE=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=89=8B=E5=8A=A8=E8=BE=93=E5=85=A5=20=20HL-?= =?UTF-8?q?5894?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionQ2/index.vue | 76 ++++++++++++++++++++++++---- 1 file changed, 65 insertions(+), 11 deletions(-) diff --git a/src/views/qms/inspectionQ2/index.vue b/src/views/qms/inspectionQ2/index.vue index 48af18b0f..e8f0bebc9 100644 --- a/src/views/qms/inspectionQ2/index.vue +++ b/src/views/qms/inspectionQ2/index.vue @@ -159,6 +159,11 @@ const clearSearchInput = (formField) => { column: 'itemCode', action: '==', value: basicFormRef.value.formRef.formModel.lightItemCode + }, + { + column: 'available', + action: '==', + value: 'TRUE' } ], pageNo: 1, @@ -211,7 +216,16 @@ const clearSearchInput = (formField) => { const params2 = { by: 'ASC', filters: [ - { column: 'itemCode', action: '==', value: basicFormRef.value.formRef.formModel.itemCode } + { + column: 'itemCode', + action: '==', + value: basicFormRef.value.formRef.formModel.itemCode + }, + { + column: 'available', + action: '==', + value: 'TRUE' + } ], pageNo: 1, pageSize: 500, @@ -258,7 +272,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { setV['purchaseReceiptNumber'] = '' const supplierParams = { by: 'ASC', - filters: [{ column: 'code', action: '==', value: val[0].supplierCode }], + filters: [ + { column: 'code', action: '==', value: val[0].supplierCode }, + { + column: 'available', + action: '==', + value: 'TRUE' + } + ], pageNo: 1, pageSize: 500, sort: '' @@ -300,7 +321,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { setV['remainingAmount'] = 0 const params2 = { by: 'ASC', - filters: [{ column: 'itemCode', action: '==', value: val[0].code }], + filters: [ + { column: 'itemCode', action: '==', value: val[0].code }, + { + column: 'available', + action: '==', + value: 'TRUE' + } + ], pageNo: 1, pageSize: 500, sort: '' @@ -361,7 +389,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { const supplieritemParams = { by: 'ASC', - filters: [{ column: 'itemCode', action: '==', value: val[0].itemCode }], + filters: [ + { column: 'itemCode', action: '==', value: val[0].itemCode }, + { + column: 'available', + action: '==', + value: 'TRUE' + } + ], pageNo: 1, pageSize: 500, sort: '' @@ -380,7 +415,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { }) const itembasicParams = { by: 'ASC', - filters: [{ column: 'code', action: '==', value: val[0].itemCode }], + filters: [ + { column: 'code', action: '==', value: val[0].itemCode }, + { + column: 'available', + action: '==', + value: 'TRUE' + } + ], pageNo: 1, pageSize: 500, sort: '' @@ -407,7 +449,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { setV['remainingAmount'] = 0 const params2 = { by: 'ASC', - filters: [{ column: 'itemCode', action: '==', value: val[0].itemCode }], + filters: [ + { column: 'itemCode', action: '==', value: val[0].itemCode }, + { + column: 'available', + action: '==', + value: 'TRUE' + } + ], pageNo: 1, pageSize: 500, sort: '' @@ -509,7 +558,12 @@ const onChange = (field, e) => { const paramsCustomer = { by: 'ASC', filters: [ - { column: 'code', action: '==', value: basicFormRef.value.formRef.formModel.supplierCode } + { column: 'code', action: '==', value: basicFormRef.value.formRef.formModel.supplierCode }, + { + column: 'available', + action: '==', + value: 'TRUE' + } ], pageNo: 1, pageSize: 500, @@ -690,10 +744,10 @@ const formsSuccess = async (formType, data) => { // message.error('数量不能为0') // return // } - if (!data.standardCostPrice) { - message.error('标准成本价格不能为0或空') - return - } + // if (!data.standardCostPrice) { + // message.error('标准成本价格不能为0或空') + // return + // } if (data.activeTime == 0) data.activeTime = null if (data.expireTime == 0) data.expireTime = null