diff --git a/src/views/basic/product/productEdit.vue b/src/views/basic/product/productEdit.vue index 2c5ec041..3df8fca1 100644 --- a/src/views/basic/product/productEdit.vue +++ b/src/views/basic/product/productEdit.vue @@ -994,7 +994,7 @@ export default { selectmedicalSuppliesDialog }, created() { - console.log("dayinshshhs", this.editQuery) + // console.log("dayinshshhs", this.editQuery) this.useMutiChange(true) this.getThirdSysDetail(); if (this.editQuery.isDateBy == 1) { diff --git a/src/views/collect/DealOrder.vue b/src/views/collect/DealOrder.vue index 80cd15ff..cdf27535 100644 --- a/src/views/collect/DealOrder.vue +++ b/src/views/collect/DealOrder.vue @@ -78,8 +78,8 @@ - - + + - + + + + + {{ item.name }} + {{ item.code }} + + + + + + + + + + + + + + + + + +
+

{{ info.name }}

+ + + + + + +
+
+ +

{{ info.code }}

+ 开始作业 + +
+ + + +
+
+
+
+ + + @@ -255,6 +325,7 @@ import {selectCorpList} from "@/api/basic/basicUnitMaintain"; import {delDrugLevel} from "@/api/basic/product/drugUdiinfos"; import {getCurOrder, getNextOrder} from "@/api/collect/collectOrder"; import PanelOrderAllDetail from "@/views/collect/PanelOrderAllDetail"; +import { getWorkBindBusTypes,removeBusTypeById } from '@/api/basic/workPlace/sysWorkplaceDocuments' export default { /** @@ -293,12 +364,14 @@ export default { formData: { tagStatus: -1, invCode: null, + busType: null, workPlaceCode: null, fromCorp: null, }, selectPrescriptionVisible: false, corpOrderIdDisabled: false, isLinkDisabled: false, + selectBusTypeDisabled: false, userInfo: { inv: this.$store.getters.locInvName, deptName: this.$store.getters.locDeptName, @@ -319,6 +392,14 @@ export default { scanResultType: "success", isSelectOrder: false, isFinishOrder: true, + busQuery: { + busKey: '', + workplaceCode: null, + page: 1, + limit: 100 + }, + busTypeList: [], + busTypeTotal: 0, } }, @@ -332,6 +413,31 @@ export default { PanelOrderAllDetail }, methods: { + selectBusType(val){ + + this.formData.busType = val + this.selectBusTypeDisabled = false + if (this.formData.workPlaceCode != null) { + this.findCurOrder(); + } + }, + getWorkBindBusTypes(workplaceId) { + this.busQuery.workplaceCode = workplaceId + getWorkBindBusTypes(this.busQuery).then(res => { + if (res.code == 20000) { + this.busTypeList = res.data.list + this.busTypeTotal = res.data.total + if (this.busTypeList.length == 1) { + this.formData.busType = this.busTypeList[0].code + this.selectBusTypeDisabled = false + this.findCurOrder(); + } else { + this.formData.busType = null + } + } + return + }) + }, findFromInvList(val) { let cQuery = { corpType: this.formDataVisible.corpType, @@ -349,6 +455,7 @@ export default { this.formDataVisible = item } }) + this.getWorkBindBusTypes(value) if (this.formDataVisible.operationType == 1) { this.findFromInvList(""); } @@ -385,8 +492,8 @@ export default { this.curWorkPlaces = res.data.list || []; if (this.curWorkPlaces.length == 1 && this.formData.workPlaceCode == null) { this.formData.workPlaceCode = this.curWorkPlaces[0].workplaceId; + this.workPlaceCodeChange(this.formData.workPlaceCode); } - this.workPlaceCodeChange(this.formData.workPlaceCode); }) }, //界面配置相关------------ @@ -580,7 +687,7 @@ export default { //选择单据 selectPrescribe() { - console.log(this.formData.workPlaceCode) + // console.log(this.formData.workPlaceCode) this.selectPrescriptionVisible = true; }, @@ -605,7 +712,8 @@ export default { findCurOrder() { let nextQuery = { - workPlaceCode: this.formData.workPlaceCode + workPlaceCode: this.formData.workPlaceCode, + busType: this.formData.busType } getCurOrder(nextQuery).then(res => { this.loading = false @@ -635,7 +743,7 @@ export default { } else { - this.$message.error(res.message) + // this.$message.error(res.message) } }).catch(() => { this.loading = false @@ -721,18 +829,16 @@ export default { this.queryList = re.data.queryList; this.fromList = re.data.fromList; }); + this.findCurWorkPlaces(); this.formData.invCode = this.$store.getters.locInvCode; if (this.$route.query.workplaceId != null) { this.isLinkDisabled = true + this.selectBusTypeDisabled = true this.corpOrderIdDisabled = true this.formData.workPlaceCode = Number(this.$route.query.workplaceId); - - if (this.formData.workPlaceCode != null) { - this.findCurOrder(); - } - + this.getWorkBindBusTypes(this.formData.workPlaceCode); } - this.findCurWorkPlaces(); + } diff --git a/src/views/collect/DealOrderBlank.vue b/src/views/collect/DealOrderBlank.vue index 80cd15ff..cdf27535 100644 --- a/src/views/collect/DealOrderBlank.vue +++ b/src/views/collect/DealOrderBlank.vue @@ -78,8 +78,8 @@
- - + + - + + + + + {{ item.name }} + {{ item.code }} + + + + + + + + + + + + + + + + + +
+

{{ info.name }}

+ + + + + + +
+
+ +

{{ info.code }}

+ 开始作业 + +
+ + + +
+
+
+
+ + + @@ -255,6 +325,7 @@ import {selectCorpList} from "@/api/basic/basicUnitMaintain"; import {delDrugLevel} from "@/api/basic/product/drugUdiinfos"; import {getCurOrder, getNextOrder} from "@/api/collect/collectOrder"; import PanelOrderAllDetail from "@/views/collect/PanelOrderAllDetail"; +import { getWorkBindBusTypes,removeBusTypeById } from '@/api/basic/workPlace/sysWorkplaceDocuments' export default { /** @@ -293,12 +364,14 @@ export default { formData: { tagStatus: -1, invCode: null, + busType: null, workPlaceCode: null, fromCorp: null, }, selectPrescriptionVisible: false, corpOrderIdDisabled: false, isLinkDisabled: false, + selectBusTypeDisabled: false, userInfo: { inv: this.$store.getters.locInvName, deptName: this.$store.getters.locDeptName, @@ -319,6 +392,14 @@ export default { scanResultType: "success", isSelectOrder: false, isFinishOrder: true, + busQuery: { + busKey: '', + workplaceCode: null, + page: 1, + limit: 100 + }, + busTypeList: [], + busTypeTotal: 0, } }, @@ -332,6 +413,31 @@ export default { PanelOrderAllDetail }, methods: { + selectBusType(val){ + + this.formData.busType = val + this.selectBusTypeDisabled = false + if (this.formData.workPlaceCode != null) { + this.findCurOrder(); + } + }, + getWorkBindBusTypes(workplaceId) { + this.busQuery.workplaceCode = workplaceId + getWorkBindBusTypes(this.busQuery).then(res => { + if (res.code == 20000) { + this.busTypeList = res.data.list + this.busTypeTotal = res.data.total + if (this.busTypeList.length == 1) { + this.formData.busType = this.busTypeList[0].code + this.selectBusTypeDisabled = false + this.findCurOrder(); + } else { + this.formData.busType = null + } + } + return + }) + }, findFromInvList(val) { let cQuery = { corpType: this.formDataVisible.corpType, @@ -349,6 +455,7 @@ export default { this.formDataVisible = item } }) + this.getWorkBindBusTypes(value) if (this.formDataVisible.operationType == 1) { this.findFromInvList(""); } @@ -385,8 +492,8 @@ export default { this.curWorkPlaces = res.data.list || []; if (this.curWorkPlaces.length == 1 && this.formData.workPlaceCode == null) { this.formData.workPlaceCode = this.curWorkPlaces[0].workplaceId; + this.workPlaceCodeChange(this.formData.workPlaceCode); } - this.workPlaceCodeChange(this.formData.workPlaceCode); }) }, //界面配置相关------------ @@ -580,7 +687,7 @@ export default { //选择单据 selectPrescribe() { - console.log(this.formData.workPlaceCode) + // console.log(this.formData.workPlaceCode) this.selectPrescriptionVisible = true; }, @@ -605,7 +712,8 @@ export default { findCurOrder() { let nextQuery = { - workPlaceCode: this.formData.workPlaceCode + workPlaceCode: this.formData.workPlaceCode, + busType: this.formData.busType } getCurOrder(nextQuery).then(res => { this.loading = false @@ -635,7 +743,7 @@ export default { } else { - this.$message.error(res.message) + // this.$message.error(res.message) } }).catch(() => { this.loading = false @@ -721,18 +829,16 @@ export default { this.queryList = re.data.queryList; this.fromList = re.data.fromList; }); + this.findCurWorkPlaces(); this.formData.invCode = this.$store.getters.locInvCode; if (this.$route.query.workplaceId != null) { this.isLinkDisabled = true + this.selectBusTypeDisabled = true this.corpOrderIdDisabled = true this.formData.workPlaceCode = Number(this.$route.query.workplaceId); - - if (this.formData.workPlaceCode != null) { - this.findCurOrder(); - } - + this.getWorkBindBusTypes(this.formData.workPlaceCode); } - this.findCurWorkPlaces(); + } diff --git a/src/views/collect/fieldOperation.vue b/src/views/collect/fieldOperation.vue index b58b3cd2..bdc234fd 100644 --- a/src/views/collect/fieldOperation.vue +++ b/src/views/collect/fieldOperation.vue @@ -23,10 +23,10 @@ -
+

{{ info.workplaceName }}

@@ -35,7 +35,7 @@
-
+

{{ info.remake }}

开始作业 diff --git a/src/views/collect/selectCollectOrderDialog.vue b/src/views/collect/selectCollectOrderDialog.vue index d208f9c5..774b4300 100644 --- a/src/views/collect/selectCollectOrderDialog.vue +++ b/src/views/collect/selectCollectOrderDialog.vue @@ -247,6 +247,14 @@ export default { required: true, }, workPlaceCode: { + type: String, + required: true + }, + busType: { + type: String, + required: true + }, + fromCorp: { type: String, required: true, }, @@ -330,8 +338,9 @@ export default { getList() { this.loading = true; this.filterQuery.workPlaceCode = this.workPlaceCode - console.log(this.filterQuery.workPlaceCode) - console.log(this.workPlaceCode) + this.filterQuery.busType = this.busType + this.filterQuery.fromCorp = this.fromCorp + orderPage(this.filterQuery).then(res => { this.loading = false this.list = res.data.list || []