Commit bcbc9145 by 张立顺

预览信息 去除不是超管带园区参数的逻辑

1 parent 99e37207
import request from './request' import request from "./request"
const path = 'dj.api.smartcarlife.'
const path = "dj.api.smartcarlife."
// 车损权益规则分页列表 // 车损权益规则分页列表
export function getList(data) { export function getList(data) {
data.method = `${path}vdrule.page` data.method = `${path}vdrule.page`
return request(data) return request(data)
} }
// 车损权益规则新增/编辑 // 车损权益规则新增/编辑
export function insertorUpdate(data) { export function insertorUpdate(data) {
data.method = `${path}vdrule.insertorupdate` data.method = `${path}vdrule.insertorupdate`
return request(data) return request(data, "Post")
} }
// 车损权益规则查看 // 车损权益规则查看
export function quotationDetail(data) { export function quotationDetail(data) {
data.method = `${path}vdrule.detail` data.method = `${path}vdrule.detail`
return request(data) return request(data)
} }
// 车损权益规则导出 // 车损权益规则导出
export function vdruleExport(data) { export function vdruleExport(data) {
data.method = `${path}vdrule.export` data.method = `${path}vdrule.export`
return request(data) return request(data)
} }
export function getshopMerchantList(data) { export function getshopMerchantList(data) {
data.method = `dj.smartcarlife.api.shopMerchant.list`
return request(data)
}
\ No newline at end of file \ No newline at end of file
data.method = `dj.smartcarlife.api.shopMerchant.list`
return request(data)
}
...@@ -279,10 +279,10 @@ export default { ...@@ -279,10 +279,10 @@ export default {
this.baseData.parkServiceList = res this.baseData.parkServiceList = res
this.getOptionsList() this.getOptionsList()
}) })
if (!this.userInfo.beSuper) { // if (!this.userInfo.beSuper) {
this.showFormData = this.showFormData.filter(item => item.name !== 'yqMerchantId') // this.showFormData = this.showFormData.filter(item => item.name !== 'yqMerchantId')
this.getServiceStore(this.userInfo.detail.merchantId) // this.getServiceStore(this.userInfo.detail.merchantId)
} // }
}, },
methods: { methods: {
...@@ -290,7 +290,7 @@ export default { ...@@ -290,7 +290,7 @@ export default {
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.tableSearchForm = deepClone(this.searchForm) this.tableSearchForm = deepClone(this.searchForm)
!this.userInfo.beSuper && (this.tableSearchForm.yqMerchantId = this.userInfo.detail.merchantId) // !this.userInfo.beSuper && (this.tableSearchForm.yqMerchantId = this.userInfo.detail.merchantId)
if (this.tableSearchForm.entryTime) { if (this.tableSearchForm.entryTime) {
this.tableSearchForm.startDate = new Date(this.tableSearchForm.entryTime[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00' this.tableSearchForm.startDate = new Date(this.tableSearchForm.entryTime[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
this.tableSearchForm.endDate = new Date(this.tableSearchForm.entryTime[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59' this.tableSearchForm.endDate = new Date(this.tableSearchForm.entryTime[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
...@@ -309,7 +309,8 @@ export default { ...@@ -309,7 +309,8 @@ export default {
baseGoodsId: '', baseGoodsId: '',
merchantId: '' merchantId: ''
} }
this.userInfo.beSuper && (this.baseData.storeIdList = []) // this.userInfo.beSuper && (this.baseData.storeIdList = [])
this.baseData.storeIdList = []
this.baseData.adviserList = [] this.baseData.adviserList = []
this.baseData.goodList = [] this.baseData.goodList = []
this.getOptionsList() this.getOptionsList()
...@@ -359,7 +360,8 @@ export default { ...@@ -359,7 +360,8 @@ export default {
}, },
handleImport() { handleImport() {
this.fileForm = { this.fileForm = {
yqMerchantId: this.userInfo.beSuper ? '' : this.userInfo.detail.merchantId, // yqMerchantId: this.userInfo.beSuper ? '' : this.userInfo.detail.merchantId,
yqMerchantId: '',
fileName: '' fileName: ''
} }
this.showNum = false this.showNum = false
...@@ -387,7 +389,8 @@ export default { ...@@ -387,7 +389,8 @@ export default {
var params = { var params = {
advanceUserId: this.userInfo.detail.uuid, advanceUserId: this.userInfo.detail.uuid,
advanceUserName: this.userInfo.merchantAccountLevel == 4 ? this.userInfo.detail.userName : this.userInfo.detail.merchantName, advanceUserName: this.userInfo.merchantAccountLevel == 4 ? this.userInfo.detail.userName : this.userInfo.detail.merchantName,
yqMerchantId: this.userInfo.beSuper ? this.fileForm.yqMerchantId : this.userInfo.detail.merchantId, // yqMerchantId: this.userInfo.beSuper ? this.fileForm.yqMerchantId : this.userInfo.detail.merchantId,
yqMerchantId: this.fileForm.yqMerchantId,
file: this.fileInfo file: this.fileInfo
} }
recordUpload(params).then(res => { recordUpload(params).then(res => {
......
...@@ -119,8 +119,8 @@ ...@@ -119,8 +119,8 @@
<el-form-item required label="价格区间:" class="sectionCon"> <el-form-item required label="价格区间:" class="sectionCon">
<el-col :span="8"> <el-col :span="8">
<el-form-item :prop="'vdRuleIntervalList.' + index + '.low'" :rules="[ <el-form-item :prop="'vdRuleIntervalList.' + index + '.low'" :rules="[
{ required: true, message: '请输入最低价格区间', trigger: 'change' } { required: true, message: '请输入最低价格区间', trigger: 'change' }
]"> ]">
<el-input :disabled="isEdit" v-model="item.low"> <el-input :disabled="isEdit" v-model="item.low">
<template slot="append">万元</template> <template slot="append">万元</template>
</el-input> </el-input>
...@@ -131,8 +131,8 @@ ...@@ -131,8 +131,8 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item :prop="'vdRuleIntervalList.' + index + '.high'" :rules="[{ required: true, message: '请输入最高价格区间', trigger: 'change' }, <el-form-item :prop="'vdRuleIntervalList.' + index + '.high'" :rules="[{ required: true, message: '请输入最高价格区间', trigger: 'change' },
{ validator: (rule, value, callback) => { validateAccount(rule, value, callback, item) }, trigger: 'change' } { validator: (rule, value, callback) => { validateAccount(rule, value, callback, item) }, trigger: 'change' }
]"> ]">
<el-input :disabled="isEdit" v-model="item.high"> <el-input :disabled="isEdit" v-model="item.high">
<template slot="append">万元</template> <template slot="append">万元</template>
</el-input> </el-input>
...@@ -403,6 +403,7 @@ export default { ...@@ -403,6 +403,7 @@ export default {
carPriceUpperLimit: "30" carPriceUpperLimit: "30"
}) })
delete params.vdRuleIntervalList delete params.vdRuleIntervalList
delete params.quotationGoodsInfo
resolve(params) resolve(params)
}) })
} else { } else {
...@@ -410,6 +411,7 @@ export default { ...@@ -410,6 +411,7 @@ export default {
if (valid) { if (valid) {
const form = deepClone(this.form) const form = deepClone(this.form)
const storeForm = deepClone(this.storeForm) const storeForm = deepClone(this.storeForm)
delete storeForm.quotationGoodsInfo
resolve({ ...storeForm, vdRuleIntervalList: form.vdRuleIntervalList } resolve({ ...storeForm, vdRuleIntervalList: form.vdRuleIntervalList }
) )
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!