Commit 2723f680 by cwq0219

提交

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