Browse Source

任务处理中心:列表显示工艺预览

chrislee 1 năm trước cách đây
mục cha
commit
d5ab35a31c
1 tập tin đã thay đổi với 21 bổ sung0 xóa
  1. 21 0
      src/views/modules/production/scheduling.vue

+ 21 - 0
src/views/modules/production/scheduling.vue

@@ -54,6 +54,14 @@
           :show-tooltip-when-overflow="true"
           label="物料名称">
         </el-table-column>
+        <el-table-column
+          header-align="center"
+          align="center"
+          label="对应工艺">
+          <template slot-scope="scope">
+            <el-button :disabled="!scope.row.techId" type="text" size="small" @click="techDetails(scope.row.techId)">查看</el-button>
+          </template>
+        </el-table-column>
         <el-table-column
           prop="cnt"
           header-align="center"
@@ -158,6 +166,8 @@
     <scheduling-check v-if="checkVisible" ref="check" @refreshDataList="getDataList" @onChose="onChose"/>
     <!-- 试制前检查 -->
     <scheduling-pre-check v-if="preCheckVisible" ref="preCheck" @refreshDataList="getDataList" @onChose="onChose"/>
+    <!-- 对应工艺 -->
+    <crafts-detail v-if="craftsVisible" ref="craftsDetail"/>
   </div>
 </template>
 
@@ -170,9 +180,11 @@
   import PurchaseAddOrUpdate from '@/views/modules/sale/purchase-add-or-update'
   import SchedulingPurchase from '@/views/modules/production/scheduling-purchase'
   import SchedulingCommission from '@/views/modules/production/scheduling-commission'
+  import CraftsDetail from '@/views/modules/tech/crafts-detail-dialog'
 export default {
     name: 'scheduling',
     components: {
+      CraftsDetail,
       SchedulingCommission,
       SchedulingPurchase,
       PurchaseAddOrUpdate,
@@ -187,6 +199,7 @@ export default {
         checkVisible: false,
         preCheckVisible: false,
         purchaseVisible: false,
+        craftsVisible: false,
         dataForm: {},
         dataList: [],
         pageIndex: 1,
@@ -253,6 +266,7 @@ export default {
         this.checkVisible = false
         this.preCheckVisible = false
         this.purchaseVisible = false
+        this.craftsVisible = false
       },
       // 查询
       queryPage () {
@@ -353,6 +367,13 @@ export default {
         this.$nextTick(() => {
           this.$refs.preCheck.init(id)
         })
+      },
+      // 对应工艺
+      techDetails (id) {
+        this.craftsVisible = true
+        this.$nextTick(() => {
+          this.$refs.craftsDetail.init(id)
+        })
       }
     }
   }