Commit 7452ff24 by Lin

feat: 门店毛利额/新增修改弹框处理

1 parent 057c8576
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
:prop="operationType =='add'?'merchantId':''"> :prop="operationType =='add'?'merchantId':''">
<div v-if="operationType =='add'"> <div v-if="operationType =='add'">
<el-select v-model="formData.merchantId" <el-select v-model="formData.merchantId"
placeholder="请选择" placeholder="请选择4S门店"
remote remote
reserve-keyword reserve-keyword
@visible-change="visibleChange" @visible-change="visibleChange"
...@@ -41,8 +41,11 @@ ...@@ -41,8 +41,11 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="业务类型:" :prop="operationType =='add'?'businessType':''"> <el-form-item label="业务类型:" :prop="operationType =='add'?'businessType':''">
<div v-if="operationType =='add'"> <div v-if="operationType =='add'">
<el-select v-model="formData.businessType" class="sortInput" placeholder="请先选择4S店" @change="handleChangeBusiness"> <el-select v-model="formData.businessType" class="sortInput" placeholder="请先选择业务类型" @change="handleChangeBusiness">
<el-option v-for="subItem in baseData.businessTypeList" <!-- 选项数据与4s点联调 -->
<!-- <el-option v-for="subItem in baseData.businessTypeList" -->
<!-- 默认独立选项数据 -->
<el-option v-for="subItem in defaultBusinessList"
:key="subItem.confId" :key="subItem.confId"
:label="`${subItem.confValue}`" :label="`${subItem.confValue}`"
:value="subItem.confId"> :value="subItem.confId">
...@@ -64,7 +67,7 @@ ...@@ -64,7 +67,7 @@
type="month" type="month"
value-format="yyyy-MM" value-format="yyyy-MM"
format="yyyy-MM" format="yyyy-MM"
placeholder="选择月" placeholder="选择月份"
:picker-options="pickerOption" :picker-options="pickerOption"
class="sortInput"> class="sortInput">
</el-date-picker> </el-date-picker>
...@@ -80,7 +83,7 @@ ...@@ -80,7 +83,7 @@
<div v-if="operationType !='detail'"> <div v-if="operationType !='detail'">
<el-input v-model="formData.dealRate" <el-input v-model="formData.dealRate"
@input="dealRate_handleInput" @input="dealRate_handleInput"
placeholder="请输入" placeholder="请输入毛利额"
class="sortInput" /> class="sortInput" />
</div> </div>
<div v-else> <div v-else>
...@@ -120,11 +123,11 @@ import { limitPrice } from '@/common/format' ...@@ -120,11 +123,11 @@ import { limitPrice } from '@/common/format'
import { getList } from "@api/merchant" import { getList } from "@api/merchant"
import { outputValue_operTypeOpt } from "@/common/constants.js" import { outputValue_operTypeOpt } from "@/common/constants.js"
import { insertPersonalConfig, getById_personal, getCarBrand, getStaffDataApi } from '@api/shopConfig' import { insertPersonalConfig, getById_personal, getCarBrand, getStaffDataApi } from '@api/shopConfig'
// import reportTrackFunMixin from '@/mixins/reportTrackFunMixin' import reportTrackFunMixin from '@/mixins/reportTrackFunMixin'
export default { export default {
name: 'EditDialog', name: 'EditDialog',
// mixins: [reportTrackFunMixin], mixins: [reportTrackFunMixin],
directives: { directives: {
'el-select-loadmore': { 'el-select-loadmore': {
bind(el, binding) { bind(el, binding) {
...@@ -238,6 +241,9 @@ export default { ...@@ -238,6 +241,9 @@ export default {
}, { }, {
confId: 2, confId: 2,
confValue: '延保' confValue: '延保'
}, {
confId: 3,
confValue: '二手车'
}] }]
} }
}, },
......
...@@ -79,14 +79,12 @@ ...@@ -79,14 +79,12 @@
:show-btn-ids="['9061940']" /> :show-btn-ids="['9061940']" />
</span> </span>
<!-- 修改 --> <!-- 修改 -->
<span style="margin-right: 10px" <span style="margin-right: 10px">
v-if="scope.scope.allowUpdate == true">
<auth-button :data="scope.scope" <auth-button :data="scope.scope"
:show-btn-ids="['9061941']" /> :show-btn-ids="['9061941']" />
</span> </span>
<!-- 删除 --> <!-- 删除 -->
<span style="margin-right: 10px" <span style="margin-right: 10px">
v-if="scope.scope.allowUpdate == true">
<auth-button :data="scope.scope" <auth-button :data="scope.scope"
:show-btn-ids="['9061942']" /> :show-btn-ids="['9061942']" />
</span> </span>
...@@ -263,16 +261,21 @@ ...@@ -263,16 +261,21 @@
}, { }, {
confId: 2, confId: 2,
confValue: '延保' confValue: '延保'
}, {
confId: 3,
confValue: '二手车'
}], }],
businessOptShowClass: { businessOptShowClass: {
0: "type-yellow", 0: "type-yellow",
1: "type-blue", 1: "type-blue",
2: "type-green" 2: "type-green",
3: "type-purple"
}, },
businessNameShow: { businessNameShow: {
0: "轻改", 0: "轻改",
1: "权益", 1: "权益",
2: "延保" 2: "延保",
3: "二手车"
}, },
}, },
fileRules: { fileRules: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!