小程序工单联调

This commit is contained in:
2025-11-12 17:35:23 +08:00
parent 391219bde1
commit b940d7a6cc
8 changed files with 25 additions and 11 deletions

View File

@@ -381,7 +381,7 @@ Page({
return;
}
const { code, data, message } = await installMeter({
park, meter, address, building, meterBox, meterType,
park, meterSn: meter, address, building, meterBox, meterType,
ratio, area, card, collectionA, collectionB, collectionC,
tenement, sharp, peak, flat, valley, overall, url, sn
})

View File

@@ -112,6 +112,12 @@ Page({
alertSuccess("操作成功")
await that.init();
this.setData({
mode: null,
days: null,
reason: null,
url: null,
})
})
}
}

View File

@@ -4,6 +4,7 @@
"van-button": "@vant/weapp/button/index",
"search-select": "/components/searchSelect/index",
"van-empty": "@vant/weapp/empty/index",
"van-image": "@vant/weapp/image/index",
"table": "/components/table/table",
"pagination": "/components/pagination/index",
"empty": "/components/empty/index",

View File

@@ -117,6 +117,7 @@
text="{{days}}"
type="input"
bind:changeText="changeDays"
required="{{true}}"
/>
<searchSelectWrapper
label="原因"
@@ -130,6 +131,7 @@
useSlot="{{true}}"
type=""
hideBorder="{{true}}"
transparent="{{true}}"
>
<view style="display: flex; align-items: center;">
<view>
@@ -138,7 +140,7 @@
<van-button type="danger" size="small" bind:click="clearImage" custom-style="margin-right: 20rpx;"> 清除 </van-button>
</view>
</view>
<van-image wx:if="{{!!url}}" width="100" height="100" src="{{url}}" custom-style="margin-left: 20rpx;" />
<van-image wx:if="{{url}}" width="100" height="100" src="{{url}}" custom-style="margin-left: 20rpx;" />
</view>
</searchSelectWrapper>

View File

@@ -35,8 +35,12 @@ onMenuSelect(e) {
} = e.detail;
const id = e.currentTarget.dataset.id;
if (value === 'detail') {
switch(value) {
case "detail":
this.jumpToDetail(id);
break;
case "ok":
break;
}
},
jumpToDetail(id) {

View File

@@ -55,7 +55,7 @@
{{ item.flow_status === 1 ? "处理中" : "已确认" }}
</view>
<view class="th" style="flex: 0 0 120rpx; justify-content: flex-end; display: flex; align-items: center;">
<!-- <van-icon name="ellipsis" size="24px" bind:tap="showActionMenu" data-data="{{index}}" class="more-icon" />
<van-icon name="ellipsis" size="24px" bind:tap="showActionMenu" data-data="{{index}}" class="more-icon" />
<van-action-sheet
show="{{ currentActionSheet === item.id }}"
actions="{{ actionItems }}"
@@ -63,12 +63,12 @@
bind:select="onMenuSelect"
data-id="{{item.id}}"
close-on-click-action
/> -->
<view
/>
<!-- <view
class="primaryTextBtn"
wx:if="{{item.flow_status === 1}}"
data-id="{{item.id}}"
> 确认 </view>
> 确认 </view> -->
</view>
</view>