Commit fc1f87bf by 李伟康

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents 966eb817 16c4d793
...@@ -49,11 +49,13 @@ export default { ...@@ -49,11 +49,13 @@ export default {
this.updateParams(params, data || []) this.updateParams(params, data || [])
}, },
initData (list) { initData (list) {
const { idKey, data } = this const { idKey, data,params } = this
console.log(idKey,data) console.log(idKey,data)
if (data[idKey]) { if (data[idKey]) {
this.currentId = data[idKey] this.currentId = data[idKey]
let item = list.find(i => i.uuid == this.currentId) let item = list.find(i => i.uuid == this.currentId)
console.log(item)
this.$emit('choose', item) this.$emit('choose', item)
} }
this.list = list this.list = list
......
...@@ -206,7 +206,7 @@ export default { ...@@ -206,7 +206,7 @@ export default {
merchantName: userInfo.shopMerchantName merchantName: userInfo.shopMerchantName
}) })
} }
// await this.getEmployeeList() await this.getEmployeeList()
this.getLastUserOrderInfo() this.getLastUserOrderInfo()
this.getGoodsProduct() this.getGoodsProduct()
}, },
...@@ -265,10 +265,18 @@ export default { ...@@ -265,10 +265,18 @@ export default {
const res = await uni.$api.boutiqueApi.getLastUserOrderInfo({ const res = await uni.$api.boutiqueApi.getLastUserOrderInfo({
sellerUserId: this.userInfo.subLoginUser.uuid sellerUserId: this.userInfo.subLoginUser.uuid
}) })
this.$set(this.orderObj, 'employeeName', res.employeeName) let item = this.employeeList.find(i => i.uuid == res.userId)
this.$set(this.orderObj, 'defeatEmployeeName', res.employeeName) if (!item) {
this.orderObj.userId = res.userId this.$set(this.orderObj, 'employeeName', this.employeeList[0].staffName)
this.orderObj.referrerId = res.userId this.$set(this.orderObj, 'defeatEmployeeName', this.employeeList[0].staffName)
this.orderObj.userId = this.employeeList[0].uuid
this.orderObj.referrerId = this.employeeList[0].uuid
} else {
this.$set(this.orderObj, 'employeeName', res.employeeName)
this.$set(this.orderObj, 'defeatEmployeeName', res.employeeName)
this.orderObj.userId = res.userId
this.orderObj.referrerId = res.userId
}
}, },
// 单选框change事件 // 单选框change事件
radioChange(e, val) { radioChange(e, val) {
......
...@@ -163,7 +163,8 @@ export default { ...@@ -163,7 +163,8 @@ export default {
this.tabIndex = 0 this.tabIndex = 0
} else { } else {
const index = this.tabList.findIndex(item => item.value == this.searchObj.orderStatus) const index = this.tabList.findIndex(item => item.value == this.searchObj.orderStatus)
if (index !== -1) this.tabIndex = index !== -1 ? index : 0 console.log(index)
this.tabIndex = index !== -1 ? index : 0
} }
this.search() this.search()
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!