|
@@ -347,7 +347,8 @@ export default {
|
|
|
// 子表下拉框改变
|
|
|
handleTabSelectChange(type,row){
|
|
|
|
|
|
- if(type == 'priceType' && row.material && row.qty && row.qty != ""){
|
|
|
+ // && row.qty
|
|
|
+ if(type == 'priceType' && row.material && row.qty != ""){
|
|
|
|
|
|
row['whetherCompleteInquiry'] = false;
|
|
|
|
|
@@ -362,7 +363,8 @@ export default {
|
|
|
|
|
|
row['whetherCompleteInquiry'] = false;
|
|
|
|
|
|
- row.qty && this.handleGetPrice();
|
|
|
+ // row.qty && this.handleGetPrice();
|
|
|
+ this.handleGetPrice();
|
|
|
|
|
|
}
|
|
|
|
|
@@ -400,7 +402,18 @@ export default {
|
|
|
handleIsRevise() {
|
|
|
return this.params.status == '2';
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
+ // /handleIsRevise() ? scope.row[cColumn.key] : Infinity
|
|
|
+ getInputNumberMax(key,num){
|
|
|
+
|
|
|
+ if(key === 'qty'){
|
|
|
+
|
|
|
+ return this.handleIsRevise() ? num : Infinity
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ return Infinity;
|
|
|
+ },
|
|
|
},
|
|
|
created() {},
|
|
|
mounted() { },
|
|
@@ -482,7 +495,7 @@ export default {
|
|
|
<el-input-number v-if="column.inputType === 'InputNumber'"
|
|
|
v-model="params[column.key]"
|
|
|
:precision="column.precision"
|
|
|
- :max="handleIsRevise() ? params[column.key] : Infinity"
|
|
|
+ :max="getInputNumberMax(column.key, params[column.key])"
|
|
|
:controls-position="column.controlsPosition"
|
|
|
:placeholder="column.placeholder"
|
|
|
:clearable="column.clearable"
|
|
@@ -641,7 +654,7 @@ export default {
|
|
|
v-model="scope.row[cColumn.key]"
|
|
|
:precision="cColumn.precision"
|
|
|
:controls-position="cColumn.controlsPosition"
|
|
|
- :max="handleIsRevise() ? scope.row[cColumn.key] : Infinity"
|
|
|
+ :max="getInputNumberMax(cColumn.key, scope.row[cColumn.key])"
|
|
|
@change="handleInputChange(scope.row, cColumn.key)"
|
|
|
:placeholder="cColumn.placeholder"
|
|
|
:clearable="cColumn.clearable"
|