From 508eba2a61ae2138087db8a81bcccafb0af47cd4 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Sun, 28 Jul 2024 19:37:11 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B5=8B=E7=A0=81=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inout/splitCode.js | 12 + src/assets/styles/ruoyi.scss | 13 +- src/views/inout/DialogCreateOrder.vue | 163 ++-- src/views/inout/IoSplitScanCode.vue | 743 ++++++++++++++++++ src/views/inout/split/PrescribeTagCode.vue | 36 + src/views/inout/split/codePanel.vue | 17 + src/views/inout/split/prescribePanel.vue | 682 ++++++++++++++++ .../system/customConfig/configDetail.vue | 2 +- .../system/customConfig/configFromDetail.vue | 2 +- .../system/customConfig/configQueryDetail.vue | 32 +- src/views/system/customConfig/index.vue | 392 ++++----- 11 files changed, 1786 insertions(+), 308 deletions(-) create mode 100644 src/api/inout/splitCode.js create mode 100644 src/views/inout/IoSplitScanCode.vue create mode 100644 src/views/inout/split/PrescribeTagCode.vue create mode 100644 src/views/inout/split/codePanel.vue create mode 100644 src/views/inout/split/prescribePanel.vue 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 - + From ae0057f02ab968bddefbfb12c7854991968d6f46 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Mon, 29 Jul 2024 17:24:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E8=8D=AF=E5=93=81=E5=87=BA?= =?UTF-8?q?=E5=85=A5=E5=BA=93=E6=98=8E=E7=BB=86=E3=80=81=E6=B1=87=E6=80=BB?= =?UTF-8?q?=E3=80=81=E5=85=A5=E8=B4=A6=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../drugInout/stat/DialogCreateCustom.vue | 207 ++++ .../drugInout/stat/IoStatCustomSearch.vue | 434 +++++++++ src/views/drugInout/stat/IoStatDaySearch.vue | 381 ++++++++ .../drugInout/stat/IoStatMonthSearch.vue | 376 ++++++++ .../drugInout/stat/IoStatQuarterSearch.vue | 375 ++++++++ src/views/drugInout/stat/IoStatYearSearch.vue | 375 ++++++++ src/views/drugInventory/InvProducts.vue | 707 ++++++++++++++ src/views/drugInventory/InvProductsDetail.vue | 317 +++++++ .../drugInventory/addInvRemindSetDialog.vue | 225 +++++ .../drugInventory/supInoutSearchOrder.vue | 891 ++++++++++++++++++ 10 files changed, 4288 insertions(+) create mode 100644 src/views/drugInout/stat/DialogCreateCustom.vue create mode 100644 src/views/drugInout/stat/IoStatCustomSearch.vue create mode 100644 src/views/drugInout/stat/IoStatDaySearch.vue create mode 100644 src/views/drugInout/stat/IoStatMonthSearch.vue create mode 100644 src/views/drugInout/stat/IoStatQuarterSearch.vue create mode 100644 src/views/drugInout/stat/IoStatYearSearch.vue create mode 100644 src/views/drugInventory/InvProducts.vue create mode 100644 src/views/drugInventory/InvProductsDetail.vue create mode 100644 src/views/drugInventory/addInvRemindSetDialog.vue create mode 100644 src/views/drugInventory/supInoutSearchOrder.vue diff --git a/src/views/drugInout/stat/DialogCreateCustom.vue b/src/views/drugInout/stat/DialogCreateCustom.vue new file mode 100644 index 00000000..e64416ae --- /dev/null +++ b/src/views/drugInout/stat/DialogCreateCustom.vue @@ -0,0 +1,207 @@ + + + + + diff --git a/src/views/drugInout/stat/IoStatCustomSearch.vue b/src/views/drugInout/stat/IoStatCustomSearch.vue new file mode 100644 index 00000000..42bd3d16 --- /dev/null +++ b/src/views/drugInout/stat/IoStatCustomSearch.vue @@ -0,0 +1,434 @@ + + + + + diff --git a/src/views/drugInout/stat/IoStatDaySearch.vue b/src/views/drugInout/stat/IoStatDaySearch.vue new file mode 100644 index 00000000..01b05d97 --- /dev/null +++ b/src/views/drugInout/stat/IoStatDaySearch.vue @@ -0,0 +1,381 @@ + + + + + diff --git a/src/views/drugInout/stat/IoStatMonthSearch.vue b/src/views/drugInout/stat/IoStatMonthSearch.vue new file mode 100644 index 00000000..b52f526f --- /dev/null +++ b/src/views/drugInout/stat/IoStatMonthSearch.vue @@ -0,0 +1,376 @@ + + + + + diff --git a/src/views/drugInout/stat/IoStatQuarterSearch.vue b/src/views/drugInout/stat/IoStatQuarterSearch.vue new file mode 100644 index 00000000..4fb88bfb --- /dev/null +++ b/src/views/drugInout/stat/IoStatQuarterSearch.vue @@ -0,0 +1,375 @@ + + + + + diff --git a/src/views/drugInout/stat/IoStatYearSearch.vue b/src/views/drugInout/stat/IoStatYearSearch.vue new file mode 100644 index 00000000..219e4676 --- /dev/null +++ b/src/views/drugInout/stat/IoStatYearSearch.vue @@ -0,0 +1,375 @@ + + + + + diff --git a/src/views/drugInventory/InvProducts.vue b/src/views/drugInventory/InvProducts.vue new file mode 100644 index 00000000..56091acd --- /dev/null +++ b/src/views/drugInventory/InvProducts.vue @@ -0,0 +1,707 @@ + + + + + + diff --git a/src/views/drugInventory/InvProductsDetail.vue b/src/views/drugInventory/InvProductsDetail.vue new file mode 100644 index 00000000..66e9c888 --- /dev/null +++ b/src/views/drugInventory/InvProductsDetail.vue @@ -0,0 +1,317 @@ + + + + + + diff --git a/src/views/drugInventory/addInvRemindSetDialog.vue b/src/views/drugInventory/addInvRemindSetDialog.vue new file mode 100644 index 00000000..f4f4a631 --- /dev/null +++ b/src/views/drugInventory/addInvRemindSetDialog.vue @@ -0,0 +1,225 @@ + + + + + + diff --git a/src/views/drugInventory/supInoutSearchOrder.vue b/src/views/drugInventory/supInoutSearchOrder.vue new file mode 100644 index 00000000..5af23e36 --- /dev/null +++ b/src/views/drugInventory/supInoutSearchOrder.vue @@ -0,0 +1,891 @@ + + + + + +