|
@@ -244,6 +244,7 @@ export default {
|
|
|
console.log(isPrice,'isPrice');
|
|
|
cb();
|
|
|
} else {
|
|
|
+ this.$message.error('存在必填项未填写');
|
|
|
console.log('error submit!!');
|
|
|
return false;
|
|
|
}
|
|
@@ -292,7 +293,8 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 主表参照改变之后
|
|
|
- handleReferChange(val, source, type){
|
|
|
+ async handleReferChange(val, source, type){
|
|
|
+ console.log(val,'val-------------------');
|
|
|
// 供应商选择
|
|
|
if( type === 'SUPPLIER_PARAM' ){
|
|
|
|
|
@@ -304,7 +306,7 @@ export default {
|
|
|
key:'supplierContacts',
|
|
|
params:{
|
|
|
type:'SUPPLIERCONTACTS_PARAM',
|
|
|
- supplierId:val.supplier,
|
|
|
+ supplierId:val.id,
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -312,13 +314,13 @@ export default {
|
|
|
key:'supplierPersonal',
|
|
|
params:{
|
|
|
type:'PSNLICENSE_PARAM',
|
|
|
- supplierId:val.supplier,
|
|
|
+ supplierId:val.id,
|
|
|
pkOrg: source.puOrg,
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
|
|
|
- relevanceRefer.forEach(async (refer) =>{
|
|
|
+ await relevanceRefer.forEach(async (refer) =>{
|
|
|
|
|
|
try {
|
|
|
|
|
@@ -357,20 +359,27 @@ export default {
|
|
|
|
|
|
|
|
|
// 子表参照改变之后
|
|
|
- handleTabReferChange(val, source, type) {
|
|
|
+ async handleTabReferChange(val, source, type) {
|
|
|
|
|
|
// 触发物料参照询价
|
|
|
if (type == "MATERIAL_PARAM" && source.qty && source.qty != "") {
|
|
|
- this.handleGetPrice();
|
|
|
+
|
|
|
+ source['whetherCompleteInquiry'] = false;
|
|
|
+
|
|
|
+ await this.handleGetPrice();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
// 子表下拉框改变
|
|
|
- handleTabSelectChange(type,row){
|
|
|
-
|
|
|
+ async handleTabSelectChange(type,row){
|
|
|
+
|
|
|
if(type == 'priceType' && row.material && row.qty && row.qty != ""){
|
|
|
- this.handleGetPrice();
|
|
|
+
|
|
|
+ row['whetherCompleteInquiry'] = false;
|
|
|
+
|
|
|
+ await this.handleGetPrice();
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -378,7 +387,11 @@ export default {
|
|
|
handleInputChange(row, type) {
|
|
|
// 物料数量变化----询价
|
|
|
if (type == "qty" && row.material) {
|
|
|
+
|
|
|
+ row['whetherCompleteInquiry'] = false;
|
|
|
+
|
|
|
this.handleGetPrice();
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -661,12 +674,13 @@ export default {
|
|
|
<el-select
|
|
|
v-if="cColumn.inputType === 'Select'"
|
|
|
v-model="scope.row[cColumn.key]"
|
|
|
+
|
|
|
size="mini"
|
|
|
:disabled="cColumn.disabled"
|
|
|
:clearable="cColumn.clearable"
|
|
|
:placeholder="cColumn.placeholder"
|
|
|
style="width: 100%"
|
|
|
- @change="handleTabSelectChange(cColumn,scope.row)"
|
|
|
+ @change="handleTabSelectChange(cColumn.key,scope.row)"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in dict.type[cColumn.referName]"
|