客户搜索关键词

master
xy 1 year ago
parent 791e5e45d5
commit a55ba0956c

@ -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"

@ -420,7 +420,7 @@ export default {
if (res[1]?.id) { if (res[1]?.id) {
this.form.admin_sign_image_id = res[1].id this.form.admin_sign_image_id = res[1].id
} }
this.form.file_ids = this.$refs.uUpload.lists.filter(i => i.progress === 100).map(i => i.response?.id) this.form.file_ids = this.$refs.uUpload.lists.filter(i => i.progress === 100).map(i => i.response?.id).filter(i => i)
if (this.type === 'add') { if (this.type === 'add') {
delete this.form.id delete this.form.id
} else { } else {
@ -433,6 +433,8 @@ export default {
}) })
setTimeout(() => { setTimeout(() => {
uni.navigateBack() uni.navigateBack()
this.$u.vuex('vuex_admin_sign_image', '')
this.$u.vuex('vuex_sign_image', '')
},1500) },1500)
}) })
}).catch(err => { }).catch(err => {

@ -59,7 +59,7 @@
<view> <view>
<u-icon name="eye-off" size="28" color="#1479FF"></u-icon> <u-icon name="eye-off" size="28" color="#1479FF"></u-icon>
</view> </view>
<view class="text">失能登记{{ item.level_type_detail ? item.level_type_detail.value : '' }} {{ item.level_detail ? item.level_detail.value : '' }}</view> <view class="text">失能等级{{ item.level_type_detail ? item.level_type_detail.value : '' }} {{ item.level_detail ? item.level_detail.value : '' }}</view>
</view> </view>
<view class="contact"> <view class="contact">
<view> <view>

@ -95,6 +95,17 @@
</view> </view>
</view> </view>
<!-- 备注-->
<view class="remark" v-show="detail.status !== 0">
<view class="title">
备注
</view>
<view class="content">
<u-input v-model="form.remark" type="textarea" border :height="100" auto-height />
</view>
</view>
<!-- 打卡 --> <!-- 打卡 -->
<view class="clock"> <view class="clock">
<view class="btn" v-if="detail.status === 1 && detail.logs_count < detail.product.process_total" <view class="btn" v-if="detail.status === 1 && detail.logs_count < detail.product.process_total"
@ -140,6 +151,7 @@
<view class="u-order-desc">{{typeFormat(item.type)}}</view> <view class="u-order-desc">{{typeFormat(item.type)}}</view>
<view class="u-order-time">{{item.created_at}}</view> <view class="u-order-time">{{item.created_at}}</view>
<view class="u-order-address">{{item.address}}</view> <view class="u-order-address">{{item.address}}</view>
<view class="u-order-remark">{{item.remark ? item.remark : ' '}}</view>
<view v-for="(img,tindex) in item.upload_list" :key='tindex' @click="showimg(img)"> <view v-for="(img,tindex) in item.upload_list" :key='tindex' @click="showimg(img)">
<u-image width="100%" v-if='img.upload' height='400rpx' :src="img.upload.url"> <u-image width="100%" v-if='img.upload' height='400rpx' :src="img.upload.url">
</u-image> </u-image>
@ -209,6 +221,7 @@
lng: '', lng: '',
address: '', address: '',
type: '', type: '',
remark: '',
upload_list: [], upload_list: [],
}, },
skuList: [], skuList: [],
@ -901,6 +914,9 @@
} }
} }
} }
.remark {
@extend .today-nursing;
}
.logs { .logs {
@extend .today-nursing; @extend .today-nursing;
@ -974,6 +990,10 @@
color: rgb(140, 140, 140); color: rgb(140, 140, 140);
font-size: 25rpx; font-size: 25rpx;
} }
.u-order-remark {
color: rgb(60, 60, 60);
font-size: 25rpx;
}
::v-deep .u-checkbox__icon-wrap--disabled--checked text { ::v-deep .u-checkbox__icon-wrap--disabled--checked text {
color: #1d5cba !important; color: #1d5cba !important;

@ -4,15 +4,15 @@
<view> <view>
<!-- 搜索 --> <!-- 搜索 -->
<!-- <view class="search">--> <view class="search">
<!-- <view class="input-content">--> <view class="input-content">
<!-- <u-input :clearable="false" value="" placeholder="请输入要搜索的内容" height="30" :custom-style="inputStyle"--> <u-input :clearable="false" :value="select.keyword" placeholder="请输入要搜索的内容" height="30" :custom-style="inputStyle"
<!-- @input=""></u-input>--> @input="searchInput"></u-input>
<!-- </view>--> </view>
<!-- <view class="icon">--> <view class="icon">
<!-- <u-icon name="search" size="46" color="#ABAEBE"></u-icon>--> <u-icon name="search" size="46" color="#ABAEBE"></u-icon>
<!-- </view>--> </view>
<!-- </view>--> </view>
<view class="customer-list"> <view class="customer-list">
<view class="customer-list__item" v-for="(item, index) in customers" :key="item.id"> <view class="customer-list__item" v-for="(item, index) in customers" :key="item.id">
@ -78,9 +78,19 @@ export default {
fontWeight: "500" fontWeight: "500"
}, },
customers: [], customers: [],
select: {
keyword: ''
}
}; };
}, },
methods: { methods: {
searchInput(e) {
this.select.keyword = e
this.select.page = 1
this.$u.debounce(this.getCustomer, 1000)
},
toAddOrder (item) { toAddOrder (item) {
if ((((Number(item.all_worth)) - Number(item.total_worth)) <= 0) && (this.nowOrder(item) && this.nowOrder(item).product && this.nowOrder(item).product.demand === 1)) { if ((((Number(item.all_worth)) - Number(item.total_worth)) <= 0) && (this.nowOrder(item) && this.nowOrder(item).product && this.nowOrder(item).product.demand === 1)) {
this.isShowModal = true; this.isShowModal = true;
@ -95,7 +105,7 @@ export default {
}, },
async getCustomer () { async getCustomer () {
const res = await this.$u.api.customerAndOrder() const res = await this.$u.api.customerAndOrder(this.select)
console.log(res) console.log(res)
this.customers = res this.customers = res
} }

@ -1,7 +1,6 @@
<template> <template>
<view class="sign"> <view class="sign">
<canvas canvas-id="sign-cnv" :style="{ height: cnv.height + 'px', width: cnv.width + 'px' }"></canvas> <canvas canvas-id="sign-cnv" :style="{ height: cnv.height + 'px', width: cnv.width + 'px' }"></canvas>
<image class="hide-img" ref="resultImg" :src="src" alt="" @load="resultImgLoad"></image>
<view class="sign-bkg"> <view class="sign-bkg">
<view class="sign-bkg__word"> <view class="sign-bkg__word">
<span></span> <span></span>
@ -55,13 +54,6 @@ export default {
} }
}, },
methods: { methods: {
resultImgLoad (e) {
// this.Img = e.detail;
// let rate = this.Img.width / this.Img.height;
// this.cnv.width = this.Img.height;
// this.cnv.height = this.Img.width ;
// this.rotateImage(this.src, 270)
},
pageBack () { pageBack () {
uni.navigateBack() uni.navigateBack()
}, },
@ -140,16 +132,9 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.hide-img {
position: fixed;
width: 200px;
object-fit: contain;
top: 0;
left: 0;
z-index: 999999999;
}
@media screen and (orientation: portrait) { @media screen and (orientation: portrait) {
.sign { .sign {
overflow: hidden;
height: 100vh; height: 100vh;
width: 100vw; width: 100vw;

Loading…
Cancel
Save