新增申购单点击产品录入时显示系统繁忙

20231126-yw
黄泽腾 2 years ago
parent 43b160528a
commit ccd45bee85

@ -25,8 +25,8 @@
</el-row>
<el-row>
<el-col :span="11">
<el-form-item label="送货单位" prop="corpName">
<el-input v-model="formData.customerName" style="width: 90%" auto-complete="off"
<el-form-item label="送货单位" prop="fromName">
<el-input v-model="formData.fromName" style="width: 90%" auto-complete="off"
:disabled="true"></el-input>
</el-form-item>
</el-col>

@ -420,6 +420,7 @@ export default {
newDistributionForm(index, row) {
console.log(this.idQuery)
this.idQuery.id = '';
if (this.$isNotBlank(row) && this.$isNotBlank(row.id)) {
this.idQuery.id = row.id;

@ -96,7 +96,8 @@
<el-row type="flex" justify="end">
<el-button-group style="display: flex">
<el-button-group style="display: flex;margin-bottom: 15px; margin-right: 50px">
<el-button type="primary" @click.native.stop="selectProductFunction()" :loading="loading">产品录入</el-button>
<el-button type="primary" @click.native.stop="selectProductFunction()" :loading="loading">产品录入
</el-button>
<!-- <el-button type="primary" :loading="loading" @click.native.stop="selectApply()">选入计划单</el-button>-->
</el-button-group>
</el-button-group>
@ -358,18 +359,24 @@ export default {
this.formData.targetDeptCode = this.subInvList.find(item => item.code == obj).parentId;
},
selectProductFunction() {
this.$nextTick(res => {
//idid
if (this.pId == null) {
addApplyId().then(response => {
if (response.code === 20000) {
this.pId = response.data
console.log("生成id:")
console.log(this.pId)
}
}).catch(() => {
this.loading = false;
})
}
this.thisData.stockOrderLists = this.codeArray;
})
this.selectProductVisible = true;
//idid
if (this.pId == null) {
addApplyId().then(response => {
if (response.code === 20000) {
this.pId = response.data
}
}).catch(() => {
this.loading = false;
})
}
this.thisData.stockOrderLists = this.codeArray;
},
closeDialogC2(rData) {
this.selectProductVisible = false;
@ -399,7 +406,7 @@ export default {
tableCountChange(row) {
if (this.$isNotBlank(row)) {
updateDetail(this.currentRow);
this.selectedIndex=""
this.selectedIndex = ""
}
},
tableRowClassName({row, rowIndex}) {
@ -515,6 +522,21 @@ export default {
};
},
created() {
this.$nextTick(res => {
//idid
if (this.pId == null) {
addApplyId().then(response => {
if (response.code === 20000) {
this.pId = response.data
console.log("最初生成id:")
console.log(this.pId)
}
}).catch(() => {
this.loading = false;
})
}
})
if (this.$isNotBlank(this.idQuery.id)) {
this.query.limit = 100;
this.pId = this.idQuery.id;

@ -348,6 +348,8 @@ export default {
getList() {
this.loading = true;
this.listQuery.customerId = store.getters.customerId;
console.log("this.pId:")
console.log(this.pId)
this.listQuery.id = this.pId;
filterCompanyProductplanRelevance(this.listQuery)
.then((response) => {

Loading…
Cancel
Save