客户搜索关键词

master
xy 1 year ago
parent 274dea7d74
commit 791e5e45d5

@ -4,7 +4,7 @@ let ROOTPATH = ''; //域名
switch (mode) { switch (mode) {
case 'development': case 'development':
ROOTPATH = "http://sstt.ali251.langye.net" ROOTPATH = "http://sstt.ali251.langye.net"
// ROOTPATH = "https://sstt.115.langye.net" //ROOTPATH = "https://sstt.115.langye.net"
break; break;
case 'production': case 'production':
ROOTPATH = "https://sstt.115.langye.net" ROOTPATH = "https://sstt.115.langye.net"

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

Loading…
Cancel
Save