|
|
|
@ -93,6 +93,10 @@
|
|
|
|
|
>查询
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button type="primary" icon="el-icon-download" @click="downloadData"
|
|
|
|
|
>下载数据
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button type="primary" icon="el-icon-download" @click="downloadPrescription"
|
|
|
|
|
>初始化演示数据
|
|
|
|
|
</el-button
|
|
|
|
@ -246,9 +250,10 @@ import {convertDate} from "@/utils/date";
|
|
|
|
|
import {detail} from "@/api/basic/sicker/prescribeApi";
|
|
|
|
|
import prescribeDownloadDialog from "@/views/collect/prescribe/prescribeDownloadDialog";
|
|
|
|
|
import prescribeOriginPanel from "./PannelOrderBiz";
|
|
|
|
|
import {clearAllOrder, deleteByOrder, importOrder, orderPage} from "@/api/collect/collectOrder";
|
|
|
|
|
import {clearAllOrder, deleteByOrder, importOrder, orderPage,downloadOrder} from "@/api/collect/collectOrder";
|
|
|
|
|
import {filterSubAllOptimize} from "@/api/system/invSubWarehouse";
|
|
|
|
|
import {filterWorkOptimize} from "@/api/basic/workPlace/sysWorkplaceManage";
|
|
|
|
|
import { getWorkBindBusTypes } from '@/api/basic/workPlace/sysWorkplaceDocuments'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "prescribePanel",
|
|
|
|
@ -279,6 +284,12 @@ export default {
|
|
|
|
|
filterQuery: {
|
|
|
|
|
tagStatus: "1", //
|
|
|
|
|
billNo: null,
|
|
|
|
|
busType: null,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
},
|
|
|
|
|
DataQuery: {
|
|
|
|
|
busType: null,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
},
|
|
|
|
@ -292,6 +303,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
options: {
|
|
|
|
|
sysWorkspace: [],
|
|
|
|
|
findWorkPlace: [],
|
|
|
|
|
getBusType: []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
preLoading: false,
|
|
|
|
@ -304,6 +317,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
curRow: null,
|
|
|
|
|
panelALive: false,
|
|
|
|
|
busQuery:{
|
|
|
|
|
workplaceCode: '',
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 100
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -358,7 +376,15 @@ export default {
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
downloadData(){
|
|
|
|
|
downloadOrder(this.filterQuery).then(res => {
|
|
|
|
|
if (res.code == 20000){
|
|
|
|
|
return this.$message.success(res.data)
|
|
|
|
|
}else {
|
|
|
|
|
return this.$message.error("获取错误")
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
clearAllOrder() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
clearAllOrder().then(res => {
|
|
|
|
@ -454,6 +480,51 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
findWorkPlace(_this, val) {
|
|
|
|
|
let query = {
|
|
|
|
|
key: val,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10
|
|
|
|
|
}
|
|
|
|
|
filterWorkOptimize(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
_this.loading = false
|
|
|
|
|
_this.options.findWorkPlace = response.data || []
|
|
|
|
|
if (_this.options.findWorkPlace.length == 1) {
|
|
|
|
|
_this.filterQuery.workPlaceCode = _this.options.findWorkPlace[0].code
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
_this.loading = false
|
|
|
|
|
_this.options.findWorkPlace = []
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
changePlace(_this, query) {
|
|
|
|
|
_this.getWorkBindBusTypes(_this, query)
|
|
|
|
|
},
|
|
|
|
|
getWorkBindBusTypes(_this, query) {
|
|
|
|
|
_this.busQuery.workplaceCode = query
|
|
|
|
|
getWorkBindBusTypes(this.busQuery).then(res => {
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
let busTypes = res.data.list || [];
|
|
|
|
|
// _this.options.getWorkPlace = res.data.list || [];
|
|
|
|
|
let getWorkPlace = busTypes.map(busType => {
|
|
|
|
|
return {
|
|
|
|
|
code: busType.documentTypeCode,
|
|
|
|
|
label: busType.busName
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
_this.options.getBusType = getWorkPlace
|
|
|
|
|
if (_this.options.getBusType.length == 1) {
|
|
|
|
|
_this.filterQuery.busType = _this.options.getBusType[0].code
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
_this.filterQuery.busType = null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
@ -467,6 +538,7 @@ export default {
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
this.filterQuery.tagStatus = this.tagStatus
|
|
|
|
|
this.findWorkPlace(this,'')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|