| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -5,7 +5,7 @@ import {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  confirmChangeOrder, delDraftOrder, rejectChangeOrder, saveChangeOrder, saveDraftOrder,
 | 
					 | 
					 | 
					 | 
					  confirmChangeOrder, delDraftOrder, rejectChangeOrder, saveChangeOrder, saveDraftOrder,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  generateOrderId,delOrderItem,entryOrderItem,updateOrderItem,entryOrderItemChange
 | 
					 | 
					 | 
					 | 
					  generateOrderId,delOrderItem,entryOrderItem,updateOrderItem,entryOrderItemChange
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} from "@/api/dev/deviceChangeOrderApi";
 | 
					 | 
					 | 
					 | 
					} from "@/api/dev/deviceChangeOrderApi";
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import {deviceChangeStatus, deviceChangeType} from "@/utils/enum";
 | 
					 | 
					 | 
					 | 
					import {deviceChangeStatus, deviceChangeType,ApprovalFlowEnum} from "@/utils/enum";
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import "@/store/getters";
 | 
					 | 
					 | 
					 | 
					import "@/store/getters";
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import {genDeviceCode} from "@/api/dev/deviceInfoApi";
 | 
					 | 
					 | 
					 | 
					import {genDeviceCode} from "@/api/dev/deviceInfoApi";
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import deviceInfo from "@/views/dev/deviceInfo.vue";
 | 
					 | 
					 | 
					 | 
					import deviceInfo from "@/views/dev/deviceInfo.vue";
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -16,6 +16,7 @@ import deptDeviceDetail from "@/views/dev/DeptDeviceDetail.vue";
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import dialogDeviceInvProduct from "@/views/dev/DialogDeviceSelectInvProduct.vue";
 | 
					 | 
					 | 
					 | 
					import dialogDeviceInvProduct from "@/views/dev/DialogDeviceSelectInvProduct.vue";
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import dialogDeviceSelectAdd from "@/views/dev/DialogDeviceSelectAdd.vue";
 | 
					 | 
					 | 
					 | 
					import dialogDeviceSelectAdd from "@/views/dev/DialogDeviceSelectAdd.vue";
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import fa from "element-ui/src/locale/lang/fa";
 | 
					 | 
					 | 
					 | 
					import fa from "element-ui/src/locale/lang/fa";
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import approvalFlowDetail from "@/components/ApprovalFlow/deviceChangeOrderDestroy";
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					let query = {
 | 
					 | 
					 | 
					 | 
					let query = {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  page: 1,
 | 
					 | 
					 | 
					 | 
					  page: 1,
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -36,6 +37,7 @@ let createData = {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  type: deviceChangeType.CHANGE.key,
 | 
					 | 
					 | 
					 | 
					  type: deviceChangeType.CHANGE.key,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  toDeptCode: null,
 | 
					 | 
					 | 
					 | 
					  toDeptCode: null,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  deptCode: null,
 | 
					 | 
					 | 
					 | 
					  deptCode: null,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  billNo: null,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  destroyType: null,
 | 
					 | 
					 | 
					 | 
					  destroyType: null,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  name: null,
 | 
					 | 
					 | 
					 | 
					  name: null,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  remark: null,
 | 
					 | 
					 | 
					 | 
					  remark: null,
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -68,7 +70,7 @@ export default {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      required: true,
 | 
					 | 
					 | 
					 | 
					      required: true,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  },
 | 
					 | 
					 | 
					 | 
					  },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  components: {deviceInfo, product, deviceModifyDialog,deptDeviceDetail,dialogDeviceInvProduct,dialogDeviceSelectAdd},
 | 
					 | 
					 | 
					 | 
					  components: {deviceInfo, product, deviceModifyDialog,deptDeviceDetail,dialogDeviceInvProduct,dialogDeviceSelectAdd,approvalFlowDetail},
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  computed: {
 | 
					 | 
					 | 
					 | 
					  computed: {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    deviceChangeStatus() {
 | 
					 | 
					 | 
					 | 
					    deviceChangeStatus() {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      return deviceChangeStatus
 | 
					 | 
					 | 
					 | 
					      return deviceChangeStatus
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -76,6 +78,10 @@ export default {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    deviceChangeType() {
 | 
					 | 
					 | 
					 | 
					    deviceChangeType() {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      return deviceChangeType
 | 
					 | 
					 | 
					 | 
					      return deviceChangeType
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    ,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    ApprovalFlowEnum() {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      return ApprovalFlowEnum
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  },
 | 
					 | 
					 | 
					 | 
					  },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  data() {
 | 
					 | 
					 | 
					 | 
					  data() {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    return {
 | 
					 | 
					 | 
					 | 
					    return {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -87,6 +93,8 @@ export default {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      showSearch: true,
 | 
					 | 
					 | 
					 | 
					      showSearch: true,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      loading: false,
 | 
					 | 
					 | 
					 | 
					      loading: false,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      query: {...query},
 | 
					 | 
					 | 
					 | 
					      query: {...query},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      approvalFlowDetailVisible:false,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      idQuery: {  },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      list: [],
 | 
					 | 
					 | 
					 | 
					      list: [],
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      total: 0,
 | 
					 | 
					 | 
					 | 
					      total: 0,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      // =======详情========================================
 | 
					 | 
					 | 
					 | 
					      // =======详情========================================
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -175,6 +183,14 @@ export default {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  },
 | 
					 | 
					 | 
					 | 
					  },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  methods: {
 | 
					 | 
					 | 
					 | 
					  methods: {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    closeDialog() {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      this.approvalFlowDetailVisible = false;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      this.getList()
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    handleClose() {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      this.approvalFlowDetailVisible = false;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      this.getList()
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    updateItem() {
 | 
					 | 
					 | 
					 | 
					    updateItem() {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      this.dict.type.device_source_type.forEach((item, index) => {
 | 
					 | 
					 | 
					 | 
					      this.dict.type.device_source_type.forEach((item, index) => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if (this.createData.sourceType == item.value) {
 | 
					 | 
					 | 
					 | 
					        if (this.createData.sourceType == item.value) {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -184,7 +200,23 @@ export default {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      });
 | 
					 | 
					 | 
					 | 
					      });
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    },
 | 
					 | 
					 | 
					 | 
					    },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    saveCache() {
 | 
					 | 
					 | 
					 | 
					    saveCache() {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      if (this.itemList.length == 0) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        this.$confirm(`请添加数据`, "提示", {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          confirmButtonText: "确定",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          type: "error",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        })
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        return
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      if (this.createData.type == deviceChangeType.ADD.key) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      } else if (this.createData.type == deviceChangeType.CHANGE.key){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      }else if (this.createData.type == deviceChangeType.DESTROY.key){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        if (this.createData.destroyType == null){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          this.$message.warning("请选择移除类型后在立即提交")
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          return
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      this.createData.items = this.itemList
 | 
					 | 
					 | 
					 | 
					      this.createData.items = this.itemList
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      let loading = this.$loading({
 | 
					 | 
					 | 
					 | 
					      let loading = this.$loading({
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        lock: true,
 | 
					 | 
					 | 
					 | 
					        lock: true,
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -662,6 +694,10 @@ export default {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        })
 | 
					 | 
					 | 
					 | 
					        })
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      })
 | 
					 | 
					 | 
					 | 
					      })
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    },
 | 
					 | 
					 | 
					 | 
					    },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    showApprovalFlowDetail(row) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      this.idQuery = row
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      this.approvalFlowDetailVisible = true;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    cancel(row) {
 | 
					 | 
					 | 
					 | 
					    cancel(row) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      this.$prompt('请输入备注信息', '提示', {
 | 
					 | 
					 | 
					 | 
					      this.$prompt('请输入备注信息', '提示', {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        confirmButtonText: '确定',
 | 
					 | 
					 | 
					 | 
					        confirmButtonText: '确定',
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |