|
@@ -239,6 +239,7 @@
|
|
|
import fileMain from '@/components/addDoc/index.vue';
|
|
import fileMain from '@/components/addDoc/index.vue';
|
|
|
import taskinstanceDialog from '@/BIZComponents/procedure/taskinstanceDialog.vue';
|
|
import taskinstanceDialog from '@/BIZComponents/procedure/taskinstanceDialog.vue';
|
|
|
import { lbjtList } from '@/enum/dict.js';
|
|
import { lbjtList } from '@/enum/dict.js';
|
|
|
|
|
+ import { parameterGetByCode } from '@/api/main/index.js';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins],
|
|
mixins: [dictMixins],
|
|
@@ -608,7 +609,8 @@
|
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
}
|
|
}
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
|
|
+ isTotalCount: 0 //采购收货数量是否限制不能大于采购总数 //0否 1是
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -618,6 +620,12 @@
|
|
|
getWarehouseList().then((res) => {
|
|
getWarehouseList().then((res) => {
|
|
|
this.warehouseList = res;
|
|
this.warehouseList = res;
|
|
|
});
|
|
});
|
|
|
|
|
+ //采购收货数量是否限制不能大于采购总数//0否 1是
|
|
|
|
|
+ parameterGetByCode({
|
|
|
|
|
+ code: 'purchaseOrder_invoice_productList_totalCount'
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ this.isTotalCount = res.value;
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
computed: {},
|
|
computed: {},
|
|
@@ -842,7 +850,11 @@
|
|
|
callback(new Error('请输入大于0的数字'));
|
|
callback(new Error('请输入大于0的数字'));
|
|
|
} else if (totalCount > row.orderTotalCount) {
|
|
} else if (totalCount > row.orderTotalCount) {
|
|
|
this.$message.warning('收货数量大于采购总数量');
|
|
this.$message.warning('收货数量大于采购总数量');
|
|
|
- callback();
|
|
|
|
|
|
|
+ if (this.isTotalCount == 1) {
|
|
|
|
|
+ callback('收货数量大于采购总数量');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ callback();
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
callback();
|
|
callback();
|
|
|
}
|
|
}
|