From aa725bcdcae0b515f12d3b73be90b81432627727 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Wed, 8 Apr 2026 21:51:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/comps/common/JcgjList.vue | 180 +++++++++++++++++++-------- src/views/business/study/comp/tbbd/Fh.vue | 51 ++++---- 2 files changed, 157 insertions(+), 74 deletions(-) diff --git a/src/views/business/comps/common/JcgjList.vue b/src/views/business/comps/common/JcgjList.vue index 8be3449..1dbae8d 100644 --- a/src/views/business/comps/common/JcgjList.vue +++ b/src/views/business/comps/common/JcgjList.vue @@ -1,11 +1,12 @@ @@ -55,35 +75,35 @@ export default { name: "JcgjList", components: {}, - props:{ - showRy:{ - type:Boolean, - default:false + props: { + showRy: { + type: Boolean, + default: false }, - showXg:{ - type:Boolean, - default:false + showXg: { + type: Boolean, + default: false }, - showLc:{ - type:Boolean, - default:true + showLc: { + type: Boolean, + default: true }, - showBj:{ - type:Boolean, - default:true + showBj: { + type: Boolean, + default: true }, - showBcsm:{ - type:Boolean, - default:false + showBcsm: { + type: Boolean, + default: false }, // 更换笼具 showLj: { - type:Boolean, - default:false + type: Boolean, + default: false }, readonly: { - type:Boolean, - default:false + type: Boolean, + default: false }, }, data() { @@ -96,11 +116,71 @@ export default { }; }, mounted() { - this.list=[] + this.list = [] }, methods: { + openFileEn(ppindex, pitem, item) { + let result='' + if (pitem.name == 'Old Value') { + let _oldUrl = "" + for (var i = 0; i < item.jcnrList.length; i++) { + if (item.jcnrList[i].name == 'oldUrl') { + _oldUrl = item.jcnrList[i].value + break; + } + } + if (_oldUrl && _oldUrl != '') { + let oldUrl = _oldUrl.split(";") + result=process.env.VUE_APP_FILE_DOMAIN +oldUrl[ppindex] + } + } + if (pitem.name == 'New Value') { + let _url = "" + for (var i = 0; i < item.jcnrList.length; i++) { + if (item.jcnrList[i].name == 'url') { + _url = item.jcnrList[i].value + break; + } + } + if (_url && _url != '') { + let url = _url.split(";") + result=process.env.VUE_APP_FILE_DOMAIN +url[ppindex]; + } + } + return result; + }, + openFile(ppindex, pitem, item) { + let result='' + if (pitem.name == '原值') { + let _oldUrl = "" + for (var i = 0; i < item.jcnrList.length; i++) { + if (item.jcnrList[i].name == 'oldUrl') { + _oldUrl = item.jcnrList[i].value + break; + } + } + if (_oldUrl && _oldUrl != '') { + let oldUrl = _oldUrl.split(";") + result=process.env.VUE_APP_FILE_DOMAIN +oldUrl[ppindex] + } + } + if (pitem.name == '新值') { + let _url = "" + for (var i = 0; i < item.jcnrList.length; i++) { + if (item.jcnrList[i].name == 'url') { + _url = item.jcnrList[i].value + break; + } + } + if (_url && _url != '') { + let url = _url.split(";") + result=process.env.VUE_APP_FILE_DOMAIN +url[ppindex]; + } + } + return result; + }, handleQuery() { - this.$emit('handleQuery',this.queryParams) + this.$emit('handleQuery', this.queryParams) }, init(val) { let that = this diff --git a/src/views/business/study/comp/tbbd/Fh.vue b/src/views/business/study/comp/tbbd/Fh.vue index b83c35c..1a43ce3 100644 --- a/src/views/business/study/comp/tbbd/Fh.vue +++ b/src/views/business/study/comp/tbbd/Fh.vue @@ -48,18 +48,17 @@
{{ $t('page.business.study.studyFormFill.jcgj') }}
- + + @pagination="getJjcgjList" :page.sync="queryParamsJcgj.pageNum" :limit.sync="queryParamsJcgj.pageSize" /> -
+
@@ -97,8 +96,8 @@ - + @@ -191,8 +190,8 @@ export default { }, getJjcgjList(val) { this.$modal.loading() - if(val){ - this.queryParamsJcgj=_.merge({}, this.queryParamsJcgj, val) + if (val) { + this.queryParamsJcgj = _.merge({}, this.queryParamsJcgj, val) } studyFormFill_jcgj(this.queryParamsJcgj).then(response => { this.jcgjList = response.rows @@ -234,22 +233,26 @@ export default { }) }, async showApprove(qmyy) { - let content = await this.$refs.templateTable.getFormData() - if (content) { - this.openApprove = true - this.resetApprove() - this.formApprove.id = this.form.id - this.formApprove.bdnr = JSON.stringify(content) - this.formApprove.qmyy = qmyy - if (qmyy == '复核通过') { - this.openTitle = 'page.business.study.studyFormFill.fhtg' - this.formApprove.qmyyMc = this.$t('page.business.study.studyFormFill.fhtg') - } else if (qmyy == '复核拒绝') { - this.openTitle = 'page.business.study.studyFormFill.fhjj' - this.formApprove.qmyyMc = this.$t('page.business.study.studyFormFill.fhjj') - } else if (qmyy == '通过') { - this.openTitle = 'page.business.study.studyFormFill.tongguo' - this.formApprove.qmyyMc = this.$t('page.business.study.studyFormFill.mfhtg') + if (!this.$refs.templateTable.isReply()) { + this.$modal.msgError("还有疑问项未回复"); + } else { + let content = await this.$refs.templateTable.getFormData() + if (content) { + this.openApprove = true + this.resetApprove() + this.formApprove.id = this.form.id + this.formApprove.bdnr = JSON.stringify(content) + this.formApprove.qmyy = qmyy + if (qmyy == '复核通过') { + this.openTitle = 'page.business.study.studyFormFill.fhtg' + this.formApprove.qmyyMc = this.$t('page.business.study.studyFormFill.fhtg') + } else if (qmyy == '复核拒绝') { + this.openTitle = 'page.business.study.studyFormFill.fhjj' + this.formApprove.qmyyMc = this.$t('page.business.study.studyFormFill.fhjj') + } else if (qmyy == '通过') { + this.openTitle = 'page.business.study.studyFormFill.tongguo' + this.formApprove.qmyyMc = this.$t('page.business.study.studyFormFill.mfhtg') + } } } },