|
|
|
|
@ -21,11 +21,11 @@
|
|
|
|
|
</view>
|
|
|
|
|
<view class="right">
|
|
|
|
|
<template v-if="vuex_selected_customer.status === 1">
|
|
|
|
|
<view class="icon1"></view>
|
|
|
|
|
<view class="icon3"></view>
|
|
|
|
|
<view>正常</view>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-if="vuex_selected_customer.status === 2">
|
|
|
|
|
<view class="icon3"></view>
|
|
|
|
|
<view class="icon1"></view>
|
|
|
|
|
<view>暂停</view>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-if="vuex_selected_customer.status === 3">
|
|
|
|
|
@ -257,7 +257,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
confirm (time) {
|
|
|
|
|
console.log(time)
|
|
|
|
|
if (this.pickerType === 1) {
|
|
|
|
|
this.form.start_time = this.$moment(time.timestamp * 1000).format('YYYY-MM-DD HH:mm:ss')
|
|
|
|
|
} else {
|
|
|
|
|
@ -277,9 +276,10 @@ export default {
|
|
|
|
|
this.form.address_id = e[0].value;
|
|
|
|
|
},
|
|
|
|
|
pickOrder (e) {
|
|
|
|
|
console.log(123,this.getNowOrder)
|
|
|
|
|
this.form.order_id = e[0].value;
|
|
|
|
|
this.form.order = e[0].label;
|
|
|
|
|
this.form.product_id = this.getNowOrder.find(i => i.id === this.order_id)?.product_id;
|
|
|
|
|
this.form.product_id = this.getNowOrder.find(i => i.id === this.form.order_id)?.product_id;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
submit () {
|
|
|
|
|
@ -316,6 +316,7 @@ export default {
|
|
|
|
|
//if (order.id && order.product_id) {
|
|
|
|
|
//this.form.order_id = order.id
|
|
|
|
|
//this.form.product_id = order.product_id
|
|
|
|
|
console.log(this.form)
|
|
|
|
|
if (this.form.order_id && this.form.product_id) {
|
|
|
|
|
this.form.customer_id = this.vuex_selected_customer.id
|
|
|
|
|
this.$u.api.scheduleSave(this.form).then(res => {
|
|
|
|
|
|