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

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}}"
/>