From dbe4d740a7b0b5696c89f4df14b6804a71364432 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期三, 08 五月 2024 14:56:56 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/quality/rawMaterial/index.vue | 38 +++++++++++++++++++++++++------------- 1 files changed, 25 insertions(+), 13 deletions(-) diff --git a/src/views/quality/rawMaterial/index.vue b/src/views/quality/rawMaterial/index.vue index 3e3b81e..1152cfb 100644 --- a/src/views/quality/rawMaterial/index.vue +++ b/src/views/quality/rawMaterial/index.vue @@ -187,12 +187,13 @@ }, { minWidth: '120', - prop: 'createTime', + prop: 'startTime', label: '鎶ユ鏃ユ湡', isTrue: true, sort: true, isSearch: true, searchInfoType: 'text', + searchInfoType: 'datetimerange', formatter: this.formatDateTime, }, { @@ -210,6 +211,7 @@ isTrue: true, isSearch: true, searchInfoType: 'text', + searchInfoType: 'datetimerange', formatter: this.formatDateTime, }, { @@ -235,6 +237,14 @@ optList: () => { return this.StateList } + }, + { + minWidth: '120', + prop: 'remark', + label: '澶囨敞', + isTrue: true, + isSearch: true, + searchInfoType: 'text', }, ], toolbar: [], @@ -275,17 +285,19 @@ }) } - this.table.operator = [{ - text: '瀹℃牳', - type: 'text', - size: 'small', - fun: this.examineHandle, - showFun: (row)=>{return row.type==='棣栨'}, - show: { - key: 'checkState', - val: ['0'] - } - }] + if(this.permissions.quality_rawMaterial_check){ + this.table.operator = [{ + text: '瀹℃牳', + type: 'text', + size: 'small', + fun: this.examineHandle, + showFun: (row)=>{return row.type==='棣栨'&& row.insState==='1'}, + show: { + key: 'checkState', + val: ['0','2'] + } + }] + } if(this.permissions.quality_rawMaterial_del){ this.table.operator.push({ text: '浣滃簾', @@ -381,7 +393,7 @@ type: "html", // header: "鍘熸潗鏂欐娴嬫姤鍛�", targetStyles: ["*"], - style: `@page {margin: 0mm 5mm;size: A4;} + style: `@page {margin: 0mm 5mm;size: A4 landscape;} html {zoom:100%;} @media print { html,body{ -- Gitblit v1.9.3