Commit 7452ff24 by Lin

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

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