|
|
@@ -317,18 +317,11 @@ |
|
|
|
<el-table :data="dataForm.afterSaleFees" :border="true"> |
|
|
|
<el-table-column label="售后类型"> |
|
|
|
<template #header> |
|
|
|
<span class="red">*</span> |
|
|
|
售后类型 |
|
|
|
</template> |
|
|
|
<template v-slot="scope"> |
|
|
|
<div class="input-wrap"> |
|
|
|
<el-form-item :prop="`afterSaleFees.${scope.$index}.productAfterType`" :rules="[ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: '请选择售后类型', |
|
|
|
trigger: 'blur', |
|
|
|
}, |
|
|
|
]"> |
|
|
|
<el-form-item :prop="`afterSaleFees.${scope.$index}.productAfterType`"> |
|
|
|
<el-select :disabled="isInfo" @change=" |
|
|
|
(vlaue) => afterSaleFeeTypeChange(vlaue, scope.$index) |
|
|
|
" v-model="scope.row.productAfterType" placeholder="请选择售后类型"> |
|
|
@@ -342,14 +335,11 @@ |
|
|
|
|
|
|
|
<el-table-column label="费用"> |
|
|
|
<template #header> |
|
|
|
<span class="red">*</span> |
|
|
|
费用 |
|
|
|
</template> |
|
|
|
<template v-slot="scope"> |
|
|
|
<div class="input-wrap"> |
|
|
|
<el-form-item :prop="`afterSaleFees.${scope.$index}.amount`" :rules="[ |
|
|
|
{ required: true, message: '请输入', trigger: 'bulr' }, |
|
|
|
]"> |
|
|
|
<el-form-item :prop="`afterSaleFees.${scope.$index}.amount`"> |
|
|
|
<el-input maxlength="60" :disabled="isInfo" v-trim clearable @input=" |
|
|
|
handleBeforeInput( |
|
|
|
scope.$index, |
|
|
@@ -748,6 +738,7 @@ function add(form) { |
|
|
|
dataForm.processingFeeList = [JSON.parse(JSON.stringify(processingFeeObj))] |
|
|
|
dataForm.useFeeList = [JSON.parse(JSON.stringify(useFeeObj))] |
|
|
|
dataForm.afterSaleFees = [JSON.parse(JSON.stringify(afterSaleFeesObj))] |
|
|
|
dataForm.vehiclePalce = [] |
|
|
|
afterProcessingFeeList.value = [] |
|
|
|
afterUseFeeList.value = [] |
|
|
|
afterAfterSaleFees.value = [] |
|
|
@@ -820,8 +811,13 @@ function submit(data: any) { |
|
|
|
[] |
|
|
|
datas.useFeeList = |
|
|
|
JSON.parse(JSON.stringify(toRaw(dataForm.useFeeList ?? null))) ?? [] |
|
|
|
datas.afterSaleFees = |
|
|
|
JSON.parse(JSON.stringify(toRaw(dataForm.afterSaleFees ?? null))) ?? [] |
|
|
|
|
|
|
|
let af = JSON.parse(JSON.stringify(toRaw(dataForm.afterSaleFees ?? null))) ?? [] |
|
|
|
if(isPropertyEmpty(af,'amount') && isPropertyEmpty(af,'productAfterType')){ |
|
|
|
af=null |
|
|
|
} |
|
|
|
datas.afterSaleFees = af |
|
|
|
|
|
|
|
if (datas.processingFeeList) |
|
|
|
datas.processingFeeList.forEach((item) => { |
|
|
|
item.amount = item.amount * 100 |
|
|
@@ -868,7 +864,9 @@ function submit(data: any) { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
function isPropertyEmpty(obj, prop) { |
|
|
|
return !obj || obj[prop] == null || obj[prop] === ''; |
|
|
|
} |
|
|
|
const productStandardsIdList = ref() |
|
|
|
// 获取产品标准列表 |
|
|
|
function getProductStandardsIdList() { |