|
@@ -356,8 +356,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 子表下拉框改变
|
|
|
- handleSelectChange(type,row){
|
|
|
- console.log(type,'type');
|
|
|
+ handleTabSelectChange(type,row){
|
|
|
|
|
|
if(type == 'priceType' && row.material && row.qty && row.qty != ""){
|
|
|
this.handleGetPrice();
|
|
@@ -366,12 +365,24 @@ export default {
|
|
|
|
|
|
// 子表inputNumber
|
|
|
handleInputChange(row, type) {
|
|
|
- console.log(type, "type");
|
|
|
// 物料数量变化----询价
|
|
|
if (type == "qty" && row.material) {
|
|
|
this.handleGetPrice();
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+ // 子表多选框改变
|
|
|
+ handleTabCheckbox(type,source){
|
|
|
+
|
|
|
+ // 勾选赠品,价税合计更新为0,含税单价、无税单价更新为0
|
|
|
+ if(type === 'isGift' && source.material && source.qty && source.qty != ""){
|
|
|
+
|
|
|
+ source['whetherCompleteInquiry'] = false;
|
|
|
+
|
|
|
+ this.handleGetPrice()
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
// 询价 getPrice
|
|
|
async handleGetPrice() {
|
|
|
try {
|
|
@@ -648,7 +659,7 @@ export default {
|
|
|
:clearable="cColumn.clearable"
|
|
|
:placeholder="cColumn.placeholder"
|
|
|
style="width: 100%"
|
|
|
- @change="handleSelectChange(cColumn.key,scope.row)"
|
|
|
+ @change="handleTabSelectChange(cColumn.key,scope.row)"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in dict.type[cColumn.referName]"
|
|
@@ -664,6 +675,7 @@ export default {
|
|
|
:disabled="cColumn.disabled"
|
|
|
true-label="Y"
|
|
|
false-label="N"
|
|
|
+ @change="handleTabCheckbox(cColumn.key,scope.row)"
|
|
|
></el-checkbox>
|
|
|
</el-form-item>
|
|
|
</template>
|