Browse Source

bug修改

master
yangpeilai 1 week ago
parent
commit
6902fa76d1

+ 3
- 3
src/views/onlineBusinessHall/productManagement/promoteAnd/index.vue View File

@@ -96,7 +96,7 @@ const authorData = ref({ agencyIds: '' })
const typeOption = ref('')
const channel = ref('')
const authorizationStart = ref(false)
console.log(provinceAndCityData, 'provinceAndCityData')
// console.log(provinceAndCityData, 'provinceAndCityData')

function handleChangeReason(b) {
field.value.dialogArray.forEach((item) => {
@@ -743,7 +743,7 @@ onActivated(() => {
// getmerchantList()
getmerchantListTx()
})
const ReleaseIdIdList = ref()
const releaseIdIdList = ref()
function getReleaseIdIdList() {
BaseService.post('/managew/api/product/promotion/all', {}).then(
(res: any) => {
@@ -751,7 +751,7 @@ function getReleaseIdIdList() {
//数据转换
let bizContent = res
let data = bizContent.data || []
ReleaseIdIdList.value = data.map((itemData) => {
releaseIdIdList.value = data.map((itemData) => {
return {
label: itemData.productName,
value: itemData.releaseId,

+ 13
- 15
src/views/onlineBusinessHall/productManagement/releaseProduct/index.vue View File

@@ -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() {

Loading…
Cancel
Save