Commit 6e3a8a3e by 胡悦

Merge branch 'v1.0.7' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.7

2 parents 6675c89b 0891d7ff
...@@ -84,6 +84,22 @@ export default { ...@@ -84,6 +84,22 @@ export default {
}, },
open () { open () {
this.$refs.carBrandListVisible.open() this.$refs.carBrandListVisible.open()
const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo;
/**获取品牌车型 */
uni.$api.commonApi
.getMerchantCarBrandList([shopMerchantId])
.then(({ data }) => {
let list = data[0].carBrandList,
carBrandList = [];
list?.map((e) => {
e.childs.map((i) => {
i.brandId = e.id;
carBrandList.push(i);
});
});
this.$store.dispatch("setCarBrandsList", carBrandList);
})
}, },
selectCar (e, auto = false) { selectCar (e, auto = false) {
let { clickFlga } = this let { clickFlga } = this
......
...@@ -58,6 +58,16 @@ export default { ...@@ -58,6 +58,16 @@ export default {
methods: { methods: {
open () { open () {
this.$refs.employeeBoxVisible.open() this.$refs.employeeBoxVisible.open()
const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo;
/**获取销售人员 */
uni.$api.commonApi
.getEmployeeList({
merchantId: shopMerchantId,
})
.then((res) => {
this.$store.dispatch("setEmployeeList", res);
})
}, },
handleSelect (item) { handleSelect (item) {
this.close(); this.close();
......
...@@ -120,14 +120,22 @@ export default { ...@@ -120,14 +120,22 @@ export default {
}, },
// 查询素材 // 查询素材
async getSoure () { async getSoure () {
try {
uni.showLoading({
mask: true
})
let { moduleList, toolList } = await uni.$api.systemApi.getMockData(); let { moduleList, toolList } = await uni.$api.systemApi.getMockData();
await moduleList.map(async e => { await moduleList.map(async e => {
if (e.receptionSourceDetailList) e.receptionSourceDetailList = await uni.$api.systemApi.imgToBase64(e.receptionSourceDetailList, 'detailUrl') if (e.receptionSourceDetailList) e.receptionSourceDetailList = await uni.$api.systemApi.imgToBase64(e.receptionSourceDetailList, 'detailUrl')
if (e.carTypeList) e.carTypeList = await uni.$api.systemApi.imgToBase64(e.carTypeList) if (e.carTypeList) e.carTypeList = await uni.$api.systemApi.imgToBase64(e.carTypeList)
}) })
uni.hideLoading()
this.moduleList = moduleList this.moduleList = moduleList
this.toolList = toolList this.toolList = toolList
uni.$api.systemApi.updateMockData(moduleList, 'moduleList') uni.$api.systemApi.updateMockData(moduleList, 'moduleList')
} catch (error) {
uni.hideLoading()
}
}, },
errorImg (index) { errorImg (index) {
this.moduleList[index].showAlt = true this.moduleList[index].showAlt = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!