From aecdfb8c9f8c5f20dc9adb61adf0a9c1385b9f14 Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期三, 17 一月 2024 09:58:54 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/mes-ocea-before
---
src/views/quality/packageinspect/index.vue | 57 ++++++++++++++++++++++++++++++---------------------------
1 files changed, 30 insertions(+), 27 deletions(-)
diff --git a/src/views/quality/packageinspect/index.vue b/src/views/quality/packageinspect/index.vue
index 9e58f4b..e8a924d 100644
--- a/src/views/quality/packageinspect/index.vue
+++ b/src/views/quality/packageinspect/index.vue
@@ -74,7 +74,7 @@
// 鏍囬
column: [
{
- minWidth: '150',
+ minWidth: '180',
prop: 'packInsNo',
label: '鍖呰妫�楠岀紪鍙�',
isTrue: true,
@@ -83,7 +83,7 @@
render: { fun: this.addOrUpdateHandle }
},
{
- minWidth: '150',
+ minWidth: '180',
prop: 'packageNo',
label: '鍖呰缂栫爜',
isTrue: true,
@@ -91,7 +91,7 @@
searchInfoType: 'text'
},
{
- minWidth: '150',
+ minWidth: '180',
prop: 'contractNo',
label: '鍚堝悓鍙�',
isTrue: true,
@@ -99,7 +99,7 @@
searchInfoType: 'text'
},
{
- minWidth: '150',
+ minWidth: '180',
prop: 'projectName',
label: '椤圭洰鍚嶇О',
isTrue: true,
@@ -107,7 +107,7 @@
searchInfoType: 'text'
},
{
- minWidth: '150',
+ minWidth: '180',
prop: 'customerName',
label: '瀹㈡埛鍚嶇О',
isTrue: true,
@@ -115,7 +115,7 @@
searchInfoType: 'text'
},
{
- minWidth: '150',
+ minWidth: '180',
prop: 'createTime',
label: '鎶ユ鏃ユ湡',
isTrue: true,
@@ -125,7 +125,7 @@
formatter: this.formatDateTime,
},
{
- minWidth: '150',
+ minWidth: '180',
prop: 'createUser',
label: '鎶ユ浜�',
isTrue: true,
@@ -133,32 +133,21 @@
searchInfoType: 'text'
},
{
- minWidth: '150',
+ minWidth: '200',
prop: 'result',
label: '缁撹',
isTrue: true,
isSearch: true,
+ searchInfoType: 'text'
},
],
- toolbar: [
- // {
- // text: '鏂板',
- // type: 'primary',
- // fun: this.addOrUpdateHandle
- // },
- ],
- operator: [
- {
- text: '浣滃簾',
- type: 'text',
- size: 'small',
- fun: this.deleteHandle
- }],
+ toolbar: [],
+ operator: null,
operatorConfig: {
fixed: 'right',
label: '鎿嶄綔',
- width: 120,
- minWidth: 120
+ width: 100,
+ minWidth: 100
},
},
}
@@ -166,7 +155,16 @@
components: {
ttable,
},
- created() { },
+ created() {
+ if(this.permissions.quality_packageinspect_del){
+ this.table.operator = [{
+ text: '浣滃簾',
+ type: 'text',
+ size: 'small',
+ fun: this.deleteHandle
+ }]
+ }
+ },
computed: {
...mapGetters(['permissions'])
},
@@ -198,11 +196,16 @@
},
// 鏂板 / 淇敼
addOrUpdateHandle(row) {
+ if(!this.permissions.quality_packageinspect_edit && row.id!=null){
+ this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�")
+ return
+ }
this.$router.push({
name: 'packageInspectForm',
query: {
- id: row == null ? null : row.id,
- }
+ id: row == null ? null : row.id
+ },
+ params:{resultVal : row.result=='' ? null : row.result}
})
},
formatResult(row, column, cellValue){
--
Gitblit v1.9.3