diff --git a/src/api/inout/splitCode.js b/src/api/inout/splitCode.js new file mode 100644 index 00000000..b373787b --- /dev/null +++ b/src/api/inout/splitCode.js @@ -0,0 +1,12 @@ + +import axios from "@/utils/request" + + +export function materialPrescribePage(query) { + return axios({ + url: "/udiwms/ioSplit/material/prescribe/filter", + method: "get", + params: query + }); +} + diff --git a/src/assets/styles/ruoyi.scss b/src/assets/styles/ruoyi.scss index 42c78b96..7c2d0d60 100644 --- a/src/assets/styles/ruoyi.scss +++ b/src/assets/styles/ruoyi.scss @@ -90,7 +90,8 @@ .el-dialog { .el-dialog__header { } - .el-dialog__body{ + + .el-dialog__body { //padding: 0; } @@ -356,12 +357,12 @@ /*transition: all .5s;*/ } -.dialog-footer{ +.dialog-footer { text-align: right; } .el-table--mini .el-table__cell { - padding:0px!important; + padding: 0px !important; } .order-el-row { @@ -382,10 +383,4 @@ // margin-top: -10px; //} -.query-form-item { - margin-right: 5px; - margin-bottom: 51px; -} - - diff --git a/src/views/inout/DialogCreateOrder.vue b/src/views/inout/DialogCreateOrder.vue index ae8988f6..476a6289 100644 --- a/src/views/inout/DialogCreateOrder.vue +++ b/src/views/inout/DialogCreateOrder.vue @@ -36,23 +36,6 @@ 撤回单据 - - - - - - - - - - - - - - - - - @@ -81,8 +64,6 @@ - - - + + + + + {{ item.workplaceName }} + {{ + item.workplaceId + }} + + + + + + - - - + - - - - - - - - - - - - - - - - - + - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -660,6 +619,7 @@ import {getDetailBizs} from "@/api/inout/orderDetailCode"; import {filterNoPage, page, remoteFilter} from "@/api/basic/sicker/skPersonApi"; import {selectSysParamByKey} from "@/api/param/systemParamConfig"; import dialogInvProduct from "@/views/inout/DialogSelectInvProduct"; +import {listPage} from "@/api/basic/sysWorkplaceManage"; export default { name: "ioCreateOrder", @@ -693,6 +653,12 @@ export default { type: Object, required: true, }, + splitBusType: {//科室拆零单据类型 + type: Object, + default: null, + required: true, + }, + }, data() { return { @@ -716,6 +682,7 @@ export default { preSpaceCode: null, preCurSpaceCode: null, //单据 sickerAdNum: null, + workPlaceCode: null, }, detailList: [], @@ -744,6 +711,8 @@ export default { curPreSpaceOptions: [], //寄售货位 curSpaceOptions: [], //当前货位 + curWorkPlaces: [], + curAction: { corpType: 0, genUnit: false, @@ -858,6 +827,7 @@ export default { //this.orderFormData.invCode = this.curInvOptions[0].code; this.getBusTypeByInv(); this.findCurSpaceList(this.orderFormData.invCode); + this.findCurWorkPlaces(); } }) .catch(() => { @@ -908,7 +878,9 @@ export default { findByInvUser(query) .then((response) => { this.busTypeOptions = response.data || []; - if (this.busTypeOptions.length == 1) { + if (this.splitBusType != null) + this.orderFormData.action = this.splitBusType; + else if (this.busTypeOptions.length == 1) { this.orderFormData.action = this.busTypeOptions[0].action; this.actionChange(this.orderFormData.action) } @@ -1204,6 +1176,21 @@ export default { }) }, + //获取当前货位 + findCurWorkPlaces(val) { + let query = { + key: val, + status: 1, + invCode: this.orderFormData.invCode, + page: 1, + limit: 100, + } + listPage(query).then((res) => { + this.curWorkPlaces = res.data.list || []; + }) + }, + + addInvProduct() { this.invQueryData.invCode = this.orderFormData.invCode; this.selectInvProductVisible = true; @@ -1238,6 +1225,9 @@ export default { this.$message.warning("请选择单据类型!"); return; } + if (this.splitBusType != null) { + this.orderFormData.fromCorp = "72198012799726"; + } if (this.curAction.corpType === 0 || this.curAction.corpType === 2 || (this.curAction.corpType === 1 && !this.curAction.genUnit)) { if (this.$isBlank(this.orderFormData.fromCorp) && this.$isBlank(this.orderFormData.sickerAdNum)) { this.$message.warning("请选择往来单位!"); @@ -1246,13 +1236,13 @@ export default { } if (this.curAction.corpType == 3) { if (this.$isBlank(this.orderFormData.fromInvCode)) { - this.$message.warning("请选择往来单位!"); + this.$message.warning("请选择往来仓库!"); return; } } if (this.curAction.corpType === 1 && this.curAction.genUnit) { if (this.$isBlank(this.orderFormData.fromCorp) && this.$isBlank(this.orderFormData.sickerAdNum)) { - this.$message.warning("请选择往来单位!"); + this.$message.warning("请输入患者信息!"); return; } } @@ -1556,24 +1546,24 @@ export default { ); tQuery.orderId = this.orderFormData.billNo; console.log(tQuery.orderId); - if (val == 1){ + if (val == 1) { //校验btn this.checkLoading = true - }else if (val == 2){ + } else if (val == 2) { //扫码btn this.codeLoading = true - }else { + } else { this.submitLoading = true } if (this.viewType == 2) { //扫码单据立即提交 submitCodes(tQuery).then((response) => { - if (val == 1){ + if (val == 1) { //校验btn this.checkLoading = false - }else if (val == 2){ + } else if (val == 2) { //扫码btn this.codeLoading = false - }else { + } else { this.submitLoading = false } @@ -1590,13 +1580,13 @@ export default { else tQuery.fromVailPi = 1; submitBiz(tQuery).then((response) => { - if (val == 1){ + if (val == 1) { //校验btn this.checkLoading = false - }else if (val == 2){ + } else if (val == 2) { //扫码btn this.codeLoading = false - }else { + } else { this.submitLoading = false } if (response.code === 20000) { @@ -1608,13 +1598,13 @@ export default { }); } else if (this.viewType == 4) { submitAllocateBiz(tQuery).then((response) => { - if (val == 1){ + if (val == 1) { //校验btn this.checkLoading = false - }else if (val == 2){ + } else if (val == 2) { //扫码btn this.codeLoading = false - }else { + } else { this.submitLoading = false } @@ -1912,7 +1902,6 @@ export default { this.findSickMethod(this.orderFormData.sickerAdNum) this.orderFormData.fromCorp = this.sickerAdNum } - } if (this.viewTypeKsck) { this.curAction.corpType = 1 diff --git a/src/views/inout/IoSplitScanCode.vue b/src/views/inout/IoSplitScanCode.vue new file mode 100644 index 00000000..431e2455 --- /dev/null +++ b/src/views/inout/IoSplitScanCode.vue @@ -0,0 +1,743 @@ + + + + + + diff --git a/src/views/inout/split/PrescribeTagCode.vue b/src/views/inout/split/PrescribeTagCode.vue new file mode 100644 index 00000000..3b99ba8c --- /dev/null +++ b/src/views/inout/split/PrescribeTagCode.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/src/views/inout/split/codePanel.vue b/src/views/inout/split/codePanel.vue new file mode 100644 index 00000000..14aeffbc --- /dev/null +++ b/src/views/inout/split/codePanel.vue @@ -0,0 +1,17 @@ + + + + + diff --git a/src/views/inout/split/prescribePanel.vue b/src/views/inout/split/prescribePanel.vue new file mode 100644 index 00000000..fd089512 --- /dev/null +++ b/src/views/inout/split/prescribePanel.vue @@ -0,0 +1,682 @@ + + + + + diff --git a/src/views/system/customConfig/configDetail.vue b/src/views/system/customConfig/configDetail.vue index 072f3322..d04cdba7 100644 --- a/src/views/system/customConfig/configDetail.vue +++ b/src/views/system/customConfig/configDetail.vue @@ -46,7 +46,7 @@ - + - + sss - +