diff --git a/src/views/business/DialogcChangeNewOrder.vue b/src/views/business/DialogcChangeNewOrder.vue index ebe0af2..6063acf 100644 --- a/src/views/business/DialogcChangeNewOrder.vue +++ b/src/views/business/DialogcChangeNewOrder.vue @@ -99,7 +99,7 @@ {{ item.name }} - - item.code == this.formData.invWarehouseCode).parentId + getFormStorageCode(subInvId){ + this.fromSubStorageOptions.forEach(item => { + if (subInvId === item.code) { + this.formData.fromCorp = item.name; + } + }); }, locCHange() { @@ -408,9 +413,12 @@ export default { } }, - unitChange(row) { - this.formData.fromCorpId = row.erpId; - this.formData.fromCorp = row.name; + unitChange(erpId) { + this.fromOptions.forEach(item => { + if (erpId === item.erpId) { + this.formData.fromCorp = item.name; + } + }) }, actionChange(item) { this.curAction = this.getActionItem(item); diff --git a/src/views/business/stockOrderNewDistribution.vue b/src/views/business/stockOrderNewDistribution.vue index f23d5e6..3f8d3d5 100644 --- a/src/views/business/stockOrderNewDistribution.vue +++ b/src/views/business/stockOrderNewDistribution.vue @@ -715,7 +715,6 @@ export default { }); }, selectProductFunction(event) { - if (event == null) { } else { event.target.select(); @@ -750,7 +749,6 @@ export default { locStorageCode: this.formData.locStorageCode, invWarehouseCode: this.formData.invWarehouseCode, }; - debugger if (!isBlank(this.formData.unitIdFk) && this.formData.unitIdFk === this.formData.corpId) { this.invQueryData.corpId = this.formData.corpId; } @@ -764,6 +762,7 @@ export default { this.selectInvProductVisible = true; } else { this.invQueryData.corpId = this.formData.corpId; + this.thisData.noInvOut = this.formData.noInvOut; this.selectProductVisible = true; } return; diff --git a/src/views/business/stockOrderNewSelectProduct.vue b/src/views/business/stockOrderNewSelectProduct.vue index 4e25c75..f5bcc19 100644 --- a/src/views/business/stockOrderNewSelectProduct.vue +++ b/src/views/business/stockOrderNewSelectProduct.vue @@ -314,6 +314,10 @@ export default { this.listQuery.companyName = this.data.formData.corpName; } + if (this.data !== undefined && this.data.noInvOut !== undefined && this.data.noInvOut == true) { + this.listQuery.companyName = null; + } + if (this.filterType != null && this.filterType === 2) { filterAllProduct(this.listQuery) .then((response) => { @@ -428,6 +432,7 @@ export default { components: {udiRlDetailDialog}, created() { + console.log(this.data) if (this.$isNotBlank(this.data)) { // this.listQuery.nameCode = this.data.udi; // if (this.data.billType != null) {