Commit bade8428 by cwq0219

预录客户-车型;二次添加服务4s店bug

1 parent 40476915
...@@ -195,6 +195,7 @@ ...@@ -195,6 +195,7 @@
v-if="form.carChildsBrandId" v-if="form.carChildsBrandId"
v-model="form.carSeriesId" v-model="form.carSeriesId"
placeholder="请选择车系" placeholder="请选择车系"
@change="getCarType(form.carSeriesId)"
style="width:150px; margin-right: 20px;" style="width:150px; margin-right: 20px;"
> >
<el-option <el-option
...@@ -604,20 +605,20 @@ export default { ...@@ -604,20 +605,20 @@ export default {
}, },
// 根据车系id获取车辆类型 // 根据车系id获取车辆类型
// getCarType(id, fn = () => { }) { getCarType(id, fn = () => { }) {
// this.$set(this.form, 'carTypeId', '') // this.$set(this.form, 'carTypeId', '')
// this.carTypeOptions = [] // this.carTypeOptions = []
// if (id) { if (id) {
// const params = { 'seriesId': id } // const params = { 'seriesId': id }
// getCarType(params).then(res => { // getCarType(params).then(res => {
// this.carTypeOptions = res || [] // this.carTypeOptions = res || []
// const o = this.carSeriesOptions.find(k => k.carSeriesId == id) const o = this.carSeriesOptions.find(k => k.carSeriesId == id)
// this.form.carSeriesName = o.carSeriesName this.form.carSeriesName = o.carSeriesName
// }) // })
// fn() fn()
// } }
// }, },
// changeCarType(id) { // changeCarType(id) {
// const o = this.carTypeOptions.find(k => k.id == id) // const o = this.carTypeOptions.find(k => k.id == id)
......
...@@ -211,12 +211,9 @@ export default { ...@@ -211,12 +211,9 @@ export default {
}, },
mounted() { mounted() {
// if (this.userInfo.beSuper) {
!this.userInfo.beSuper && (this.storeSearchForm.yqMerchantId = this.userInfo.detail.merchantId)
this.userInfo.beSuper && getParkStore({}).then(res => { this.userInfo.beSuper && getParkStore({}).then(res => {
this.parkServiceList = res this.parkServiceList = res
}) })
// }
}, },
methods: { methods: {
...@@ -247,10 +244,10 @@ export default { ...@@ -247,10 +244,10 @@ export default {
this.storeSelected = [] this.storeSelected = []
}, },
handleRelateStoreConfirm(selectedData) { handleRelateStoreConfirm(selectedData) {
this.storeSearchForm.yqMerchantId = this.userInfo.beSuper ? this.storeSearchForm.yqMerchantId : this.userInfo.detail.merchantId
this.$refs.relate.validate(valid => { this.$refs.relate.validate(valid => {
if (valid) { if (valid) {
if (!selectedData.length) { if (!selectedData.length) {
// this.notice.warningTips('请选择关联门店')
this.$message({ this.$message({
message: '请选择关联门店', message: '请选择关联门店',
type: 'warning', type: 'warning',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!