Commit d9930d8b authored by 罗成兵's avatar 罗成兵

分配记录

parent b13b1bfb
...@@ -183,7 +183,8 @@ ...@@ -183,7 +183,8 @@
} }
}, },
created() { created() {
this.getSelectedMedical() this.routerParams = this.$route.query;
this.getSelectedMedical();
this.formData.sendUnitId = this.unitInfo.unitId; this.formData.sendUnitId = this.unitInfo.unitId;
this.formData.sendUnitName = this.unitInfo.unitName; this.formData.sendUnitName = this.unitInfo.unitName;
this.getChildUnitList(); this.getChildUnitList();
...@@ -226,10 +227,10 @@ ...@@ -226,10 +227,10 @@
this.$message.warning('分配物资不能为空!'); this.$message.warning('分配物资不能为空!');
} else { } else {
this.subLoad = true; this.subLoad = true;
let params = {} let params = {};
let reviceUnitName = this.childUnitList.filter(item => item.id == this.formData.receiveUnitId)[0].unitName; let reviceUnitName = this.childUnitList.filter(item => item.id == this.formData.receiveUnitId)[0].unitName;
let treeNodeId = this.childUnitList.filter(item => item.id == this.formData.receiveUnitId)[0].treeNodeId; let treeNodeId = this.childUnitList.filter(item => item.id == this.formData.receiveUnitId)[0].treeNodeId;
let unitInfo = JSON.parse(window.sessionStorage.setItem('unitInfo')); let unitInfo = JSON.parse(window.sessionStorage.getItem('unitInfo'));
params = { params = {
...this.formData, ...this.formData,
receiveNodeId: treeNodeId, receiveNodeId: treeNodeId,
...@@ -246,7 +247,7 @@ ...@@ -246,7 +247,7 @@
}); });
}); });
params.detailedList = detailedList; params.detailedList = detailedList;
params.menuId = this.routerParams.menuId params.menuId = this.routerParams.menuId;
this.$api.stockManage.fetchDispatchGoods(params).then(({code}) => { this.$api.stockManage.fetchDispatchGoods(params).then(({code}) => {
this.subLoad = false; this.subLoad = false;
if (code === 'SUCCESS') { if (code === 'SUCCESS') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment