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