Commit e885a365 by zhangxw

服务项目编辑不可编辑修改

1 parent be600770
......@@ -38,9 +38,9 @@
</tr>
<tr v-for="(item, index) in tableData.gradeConfigList" :key="index">
<td class="price">
<el-input :placeholder="placeholder" @input="changePrice($event, item, 'minPrice')" :disabled="disabled || routeInfo.id" v-model="item.minPrice"></el-input>
<el-input :placeholder="placeholder" @input="changePrice($event, item, 'minPrice')" :disabled="disabled || (routeInfo.id && !item.addFlag)" v-model="item.minPrice"></el-input>
<span class="sign">-</span>
<el-input :placeholder="placeholder" @input="changePrice($event, item, 'maxPrice')" :disabled="disabled || routeInfo.id" v-model="item.maxPrice"></el-input>
<el-input :placeholder="placeholder" @input="changePrice($event, item, 'maxPrice')" :disabled="disabled || (routeInfo.id && !item.addFlag)" v-model="item.maxPrice"></el-input>
</td>
<td><el-switch v-model="item.computeFlag" :active-value="0" @change="changeComputeFlag($event, item, index)" :inactive-value="1" :disabled="disabled"></el-switch></td>
<td>
......@@ -206,7 +206,8 @@ export default {
priceCoefficient: '',
standardShelfCost: '',
standardSalesCost: '',
childSalePeriodData: arr
childSalePeriodData: arr,
addFlag: true
}
this.tableData.gradeConfigList.push(sectionItem)
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!