Commit fbc7b1e0 by 张立顺

fix

1 parent 9ffad6b0
<!-- 关联门店弹窗 -->
<template>
<d2-dialog title="选择品牌" :is-visible.sync="relateStoreVisible" width="60%" btn-ok-label="确定" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore">
<d2-dialog title="选择品牌" :is-visible.sync="relateStoreVisible" width="1075px" btn-ok-label="确定" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore">
<el-form :model="storeSearchForm" ref="relate" :inline="true">
<el-form-item label="品牌名称:">
<el-input v-model.trim="storeSearchForm.brandName" placeholder="品牌名称" max-length="20" @keydown.native="handleStoreInput" clearable />
......@@ -29,11 +29,6 @@
<el-table-column prop="brandName" label="品牌名称" align="center"></el-table-column>
<el-table-column prop="childName" label="子品牌名称" align="center"></el-table-column>
<el-table-column prop="seriesName" label="车系名称" align="center"></el-table-column>
<!-- <el-table-column prop="merchantName" label="品牌名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.label }}</span>
</template>
</el-table-column> -->
<el-table-column label="删除" align="center" width="80px">
<template slot-scope="scope">
<el-button class="el-icon-delete" @click="handleDelete(scope.row)" type="text" />
......@@ -144,16 +139,18 @@ export default {
margin: 0 auto 20px !important;
}
.relateStore .tableCon {
width: 100%;
margin-top: 20px;
display: flex;
justify-content: space-between;
.tableBox {
flex: 1;
// width: 600px !important;
// flex: 1;
width: 500px !important;
}
.tableRight {
box-sizing: border-box;
flex: 1;
// flex: 1;
width: 500px !important;
// margin-left: 35px;
// width: 300px !important;
}
......
......@@ -106,8 +106,10 @@
</div>
<el-form-item label="规格值:" prop="specificationValueList">
<el-tag style="margin-right: 10px" v-for="(tag, i) in spescEditForm.specificationValueList" :key="i" @click="changeValue(tag, i)" closable @close="handleSpescDelete(tag)">{{ tag.specificationValue }}</el-tag>
<el-input class="input-new-tag" v-if="specsInputVisible && spescEditForm.type != 3" v-model="spescInputVal" ref="saveSpescInput" maxlength="20" size="small" @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm"></el-input>
<input-number-range v-else-if="specsInputVisible && spescEditForm.type == 3" :disabled="false" :precision="num" :spescInputVal="spescInputVal" @confirm="handleInputConfirmMue"></input-number-range>
<!-- <el-input min="0" max="100" clearable type="number" step="0.0001" class="!w-[120px]" placeholder="输入检测值" v-model="value" @input="value = value.replace(/^(100|[1-9]?\d)(\.\d{0,4})?.*$/, '$1$2')"></el-input> -->
<el-input class="input-new-tag" v-if="specsInputVisible && spescEditForm.type == 0" v-model="spescInputVal" maxlength="10" ref="saveSpescInput" size="small" @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm"></el-input>
<el-input min="0" max="100" type="number" class="input-new-tag" v-else-if="specsInputVisible && spescEditForm.type != 3" v-model="spescInputVal" ref="saveSpescInput" @input="spescInputVal = spescInputVal.replace(/^(100|[1-9]?\d).*$/, '$1')" size="small" @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm"></el-input>
<input-number-range v-else-if="specsInputVisible && spescEditForm.type == 3" :disabled="false" :precision="num" :spescInputVal="spescInputVal" @confirm="handleInputConfirmMue" @input="spescInputVal = spescInputVal.replace(/^(100|[1-9]?\d)(\.\d{0,4})?.*$/, '$1$2')"></input-number-range>
<el-button v-else class="button-new-tag" size="small" @click="showInput">+ 规格值</el-button>
</el-form-item>
</el-form>
......@@ -151,6 +153,7 @@ export default {
},
data() {
return {
value: '',
skuVisible: false,
carSelectName: '',
isAllow: false,
......
......@@ -306,9 +306,10 @@ export default {
val.createdDateStr = `${val.createdBy}${spaces}${dayjs(val.createdDate).format('YYYY-MM-DD HH:mm:ss')}`
// 规格A,服务年限5年,,投保成本/元 上架成本/元 嘀加成本/元
// val.content = `规格${val.serviceGrade},服务年限${val.servicePeriod}年,`
val.content = `【${val.recordType == 1 ? '删除' : '修改'}】,投保成本${val.insuranceCost}元,上架成本${val.shelfCost}元,嘀加成本${val.salesCost}元,`
val.content = ''
let childContent = ''
if (val.recordType == 1) {
val.content = `【${val.recordType == 1 ? '删除' : '修改'}】投保成本${val.insuranceCost}元,上架成本${val.shelfCost}元,嘀加成本${val.salesCost}元,`
val?.deleteList?.forEach((v, index) => {
// const unit = ['maxPrice', 'minPrice']?.includes(v.field) ? '万元' : ['priceCoefficient']?.includes(v.field) ? '' : '元'
childContent = `${v.fieldName}${v.beforeValue}${v.valueUnit}${index < val?.detailList?.length - 1 ? ',' : ''}`
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!