|
@@ -14,9 +14,10 @@
|
|
|
<el-date-picker
|
|
|
:editable="false"
|
|
|
v-model="time"
|
|
|
- @change="timearr => {timearr ? (searchForm.order_start_time = timearr[0] + ' 00:00:00', searchForm.order_end_time = timearr[1] + ' 23:59:59') : searchForm.order_start_time = searchForm.order_end_time = undefined}"
|
|
|
- type="daterange"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
+ :default-time="['19:00:00', '19:00:00']"
|
|
|
+ type="datetimerange"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ @change="timearr => {timearr ? (searchForm.order_start_time = timearr[0], searchForm.order_end_time = timearr[1]) : searchForm.order_start_time = searchForm.order_end_time = undefined}"
|
|
|
start-placeholder="开始时间"
|
|
|
end-placeholder="结束时间"
|
|
|
></el-date-picker>
|
|
@@ -197,7 +198,7 @@ import { fen2Yuan } from '@/utils'
|
|
|
|
|
|
export default {
|
|
|
mixins: [page],
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
return {
|
|
|
time: [],
|
|
|
searchForm: {},
|
|
@@ -214,7 +215,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- async handlePrint(row) {
|
|
|
+ async handlePrint (row) {
|
|
|
this.booLock = true
|
|
|
const data = await this.$fetch('/v1/user/order/print', { id: row.id }, 'get')
|
|
|
this.booLock = false
|
|
@@ -222,7 +223,7 @@ export default {
|
|
|
this.$message.success('开始打印')
|
|
|
}
|
|
|
},
|
|
|
- showOrderStatusdialogForm(row) {
|
|
|
+ showOrderStatusdialogForm (row) {
|
|
|
this.orderStatusdialogForm = true
|
|
|
this.dialogForm = {}
|
|
|
this.$nextTick(() => {
|
|
@@ -230,7 +231,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 现场订单支付
|
|
|
- async siteOrderSet() {
|
|
|
+ async siteOrderSet () {
|
|
|
this.$refs['dialogForm'].validate(async valid => {
|
|
|
if (valid) {
|
|
|
this.booLock = true
|
|
@@ -246,7 +247,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 交接单打
|
|
|
- async printDeliverOrder() {
|
|
|
+ async printDeliverOrder () {
|
|
|
this.$refs['deliverOrderdialogForm'].validate(async valid => {
|
|
|
if (valid) {
|
|
|
this.booLock = true
|
|
@@ -266,7 +267,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getSummaries(param) {
|
|
|
+ getSummaries (param) {
|
|
|
const { columns, data } = param
|
|
|
const sums = []
|
|
|
columns.forEach((column, index) => {
|
|
@@ -292,11 +293,11 @@ export default {
|
|
|
|
|
|
return sums
|
|
|
},
|
|
|
- filterTag(value, row) {
|
|
|
+ filterTag (value, row) {
|
|
|
return row.order_pay_type === value
|
|
|
}
|
|
|
},
|
|
|
- mounted() {
|
|
|
+ mounted () {
|
|
|
this.init()
|
|
|
},
|
|
|
}
|