|
@@ -187,7 +187,7 @@
|
|
|
@clear="row.feeList = feesOption"
|
|
|
placeholder="请选择"
|
|
|
></avue-cascader>
|
|
|
- <span v-else>{{ row.mold }}</span>
|
|
|
+ <span v-else="!row.$cellEdit">{{ row.mold }}</span>
|
|
|
</template>
|
|
|
<template slot="detailId" slot-scope="{ row }">
|
|
|
<el-select
|
|
@@ -509,7 +509,8 @@ export default {
|
|
|
this.form = res.data.data;
|
|
|
this.dataList = this.form.itemList? this.form.itemList: [];
|
|
|
this.dataList.forEach(item => {
|
|
|
- this.moldChange(item.moldId, item, this.dicArea, false)
|
|
|
+ this.moldChange(item.moldId, item, this.dicArea)
|
|
|
+ item.payMethod = item.payMethod.toString();
|
|
|
})
|
|
|
this.oldForm = {...this.form};
|
|
|
this.oldDataList = [...this.dataList];
|
|
@@ -713,13 +714,10 @@ export default {
|
|
|
onClose(val) {
|
|
|
this.switchDialog = val;
|
|
|
},
|
|
|
- moldChange(e, row, list, remove = true) {
|
|
|
- if (remove && row.moldId != e) {
|
|
|
- this.$set(row, 'detailId', null);
|
|
|
- }
|
|
|
+ moldChange(e, row, list) {
|
|
|
list.forEach(item => {
|
|
|
if (e == item.value) {
|
|
|
- this.$set(row, 'mold', item.title)
|
|
|
+ this.$set(row, 'mold', item.title);
|
|
|
getFeesList({size: 10, current: 1,feesTypeId: e}).then(res => {
|
|
|
this.$set(row, 'feeList', res.data.data.total > 0? res.data.data.records: []);
|
|
|
if (Math.ceil(res.data.data.total / 10) > 1) {
|
|
@@ -728,12 +726,22 @@ export default {
|
|
|
row.feeList = row.feeList.concat(e.data.data.records);
|
|
|
});
|
|
|
}
|
|
|
+ this.$nextTick(() => {
|
|
|
+ if (!(row.feeList.some(item => item.id == row.detailId))) {
|
|
|
+ this.$set(row, 'detailId', null);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ if (!(row.feeList.some(item => item.id == row.detailId))) {
|
|
|
+ this.$set(row, 'detailId', null);
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
if (item.hasChildren) {
|
|
|
- this.moldChange(e, row, item.children, false)
|
|
|
+ this.moldChange(e, row, item.children)
|
|
|
}
|
|
|
})
|
|
|
},
|