diff --git a/src/views/basic/BasicEntrutsReceModify.vue b/src/views/basic/BasicEntrutsReceModify.vue
index c8c55b2..325dde7 100644
--- a/src/views/basic/BasicEntrutsReceModify.vue
+++ b/src/views/basic/BasicEntrutsReceModify.vue
@@ -194,7 +194,7 @@ export default {
},
storageList: [],
subInvList: [],
- entrustSubInvList:[],
+ entrustSubInvList: [],
entrustStorageList: [],
orderTypeList: [],
fromSpecialOptions: [],
@@ -270,7 +270,8 @@ export default {
findEntrustSubInvByInv() {
this.entrustSubInvList = [];
let query = {
- pcode: this.inputQuery.entrustInv
+ pcode: this.inputQuery.entrustInv,
+ filter: 2,
};
filterSubByInv(query)
.then((response) => {
@@ -312,7 +313,7 @@ export default {
this.getEntrustStorage();
},
- subInvChange(){
+ subInvChange() {
this.getOrderType();
},
@@ -323,7 +324,7 @@ export default {
},
- entrustSubInvChange(){
+ entrustSubInvChange() {
let query = {
code: this.inputQuery.entrustSubInv,
diff --git a/src/views/business/stockOrderNewDistribution.vue b/src/views/business/stockOrderNewDistribution.vue
index 669fa42..dda53e1 100644
--- a/src/views/business/stockOrderNewDistribution.vue
+++ b/src/views/business/stockOrderNewDistribution.vue
@@ -1,394 +1,394 @@
-
-
-
-
-
- 草稿保存
-
- 未配货提交
-
-
- 已配货提交
-
-
-
-
-
-
-
-
- 单据号:
-
-
-
-
-
-
-
-
-
- 单据日期:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 业务类型:
-
-
-
-
-
-
-
- {{ item.localName }}
-
-
-
-
-
-
-
-
- 往来单位:
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
- {{ item.name }}
- {{
- item.code
- }}
-
-
-
-
-
-
-
-
-
-
-
-
- 当前仓库:
-
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
- 当前分库:
-
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 允许无库存出库
-
-
-
-
-
-
-
-
- 产品录入
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 编辑
-
- 复制
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ 草稿保存
+
+ 未配货提交
+
+
+ 已配货提交
+
+
+
+
+
+
+
+
+ 单据号:
+
+
+
+
+
+
+
+
+
+ 单据日期:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 业务类型:
+
+
+
+
+
+
+
+ {{ item.localName }}
+
+
+
+
+
+
+
+
+ 往来单位:
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+ {{ item.name }}
+ {{
+ item.code
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+ 当前仓库:
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+ 当前分库:
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 允许无库存出库
+
+
+
+
+
+
+
+
+ 产品录入
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+ 复制
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index d731c44..805f4c4 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -373,7 +373,7 @@ export default {
},
getCompanyData() {
this.employName = this.$store.state.admin.employeeName;
- console.log( this.employName +"--------------");
+ console.log(this.employName + "--------------");
this.loading = true;
let tquery = {
customerId: store.getters.customerId,
@@ -413,7 +413,7 @@ export default {
},
locCHange() {
- if(this.$isNotBlank(this.userInfo.locSubInvCode)){
+ if (this.$isNotBlank(this.userInfo.locSubInvCode)) {
this.userInfo.locSubInvCode = "";
}
this.findSubInvByInv();
@@ -427,6 +427,9 @@ export default {
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
+ if (this.subInvList != null && this.subInvList.length == 1) {
+ this.userInfo.locSubInvCode = this.subInvList[0];
+ }
})
.catch(() => {
@@ -548,7 +551,7 @@ export default {
}
});
},
- changeInv(){
+ changeInv() {
this.selInvVisible = true;
},
},
diff --git a/src/views/inout/IOAddOrder.vue b/src/views/inout/IOAddOrder.vue
index face123..e4d744b 100644
--- a/src/views/inout/IOAddOrder.vue
+++ b/src/views/inout/IOAddOrder.vue
@@ -966,6 +966,9 @@ export default {
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
+ if (this.subInvList != null && this.subInvList.length == 1) {
+ this.formData.invWarehouseCode = this.subInvList[0];
+ }
})
.catch(() => {
});