chrislee 1 year ago
parent
commit
25f6fde185

+ 5 - 5
src/views/modules/order/order-detail.vue

@@ -174,7 +174,7 @@
             :show-tooltip-when-overflow="true"
             label="技术文件">
             <template slot-scope="scope">
-              <el-button :disabled="!scope.row.attachList || scope.row.attachList.length === 0" type="text" size="small" @click="attachDetails(scope.row)">查看</el-button>
+              <el-button :disabled="!scope.row.attachList || scope.row.attachList.length === 0" type="text" size="small" @click="attachDetails(scope.row.attachList)">查看</el-button>
             </template>
           </el-table-column>
           <el-table-column
@@ -229,7 +229,7 @@
             :show-tooltip-when-overflow="true"
             label="试制前准备状态检查报告">
             <template slot-scope="scope">
-              <el-button :disabled="!scope.row.attachListInspection || scope.row.attachListInspection.length === 0" type="text" size="small" @click="attachDetails(scope.row)">查看</el-button>
+              <el-button :disabled="!scope.row.attachListInspection || scope.row.attachListInspection.length === 0" type="text" size="small" @click="attachDetails(scope.row.attachListInspection)">查看</el-button>
             </template>
           </el-table-column>
           <el-table-column
@@ -239,7 +239,7 @@
             :show-tooltip-when-overflow="true"
             label="试制前准备状态自查表">
             <template slot-scope="scope">
-              <el-button :disabled="!scope.row.attachListExamine || scope.row.attachListExamine.length === 0" type="text" size="small" @click="attachDetails(scope.row)">查看</el-button>
+              <el-button :disabled="!scope.row.attachListExamine || scope.row.attachListExamine.length === 0" type="text" size="small" @click="attachDetails(scope.row.attachListExamine)">查看</el-button>
             </template>
           </el-table-column>
           <el-table-column
@@ -495,10 +495,10 @@ export default {
         })
       },
       // 物料技术文件
-      attachDetails (row) {
+      attachDetails (list) {
         this.attachVisible = true
         this.$nextTick(() => {
-          this.$refs.attachDetail.init(row.attachList)
+          this.$refs.attachDetail.init(list)
         })
       },
       // 对应工艺

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

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