Commit 2723f680 by cwq0219

提交

1 parent 7eb4f6d8
...@@ -14,8 +14,8 @@ import { VueRouter } from '@/router' ...@@ -14,8 +14,8 @@ import { VueRouter } from '@/router'
const render = (base, routes) => { const render = (base, routes) => {
const router = new VueRouter({ const router = new VueRouter({
base, base,
routes, routes
mode: 'history' // mode: 'history'
}) })
const vm = new Vue({ const vm = new Vue({
router, router,
......
...@@ -17,6 +17,9 @@ import { routes } from '@/router' ...@@ -17,6 +17,9 @@ import { routes } from '@/router'
export async function start() { export async function start() {
if (window.__POWERED_BY_QIANKUN__) return if (window.__POWERED_BY_QIANKUN__) return
const { response, request, request_brand, sign, secret } = await fetchConfig() const { response, request, request_brand, sign, secret } = await fetchConfig()
window.logout = function() {
console.log('cwq--------------')
}
var urlParams = {} var urlParams = {}
window.location.href.split('?').length > 1 window.location.href.split('?').length > 1
? window.location.href ? window.location.href
......
...@@ -511,7 +511,7 @@ export default { ...@@ -511,7 +511,7 @@ export default {
var invoicePrice = (this.editForm.vehicle.invoicePrice * 100).toFixed(2) var invoicePrice = (this.editForm.vehicle.invoicePrice * 100).toFixed(2)
console.log(targetItem) console.log(targetItem)
targetItem && targetItem.servicePackagePrices.forEach(item => { targetItem && targetItem.servicePackagePrices.forEach(item => {
if (invoicePrice > item.carButtomPrice && invoicePrice < item.carHighestPrice) { if (invoicePrice >= item.carButtomPrice && invoicePrice < item.carHighestPrice) {
this.editForm.suggestedSellingPrice = (item.retailPrice / 100).toFixed(2) this.editForm.suggestedSellingPrice = (item.retailPrice / 100).toFixed(2)
} }
}) })
......
...@@ -47,10 +47,17 @@ export default { ...@@ -47,10 +47,17 @@ export default {
return { return {
size: 'small', size: 'small',
userInfo: {}, userInfo: {},
levelToShow: {
1: 'merchantId',
2: 'dqtId',
3: 'pqId',
4: 'mdId'
},
searchForm: { searchForm: {
queryText: '', queryText: '',
orderStatus: '', orderStatus: '',
packageCode: '', packageCode: '',
merchantId: '',
successDate: [], successDate: [],
effectiveDate: [] effectiveDate: []
}, },
...@@ -107,13 +114,19 @@ export default { ...@@ -107,13 +114,19 @@ export default {
}, },
{ {
label: '总部', label: '总部',
name: 'merchantIds', name: 'merchantId',
type: 'select', type: 'select',
optionList: [], optionList: [],
optionId: 'confId', optionId: 'merchantId',
optionLabel: 'confName', optionLabel: 'merchantName',
optionsName: 'merchantList', optionsName: 'merchantList',
isHide: true isHide: true,
changeAttr: val => {
console.log(val)
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow['2'])
this.searchFormData[idx].isHide = false
this.getMerchantList(val, 2, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
}
}, },
{ {
label: '大区', label: '大区',
...@@ -326,22 +339,28 @@ export default { ...@@ -326,22 +339,28 @@ export default {
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
}) })
this.$apis.beforeSale.getUserInfoApi({}).then(res => { this.$apis.beforeSale.getUserInfoApi({}).then(res => {
console.log(res)
this.userInfo = res this.userInfo = res
var levelToShow = { var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[res.merchantAccountLevel])
1: 'merchantIds', this.searchFormData[idx].isHide = false
2: 'dqtId', this.baseData[this.searchFormData[idx].optionsName] = [{
3: 'pqId', merchantNo: this.userInfo.merchantNo,
4: 'mdId' merchantName: this.userInfo.merchantName
} }]
this.getOptionsList('searchFormData', false, this.searchFormData[idx].name)
// this.getMerchantList(this.userInfo.merchantNo, this.userInfo.merchantAccountLevel, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
}) })
// this.getMerchantList('', 'merchantIds', 'merchantList')
}, },
methods: { methods: {
getMerchantList(id, attrName, listName) { getMerchantList(merchantId, accountLevel, attrName, listName) {
var params = {} var params = {
// this.$apis.beforeSearchFn.getMerchantApi() merchantId: merchantId,
accountLevel: accountLevel
}
this.$apis.beforeSale.getMerchantApi(params).then(res => {
this.baseData[listName] = res
this.getOptionsList('searchFormData', false, attrName)
})
}, },
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
...@@ -537,6 +556,7 @@ export default { ...@@ -537,6 +556,7 @@ export default {
this.searchForm = { this.searchForm = {
queryText: '', queryText: '',
orderStatus: '', orderStatus: '',
merchantId: '',
successDate: [], successDate: [],
effectiveDate: [] effectiveDate: []
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!