-
-
-
- {{ item.workplaceName }}
- {{
- item.workplaceId
- }}
-
-
-
@@ -707,6 +685,10 @@ export default {
type: Object,
required: true,
},
+ viewType: {
+ type: Object,
+ required: true,
+ },
closeChooseDialog: {
type: Function,
required: true
@@ -740,6 +722,7 @@ export default {
getInvList: [],
getDeptList: [],
getBusType: [],
+ getWorkPlaceList: []
},
//界面配置---------------------end
@@ -1190,8 +1173,8 @@ export default {
this.closeChooseDialog()
this.handleChoose(this.currentRow)
},
- //获取当前货位
- findCurWorkPlaces(val) {
+ //获取当前工位
+ findCurWorkPlaces(_this,val) {
let query = {
key: val,
status: 1,
@@ -1200,9 +1183,15 @@ export default {
limit: 100,
}
listPage(query).then((res) => {
- this.curWorkPlaces = res.data.list || [];
- if (this.curWorkPlaces.length == 1) {
- this.orderFormData.workPlaceCode = this.curWorkPlaces[0].workplaceId;
+ let list = res.data.list || []
+ _this.options.getWorkPlaceList = list.map(item => {
+ return {
+ code: item.workplaceId,
+ label: item.workplaceName
+ };
+ })
+ if (_this.options.getWorkPlaceList .length == 1){
+ _this.filterQuery.workPlaceCode = _this.options.getWorkPlaceList[0].code;
}
})
},
@@ -1217,7 +1206,7 @@ export default {
created() {
this.getInvList(this);
this.getBusType(this);
- this.findCurWorkPlaces();
+ this.findCurWorkPlaces(this,"");
this.splitType = this.$route.query.splitType;
if (this.splitType == "search") {
diff --git a/src/views/collect/selectCollectOrderDialog.vue b/src/views/collect/selectCollectOrderDialog.vue
index d0a56098..32402565 100644
--- a/src/views/collect/selectCollectOrderDialog.vue
+++ b/src/views/collect/selectCollectOrderDialog.vue
@@ -234,6 +234,7 @@ import {convertDate} from "@/utils/date";
import prescribeDownloadDialog from "@/views/collect/prescribe/prescribeDownloadDialog";
import prescribeOriginPanel from "./PannelOrderBiz";
import {orderPage} from "@/api/collect/collectOrder";
+import { selectCorpList } from '@/api/basic/basicUnitMaintain'
export default {
name: "selectPrescribeDialog",
@@ -284,7 +285,10 @@ export default {
deleteData: {},
radioCheck: null,
curRow: null,
- panelALive: false
+ panelALive: false,
+ options: {
+ fromCorp: [],
+ },
}
},
@@ -373,7 +377,18 @@ export default {
_this.panelALive = true;
});
},
-
+ // findCorpList(_this,val){
+ // let query = {
+ // erpId : val
+ // }
+ // selectCorpList(query)
+ // .then((response) => {
+ // _this.options.fromCorp = response.data || [];
+ // if (_this.options.fromCorp.length == 1){
+ // _this.filterQuery.fromCorp = _this.options.fromCorp[0].code;
+ // }
+ // })
+ // },
handleChange(val) {
this.radioCheck = val.id;
this.currentRow = val;
@@ -388,6 +403,7 @@ export default {
this.queryList = re.data.queryList;
this.fromList = re.data.fromList;
this.getList();
+ // this.findCorpList(this,this.fromCorp);
});
}