chris hace 2 años
padre
commit
7f1dfe5bb2

+ 1 - 1
src/views/modules/check/in-bound-check.vue

@@ -1,4 +1,4 @@
-<!-- 入库检验 -->
+<!-- 入厂检验单 -->
 <template>
   <div class="check">
     <template v-if="!addOrUpdateVisible && !exportPageVisible && !export1PageVisible && !detailVisible">

+ 1 - 1
src/views/modules/production/equipment.vue

@@ -129,7 +129,7 @@
           label="操作">
           <template slot-scope="scope">
             <el-button v-if="isAuth('prod:equipment:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.id, false)">编辑</el-button>
-            <el-button v-if="isAuth('prod:equipment:update')" type="text" size="small" @click="damaged(scope.row.id)">报损</el-button>
+            <el-button v-if="isAuth('prod:equipment:updateState')" type="text" size="small" @click="damaged(scope.row.id)">报损</el-button>
   <!--          <el-button v-if="isAuth('prod:equipment:record')" type="text" size="small" @click="addOrUpdateHandle(scope.row.id, true)">点检记录</el-button>-->
           </template>
         </el-table-column>

+ 3 - 3
src/views/modules/production/scheduling-mould.vue

@@ -11,7 +11,7 @@
         </el-form-item>
         <el-form-item>
           <el-button @click="queryPage()">查询</el-button>
-          <el-button type="primary" @click="detail(0, false)">新增模板</el-button>
+          <el-button v-if="isAuth('prod:productionMould:save')" type="primary" @click="detail(0, false)">新增模板</el-button>
         </el-form-item>
       </el-form>
       <el-table
@@ -58,10 +58,10 @@
           fixed="right"
           header-align="center"
           align="center"
-          width="150"
+          width="100"
           label="操作">
           <template slot-scope="scope">
-            <el-button type="text" size="small" @click="detail(scope.row.mouldId, true, scope.row.productName)">编辑</el-button>
+            <el-button v-if="isAuth('prod:productionMould:update')" type="text" size="small" @click="detail(scope.row.mouldId, true, scope.row.productName)">编辑</el-button>
           </template>
         </el-table-column>
       </el-table>

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

@@ -11,8 +11,8 @@
         </el-form-item>
         <el-form-item>
           <el-button @click="queryPage()">查询</el-button>
-          <el-button type="primary" @click="batchPlan()">批量排产</el-button>
-          <el-button type="primary" @click="outsourceHandle2()">批量委外</el-button>
+          <el-button v-if="isAuth('prod:production:planList')" type="primary" @click="batchPlan()">批量排产</el-button>
+          <el-button v-if="isAuth('pur:commDetail:save')" type="primary" @click="outsourceHandle2()">批量委外</el-button>
         </el-form-item>
       </el-form>
       <el-table

+ 2 - 2
src/views/modules/tech/crafts-management.vue

@@ -139,8 +139,8 @@
           width="140"
           label="操作">
           <template slot-scope="scope">
-            <el-button v-if="isAuth('pro:technology:update') && scope.row.state === '1'" type="text" size="small" @click="revokeHandle(scope.row.techId)">撤销</el-button>
-            <el-button v-if="isAuth('pro:technology:update') && scope.row.state === '0'" type="text" size="small" @click="addOrUpdateHandle(scope.row.techId)">编辑</el-button>
+            <el-button v-if="isAuth('pro:technology:revoke') && scope.row.state === '1'" type="text" size="small" @click="revokeHandle(scope.row.techId)">撤销</el-button>
+            <el-button v-if="isAuth('pro:technology:update') && scope.row.state === '0'" type="text" size="small" @click="addOrUpdateHandle(scope.row.techId)">更新</el-button>
             <el-button v-if="isAuth('pro:technology:update') && scope.row.techState === '-1' && scope.row.state === '3'" type="text" size="small" @click="changeStateHandle(scope.row.techId, 0)">启用</el-button>
             <el-button v-if="isAuth('pro:technology:update') && scope.row.techState === '0'" type="text" size="small" @click="changeStateHandle(scope.row.techId, -1)">停用</el-button>
             <el-button v-if="isAuth('pro:technology:info')" type="text" size="small" @click="detailHandle(scope.row.techId, scope.row.productName)">查看</el-button>