chris před 2 roky
rodič
revize
650ef6654e

+ 9 - 10
src/views/modules/cus/quoted.vue

@@ -20,7 +20,7 @@
         <el-form-item>
           <el-button @click="queryData()">查询</el-button>
           <el-button
-            v-if="isAuth('quoted:insert')"
+            v-if="isAuth('quoted:price:save')"
             type="primary"
             @click="addOrUpdateHandle(0)"
             >新建</el-button
@@ -226,63 +226,62 @@
               >查看</el-button
             >
             <el-button
-              v-if="isAuth('quoted:update')"
+              v-if="isAuth('quoted:price:update')"
               type="text"
               size="small"
               @click="addOrUpdateHandle(scope.row.priceId)"
               >编辑</el-button
             >
             <el-button
-              v-if="isAuth('quoted:revoke')"
+              v-if="isAuth('quoted:price:revoke')"
               type="text"
               size="small"
               @click="revokeHandle(scope.row.priceId)"
               >撤回</el-button
             >
             <el-button
-              v-if="isAuth('quoted:first')"
+              v-if="isAuth('quoted:price:updateFirst')"
               type="text"
               size="small"
               @click="priceHandle(scope.row.priceId,'first')"
               >报价</el-button
             >
             <el-button
-              v-if="isAuth('quoted:two')"
+              v-if="isAuth('quoted:price:updateTwo')"
               type="text"
               size="small"
               @click="priceHandle(scope.row.priceId,'second')"
               >精准报价</el-button
             >
             <el-button
-              v-if="isAuth('quoted:notify')"
+              v-if="isAuth('work:clt:insertBatch')"
               type="text"
               size="small"
               @click="notifyHandle(scope.row.priceId)"
               >通知报价</el-button
             >
             <el-button
-              v-if="isAuth('quoted:restart')"
+              v-if="isAuth('quoted:price:updateRestart')"
               type="text"
               size="small"
               @click="priceHandle(scope.row.priceId, 'restart')"
               >重新报价</el-button
             >
             <el-button
-              v-if="isAuth('quoted:accredit') && scope.row.workFlowBusinessExt != null && scope.row.workFlowBusinessExt.state === '1'"
+              v-if="isAuth('quoted:price:updateAccredit') && scope.row.workFlowBusinessExt != null && scope.row.workFlowBusinessExt.state === '1'"
               type="text"
               size="small"
               @click="accreditHandle(scope.row.priceId)"
               >授权</el-button
             >
             <el-button
-              v-if="isAuth('quoted:result')"
+              v-if="isAuth('quoted:price:updateResult')"
               type="text"
               size="small"
               @click="resultHandle(scope.row.priceId)"
               >报价结果</el-button
             >
             <el-button
-              v-if="isAuth('quoted:result')"
               type="text"
               size="small"
               @click="showDetail"

+ 4 - 4
src/views/modules/production/scheduling.vue

@@ -127,10 +127,10 @@
           width="280"
           label="操作">
           <template slot-scope="scope">
-            <el-button type="text" size="small" @click="check(scope.row)">核料</el-button>
-            <el-button type="text" size="small" @click="purchaseHandle(scope.row)">转采购</el-button>
-            <el-button type="text" size="small" @click="outsourceHandle(scope.row)">转委外</el-button>
-            <el-button type="text" size="small" @click="preCheck(scope.row.id)">试制前检查</el-button>
+            <el-button v-if="isAuth('prod:production:updateCheck')" type="text" size="small" @click="check(scope.row)">核料</el-button>
+            <el-button v-if="isAuth('prod:production:purchase')" type="text" size="small" @click="purchaseHandle(scope.row)">转采购</el-button>
+            <el-button v-if="isAuth('pur:commDetail:save')" type="text" size="small" @click="outsourceHandle(scope.row)">转委外</el-button>
+            <el-button v-if="isAuth('prod:production:examine')" type="text" size="small" @click="preCheck(scope.row.id)">试制前检查</el-button>
             <el-button v-if="isAuth('prod:production:plan')" type="text" size="small" @click="detail(scope.row.id, true)">排产</el-button>
 <!--            <el-button v-if="isAuth('pur:commDetail:save') && Number(scope.row.outsourcing) === 0" type="text" size="small" @click="outsourceHandle(scope.row.id)">委外生产</el-button>-->
           </template>

+ 30 - 5
src/views/modules/quality/disqualification.vue

@@ -1,3 +1,4 @@
+<!-- 不合格品审理单 -->
 <template>
   <div>
     <template v-if="!updateVisible && !disposeVisible && !verifyVisible">
@@ -43,6 +44,7 @@
           prop="invoicesCode"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="审理编码"
         >
@@ -51,6 +53,7 @@
           prop="orderCode"
           header-align="center"
           align="center"
+          width="140"
           :show-tooltip-when-overflow="true"
           label="任务单编码"
         >
@@ -59,6 +62,7 @@
           prop="batchNumber"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="批次号"
         >
@@ -67,6 +71,7 @@
           prop="productName"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="物料名称"
         >
@@ -75,6 +80,7 @@
           prop="productNumber"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="生产编号"
         >
@@ -83,6 +89,7 @@
           prop="techName"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="工艺名称"
         >
@@ -91,6 +98,7 @@
           prop="nodeName"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="检验工序节点"
         >
@@ -99,6 +107,7 @@
           prop="disqualificationNodeName"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="发生工序节点"
         >
@@ -115,6 +124,7 @@
           prop="disqualificationCnt"
           header-align="center"
           align="center"
+          width="100"
           :show-tooltip-when-overflow="true"
           label="不合格数量"
         >
@@ -131,6 +141,7 @@
           prop="approver"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="当前审理人"
         >
@@ -139,6 +150,7 @@
           prop="responsibleName"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="责任人"
         >
@@ -147,6 +159,7 @@
           prop="disposeAnalyse"
           header-align="center"
           align="center"
+          width="100"
           :show-tooltip-when-overflow="true"
           label="处理分析"
         >
@@ -155,6 +168,7 @@
           prop="analyseName"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="处理分析人"
         >
@@ -163,6 +177,7 @@
           prop="disposeMeasure"
           header-align="center"
           align="center"
+          width="140"
           :show-tooltip-when-overflow="true"
           label="处置措施"
         >
@@ -171,6 +186,7 @@
           prop="measureName"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="处置措施人"
         >
@@ -179,6 +195,7 @@
           prop="verifyConclusion"
           header-align="center"
           align="center"
+          width="140"
           :show-tooltip-when-overflow="true"
           label="验证结论"
         >
@@ -187,6 +204,7 @@
           prop="verifyName"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="验证人"
         >
@@ -195,6 +213,7 @@
           prop="creatorName"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="检验员"
         >
@@ -203,7 +222,7 @@
           prop="createTime"
           header-align="center"
           align="center"
-          :show-tooltip-when-overflow="true"
+          width="160"
           label="检验时间"
         >
         </el-table-column>
@@ -211,6 +230,7 @@
           prop="approveStateStr"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="审理评审状态"
         >
@@ -219,6 +239,7 @@
           prop="reworkCnt"
           header-align="center"
           align="center"
+          width="100"
           :show-tooltip-when-overflow="true"
           label="返工数量"
         >
@@ -227,6 +248,7 @@
           prop="repairCnt"
           header-align="center"
           align="center"
+          width="100"
           :show-tooltip-when-overflow="true"
           label="返修数量"
         >
@@ -235,6 +257,7 @@
           prop="damageCnt"
           header-align="center"
           align="center"
+          width="140"
           :show-tooltip-when-overflow="true"
           label="不合格/报损数量"
         >
@@ -243,6 +266,7 @@
           prop="concessionCnt"
           header-align="center"
           align="center"
+          width="120"
           :show-tooltip-when-overflow="true"
           label="让步接收数量"
         >
@@ -251,6 +275,7 @@
           prop="releaseList"
           header-align="center"
           align="center"
+          width="100"
           :show-tooltip-when-overflow="true"
           label="顾客放行表"
         >
@@ -294,21 +319,21 @@
         >
           <template slot-scope="scope">
             <el-button
-              v-if="isAuth('quality:disqualification:update')"
+              v-if="isAuth('disqualification:invoices:update')"
               type="text"
               size="small"
               @click="updateHandle(scope.row)"
               >编辑</el-button
             >
             <el-button
-              v-if="isAuth('quality:disqualification:updateDispose')"
+              v-if="isAuth('disqualification:invoices:updateDispose')"
               type="text"
               size="small"
               @click="disposeHandle(scope.row)"
               >处理</el-button
             >
             <el-button
-              v-if="isAuth('quality:disqualification:updateVerify')"
+              v-if="isAuth('disqualification:invoices:updateVerify')"
               type="text"
               size="small"
               @click="verifyHandle(scope.row)"
@@ -435,4 +460,4 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-</style>
+</style>

+ 3 - 2
src/views/modules/quality/first.vue

@@ -1,3 +1,4 @@
+<!-- 首件鉴定 -->
 <template>
   <div>
     <template v-if="!updateVisible">
@@ -200,7 +201,7 @@
         >
           <template slot-scope="scope">
             <el-button
-              v-if="isAuth('quality:first:update')"
+              v-if="isAuth('first:authenticate:update')"
               type="text"
               size="small"
               @click="updateHandle(scope.row)"
@@ -311,4 +312,4 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-</style>
+</style>

+ 10 - 2
src/views/modules/quality/unqualified.vue

@@ -1,3 +1,4 @@
+<!-- 不合格品台账 -->
 <template>
   <div>
     <template v-if="!inboundVisible">
@@ -36,6 +37,7 @@
           prop="disqualificationCode"
           header-align="center"
           align="center"
+          min-width="120"
           :show-tooltip-when-overflow="true"
           label="不合格品编码"
         >
@@ -44,6 +46,7 @@
           prop="invoicesCode"
           header-align="center"
           align="center"
+          min-width="120"
           :show-tooltip-when-overflow="true"
           label="审理编码"
         >
@@ -52,6 +55,7 @@
           prop="orderCode"
           header-align="center"
           align="center"
+          min-width="120"
           :show-tooltip-when-overflow="true"
           label="任务单编码"
         >
@@ -60,6 +64,7 @@
           prop="batchNumber"
           header-align="center"
           align="center"
+          min-width="120"
           :show-tooltip-when-overflow="true"
           label="批次号"
         >
@@ -68,6 +73,7 @@
           prop="productName"
           header-align="center"
           align="center"
+          min-width="120"
           :show-tooltip-when-overflow="true"
           label="物料名称"
         >
@@ -76,6 +82,7 @@
           prop="damageCnt"
           header-align="center"
           align="center"
+          min-width="100"
           :show-tooltip-when-overflow="true"
           label="不合格数量"
         >
@@ -84,6 +91,7 @@
           prop="stateStr"
           header-align="center"
           align="center"
+          min-width="120"
           :show-tooltip-when-overflow="true"
           label="处理状态"
         >
@@ -97,7 +105,7 @@
         >
           <template slot-scope="scope">
             <el-button
-              v-if="isAuth('quality:unqualified:putin')"
+              v-if="isAuth('wh:in:inbound')"
               type="text"
               size="small"
               @click="inboundHandle(scope.row)"
@@ -195,4 +203,4 @@ export default {
 }
 </script>
 <style lang="scss" scoped>
-</style>
+</style>

+ 4 - 4
src/views/modules/tech-manage/material-tech.vue

@@ -27,13 +27,13 @@
         <el-form-item>
           <el-button @click="search()">查询</el-button>
           <el-button
-            v-if="isAuth('cus:customer:save')"
+            v-if="isAuth('pro:technologyOption:save')"
             type="primary"
             @click="addOrUpdateHandle(0, false)"
             >新建</el-button
           >
           <el-button
-            v-if="isAuth('cus:customer:save')"
+            v-if="isAuth('pro:technologyOption:noteChangeConfig')"
             type="primary"
             @click="noteChange()"
             >变更通知人设置</el-button
@@ -138,14 +138,14 @@
         >
           <template slot-scope="scope">
             <el-button
-              v-if="isAuth('cus:customer:info')"
+              v-if="isAuth('pro:technologyOption:info')"
               type="text"
               size="small"
               @click="detailHandle(scope.row.optionId)"
               >查看</el-button
             >
             <el-button
-              v-if="isAuth('cus:customer:update')"
+              v-if="isAuth('pro:technologyOption:update')"
               type="text"
               size="small"
               @click="addOrUpdateHandle(scope.row.optionId, false)"

+ 6 - 5
src/views/modules/tech-manage/process-manage.vue

@@ -1,3 +1,4 @@
+<!-- 关键、特殊过程管理 -->
 <template>
   <div>
     <template
@@ -50,13 +51,13 @@
         <el-form-item>
           <el-button @click="search()">查询</el-button>
           <el-button
-            v-if="isAuth('process-manage:insert')"
+            v-if="isAuth('pro:cruxCourse:save')"
             type="primary"
             @click="addOrUpdateHandle(0, false)"
             >新建</el-button
           >
           <el-button
-            v-if="isAuth('process-manage:change')"
+            v-if="isAuth('pro:cruxCourse:noteChangeConfig')"
             type="primary"
             @click="noteChange()"
             >变更通知人设置</el-button
@@ -177,21 +178,21 @@
         >
           <template slot-scope="scope">
             <el-button
-              v-if="isAuth('process-manage:list')"
+              v-if="isAuth('pro:cruxCourse:info')"
               type="text"
               size="small"
               @click="detailHandle(scope.row.cruxId)"
               >查看</el-button
             >
             <el-button
-              v-if="isAuth('process-manage:update')"
+              v-if="isAuth('pro:cruxCourse:update')"
               type="text"
               size="small"
               @click="addOrUpdateHandle(scope.row)"
               >编辑</el-button
             >
             <el-button
-              v-if="isAuth('process-manage:change')"
+              v-if="isAuth('pro:cruxCourse:update')"
               type="text"
               size="small"
               @click="changeHandle(scope.row.cruxId)"

+ 3 - 3
src/views/modules/tech/program.vue

@@ -43,7 +43,7 @@
         <el-form-item>
           <el-button @click="queryData()">查询</el-button>
           <el-button
-            v-if="isAuth('pro:worktype:save')"
+            v-if="isAuth('pro:program:save')"
             type="primary"
             @click="addOrUpdateHandle(0, false)"
             >新建</el-button
@@ -200,7 +200,7 @@
                     @click="showDetail(scope.row.programId)"
                     >查看</el-button>
                 <el-button
-                    v-if="isAuth('work:clt:start')"
+                    v-if="isAuth('pro:program:update')"
                     type="text"
                     size="small"
                     @click="addOrUpdateHandle(scope.row.taskId, scope.row)"
@@ -314,4 +314,4 @@ export default {
 </script>
 
 <style scoped>
-</style>
+</style>

+ 1 - 1
src/views/modules/works/work-center.vue

@@ -230,7 +230,7 @@
                     @click="showDetail(scope.row.taskId)"
                     >查看</el-button>
                 <el-button
-                    v-if="isAuth('work:clt:start') && Number(scope.row.state) < 2"
+                    v-if="isAuth('work:clt:update') && Number(scope.row.state) < 2"
                     type="text"
                     size="small"
                     @click="addOrUpdateHandle(scope.row.taskId, scope.row)"