This commit is contained in:
2025-09-18 14:33:06 +08:00
parent cd800187e6
commit efc5313f80
2 changed files with 5 additions and 5 deletions

View File

@@ -40,7 +40,7 @@
<view class="zd-row submit-bar">
<button class="zd-col-6 button-primary" @tap="searchList">查询</button>
<button class="zd-col-7 button-primary" :class="{'button-info': !index}" :disabled="disabled" @tap="_inArea">进入</button>
<button class="zd-col-7 button-primary" :class="{'button-info': !index}" :disabled="disabled2" @tap="_outArea">退出</button>
<button class="zd-col-7 button-primary" :class="{'button-info': !pkId}" :disabled="disabled2" @tap="_outArea">退出</button>
</view>
</view>
</template>
@@ -151,7 +151,7 @@
return
}
try {
let res = await inArea(this.pkObj)
let res = await inArea(this.index)
if (res.code === '200') {
uni.showToast({
title: res.message,
@@ -171,7 +171,7 @@
},
async _outArea () {
this.disabled2 = true
if (!this.index) {
if (!this.pkId) {
this.disabled2 = false
return
}

View File

@@ -170,9 +170,9 @@ export const getChargeRegions = () => request({
data: {}
})
// 1.3进入
export const inArea = (obj) => request({
export const inArea = (rcode) => request({
url:'api/hand/inArea',
data: obj
data: {region_code: rcode}
})
// 1.3强制确认
export const outArea = (obj) => request({