change
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-6 button-primary" @tap="searchList">查询</button>
|
<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="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>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await inArea(this.pkObj)
|
let res = await inArea(this.index)
|
||||||
if (res.code === '200') {
|
if (res.code === '200') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
@@ -171,7 +171,7 @@
|
|||||||
},
|
},
|
||||||
async _outArea () {
|
async _outArea () {
|
||||||
this.disabled2 = true
|
this.disabled2 = true
|
||||||
if (!this.index) {
|
if (!this.pkId) {
|
||||||
this.disabled2 = false
|
this.disabled2 = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -170,9 +170,9 @@ export const getChargeRegions = () => request({
|
|||||||
data: {}
|
data: {}
|
||||||
})
|
})
|
||||||
// 1.3进入
|
// 1.3进入
|
||||||
export const inArea = (obj) => request({
|
export const inArea = (rcode) => request({
|
||||||
url:'api/hand/inArea',
|
url:'api/hand/inArea',
|
||||||
data: obj
|
data: {region_code: rcode}
|
||||||
})
|
})
|
||||||
// 1.3强制确认
|
// 1.3强制确认
|
||||||
export const outArea = (obj) => request({
|
export const outArea = (obj) => request({
|
||||||
|
|||||||
Reference in New Issue
Block a user