|  |  |  | @ -93,10 +93,10 @@ | 
			
		
	
		
			
				
					|  |  |  |  |           >查询 | 
			
		
	
		
			
				
					|  |  |  |  |           </el-button | 
			
		
	
		
			
				
					|  |  |  |  |           > | 
			
		
	
		
			
				
					|  |  |  |  |           <el-button type="primary" icon="el-icon-download" @click="downloadPrescription" | 
			
		
	
		
			
				
					|  |  |  |  |           >下载单据 | 
			
		
	
		
			
				
					|  |  |  |  |           </el-button | 
			
		
	
		
			
				
					|  |  |  |  |           > | 
			
		
	
		
			
				
					|  |  |  |  |           <!--          <el-button type="primary" icon="el-icon-download" @click="downloadPrescription"--> | 
			
		
	
		
			
				
					|  |  |  |  |           <!--          >下载单据--> | 
			
		
	
		
			
				
					|  |  |  |  |           <!--          </el-button--> | 
			
		
	
		
			
				
					|  |  |  |  |           <!--          >--> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-button-group> | 
			
		
	
		
			
				
					|  |  |  |  |       </div> | 
			
		
	
		
			
				
					|  |  |  |  |       <el-divider style="margin: 15px"></el-divider> | 
			
		
	
	
		
			
				
					|  |  |  | @ -239,9 +239,12 @@ import addOrder from "@/views/inout/DialogCreateOrder"; | 
			
		
	
		
			
				
					|  |  |  |  | import errOrder from "@/views/inout/IoCreateErrorOrder"; | 
			
		
	
		
			
				
					|  |  |  |  | import {executeFuc, getHead} from "@/utils/customConfig"; | 
			
		
	
		
			
				
					|  |  |  |  | import {convertDate} from "@/utils/date"; | 
			
		
	
		
			
				
					|  |  |  |  | import {detail, page as prescribePage, deleteDataByCode} from "@/api/basic/sicker/prescribeApi"; | 
			
		
	
		
			
				
					|  |  |  |  | import {detail} from "@/api/basic/sicker/prescribeApi"; | 
			
		
	
		
			
				
					|  |  |  |  | import prescribeDownloadDialog from "@/views/collect/prescribe/prescribeDownloadDialog"; | 
			
		
	
		
			
				
					|  |  |  |  | import prescribeOriginPanel from "./PannelOrderBiz"; | 
			
		
	
		
			
				
					|  |  |  |  | import {deleteByOrder, orderPage} from "@/api/collect/collectOrder"; | 
			
		
	
		
			
				
					|  |  |  |  | import {filterSubAllOptimize} from "@/api/system/invSubWarehouse"; | 
			
		
	
		
			
				
					|  |  |  |  | import {filterWorkOptimize} from "@/api/basic/sysWorkplaceManage"; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | export default { | 
			
		
	
		
			
				
					|  |  |  |  |   name: "prescribePanel", | 
			
		
	
	
		
			
				
					|  |  |  | @ -264,6 +267,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       showSearch: true, | 
			
		
	
		
			
				
					|  |  |  |  |       filterQuery: { | 
			
		
	
		
			
				
					|  |  |  |  |         tagStatus:1,    // | 
			
		
	
		
			
				
					|  |  |  |  |         billNo: null, | 
			
		
	
		
			
				
					|  |  |  |  |         page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         limit: 10, | 
			
		
	
	
		
			
				
					|  |  |  | @ -273,7 +277,12 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       list: [], | 
			
		
	
		
			
				
					|  |  |  |  |       total: 0, | 
			
		
	
		
			
				
					|  |  |  |  |       downloadPrescriptionVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       deleteData: {}, | 
			
		
	
		
			
				
					|  |  |  |  |       deleteData: { | 
			
		
	
		
			
				
					|  |  |  |  |         billNo: null, | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       options: { | 
			
		
	
		
			
				
					|  |  |  |  |         sysWorkspace: [], | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       preLoading: false, | 
			
		
	
		
			
				
					|  |  |  |  |       preDetailList: [], | 
			
		
	
	
		
			
				
					|  |  |  | @ -337,7 +346,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     getList() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.loading = true; | 
			
		
	
		
			
				
					|  |  |  |  |       prescribePage(this.filterQuery).then(res => { | 
			
		
	
		
			
				
					|  |  |  |  |       orderPage(this.filterQuery).then(res => { | 
			
		
	
		
			
				
					|  |  |  |  |         this.loading = false | 
			
		
	
		
			
				
					|  |  |  |  |         this.list = res.data.list || [] | 
			
		
	
		
			
				
					|  |  |  |  |         this.total = res.data.total || 0 | 
			
		
	
	
		
			
				
					|  |  |  | @ -362,35 +371,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         _this.panelALive = true; | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     getPrescribeDetail(_this, row) { | 
			
		
	
		
			
				
					|  |  |  |  |       if (row != null) { | 
			
		
	
		
			
				
					|  |  |  |  |         _this.preQuery.page = 1 | 
			
		
	
		
			
				
					|  |  |  |  |         _this.preQuery.prescribeCode = row.code | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       _this.preLoading = true; | 
			
		
	
		
			
				
					|  |  |  |  |       detail(_this.preQuery).then(res => { | 
			
		
	
		
			
				
					|  |  |  |  |         _this.preLoading = false | 
			
		
	
		
			
				
					|  |  |  |  |         if (res.code != 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |           _this.$message.error(res.message) | 
			
		
	
		
			
				
					|  |  |  |  |           return | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         _this.preDetailList = res.data.items | 
			
		
	
		
			
				
					|  |  |  |  |         _this.preLoading = false | 
			
		
	
		
			
				
					|  |  |  |  |       }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |         _this.preLoading = false | 
			
		
	
		
			
				
					|  |  |  |  |         _this.$message.error("数据加载失败") | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     preHandleCurrentChange(val) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.filterQuery.page = val.page; | 
			
		
	
		
			
				
					|  |  |  |  |       this.getPrescribeDetail(this, null); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     preDiHandleCurrentChange(val) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.filterQuery.page = val.page; | 
			
		
	
		
			
				
					|  |  |  |  |       this.getPrescribeDetail(this, null); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     deleteDialog(_this, row) { | 
			
		
	
		
			
				
					|  |  |  |  |       _this.$confirm("此操作将永久删除该订单, 是否继续?", "提示", { | 
			
		
	
	
		
			
				
					|  |  |  | @ -406,8 +386,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     deleteOrders(data) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.loading = true; | 
			
		
	
		
			
				
					|  |  |  |  |       this.deleteData.code = data; | 
			
		
	
		
			
				
					|  |  |  |  |       deleteDataByCode(this.deleteData) | 
			
		
	
		
			
				
					|  |  |  |  |       this.deleteData.billNo = data; | 
			
		
	
		
			
				
					|  |  |  |  |       deleteByOrder(this.deleteData) | 
			
		
	
		
			
				
					|  |  |  |  |         .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |           if (response.code == 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.getList(); | 
			
		
	
	
		
			
				
					|  |  |  | @ -428,6 +408,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   created() { | 
			
		
	
		
			
				
					|  |  |  |  |     getHead("prescribeDownload", "1").then((re) => { | 
			
		
	
	
		
			
				
					|  |  |  | 
 |