From 30ff84d8658d1a986c5c18f2501caf583681132a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Wed, 18 Mar 2026 12:44:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(erf):=20=E6=B7=BB=E5=8A=A0=E8=AE=A1?= =?UTF-8?q?=E9=87=8F=E5=8D=95=E4=BD=8D=E5=AD=97=E6=AE=B5=E5=92=8C=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在试验申请列表表格中新增计量单位列 - 在样品确认表单中添加计量单位输入项 - 集成Chooselist组件实现计量单位选择功能 - 添加getBaseList和getBaseData方法处理基础数据获取 - 更新sampleConfirmData数据结构包含umid字段 - 实现样品确认对话框中计量单位的回显和提交 --- src/views/modules/erf/expApplyList.vue | 57 +++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 5 deletions(-) diff --git a/src/views/modules/erf/expApplyList.vue b/src/views/modules/erf/expApplyList.vue index 4a8be17..7a75e98 100644 --- a/src/views/modules/erf/expApplyList.vue +++ b/src/views/modules/erf/expApplyList.vue @@ -204,7 +204,14 @@ header-align="center" show-overflow-tooltip> - + + + @@ -657,11 +669,12 @@ import ExpProjectDetail from './components/expProjectDetail.vue' import ExpTriConfirm from './components/expTriConfirm.vue' import ErfAttachmentManager from './components/erfAttachmentManager.vue' import ExpRawMaterialList from './components/expRawMaterialList.vue' - +import Chooselist from '@/views/modules/common/Chooselist_eam' export default { name: 'ExpApplyList', components: { + Chooselist, ExpApplyForm, ExpProjectDetail, ExpTriConfirm, @@ -671,6 +684,7 @@ export default { data() { return { + tagNo:'', sendLoading: false, // 发送邮件的加载状态 buList: [], // 查询条件 @@ -749,7 +763,8 @@ export default { sampleConfirmData: { applyNo: '', sampleQuantity: null, - finalFinishDate: '' + finalFinishDate: '', + umid:'' }, // 复制试验单弹窗 @@ -772,6 +787,35 @@ export default { }, methods: { + // ======== chooseList相关方法 ======== + /** + * 获取基础数据列表S + * @param val + * @param type + */ + getBaseList (val, type) { + this.tagNo = val + this.$nextTick(() => { + let strVal = '' + let conSql = '' + if (val === 510) { + strVal = this.sampleConfirmData.umid?this.sampleConfirmData.umid:'' + conSql = " and site = '" + (this.currentRow.buNo[1]?this.currentRow.buNo[1]:'1') + "'" + + } + this.$refs.baseList.init(val, strVal, conSql) + }) + }, + /** + * 列表方法的回调 + * @param val + */ + getBaseData (val) { + if (this.tagNo === 510) { + this.sampleConfirmData.umid = val.UMID + + } + }, /** * 加载事业部列表 */ @@ -1478,10 +1522,12 @@ export default { openSampleConfirm(row) { this.sampleConfirmData = { applyNo: row.applyNo, + umid: row.umid, sampleQuantity: null, finalFinishDate: '' } this.sampleConfirmVisible = true + console.log('打开样品确认对话框:'+this.sampleConfirmData) }, /** @@ -1524,7 +1570,8 @@ export default { applyNo: this.sampleConfirmData.applyNo, finalQuantity: finalQuantity, finalStatus: finalStatus, - actualFinishDate: this.sampleConfirmData.finalFinishDate + actualFinishDate: this.sampleConfirmData.finalFinishDate, + umid: this.sampleConfirmData.umid }).then(({data}) => { this.sampleConfirmLoading = false if (data && data.code === 0) {