Commit bcbc9145 by 张立顺

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

1 parent 99e37207
import request from './request'
const path = 'dj.api.smartcarlife.'
import request from "./request"
const path = "dj.api.smartcarlife."
// 车损权益规则分页列表
export function getList(data) {
data.method = `${path}vdrule.page`
return request(data)
data.method = `${path}vdrule.page`
return request(data)
}
// 车损权益规则新增/编辑
export function insertorUpdate(data) {
data.method = `${path}vdrule.insertorupdate`
return request(data)
data.method = `${path}vdrule.insertorupdate`
return request(data, "Post")
}
// 车损权益规则查看
export function quotationDetail(data) {
data.method = `${path}vdrule.detail`
return request(data)
data.method = `${path}vdrule.detail`
return request(data)
}
// 车损权益规则导出
export function vdruleExport(data) {
data.method = `${path}vdrule.export`
return request(data)
data.method = `${path}vdrule.export`
return request(data)
}
export function getshopMerchantList(data) {
data.method = `dj.smartcarlife.api.shopMerchant.list`
return request(data)
}
\ No newline at end of file
data.method = `dj.smartcarlife.api.shopMerchant.list`
return request(data)
}
......@@ -279,10 +279,10 @@ export default {
this.baseData.parkServiceList = res
this.getOptionsList()
})
if (!this.userInfo.beSuper) {
this.showFormData = this.showFormData.filter(item => item.name !== 'yqMerchantId')
this.getServiceStore(this.userInfo.detail.merchantId)
}
// if (!this.userInfo.beSuper) {
// this.showFormData = this.showFormData.filter(item => item.name !== 'yqMerchantId')
// this.getServiceStore(this.userInfo.detail.merchantId)
// }
},
methods: {
......@@ -290,7 +290,7 @@ export default {
beforeSearchFn() {
return new Promise(resolve => {
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) {
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'
......@@ -309,7 +309,8 @@ export default {
baseGoodsId: '',
merchantId: ''
}
this.userInfo.beSuper && (this.baseData.storeIdList = [])
// this.userInfo.beSuper && (this.baseData.storeIdList = [])
this.baseData.storeIdList = []
this.baseData.adviserList = []
this.baseData.goodList = []
this.getOptionsList()
......@@ -359,7 +360,8 @@ export default {
},
handleImport() {
this.fileForm = {
yqMerchantId: this.userInfo.beSuper ? '' : this.userInfo.detail.merchantId,
// yqMerchantId: this.userInfo.beSuper ? '' : this.userInfo.detail.merchantId,
yqMerchantId: '',
fileName: ''
}
this.showNum = false
......@@ -387,7 +389,8 @@ export default {
var params = {
advanceUserId: this.userInfo.detail.uuid,
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
}
recordUpload(params).then(res => {
......
......@@ -119,8 +119,8 @@
<el-form-item required label="价格区间:" class="sectionCon">
<el-col :span="8">
<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">
<template slot="append">万元</template>
</el-input>
......@@ -131,8 +131,8 @@
</el-col>
<el-col :span="8">
<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">
<template slot="append">万元</template>
</el-input>
......@@ -403,6 +403,7 @@ export default {
carPriceUpperLimit: "30"
})
delete params.vdRuleIntervalList
delete params.quotationGoodsInfo
resolve(params)
})
} else {
......@@ -410,6 +411,7 @@ export default {
if (valid) {
const form = deepClone(this.form)
const storeForm = deepClone(this.storeForm)
delete storeForm.quotationGoodsInfo
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!