去除打印,抄表路线支持所有园区,支持部分选择框清除内容

This commit is contained in:
2025-11-13 17:10:33 +08:00
parent d7d5366230
commit edfd386e1b
16 changed files with 100 additions and 28 deletions

View File

@@ -14,6 +14,7 @@ Page({
data: {
time: "",
area: "",
placeholder: "",
},
/**
@@ -151,7 +152,6 @@ Page({
mediaType: ['image'],
sourceType: ['album', 'camera'],
success: async function(res) {
console.log("res", res)
const path = res.tempFiles?.[0]?.tempFilePath.toLowerCase()
if (!/(\.jpg|\.png|\.jpeg)$/.test(path)) {
wx.showToast({
@@ -293,6 +293,30 @@ Page({
}
this.onCancel();
},
clearCard() {
this.setData({
card: null,
cardName: null,
})
},
clearCollectionA() {
this.setData({
collectionA: null,
collectionAName: null,
})
},
clearCollectionB() {
this.setData({
collectionB: null,
collectionBName: null,
})
},
clearCollectionC() {
this.setData({
collectionC: null,
collectionCName: null,
})
},
changeAddress(e) {
this.setData({
address: e.detail

View File

@@ -85,24 +85,32 @@
placeholder="请选择卡绑定(选填)"
text="{{cardName}}"
bind:search="onBindCard"
allowClear="{{true}}"
bind:clear="clearCard"
/>
<searchSelectWrapper
label="互感器A"
placeholder="请选择互感器绑定"
text="{{collectionAName}}"
bind:search="onBindCollectionA"
allowClear="{{true}}"
bind:clear="clearCollectionA"
/>
<searchSelectWrapper
label="互感器B"
placeholder="请选择互感器绑定"
text="{{collectionBName}}"
bind:search="onBindCollectionB"
allowClear="{{true}}"
bind:clear="clearCollectionB"
/>
<searchSelectWrapper
label="互感器C"
placeholder="请选择互感器绑定"
text="{{collectionCName}}"
bind:search="onBindCollectionC"
allowClear="{{true}}"
bind:clear="clearCollectionC"
/>
<searchSelectWrapper
label="商户"
@@ -174,6 +182,7 @@
park="{{park}}"
bindconfirm="onConfirm"
bindcancel="onCancel"
placeholder="{{placeholder}}"
wx:if="{{show}}"
/>

View File

@@ -171,7 +171,6 @@ Page({
mediaType: ['image'],
sourceType: ['album', 'camera'],
success: async function(res) {
console.log("res", res)
const path = res.tempFiles?.[0]?.tempFilePath.toLowerCase()
if (!/(\.jpg|\.png|\.jpeg)$/.test(path)) {
wx.showToast({

View File

@@ -114,6 +114,7 @@ Page({
await that.init();
this.setData({
mode: null,
modeName: null,
days: null,
reason: null,
url: null,
@@ -130,7 +131,6 @@ Page({
mediaType: ['image'],
sourceType: ['album', 'camera'],
success: async function(res) {
console.log("res", res)
const path = res.tempFiles?.[0]?.tempFilePath.toLowerCase()
if (!/(\.jpg|\.png|\.jpeg)$/.test(path)) {
wx.showToast({

View File

@@ -93,7 +93,6 @@ Page({
alertError(message)
return;
}
console.log("data", data, "num", num)
if (!data) {
wx.showModal({
title: '提示',
@@ -146,10 +145,6 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
const { parkName } = this.data;
if (!parkName) {
return
}
this.init()
},

View File

@@ -23,9 +23,8 @@
bindcancel="onConcal"
/>
<van-empty description="请先选择园区" wx:if="{{!park}}" />
<view wx:else>
<view>
<view wx:if="{{list.length}}">
<van-cell
wx:for="{{list}}"

View File

@@ -20,7 +20,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
console.log("options", options)
const { park, parkName, name, id } = options
this.setData({
park,