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) {
...@@ -12,7 +11,7 @@ export function getList(data) { ...@@ -12,7 +11,7 @@ export function getList(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")
} }
// 车损权益规则查看 // 车损权益规则查看
...@@ -30,4 +29,4 @@ export function vdruleExport(data) { ...@@ -30,4 +29,4 @@ export function vdruleExport(data) {
export function getshopMerchantList(data) { export function getshopMerchantList(data) {
data.method = `dj.smartcarlife.api.shopMerchant.list` data.method = `dj.smartcarlife.api.shopMerchant.list`
return request(data) return request(data)
}
\ No newline at end of file \ No newline at end of file
}
...@@ -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 => {
......
...@@ -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!