diff --git a/src/views/inout/DialogCreateOrder.vue b/src/views/inout/DialogCreateOrder.vue
index 31b72ef8..73a7f462 100644
--- a/src/views/inout/DialogCreateOrder.vue
+++ b/src/views/inout/DialogCreateOrder.vue
@@ -1,51 +1,95 @@
-
-
-
- 扫码快捷设置
-
-
-
-
-

-
拆零上货
-
-
-
-
-

-
整取上货
-
-
-
-
-

-
工位上货
-
+
+
+
+
+
+
+
-
-
-

-
工位退货
-
+
+
+ 添加
+
+
+ 显示/隐藏快捷设置
+ 库存选入
+
+
+
-
-
-
-
+
+
+
+
+
+
+ 扫码快捷设置
+
+
+
+
+

+
拆零上货
+
+
+
+
+

+
整取上货
+
+
+
+
+

+
工位上货
+
+
+
+
+

+
工位退货
+
+
+
+
+
+
+
- 显示/隐藏快捷设置
立即提交
- 校验结果提交
- 扫码结果提交
-
+
-
+
-
+
-
+
-
+
@@ -157,7 +201,7 @@
-
+
@@ -237,7 +281,7 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
-
-
-
- 添加
-
- 库存选入
-
-
-
-
-
-
+
+
@@ -558,7 +565,6 @@
v-on:selectBindRl="selectBindRl"
>
-
-
扫码结果提交
-
-
@@ -1223,6 +1226,9 @@ export default {
}
listPage(query).then((res) => {
this.curWorkPlaces = res.data.list || [];
+ if (this.curWorkPlaces.length == 1) {
+ this.orderFormData.workPlaceCode = this.curWorkPlaces[0].workplaceId;
+ }
})
},
@@ -1245,7 +1251,7 @@ export default {
//添加条码
- addCode(event) {
+ addCode() {
this.originCode = "";
this.sictomText = "";
this.orderFormData.corpOrderId = this.orderFormData.corpOrderId.trim();
@@ -1254,9 +1260,15 @@ export default {
this.codeFormData.expireDate = "";
this.codeFormData.serialNo = "";
this.actionEnable = true;
- if (event == null) {
- } else event.target.select();
this.$refs.inputRef.select();
+ if (this.$isBlank(this.codeFormData.code)) {
+ this.codeFormData.code = this.scanCode.trim();
+ return;
+ }
+ if (this.$isBlank(this.codeFormData.code) && this.$isBlank(this.scanCode)) {
+ return;
+ }
+
if (this.$isBlank(this.orderFormData.action)) {
this.$message.warning("请选择单据类型!");
return;
@@ -1301,8 +1313,6 @@ export default {
return;
}
}
-
-
if (this.checkPreInArray != null) {
this.orderFormData.checkPreInOrders = this.checkPreInArray.join(",");
}
@@ -1313,8 +1323,7 @@ export default {
parseTime(date, "{y}{m}{d}{h}{i}{s}") +
Math.ceil(Math.random() * 89 + 10);
}
- this.codeFormData.code = this.scanCode.trim();
- if (this.$isBlank(this.codeFormData.code)) return;
+
this.loading = true;
let tQuery = Object.assign(
JSON.parse(JSON.stringify(this.orderFormData))
@@ -1743,9 +1752,9 @@ export default {
this.$refs.inputRef.focus();
this.$refs.inputRef.select();
this.isSuccess = true;
- this.scanCode = ""
this.printCodeResult(response.data)
this.codeFormData.code = response.data.code;
+ this.scanCode = ""
this.addCode();
} else {
if (response.code == 502) {
@@ -2020,6 +2029,11 @@ export default {
diff --git a/src/views/inout/split/prescribeTagCodeDeal.vue b/src/views/inout/split/prescribeTagCodeDeal.vue
index 3fc73f33..b259af7f 100644
--- a/src/views/inout/split/prescribeTagCodeDeal.vue
+++ b/src/views/inout/split/prescribeTagCodeDeal.vue
@@ -1,146 +1,76 @@
+
+
+
+
+
+
+
+
+ 添加
+
+
+
+
+
+
+ 下一单处方
+
选入处方
+ 处理完成
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ {{formData.code}}
+ {{formData.sickName}}
+ {{formData.adNum}}
+ {{formData.clinicNumber}}
+ {{formData.createDr}}
+ {{formData.prescribeDate}}
+ {{formData.deptName}}
+ {{formData.amount}}
+ {{formData.remark}}
+
-
-
-
-
-
-
-
-
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{
- item.lableRuleObj[scope.row[item.columnName]]
- }}
-
-
-
-
-
- {{
- item.lableRuleObj ? item.lableRuleObj[scope.row[item.columnName]] : scope.row[item.columnName]
- }}
-
-
-
-
-
- {{ buttonItem.name }}
-
-
-
-
-
- {{
- scope.row[item.columnName]
- }}
-
-
-
-
- {{
- convertDateFun(scope.row[item.columnName])
- }}
-
-
-
-
-
-
-
+
@@ -348,12 +230,10 @@
import addOrder from "@/views/inout/DialogCreateOrder";
import errOrder from "@/views/inout/IoCreateErrorOrder";
import {executeFuc, getHead} from "@/utils/customConfig";
-import store from "@/store";
-import {filterOrder} from "@/api/inout/order";
import {convertDate} from "@/utils/date";
-import {detail, page as prescribePage, deleteDataByCode} from "@/api/basic/sicker/prescribeApi";
-import {materialPrescribePage} from "@/api/inout/splitCode";
+import {page as prescribePage} from "@/api/basic/sicker/prescribeApi";
import prescribeDownloadDialog from "@/views/inout/split/prescribeDownloadDialog";
+import prescribeOriginPanel from "./prescribeOriginPanel";
export default {
name: "selectPrescribeDialog",
@@ -369,18 +249,12 @@ export default {
},
data() {
return {
-
//界面配置相关
//患者处方
tableHeader: [],
queryList: [],
tableObj: [],
fromList: [],
- //处方明细
- tableHeader1: [],
- queryList1: [],
- tableObj1: [],
- fromList1: [],
convertDateFun: convertDate,
//界面配置-------------end
@@ -395,21 +269,16 @@ export default {
list: [],
total: 0,
deleteData: {},
- preLoading: false,
- preDetailList: [],
- preTotal: 0,
radioCheck: null,
- currentRow: null,
- preQuery: {
- prescribeCode: null,
- page: 1,
- limit: 10,
- },
- }
+ curRow: null,
+ panelALive
+ :
+ false,
+ }
},
components: {
- addOrder, errOrder, prescribeDownloadDialog
+ addOrder, errOrder, prescribeDownloadDialog, prescribeOriginPanel
},
methods: {
@@ -473,35 +342,18 @@ export default {
},
prescribeClick(_this, row) {
- this.getPrescribeDetail(_this, row)
- this.getCodeDetail(_this, row)
+ _this.curRow = row;
+ _this.radioCheck = row.id;
+ _this.currentRow = row;
+ _this.refreshCodesPanel(_this);
},
-
- 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("数据加载失败")
- })
+ refreshCodesPanel(_this) {
+ _this.panelALive = false;
+ _this.$nextTick(() => {
+ _this.panelALive = true;
+ });
},
-
- preHandleCurrentChange(val) {
- this.filterQuery.page = val.page;
- this.getPrescribeDetail(this, null);
- },
handleChange(val) {
this.radioCheck = val.id;
this.currentRow = val;
@@ -518,20 +370,20 @@ export default {
this.getList();
});
- getHead("selectTagPrescribe-1", "1").then((re) => {
- // 处理返回的数据
- this.tableObj1 = re.data;
- this.tableHeader1 = re.data.tableList;
- this.queryList1 = re.data.queryList;
- this.fromList1 = re.data.fromList;
- this.getList();
- });
-
}
}