Commit b5d0eb4b by cen

Merge branch 'V4.56.0' of http://192.168.3.233:8090/glsx/gl_tape into V4.56.0

2 parents 41c4220d ea4b3257
...@@ -53,4 +53,14 @@ module.exports = { ...@@ -53,4 +53,14 @@ module.exports = {
...data ...data
}) })
}, },
/**
* 获取商品列表
*/
getGoodsList (data) {
return http.post({
method: 'dj.api.smartcarlife.selectOrderGoods.list',
projectName: 'boutique',
...data
})
},
} }
\ No newline at end of file \ No newline at end of file
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<!-- 输入框 --> <!-- 输入框 -->
<template v-if="item.type === 'input'"> <template v-if="item.type === 'input'">
<view class="input-box"> <view class="input-box">
<input class="input-value" v-model="formData[item.value]" :placeholder="item.placeholder || '请输入'" <input class="input-value" v-model="formData[item.value]" :type="item.inputType || 'text'" @blur="handleBlur($event, item)" :placeholder="item.placeholder || '请输入'"
:maxlength="item.maxlength || 500" /> :maxlength="item.maxlength || 500" />
<view v-if="item.valueIcon" :class="['sprite-icon', `icon-${item.valueIcon}`]" <view v-if="item.valueIcon" :class="['sprite-icon', `icon-${item.valueIcon}`]"
@click="onValueClick(item)"></view> @click="onValueClick(item)"></view>
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
<!-- 下拉选择 --> <!-- 下拉选择 -->
<template v-else-if="item.type === 'select'"> <template v-else-if="item.type === 'select'">
<view class="value"> <view class="value">
<template v-if="formData[item.value] && formData[item.value][item.key]"> <template v-if="formData[item.value] && formData[item.value]">
<template v-if="item.showText && userInfo && userInfo[item.showText]"> <template v-if="item.showText && userInfo && userInfo[item.showText]">
{{ userInfo[item.showText] }}<text>|</text> {{ userInfo[item.showText] }}<text>|</text>
</template> </template>
{{ formData[item.value][item.key] }} {{ formData[item.value] }}
</template> </template>
<template v-else> <template v-else>
<span class="placeholder">请选择</span> <span class="placeholder">请选择</span>
...@@ -109,6 +109,9 @@ export default { ...@@ -109,6 +109,9 @@ export default {
}, },
onValueClick(item) { onValueClick(item) {
this.$emit('handleValue', item) this.$emit('handleValue', item)
},
handleBlur(e, item) {
this.$emit('inputBlur', e, item)
} }
} }
}; };
...@@ -205,6 +208,7 @@ export default { ...@@ -205,6 +208,7 @@ export default {
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
height: 100%; height: 100%;
width: 100%;
.sprite-icon { .sprite-icon {
margin-left: toRpx(8); margin-left: toRpx(8);
...@@ -214,6 +218,7 @@ export default { ...@@ -214,6 +218,7 @@ export default {
.input-value { .input-value {
height: 100%; height: 100%;
text-align: right; text-align: right;
width: 100%;
} }
.input-bottom { .input-bottom {
......
...@@ -56,6 +56,16 @@ export default { ...@@ -56,6 +56,16 @@ export default {
this.getList(searchValue, true) this.getList(searchValue, true)
}, },
choose (i) { choose (i) {
let { params: { idKey }, data } = this,
value = {
userId: data.deliveryUserId,
deliveryUserId: data.userId
}[idKey]
if ((idKey == 'userId' || idKey == 'deliveryUserId') && value == i.uuid) return uni.showToast({
title: '销售顾问/录单员与交付专员不能选取同一人',
icon: 'none',
mask: true
})
this.currentId = i.uuid this.currentId = i.uuid
this.$emit('choose', i) this.$emit('choose', i)
} }
......
<template>
<view class="goods-list">
<!-- <template v-if="list.length"> -->
<template v-for="(i, index) in (searchStatus ? searchList : list)">
<view
:key="index"
@click="choose(i)"
:class="['item flex',{active: checkActive(i)}]"
>
<view class="sprite-icon icon-tag-checked"></view>
<text class="goods-name text-hide">
{{replaceItemText(i.goods,'goodsAlias') ||replaceItemText(i.goods,'upgradeGoodsName') || replaceItemText(i.goodsInfo,'goodsName')}}
</text>
<template v-if="i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)">
<text>「{{ i.goods.positionStr}}」</text>
</template>
<text class="price">¥{{i.goods.price}}</text>
</view>
</template>
<!-- </template> -->
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'GoodsList',
inject: ['userInfo', 'baseConfigData'],
data () {
return {
list: [],
currentIds: [],
chooseList: [],
searchStatus: false,
searchList: [],
}
},
props: {
params: Object,
data: [Object, Array],
cacheData: Array
},
mounted () {
},
methods: {
async getList (searchValue) {
const { userInfo, params } = this,
{ cacheData } = params
this.currentIds = []
this.chooseList = []
if (cacheData && cacheData.length) {
this.list = this.initGoodsList(cacheData)
if (searchValue) this.handleSearch(searchValue)
return
}
const { shopMerchantId, sceneType } = userInfo,
response = await uni.$api.popupApi.getGoodsList({
merchantId: shopMerchantId,
sceneType
})
if (response && response.length) {
this.list = this.initGoodsList(response)
params.cacheData = response
this.$emit('update:params', params)
}
},
handleSearch (searchValue) {
if (!searchValue) this.searchStatus = false
else {
let { list } = this,
goodsList = JSON.parse(JSON.stringify(list)),
arr = []
goodsList.map(c => {
let name = ''
if (c.goodsFlag == 1 && c.goods) name = c.goods.goodsAlias || c.goods.upgradeGoodsName || c.goods.goodsName || ''
if (name.indexOf(searchValue) != -1) {
arr.push(c)
}
})
console.log(arr)
this.searchList = arr
this.searchStatus = true
}
},
initGoodsList (goodsData) {
let { goodsType } = this.params,
{ data } = this,
arr = []
goodsData.map(val => {
if (val.goodsFlag == 1) {
let subVal = val.goods
subVal.positionStr = subVal.position
subVal.upgradePrice = subVal.sellPrice
subVal.price = subVal.sellPrice
subVal.goodsId = subVal.merchantGoodsId
if (goodsType.includes(subVal.merchantGoodsPosition)) arr.push(val)
}
})
if (data.length) data.map(e => {
this.currentIds.push(e.goods.goodsId)
this.chooseList.push(e)
})
return arr
},
choose (i) {
let { goodsId } = i.goods,
{ currentIds } = this,
index = currentIds.indexOf(goodsId)
if (index == -1) {
this.currentIds.push(goodsId)
this.chooseList.push(i)
}
else {
this.currentIds.splice(index, 1)
this.chooseList.splice(index, 1)
}
this.$emit('choose', this.chooseList)
},
replaceItemText (item, key) {
let reg = getRegExp(';~;', 'g'),
value = item[key]
return value ? value.replace(reg, ' ') : ''
},
checkActive (i) {
let { currentIds } = this,
active = false
if (currentIds.length) active = currentIds.includes(i.goods.goodsId)
return active
}
}
}
</script>
<style scoped lang='scss'>
.goods-list {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 32rpx;
margin: 0 48rpx;
.item {
justify-content: center;
height: 72rpx;
border-radius: 8rpx;
border: 2rpx solid #dce0e6;
box-sizing: border-box;
position: relative;
color: #333333;
font-size: 32rpx;
box-sizing: border-box;
padding: 0 32rpx;
.sprite-icon {
display: none;
position: absolute;
top: 0;
right: 0;
}
.price {
margin-left: auto;
}
.goods-name {
max-width: 600rpx;
}
}
.active {
border-color: #2c66f7;
background: #ecf1ff;
color: #2c66f7;
.sprite-icon {
display: block;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -5,6 +5,15 @@ ...@@ -5,6 +5,15 @@
* 2:二级流量方 * 2:二级流量方
* 3:转化人员 * 3:转化人员
* 4:车品牌 * 4:车品牌
* 5: 礼券
* 6:前档
* 7:前侧窗玻璃
* 8:后侧窗玻璃
* 9:后档
* 10:天窗
* 11:套餐
* 12:其他精品
* 13:时间选择
*/ */
const componentConfig = { const componentConfig = {
...@@ -43,13 +52,49 @@ const componentConfig = { ...@@ -43,13 +52,49 @@ const componentConfig = {
title: '选择礼券', title: '选择礼券',
placeholder: '查找', placeholder: '查找',
idKey: 'customerCouponCode' idKey: 'customerCouponCode'
} },
6: {
name: 'GoodsList',
title: '选择商品(可多选)',
placeholder: '请输入名称',
idKey: 'goodsId',
goodsType: [1]//前档
},
7: {
name: 'GoodsList',
title: '选择商品(可多选)',
placeholder: '请输入名称',
idKey: 'goodsId',
goodsType:[2] // 前侧窗玻璃
},
8: {
name: 'GoodsList',
title: '选择商品(可多选)',
placeholder: '请输入名称',
idKey: 'goodsId',
goodsType: [3] // 后侧窗玻璃
},
9: {
name: 'GoodsList',
title: '选择商品(可多选)',
placeholder: '请输入名称',
idKey: 'goodsId',
goodsType: [5, 6, 7] // 后档
},
10: {
name: 'GoodsList',
title: '选择商品(可多选)',
placeholder: '请输入名称',
idKey: 'goodsId',
goodsType: 'skylight' // 天窗
},
} }
import EmployeeList from './components/EmployeeList.vue' import EmployeeList from './components/EmployeeList.vue'
import DiversionMerchant from './components/DiversionMerchant.vue' import DiversionMerchant from './components/DiversionMerchant.vue'
import CarModelList from './components/CarModelList.vue' import CarModelList from './components/CarModelList.vue'
import CouponList from './components/CouponList.vue' import CouponList from './components/CouponList.vue'
import GoodsList from './components/GoodsList.vue'
export default { export default {
data () { data () {
return { return {
...@@ -60,6 +105,7 @@ export default { ...@@ -60,6 +105,7 @@ export default {
EmployeeList, EmployeeList,
DiversionMerchant, DiversionMerchant,
CarModelList, CarModelList,
CouponList CouponList,
GoodsList
}, },
} }
\ No newline at end of file \ No newline at end of file
...@@ -86,25 +86,17 @@ export default { ...@@ -86,25 +86,17 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
/**
* 0:销售顾问/录单员
* 1:交付专员
* 2:二级流量方
* 3:转化专员
*/
popupType: { popupType: {
type: [Number, String], type: [Number, String],
default: 0 default: 0
}, },
data: { data: [Object, Array],
type: Object,
default: () => ({})
},
externalData: null externalData: null
}, },
provide () { provide () {
return { return {
userInfo: this.userInfo userInfo: this.userInfo,
baseConfigData: this.baseConfigData
} }
}, },
data () { data () {
...@@ -136,6 +128,9 @@ export default { ...@@ -136,6 +128,9 @@ export default {
userInfo () { userInfo () {
return uni.$storage.get("userInfo") return uni.$storage.get("userInfo")
}, },
baseConfigData () {
return this.$store.state.boutique.baseConfigData
}
}, },
mounted () { mounted () {
}, },
......
...@@ -222,7 +222,9 @@ export default { ...@@ -222,7 +222,9 @@ export default {
}, },
// 查询素材 // 查询素材
async getSoure () { async getSoure () {
let { moduleList, toolList, defaultCarId } = await uni.$api.systemApi.getBoutiqueMockData(true) let baseConfigData = await uni.$api.systemApi.getBoutiqueMockData(true),
{moduleList, toolList, defaultCarId } = baseConfigData
this.$store.state.boutique.baseConfigData = configData
this.moduleList = moduleList this.moduleList = moduleList
this.toolList = toolList this.toolList = toolList
this.defaultCarId = defaultCarId this.defaultCarId = defaultCarId
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="box"> <view class="box">
<scroll-view class="scroll-view" scroll-y="true"> <scroll-view class="scroll-view" scroll-y="true">
<view class="box-content"> <view class="box-content">
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @handleCell="handleCell"> <GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell">
<template slot="product"> <template slot="product">
<view class="shop-list"> <view class="shop-list">
<view class="shop-item"> <view class="shop-item">
...@@ -84,11 +84,11 @@ ...@@ -84,11 +84,11 @@
</template> </template>
</GlCell> </GlCell>
</view> </view>
<view @click="submit">直接下单</view> <view @click="submit" class="btn">直接下单</view>
</scroll-view> </scroll-view>
</view> </view>
<!-- 弹窗 --> <!-- 弹窗 -->
<order-popup ref="orderPopup" :data="popData" @onConfirm="onConfirm" :popupType="popupType" /> <order-popup ref="orderPopup" :data="orderObj" @onConfirm="onConfirm" :externalData="externalData" :popupType="popupType" />
</view> </view>
</template> </template>
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
}, },
data() { data() {
return { return {
orderObj: { formObj: {
userInfo: {}, userInfo: {},
deliveryUserInfo: {}, deliveryUserInfo: {},
subShopMerchantInfo: {}, subShopMerchantInfo: {},
...@@ -130,16 +130,23 @@ export default { ...@@ -130,16 +130,23 @@ export default {
experienceFlag: 'Y', experienceFlag: 'Y',
payeeType: 0, payeeType: 0,
selectPayType: '3', selectPayType: '3',
carBrand: {} carBrand: {},
customerPhone: ''
}, },
formList: FORM_LIST, formList: FORM_LIST,
userInfo: {}, userInfo: {},
requiredList: [], // 录单设置的必填项 requiredList: [], // 录单设置的必填项
popData: { orderObj: {
customer: {} customer: {},
}, customerSex: '1',
experienceFlag: 'Y',
payeeType: 0
}, // 弹窗传入的数据},
popupType: 0, popupType: 0,
popupTypeEnum popupTypeEnum,
externalData: [], //弹窗接口数据
subShopMerchantList: [], // 二级流量方列表
employeeList: []
} }
}, },
computed: { computed: {
...@@ -148,9 +155,22 @@ export default { ...@@ -148,9 +155,22 @@ export default {
else return false else return false
} }
}, },
onload(options) {
console.log(options, 'options')
},
mounted() { mounted() {
console.log('mounted') console.log('mounted')
this.userInfo = uni.$storage.get('userInfo') || {} this.userInfo = uni.$storage.get('userInfo') || {}
const { userInfo } = this
// 在原有的 orderObj 对象上新增这些属性
Object.assign(this.orderObj, {
sellerMerchantNam: userInfo.merchantName,
sellerName: userInfo.name,
sellerMerchantId: userInfo.merchantId,
sellerUserId: userInfo.uuid,
merchantId: userInfo.shopMerchantId,
merchantName: userInfo.shopMerchantName
})
this.initData() this.initData()
}, },
methods: { methods: {
...@@ -159,21 +179,23 @@ export default { ...@@ -159,21 +179,23 @@ export default {
this.getShopMerchantPointConfig(userInfo.shopMerchantId) this.getShopMerchantPointConfig(userInfo.shopMerchantId)
this.getSubShopMerchantList(userInfo.shopMerchantId) this.getSubShopMerchantList(userInfo.shopMerchantId)
this.getSetting() this.getSetting()
// this.orderObj.userInfo = { this.getConfig()
// id: 1, this.getEmployeeList()
// name: '测试'
// }
this.orderObj.sellerMerchant = {
sellerUserId: userInfo.uuid,
sellerName: userInfo.name
}
}, },
// 选择行事件 // 选择行事件
handleCell(val) { handleCell(val) {
console.log(val) console.log(val, this.orderObj)
this.popupType = Object.keys(this.popupTypeEnum).find(key => this.popupTypeEnum[key] === val.value) * 1 // 获取当前选中的popupType
console.log(this.popupType) this.popupType = Object.keys(this.popupTypeEnum).find(key => this.popupTypeEnum[key].key === val.value) * 1;
this.$refs.orderPopup.open() // 获取对应的list字段
const popupConfig = this.popupTypeEnum[this.popupType];
if (popupConfig && popupConfig.list) {
this.externalData = this[popupConfig.list] || [];
} else {
this.externalData = [];
}
console.log(this.popupType, this.externalData, '-------------')
this.$refs.orderPopup.open();
}, },
// 单选框change事件 // 单选框change事件
radioChange(e, val) { radioChange(e, val) {
...@@ -182,13 +204,40 @@ export default { ...@@ -182,13 +204,40 @@ export default {
}, },
onConfirm(val) { onConfirm(val) {
console.log(val, 'onConfirm') console.log(val, 'onConfirm')
const {chooseContent} = val
// 根据popupTypeEnum优化处理 // 根据popupTypeEnum优化处理
const typeKey = this.popupTypeEnum[this.popupType] const _typeValue = this.popupTypeEnum[this.popupType];
if (typeKey) this.orderObj[typeKey] = val console.log(_typeValue)
if (typeKey == 'carBrand') { if (_typeValue.key == 'carBrand') {
this.orderObj[typeKey].carInfo = `${val.carBrand}-${val.carChildsBrandName}-${val.carSeriesName}` // 车型
this.$set(this.orderObj, _typeValue.key, `${chooseContent.carBrand}-${chooseContent.carChildsBrandName}-${chooseContent.carSeriesName}`)
this.orderObj.customer = {
...(this.orderObj.customer || {}),
...chooseContent
}
} else if (_typeValue.key == 'couponInfo') {
// 礼券
const {couponName, merchantCouponId, customerCouponCode } = chooseContent
Object.assign(this.orderObj, {
couponName: couponName,
merchantCouponId: merchantCouponId,
customerCouponCode: customerCouponCode
})
this.$set(this.orderObj, 'couponInfo', couponName + customerCouponCode)
} else if (_typeValue.key) {
// this.formObj[_typeValue.key] = chooseContent;
this.orderObj[_typeValue.targetIdKey] = chooseContent[_typeValue.sourceIdKey]
this.$set(this.orderObj, _typeValue.targetNameKey, chooseContent[_typeValue.sourceNameKey])
} }
}, },
// 输入框失去焦点事件
inputBlur(e, val) {
console.log(e, val)
this.orderObj.customer[val.value] = this.orderObj[val.value]
},
checkRequired() {
},
// 提交 // 提交
submit() { submit() {
console.log(this.orderObj) console.log(this.orderObj)
...@@ -208,7 +257,8 @@ export default { ...@@ -208,7 +257,8 @@ export default {
const res = await uni.$api.boutiqueApi.getSubShopMerchantList({ merchantId }) const res = await uni.$api.boutiqueApi.getSubShopMerchantList({ merchantId })
console.log(res, '流量方') console.log(res, '流量方')
if (res && res.length) { if (res && res.length) {
const cell = this.formList[0].find(item => item.label === '二级流量方') this.subShopMerchantList = res
const cell = this.formList[0].find(item => item.label === '二级流量方');
if (cell) { if (cell) {
cell.hidden = false cell.hidden = false
} }
...@@ -245,7 +295,27 @@ export default { ...@@ -245,7 +295,27 @@ export default {
if (cell) cell.required = res[key] == 'Y' if (cell) cell.required = res[key] == 'Y'
} }
}, },
async getConfig() {} async getConfig() {
const res = await uni.$api.boutiqueApi.getYqStoreConfig({
yqMerchantId: this.orderObj.sellerMerchantId
})
console.log(res)
},
// 获取 销售顾问列表
async getEmployeeList() {
const { userInfo, orderObj } = this
const { shopMerchantId, sceneType, merchantId } = userInfo,
data = await uni.$api.popupApi.getEmployeeList({
merchantId: orderObj.idKey == 'sellerUserId' ? merchantId : shopMerchantId,
sceneList: orderObj.idKey == 'sellerUserId' ? '' : [sceneType]
})
if (data && data.length) {
this.employeeList = data
this.formObj.userInfo = data[0]
this.$set(this.orderObj, 'employeeName', data[0].staffName)
this.orderObj.userId = data[0].uuid
}
}
} }
} }
</script> </script>
...@@ -257,7 +327,7 @@ export default { ...@@ -257,7 +327,7 @@ export default {
.box { .box {
height: calc(100% - #{toRpx(120)}); height: calc(100% - #{toRpx(120)});
padding-bottom: toRpx(24);
.scroll-view { .scroll-view {
height: 100%; height: 100%;
} }
...@@ -385,9 +455,7 @@ export default { ...@@ -385,9 +455,7 @@ export default {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
border-bottom: toRpx(1.6) solid #dce1e6; border-bottom: toRpx(1.6) solid #dce1e6;
padding: toRpx(24); padding: toRpx(24); &-left {
&-left {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: toRpx(28); font-size: toRpx(28);
...@@ -429,4 +497,15 @@ export default { ...@@ -429,4 +497,15 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #999; color: #999;
} }
.btn {
display: flex;
align-items: center;
justify-content: center;
margin: toRpx(88) auto 0;
width: toRpx(1130);
height: toRpx(80);
color: #fff;
border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
</style> </style>
...@@ -2,34 +2,34 @@ const FORM_LIST = [ ...@@ -2,34 +2,34 @@ const FORM_LIST = [
[ [
{ {
label: '销售顾问', label: '销售顾问',
value: 'userInfo', value: 'employeeName',
type: 'select', type: 'select',
key: 'staffName', // key: 'staffName',
required: true, required: true,
showText: 'shopMerchantName' showText: 'shopMerchantName'
}, },
{ {
label: '交付专员', label: '交付专员',
value: 'deliveryUserInfo', value: 'deliveryEmployeeName',
type: 'select', type: 'select',
required: true, required: true,
key: 'staffName', // key: 'staffName',
hidden: true, hidden: true,
showText: 'shopMerchantName' showText: 'shopMerchantName'
}, },
{ {
label: '二级流量方', label: '二级流量方',
value: 'subShopMerchantInfo', value: 'subShopMerchantName',
type: 'select', type: 'select',
required: true, required: true,
key: 'subMerchantName', // key: 'subMerchantName',
hidden: true hidden: true
}, },
{ {
label: '转化人员', label: '转化人员',
value: 'sellerUserInfo', value: 'sellerName',
type: 'select', type: 'select',
key: 'staffName', // key: 'staffName',
required: true, required: true,
showText: 'merchantName' showText: 'merchantName'
}, },
...@@ -37,7 +37,7 @@ const FORM_LIST = [ ...@@ -37,7 +37,7 @@ const FORM_LIST = [
[ [
{ {
label: '车主姓名', label: '车主姓名',
value: 'customer', value: 'customerName',
maxlength: '16', maxlength: '16',
type: 'input', type: 'input',
required: true required: true
...@@ -80,7 +80,8 @@ const FORM_LIST = [ ...@@ -80,7 +80,8 @@ const FORM_LIST = [
value: 'customerPhone', value: 'customerPhone',
maxlength: '11', maxlength: '11',
type: 'input', type: 'input',
required: true required: true,
inputType: 'number'
}, },
{ {
label: '选择车型', label: '选择车型',
...@@ -180,7 +181,7 @@ const FORM_LIST = [ ...@@ -180,7 +181,7 @@ const FORM_LIST = [
addHtml: 'package' addHtml: 'package'
}, },
{ {
label: '精品礼券', label: '其他精品',
value: 'couponInfo', value: 'couponInfo',
type: 'select', type: 'select',
key: 'name', key: 'name',
...@@ -271,11 +272,46 @@ const payType = [ ...@@ -271,11 +272,46 @@ const payType = [
] ]
const popupTypeEnum = { const popupTypeEnum = {
0: 'userInfo', 0: {
1: 'deliveryUserInfo', key: 'employeeName',
2: 'subShopMerchantInfo', list: 'employeeList',
3: 'sellerUserInfo', targetIdKey: 'userId',
4: 'carBrand' targetNameKey: 'employeeName',
sourceIdKey: 'uuid',
sourceNameKey: 'staffName'
},
1: {
key: 'deliveryEmployeeName',
list: 'employeeList',
targetIdKey: 'deliveryUserId',
targetNameKey: 'deliveryEmployeeName',
sourceIdKey: 'uuid',
sourceNameKey: 'staffName'
},
2: {
key: 'subShopMerchantName',
list: 'subShopMerchantList',
targetIdKey: 'subShopMerchantId',
targetNameKey: 'subShopMerchantName',
sourceIdKey: 'subMerchantId',
sourceNameKey: 'subMerchantName'
},
3: {
key: 'sellerName',
list: '',
targetIdKey: 'sellerUserId',
targetNameKey: 'sellerName',
sourceIdKey: 'uuid',
sourceNameKey: 'staffName'
},
4: {
key: 'carBrand',
list: ''
},
5: {
key: 'couponInfo',
list: '',
}
} }
export { export {
......
...@@ -14,6 +14,7 @@ import audio from './modules/audio' ...@@ -14,6 +14,7 @@ import audio from './modules/audio'
import update from './modules/update' import update from './modules/update'
import sys from './modules/sys' import sys from './modules/sys'
import point from './modules/point' import point from './modules/point'
import boutique from './modules/boutique'
Vue.use(Vuex) Vue.use(Vuex)
const store = new Vuex.Store({ const store = new Vuex.Store({
...@@ -22,7 +23,8 @@ const store = new Vuex.Store({ ...@@ -22,7 +23,8 @@ const store = new Vuex.Store({
audio, audio,
update, update,
sys, sys,
point point,
boutique
}, },
getters getters
}) })
......
export default {
state() {
return {
baseConfigData:{}
}
},
mutations: {
},
actions: {
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!