From 5250374a8999fd6144de64befa6fd6167ce50936 Mon Sep 17 00:00:00 2001 From: 罗媛媛 <2454262093@qq.com> Date: 星期一, 01 四月 2024 15:25:19 +0800 Subject: [PATCH] 功能调整 --- src/components/view/b1-inspect-order-plan.vue | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/components/view/b1-inspect-order-plan.vue b/src/components/view/b1-inspect-order-plan.vue index cc2bd16..c78d830 100644 --- a/src/components/view/b1-inspect-order-plan.vue +++ b/src/components/view/b1-inspect-order-plan.vue @@ -164,7 +164,7 @@ <div style="width: 100%;height: 100%;" v-if="activeFace >0"> <Add :active="activeFace" :currentId="currentId"/> </div> - <Inspection v-if="state==1" @goback="goback" :orderId="orderId"/> + <Inspection v-if="state==1" @goback="goback" :orderId="orderId" :sonLaboratory="componentData.entity.sonLaboratory"/> </div> </template> @@ -217,13 +217,17 @@ id: '', font: '浜ゆ帴', type: 'text', - method: '' + disabFun: (row, index) => { + return row.userId == null + } }, { id: '', font: '澶嶆牳', type: 'text', - method: '' + disabFun: (row, index) => { + return row.userId == null || row.insState != 4 + } }, { id: '', font: '璁ら', @@ -274,12 +278,14 @@ currentId: null, entityCopy: {}, orderId: 0, + currentTime: null } }, created() { this.getLaboratoryDicts() this.getTypeDicts() this.getInsStateDicts() + this.currentTime = getYearAndMonthAndDays() }, mounted() { this.entityCopy = this.HaveJson(this.componentData.entity) @@ -328,10 +334,9 @@ row, rowIndex }) { - let currentTime = getYearAndMonthAndDays() - if (currentTime === row.appointed) { + if (this.currentTime === row.appointed) { return 'highlight-warning-row-border' - } else if (currentTime > row.appointed) { + } else if (this.currentTime > row.appointed) { return 'highlight-danger-row-border' } return '' -- Gitblit v1.9.3