Browse Source

bug修改

master
yangpeilai 2 weeks ago
parent
commit
6902fa76d1

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

const typeOption = ref('') const typeOption = ref('')
const channel = ref('') const channel = ref('')
const authorizationStart = ref(false) const authorizationStart = ref(false)
console.log(provinceAndCityData, 'provinceAndCityData')
// console.log(provinceAndCityData, 'provinceAndCityData')


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

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

<el-table :data="dataForm.afterSaleFees" :border="true"> <el-table :data="dataForm.afterSaleFees" :border="true">
<el-table-column label="售后类型"> <el-table-column label="售后类型">
<template #header> <template #header>
<span class="red">*</span>
售后类型 售后类型
</template> </template>
<template v-slot="scope"> <template v-slot="scope">
<div class="input-wrap"> <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=" <el-select :disabled="isInfo" @change="
(vlaue) => afterSaleFeeTypeChange(vlaue, scope.$index) (vlaue) => afterSaleFeeTypeChange(vlaue, scope.$index)
" v-model="scope.row.productAfterType" placeholder="请选择售后类型"> " v-model="scope.row.productAfterType" placeholder="请选择售后类型">


<el-table-column label="费用"> <el-table-column label="费用">
<template #header> <template #header>
<span class="red">*</span>
费用 费用
</template> </template>
<template v-slot="scope"> <template v-slot="scope">
<div class="input-wrap"> <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=" <el-input maxlength="60" :disabled="isInfo" v-trim clearable @input="
handleBeforeInput( handleBeforeInput(
scope.$index, scope.$index,
dataForm.processingFeeList = [JSON.parse(JSON.stringify(processingFeeObj))] dataForm.processingFeeList = [JSON.parse(JSON.stringify(processingFeeObj))]
dataForm.useFeeList = [JSON.parse(JSON.stringify(useFeeObj))] dataForm.useFeeList = [JSON.parse(JSON.stringify(useFeeObj))]
dataForm.afterSaleFees = [JSON.parse(JSON.stringify(afterSaleFeesObj))] dataForm.afterSaleFees = [JSON.parse(JSON.stringify(afterSaleFeesObj))]
dataForm.vehiclePalce = []
afterProcessingFeeList.value = [] afterProcessingFeeList.value = []
afterUseFeeList.value = [] afterUseFeeList.value = []
afterAfterSaleFees.value = [] afterAfterSaleFees.value = []
[] []
datas.useFeeList = datas.useFeeList =
JSON.parse(JSON.stringify(toRaw(dataForm.useFeeList ?? null))) ?? [] 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) if (datas.processingFeeList)
datas.processingFeeList.forEach((item) => { datas.processingFeeList.forEach((item) => {
item.amount = item.amount * 100 item.amount = item.amount * 100
}) })
}) })
} }

function isPropertyEmpty(obj, prop) {
return !obj || obj[prop] == null || obj[prop] === '';
}
const productStandardsIdList = ref() const productStandardsIdList = ref()
// 获取产品标准列表 // 获取产品标准列表
function getProductStandardsIdList() { function getProductStandardsIdList() {

Loading…
Cancel
Save