|
|
@@ -167,7 +167,7 @@
|
|
|
style="margin-bottom: 20px; float: right; margin-right: 20px"
|
|
|
type="primary"
|
|
|
@click="addStock"
|
|
|
- v-if="isEdit"
|
|
|
+ v-if="isEdit && !stockError"
|
|
|
>添加</el-button
|
|
|
>
|
|
|
|
|
|
@@ -436,6 +436,8 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ stockError: false,
|
|
|
+ stockErrorMsg: '',
|
|
|
cacheKeyUrl: '202605181721-wt-outbound-table',
|
|
|
dColumns: [], // 动态表头
|
|
|
goodsLists: [], // 商品列表
|
|
|
@@ -998,6 +1000,9 @@
|
|
|
async getReturnStorage() {
|
|
|
return new Promise((resolve) => {
|
|
|
console.log(this.formData);
|
|
|
+ if(this.stockError){
|
|
|
+ return this.$message.error(this.stockErrorMsg);
|
|
|
+ }
|
|
|
this.$refs.formName.validate(async (valid) => {
|
|
|
if (!this.productList?.length) {
|
|
|
return this.$message.error('请添加出库明细!');
|
|
|
@@ -1267,7 +1272,9 @@
|
|
|
this.detailData(data, this.dimension);
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
- console.log(err);
|
|
|
+ console.log('err~~~', err);
|
|
|
+ this.stockError = true;
|
|
|
+ this.stockErrorMsg = err;
|
|
|
});
|
|
|
return;
|
|
|
}
|