From 7ccaedfbf09332301c182982921146377d140b2b Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Mon, 23 Mar 2026 11:24:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=20YP005?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/comps/template/comps/dl/DL023.vue | 4 +-- .../business/comps/template/comps/yp/YP002.vue | 2 +- .../business/comps/template/comps/yp/YP005.vue | 33 ++++++++++++++++++++-- 3 files changed, 34 insertions(+), 5 deletions(-) diff --git a/src/views/business/comps/template/comps/dl/DL023.vue b/src/views/business/comps/template/comps/dl/DL023.vue index ab14c55..267a79f 100644 --- a/src/views/business/comps/template/comps/dl/DL023.vue +++ b/src/views/business/comps/template/comps/dl/DL023.vue @@ -189,7 +189,7 @@ export default { subKey: 'zskssj', buttonName: 'template.dl.dl023.ksButton', disabled: true, - subDisabled: false + subDisabled: this.fillType !== 'actFill' }, zsjssj: { label: 'template.dl.dl023.zsjssj', @@ -200,7 +200,7 @@ export default { subKey: 'zsjssj', buttonName: 'template.dl.dl023.jsButton', disabled: true, - subDisabled: false + subDisabled: this.fillType !== 'actFill' }, } } diff --git a/src/views/business/comps/template/comps/yp/YP002.vue b/src/views/business/comps/template/comps/yp/YP002.vue index cf90f0b..7a6a875 100644 --- a/src/views/business/comps/template/comps/yp/YP002.vue +++ b/src/views/business/comps/template/comps/yp/YP002.vue @@ -143,7 +143,7 @@ export default { subKey:"jssjButton", buttonName:"template.yp.yp002.hqsj", disabled:true, - subDisabled:false + subDisabled:this.fillType !== 'actFill' }, } }, diff --git a/src/views/business/comps/template/comps/yp/YP005.vue b/src/views/business/comps/template/comps/yp/YP005.vue index f336e57..4098387 100644 --- a/src/views/business/comps/template/comps/yp/YP005.vue +++ b/src/views/business/comps/template/comps/yp/YP005.vue @@ -178,7 +178,7 @@ export default { bodyThirdFillType:"actFill", width: 280, bodyDisabled:true, - bodySubDisabled:false, + bodySubDisabled:this.fillType !== 'actFill', }] }, }, @@ -198,8 +198,37 @@ export default { this.$refs.ImportExcelDialog.show() } if(key === "startBtn"){ + debugger + let startTime = moment().format("YYYY/MM/DD HH:mm") + let content = this.getFilledFormData(); + let tableList = content.stepTableFormData + let qxsj = tableList[rowIndex].qxsj + let timeArr = qxsj?qxsj.split('~'):['',''] + timeArr[0] = startTime this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{ - qxsj: moment().format("YYYY/MM/DD HH:mm"), + qxsj: timeArr.join('~'), + }) + + // this.$nextTick(() => { + // //通知后端保存数据 + // const params = { + // type: "fieldChanged", + // newRecord: null, + // resourceList: null, + // } + // EventBus.$emit('onModifyRecord', params,) + // }) + } + if(key === "endBtn"){ + debugger + let endTime = moment().format("YYYY/MM/DD HH:mm") + let content = this.getFilledFormData(); + let tableList = content.stepTableFormData + let qxsj = tableList[rowIndex].qxsj + let timeArr = qxsj?qxsj.split('~'):['',''] + timeArr[1] = endTime + this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{ + qxsj: timeArr.join('~'), }) // this.$nextTick(() => {