From 9fc030fcd15812c211398d9ae4ae4e49e8d59c2a Mon Sep 17 00:00:00 2001 From: qiuhongwu Date: Mon, 22 Jan 2024 09:45:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E4=BF=A1=E6=81=AF=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/heli/projectorder/detail.vue | 115 ++++++++++-------- 1 file changed, 67 insertions(+), 48 deletions(-) diff --git a/mes-ui/mes-ui-admin-vue3/src/views/heli/projectorder/detail.vue b/mes-ui/mes-ui-admin-vue3/src/views/heli/projectorder/detail.vue index 2d8bc82c..02d4b980 100644 --- a/mes-ui/mes-ui-admin-vue3/src/views/heli/projectorder/detail.vue +++ b/mes-ui/mes-ui-admin-vue3/src/views/heli/projectorder/detail.vue @@ -7,7 +7,10 @@ -
+
已发货
@@ -27,9 +30,12 @@ >距交货还有{{ betweenDay(new Date(), new Date(formData.projectEndTime)) + 1 }}天
-
- + @@ -142,7 +148,7 @@ placeholder="请输入检验要求" show-word-limit maxlength="200" - :class="{'alter-class': fieldHasAlter('referenceTechnology')}" + :class="{ 'alter-class': fieldHasAlter('referenceTechnology') }" /> @@ -152,7 +158,11 @@ - {{ query.active != 'detailArchive' ? formatDate(formData.orderTime, 'YYYY-MM-DD') : formatDate(formData.snapshotOrderTime, 'YYYY-MM-DD')}} + {{ + query.active != 'detailArchive' + ? formatDate(formData.orderTime, 'YYYY-MM-DD') + : formatDate(formData.snapshotOrderTime, 'YYYY-MM-DD') + }} @@ -199,7 +209,7 @@ - - @@ -365,14 +379,14 @@ :min="0" :precision="6" style="width: 150px" - :class="{'alter-class': fieldHasAlter('price')}" + :class="{ 'alter-class': fieldHasAlter('price') }" /> - - - @@ -537,7 +557,7 @@ placeholder="请输入数量" :min="0" :precision="0" - :class="{'alter-class': fieldHasAlterInRow('amount', row)}" + :class="{ 'alter-class': fieldHasAlterInRow('amount', row) }" /> @@ -553,7 +573,7 @@ :disabled="detailDisabled" v-model="row.unit" placeholder="请选择单位" - :class="{'alter-class': fieldHasAlterInRow('unit', row)}" + :class="{ 'alter-class': fieldHasAlterInRow('unit', row) }" > @@ -632,17 +652,14 @@ - + 上传合同 { if (id) { formData.value = await ProjectOrderApi.getProjectOrder(id) // 子项列表 - formData.value.projectOrderSubs = await ProjectOrderApi.getProjectOrderSubListByProjectOrderId(id) + formData.value.projectOrderSubs = + await ProjectOrderApi.getProjectOrderSubListByProjectOrderId(id) // 如为归档 - let businessType = 'PROJECT_ORDER'; - if(type == 'detailArchive'){ + let businessType = 'PROJECT_ORDER' + if (type == 'detailArchive') { businessType = 'PROJECT_ORDER_SNAPSHOT' - }else{ + } else { // 操作日志 let logParams = { pageNo: 1, @@ -1094,7 +1113,7 @@ const submitForm = async (active) => { } // 如变更 置为已变更 if (active == 'ALTER') { - formData.value.hasAlter = 1; + formData.value.hasAlter = 1 } const data = formData.value as unknown as ProjectOrderApi.ProjectOrderVO @@ -1131,22 +1150,22 @@ const submitForm = async (active) => { } // 附件校验 - if('SUBMIT_AUDIT,ALTER'.indexOf(active) > -1){ - if(formData.value.hasContract){ + if ('SUBMIT_AUDIT,ALTER'.indexOf(active) > -1) { + if (formData.value.hasContract) { const hasContractFile = formData.value.attachments.some((file) => { - return file.businessFileType == 'CONTRACT'; + return file.businessFileType == 'CONTRACT' }) - if(!hasContractFile){ - message.error("请上传合同"); + if (!hasContractFile) { + message.error('请上传合同') return } } - if(formData.value.hasTechnologyProtocol){ + if (formData.value.hasTechnologyProtocol) { const hasProtocolFile = formData.value.attachments.some((file) => { - return file.businessFileType == 'TECHNOLOGY_PROTOCOL'; + return file.businessFileType == 'TECHNOLOGY_PROTOCOL' }) - if(!hasProtocolFile){ - message.error("请上传技术协议"); + if (!hasProtocolFile) { + message.error('请上传技术协议') return } } @@ -1236,7 +1255,7 @@ const refreshAttachments = (files, type) => { } // 排序 formData.value.attachments.sort((v1, v2) => { - return (v1.createTime - v2.createTime) > 0 + return v1.createTime - v2.createTime > 0 }) } @@ -1323,7 +1342,7 @@ onMounted(() => { if (query.active == 'alter') { alterDisabled.value = true } - if('detail,audit,approve,terminate,detailArchive'.indexOf(query.active) > -1){ + if ('detail,audit,approve,terminate,detailArchive'.indexOf(query.active) > -1) { detailDisabled.value = true } queryData(query.active, query.id)