Browse Source

fix:增加报故按钮操作权限

lupeng 1 year ago
parent
commit
48c4d1bab5

+ 13 - 0
src/common/configs/buttonPermission.ts

@@ -81,6 +81,19 @@ const ButtonPermKeys = {
       allocate_audit: "device:allocate:audit",
       allocate_export: "device:allocate:export",
     }
+  },
+
+  //报故处理
+  FAULT:{
+    MENUS: {
+      faultHandle: "quality::faultHandle",
+    },
+    BTNS: {
+      faultHandle_handle: "quality::faultHandle::handle",
+      faultHandle_thaw: "quality::faultHandle::thaw",
+      faultHandle_examine: "quality::faultHandle::examine",
+
+    }
   }
 };
 

+ 1 - 1
src/components/CommonTable/configs/tableConfig.ts

@@ -166,7 +166,7 @@ export const tableConfig = {
 
 
 	PRODUCTIONLINE: {
-		url: "/api/v1/base/productionLine",
+		url: "/api/v1/base/productionLine/list",
 		column: [
 			{
 				label: "产线名称",

+ 4 - 4
src/views/plan/finishProduct/index.vue

@@ -131,7 +131,11 @@ option.value = Object.assign(option.value, {
   delBtn:false,
   column: [
 
+    { label: "工单号", prop: "workOrderCode",
+      search: true,
+      overHidden: true
 
+    },
     { label: "产品名称", prop: "materialName",
       search: true,
       overHidden: true,
@@ -144,11 +148,7 @@ option.value = Object.assign(option.value, {
       prop: "orderCode",
       search: true,
     },
-    { label: "工单号", prop: "workOrderCode",
-      search: true,
-      overHidden: true
 
-    },
     { label: "完工时间", prop: "updated", overHidden: true,
       disabled:true, hide:true},
     {

+ 4 - 5
src/views/quality/faultHandle/index.vue

@@ -35,18 +35,21 @@
                    text
                    type="primary"
                    v-if="row.currentState==6"
+                   v-hasPerm="[ButtonPermKeys.FAULT.BTNS.faultHandle_handle]"
         >处理</el-button>
 
         <el-button @click="faultThaw(row)"
                    icon="el-icon-open"
                    text
                    type="primary"
+                   v-hasPerm="[ButtonPermKeys.FAULT.BTNS.faultHandle_thaw]"
                    v-if="row.currentState==4"
         >解冻</el-button>
         <el-button @click="faultExamine(row)"
                    icon="el-icon-reading"
                    text
                    type="primary"
+                   v-hasPerm="[ButtonPermKeys.FAULT.BTNS.faultHandle_examine]"
                    v-if="row.currentState==1"
         >审核</el-button>
       </template>
@@ -212,14 +215,12 @@
         label: "审理单号",
         prop: "trackingNumber",
         overHidden: true,
-        width:120,
         search: true,
       },
       {
         label: "工单号",
         prop: "workOrderCode",
         overHidden: true,
-        width:120,
         search: true,
       },
       {
@@ -237,7 +238,6 @@
       },
       {
         label: "产品编码", prop: "materialCode", overHidden: true,
-        width:120,
 
       },
       {
@@ -246,8 +246,7 @@
       },
 
       {
-        label: "流转卡号", prop: "seqNo", overHidden: true,
-        width:120,
+        label: "流转卡号", prop: "seqNo", overHidden: true,search:true,
       },
       {
         label: "状态", prop: "state", overHidden: true,

+ 2 - 5
src/views/quality/unqualified/columns.ts

@@ -3,10 +3,7 @@ const { dicts } = useDictionaryStore();
 export const columns = [
 
   {
-    label: "报故时间", prop: "created",
-    overHidden: true,
-    width:100,
-    search: true,
+    label: "流转卡号", prop: "seqNo", overHidden: true,search:true,
   },
   {
     label: "工单号",
@@ -30,7 +27,7 @@ export const columns = [
   },
 
   {
-    label: "流转卡号", prop: "seqNo", overHidden: true,
+    label: "流转卡号", prop: "seqNo", overHidden: true,search:true
 
   },
   {