| 
														
															@@ -1,7 +1,7 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 <!-- 任务处理中心 --> 
														 | 
														
														 | 
														
															 <!-- 任务处理中心 --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 <template> 
														 | 
														
														 | 
														
															 <template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   <div class="production"> 
														 | 
														
														 | 
														
															   <div class="production"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    <template v-if="!detailsVisible && !outsourceVisible && !checkVisible && !preCheckVisible && !purchaseVisible && !printLabelVisible"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    <template v-if="!detailsVisible && !outsourceVisible && !checkVisible && !preCheckVisible && !purchaseVisible && !printLabelVisible && !addOrUpdateVisible"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       <el-header style="font-size: large;text-align: center">任务处理中心</el-header> 
														 | 
														
														 | 
														
															       <el-header style="font-size: large;text-align: center">任务处理中心</el-header> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       <el-form> 
														 | 
														
														 | 
														
															       <el-form> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <el-form-item> 
														 | 
														
														 | 
														
															         <el-form-item> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -210,6 +210,8 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <crafts-detail v-if="craftsVisible" ref="craftsDetail"/> 
														 | 
														
														 | 
														
															     <crafts-detail v-if="craftsVisible" ref="craftsDetail"/> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <!-- 打印标签 --> 
														 | 
														
														 | 
														
															     <!-- 打印标签 --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <print-label v-if="printLabelVisible" ref="printLabel" @onChose="onChose" @addOne="addOneClick"/> 
														 | 
														
														 | 
														
															     <print-label v-if="printLabelVisible" ref="printLabel" @onChose="onChose" @addOne="addOneClick"/> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    <!-- 弹窗, 新增 / 修改 --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" :options-type="optionsType" @refreshDataList="getDataList" @onChose="onChose"></add-or-update> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   </div> 
														 | 
														
														 | 
														
															   </div> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 </template> 
														 | 
														
														 | 
														
															 </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -223,8 +225,10 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   import SchedulingPurchase from '@/views/modules/production/scheduling-purchase' 
														 | 
														
														 | 
														
															   import SchedulingPurchase from '@/views/modules/production/scheduling-purchase' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   import SchedulingCommission from '@/views/modules/production/scheduling-commission' 
														 | 
														
														 | 
														
															   import SchedulingCommission from '@/views/modules/production/scheduling-commission' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   import CraftsDetail from '@/views/modules/tech/crafts-detail-dialog' 
														 | 
														
														 | 
														
															   import CraftsDetail from '@/views/modules/tech/crafts-detail-dialog' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import {downloadUrl} from '@/api/file' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  import {downloadUrl} from '@/api/file' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   import PrintLabel from '@/views/modules/production/components/print-label.vue' 
														 | 
														
														 | 
														
															   import PrintLabel from '@/views/modules/production/components/print-label.vue' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  import AddOrUpdate from '@/views/modules/sale/purchase-add-or-update' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  import { getDictList } from '@/api/dict' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 export default { 
														 | 
														
														 | 
														
															 export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     name: 'scheduling', 
														 | 
														
														 | 
														
															     name: 'scheduling', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     components: { 
														 | 
														
														 | 
														
															     components: { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -235,7 +239,8 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       PurchaseAddOrUpdate, 
														 | 
														
														 | 
														
															       PurchaseAddOrUpdate, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       SchedulingPreCheck, 
														 | 
														
														 | 
														
															       SchedulingPreCheck, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       SchedulingCheck, 
														 | 
														
														 | 
														
															       SchedulingCheck, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      Detail 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      Detail, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      AddOrUpdate 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       // Outsource 
														 | 
														
														 | 
														
															       // Outsource 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     data () { 
														 | 
														
														 | 
														
															     data () { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -247,6 +252,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         purchaseVisible: false, 
														 | 
														
														 | 
														
															         purchaseVisible: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         craftsVisible: false, 
														 | 
														
														 | 
														
															         craftsVisible: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         printLabelVisible: false, 
														 | 
														
														 | 
														
															         printLabelVisible: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        addOrUpdateVisible: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         dataForm: {}, 
														 | 
														
														 | 
														
															         dataForm: {}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         dataList: [], 
														 | 
														
														 | 
														
															         dataList: [], 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         pageIndex: 1, 
														 | 
														
														 | 
														
															         pageIndex: 1, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -303,10 +309,12 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         multipleSelection: [], 
														 | 
														
														 | 
														
															         multipleSelection: [], 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         selectedRows:[], 
														 | 
														
														 | 
														
															         selectedRows:[], 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         batchIncomeBtnDisabled: false, 
														 | 
														
														 | 
														
															         batchIncomeBtnDisabled: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        batchBtnDisabled: false 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        batchBtnDisabled: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        optionsType: [], 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       } 
														 | 
														
														 | 
														
															       } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     created () { 
														 | 
														
														 | 
														
															     created () { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      this.getTypeList() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.getDataList() 
														 | 
														
														 | 
														
															       this.getDataList() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     methods: { 
														 | 
														
														 | 
														
															     methods: { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -321,6 +329,15 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.selectedRows = [] 
														 | 
														
														 | 
														
															         this.selectedRows = [] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.batchIncomeBtnDisabled = false 
														 | 
														
														 | 
														
															         this.batchIncomeBtnDisabled = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.batchBtnDisabled = false 
														 | 
														
														 | 
														
															         this.batchBtnDisabled = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        this.addOrUpdateVisible = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+       // 获取采购类别字典 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      getTypeList () { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        getDictList({type: 'purchase_type'}).then(({data}) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          if (data) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            this.optionsType = data 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       }, 
														 | 
														
														 | 
														
															       }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       // 查询 
														 | 
														
														 | 
														
															       // 查询 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       queryPage () { 
														 | 
														
														 | 
														
															       queryPage () { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -502,9 +519,24 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															            return 
														 | 
														
														 | 
														
															            return 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        this.purchaseVisible = true 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        let list = [] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        this.selectedRows.forEach(item => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          list.push({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            detailId:Math.round(Math.random() * 1000000), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            materialName: item.materialName, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            specification:item.productSpec, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            purchaseType: '', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            cnt:item.cnt, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            unitName:'', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            deadline:'', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            batchNumber:item.batchNumber, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            notes:'' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        this.addOrUpdateVisible = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.$nextTick(() => { 
														 | 
														
														 | 
														
															         this.$nextTick(() => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-          this.$refs.purchase.init(this.selectedRows) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          this.$refs.addOrUpdate.init(0, null, null, list) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }) 
														 | 
														
														 | 
														
															         }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       }, 
														 | 
														
														 | 
														
															       }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       //批量转委外 
														 | 
														
														 | 
														
															       //批量转委外 
														 |