Browse Source

调整代码

xz
zhoujie 10 months ago
parent
commit
3fb734fd6d

+ 25
- 1
src/views/onlineBusinessHall/productManagement/releaseProduct/index.vue View File

@@ -1187,6 +1187,8 @@ function handleInfo(idx: any, row: any) {
isInfo.value = true
afterProcessingFeeList.value = []
afterUseFeeList.value = []
row.expenseType = row.processingFeeList?.length > 0 ? 1 : 2
handleChangeFeeInfo(row.expenseType)
}
// 操作记录详情
const afterProcessingFeeList = ref<any>([])
@@ -1369,6 +1371,26 @@ const handleChangeExpenseType = (value) => {
}
})
}
const handleChangeFeeInfo = (value) => {
field.value.dialogArray.forEach((item) => {
if (value == 1) {
if (item.prop == 'processingFeeList') {
item.form.hideInfo = false
}
if (item.prop == 'useFeeList') {
item.form.hideInfo = true
}
}
if (value == 2) {
if (item.prop == 'processingFeeList') {
item.form.hideInfo = true
}
if (item.prop == 'useFeeList') {
item.form.hideInfo = false
}
}
})
}
// 字段列表
const dataForm = reactive<{
processingFeeList: any
@@ -2102,6 +2124,7 @@ let field = ref<any>({
hide: true,
listData: expenseTypeOptions,
form: {
hideInfo:true,
width: '45%',
placeholder: '请选择费用类型',
formLabelWidth: '120px',
@@ -2117,6 +2140,7 @@ let field = ref<any>({
span: 3,
form: {
width: '95%',
hideInfo:true,
hideEdit: true,
slotSetEdit: true,
slotSetNameEdit: 'processingFeeList',
@@ -2133,7 +2157,7 @@ let field = ref<any>({
form: {
width: '95%',
hideEdit: true,
hideInfo:true,
slotSetEdit: true,
slotSetNameEdit: 'useFeeList',
slotSetInfo: true,

Loading…
Cancel
Save