|  |  |  | @ -151,6 +151,14 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                         </el-button | 
			
		
	
		
			
				
					|  |  |  |  |                         > | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <!--                        <el-button--> | 
			
		
	
		
			
				
					|  |  |  |  |                         <!--                            type="text"--> | 
			
		
	
		
			
				
					|  |  |  |  |                         <!--                            size="small"--> | 
			
		
	
		
			
				
					|  |  |  |  |                         <!--                            @click.native.stop="rollBack(scope.row)"--> | 
			
		
	
		
			
				
					|  |  |  |  |                         <!--                        >撤回--> | 
			
		
	
		
			
				
					|  |  |  |  |                         <!--                        </el-button--> | 
			
		
	
		
			
				
					|  |  |  |  |                         <!--                        >--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-button | 
			
		
	
		
			
				
					|  |  |  |  |                             type="text" | 
			
		
	
	
		
			
				
					|  |  |  | @ -218,7 +226,8 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                     label="生产日期" | 
			
		
	
		
			
				
					|  |  |  |  |                     prop="productDate" | 
			
		
	
		
			
				
					|  |  |  |  |                     :show-overflow-tooltip="true" | 
			
		
	
		
			
				
					|  |  |  |  |                 ><template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  |                 > | 
			
		
	
		
			
				
					|  |  |  |  |                     <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <span>{{ convertDateFun(scope.row.productDate) }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                     </template> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-table-column> | 
			
		
	
	
		
			
				
					|  |  |  | @ -226,9 +235,11 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                     label="失效日期" | 
			
		
	
		
			
				
					|  |  |  |  |                     prop="expireDate" | 
			
		
	
		
			
				
					|  |  |  |  |                     :show-overflow-tooltip="true" | 
			
		
	
		
			
				
					|  |  |  |  |                 > <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  |                 > | 
			
		
	
		
			
				
					|  |  |  |  |                     <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <span>{{ convertDateFun(scope.row.expireDate) }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                 </template></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |                     </template> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |                     label="单据数量" | 
			
		
	
		
			
				
					|  |  |  |  |                     prop="erpCount" | 
			
		
	
	
		
			
				
					|  |  |  | @ -377,6 +388,7 @@ import {filterSubByInv} from "@/api/basic/invSubWarehouse"; | 
			
		
	
		
			
				
					|  |  |  |  | import {isBlank} from "@/utils/strUtil"; | 
			
		
	
		
			
				
					|  |  |  |  | import {selectSysParamByKey} from "@/api/param/systemParamConfig"; | 
			
		
	
		
			
				
					|  |  |  |  | import {convertDate} from "@/utils/date" | 
			
		
	
		
			
				
					|  |  |  |  | import {rollbackOrder} from "@/api/warehouse/stockOrder"; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | const formJson = { | 
			
		
	
		
			
				
					|  |  |  |  |     site_id: "", | 
			
		
	
	
		
			
				
					|  |  |  | @ -394,7 +406,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     data() { | 
			
		
	
		
			
				
					|  |  |  |  |         return { | 
			
		
	
		
			
				
					|  |  |  |  |             convertDateFun:convertDate, | 
			
		
	
		
			
				
					|  |  |  |  |             convertDateFun: convertDate, | 
			
		
	
		
			
				
					|  |  |  |  |             query: { | 
			
		
	
		
			
				
					|  |  |  |  |                 page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |                 limit: 10, | 
			
		
	
	
		
			
				
					|  |  |  | @ -732,32 +744,49 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             // this.dialogTableVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         getUnitList() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.loading = true; | 
			
		
	
		
			
				
					|  |  |  |  |             this.loading = true;                    this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             unitListBykey(this.unitquery) | 
			
		
	
		
			
				
					|  |  |  |  |                 .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |                     this.unitlist = response.data.list || []; | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         intentDetail(row) { | 
			
		
	
		
			
				
					|  |  |  |  |             // this.$router.push({ | 
			
		
	
		
			
				
					|  |  |  |  |             //   path: "../inout/detail", | 
			
		
	
		
			
				
					|  |  |  |  |             //   query: { id: row.id }, | 
			
		
	
		
			
				
					|  |  |  |  |         // rollBack(row) { | 
			
		
	
		
			
				
					|  |  |  |  |         //     this.$confirm('此操作将撤回单据到草稿状态,需重新提交, 是否继续?', '提示', { | 
			
		
	
		
			
				
					|  |  |  |  |         //         confirmButtonText: '确定', | 
			
		
	
		
			
				
					|  |  |  |  |         //         cancelButtonText: '取消', | 
			
		
	
		
			
				
					|  |  |  |  |         //         type: 'warning' | 
			
		
	
		
			
				
					|  |  |  |  |         //     }).then(() => { | 
			
		
	
		
			
				
					|  |  |  |  |         //         let param = {billNo: row.billNo}; | 
			
		
	
		
			
				
					|  |  |  |  |         //         rollbackOrder(param).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |         //             if (res.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |         //                 this.$message.success("撤回成功"); | 
			
		
	
		
			
				
					|  |  |  |  |         //                 this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |         //             } else { | 
			
		
	
		
			
				
					|  |  |  |  |         //                 this.$message.error(res.message); | 
			
		
	
		
			
				
					|  |  |  |  |         //             } | 
			
		
	
		
			
				
					|  |  |  |  |         //         }) | 
			
		
	
		
			
				
					|  |  |  |  |         //     }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |         //         // this.$message.info('回退失败'); | 
			
		
	
		
			
				
					|  |  |  |  |         //     }); | 
			
		
	
		
			
				
					|  |  |  |  |         // }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         intentDetail(row) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.codeDetailVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |             this.idQuery.id = row.id; | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         successOrderExportPDFSetting(row) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.idQuery.id = ''; | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.$isNotBlank(row.id)) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.idQuery.id = row.id; | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             this.successOrderExportPDFSettingVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         successOrderExportPDF(row) { | 
			
		
	
		
			
				
					|  |  |  |  |             let tQuery = { | 
			
		
	
		
			
				
					|  |  |  |  |                 orderId: row.id, | 
			
		
	
	
		
			
				
					|  |  |  | @ -786,11 +815,13 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |             }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         closeDialog() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.successOrderExportPDFSettingVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |             this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         selectUnit(row) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.unitUpdateQuery.id = this.curIndex; | 
			
		
	
	
		
			
				
					|  |  |  | @ -804,7 +835,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.dialogTableVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         deleteOrders(data) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.loading = true; | 
			
		
	
		
			
				
					|  |  |  |  |             this.deleteData.id = data; | 
			
		
	
	
		
			
				
					|  |  |  | @ -824,14 +856,16 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         tableRowClassName({row, rowIndex}) { | 
			
		
	
		
			
				
					|  |  |  |  |             if (row.reCount === row.count) { | 
			
		
	
		
			
				
					|  |  |  |  |                 return "success-row"; | 
			
		
	
		
			
				
					|  |  |  |  |             } else { | 
			
		
	
		
			
				
					|  |  |  |  |                 return "warning-row"; | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         exportDialog(value) { | 
			
		
	
		
			
				
					|  |  |  |  |             var mOrder = value; | 
			
		
	
	
		
			
				
					|  |  |  | @ -880,7 +914,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                     .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                     }); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         uploadOrderDialog(value) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -898,7 +933,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         deleteDialog(rowId) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.$confirm("此操作将永久删除该订单, 是否继续?", "提示", { | 
			
		
	
	
		
			
				
					|  |  |  | @ -911,10 +947,12 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         closeDetailDialog(val) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.codeDetailVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         closeManuDialog(val) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.addDialogVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |             if (val) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -925,16 +963,19 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             } else { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.error("选入失败"); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         cancelDialog() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.addDialogVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         importOrder(row) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.orderId = row.id; | 
			
		
	
		
			
				
					|  |  |  |  |             this.billAction = row.action; | 
			
		
	
		
			
				
					|  |  |  |  |             this.curLocInv = row.locStorageCode; | 
			
		
	
		
			
				
					|  |  |  |  |             this.addDialogVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         getBusType() { | 
			
		
	
		
			
				
					|  |  |  |  |             let query = { | 
			
		
	
		
			
				
					|  |  |  |  |                 code: this.filterQuery.invWarehouseCode, | 
			
		
	
	
		
			
				
					|  |  |  | @ -948,14 +989,16 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         getActionName(action) { | 
			
		
	
		
			
				
					|  |  |  |  |             for (let i = 0; i < this.busTypes.length; i++) { | 
			
		
	
		
			
				
					|  |  |  |  |                 if (this.busTypes[i].action === action) { | 
			
		
	
		
			
				
					|  |  |  |  |                     return this.busTypes[i].name; | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         getStorage() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.storageList = []; | 
			
		
	
		
			
				
					|  |  |  |  |             filterAllByUser() | 
			
		
	
	
		
			
				
					|  |  |  | @ -968,7 +1011,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         invChange() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.filterQuery.invWarehouseCode = ""; | 
			
		
	
		
			
				
					|  |  |  |  |             this.subInvList = []; | 
			
		
	
	
		
			
				
					|  |  |  | @ -985,7 +1029,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                     .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                     }); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         getSubInvList() { | 
			
		
	
	
		
			
				
					|  |  |  | @ -998,7 +1043,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         subInvChange() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.getBusType(); | 
			
		
	
	
		
			
				
					|  |  |  | @ -1011,14 +1057,17 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 true: "danger", | 
			
		
	
		
			
				
					|  |  |  |  |             }; | 
			
		
	
		
			
				
					|  |  |  |  |             return statusMap[status]; | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |     , | 
			
		
	
		
			
				
					|  |  |  |  |     mounted() { | 
			
		
	
		
			
				
					|  |  |  |  |         document.body.ondrop = function (event) { | 
			
		
	
		
			
				
					|  |  |  |  |             event.preventDefault(); | 
			
		
	
		
			
				
					|  |  |  |  |             event.stopPropagation(); | 
			
		
	
		
			
				
					|  |  |  |  |         }; | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |     , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     created() { | 
			
		
	
		
			
				
					|  |  |  |  |         this.getStorage(); | 
			
		
	
	
		
			
				
					|  |  |  | @ -1038,8 +1087,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | }; | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |     , | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | ; | 
			
		
	
		
			
				
					|  |  |  |  | </script> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |