Commit 354ef210 by cen

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

2 parents 6576f7ac effb91a0
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
:value="orderObj[i.value]" :value="orderObj[i.value]"
:range="i.range" :range="i.range"
:range-key="i.rangeKey" :range-key="i.rangeKey"
@change="orderObj[i.value] = $event.detail.value" @change="changePicker($event,i)"
:disabled="filterDisabled(isEditReport)" :disabled="filterDisabled(isEditReport)"
> >
{{i.range[orderObj[i.value]][i.rangeKey] || ''}} {{i.range[orderObj[i.value]][i.rangeKey] || ''}}
...@@ -211,7 +211,8 @@ export default { ...@@ -211,7 +211,8 @@ export default {
range: [ range: [
{ id: 'N', name: '否' }, { id: 'N', name: '否' },
{ id: 'Y', name: '是' } { id: 'Y', name: '是' }
] ],
submitValue: 'onBreak'
}, },
{ {
label: '个人成交总金额', label: '个人成交总金额',
...@@ -516,6 +517,10 @@ export default { ...@@ -516,6 +517,10 @@ export default {
} }
}, },
async submit () { async submit () {
uni.showLoading({
title: '提交中',
mask: true
})
try { try {
let { orderObj, carBandList } = this let { orderObj, carBandList } = this
orderObj.isAdmin = false orderObj.isAdmin = false
...@@ -541,11 +546,13 @@ export default { ...@@ -541,11 +546,13 @@ export default {
} }
const data = await uni.$api.boutiqueApi.saveStaffDailyReport(orderObj) const data = await uni.$api.boutiqueApi.saveStaffDailyReport(orderObj)
uni.hideLoading()
if (data) { if (data) {
this.isEditReport = false this.isEditReport = false
this.$refs.reportNotice.open() this.$refs.reportNotice.open()
} }
} catch (errorObj) { } catch (errorObj) {
uni.hideLoading()
console.log(errorObj) console.log(errorObj)
if (errorObj.message) { if (errorObj.message) {
uni.showToast({ uni.showToast({
...@@ -563,6 +570,11 @@ export default { ...@@ -563,6 +570,11 @@ export default {
filterDisabled (disabledStatus) { filterDisabled (disabledStatus) {
let { weeklyList, currentDate, orderObj: { isDateWithin7Days } } = this let { weeklyList, currentDate, orderObj: { isDateWithin7Days } } = this
return weeklyList.includes(currentDate) && !disabledStatus || !isDateWithin7Days return weeklyList.includes(currentDate) && !disabledStatus || !isDateWithin7Days
},
changePicker (e, i) {
let { value } = e.detail
this.orderObj[i.value] = value
this.orderObj[i.submitValue] = value == 1 ? 'Y' : 'N'
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!