损坏撤回
This commit is contained in:
parent
86f2a95be3
commit
f32527137c
|
@ -5,11 +5,11 @@ const install = (Vue, vm) => {
|
||||||
Vue.prototype.$u.http.setConfig({
|
Vue.prototype.$u.http.setConfig({
|
||||||
// baseUrl: 'http://61.174.243.28:15861',
|
// baseUrl: 'http://61.174.243.28:15861',
|
||||||
// baseUrl: 'http://192.168.2.46:8080',
|
// baseUrl: 'http://192.168.2.46:8080',
|
||||||
baseUrl: 'https://che.chuangtewl.com/prod-api',
|
// baseUrl: 'https://che.chuangtewl.com/prod-api',
|
||||||
// 测试环境
|
// 测试环境
|
||||||
// baseUrl: 'https://dianche.chuantewulian.cn/prod-api',
|
// baseUrl: 'https://dianche.chuantewulian.cn/prod-api',
|
||||||
// 俞山岛
|
// 俞山岛
|
||||||
// baseUrl: 'https://dche.ccttiot.com/prod-api',
|
baseUrl: 'https://dche.ccttiot.com/prod-api',
|
||||||
// 创特
|
// 创特
|
||||||
loadingText: '努力加载中~',
|
loadingText: '努力加载中~',
|
||||||
loadingTime: 10000,
|
loadingTime: 10000,
|
||||||
|
|
|
@ -307,6 +307,10 @@
|
||||||
v-if="orderInfo.status==6">
|
v-if="orderInfo.status==6">
|
||||||
押金扣款
|
押金扣款
|
||||||
</view>
|
</view>
|
||||||
|
<view class="btn" @click="backpass()"
|
||||||
|
v-if="orderInfo.status==6">
|
||||||
|
撤销损坏
|
||||||
|
</view>
|
||||||
<view class="btn" @click="callPhone">
|
<view class="btn" @click="callPhone">
|
||||||
联系客户
|
联系客户
|
||||||
</view>
|
</view>
|
||||||
|
@ -615,6 +619,37 @@
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
backpass(){
|
||||||
|
this.showload=true
|
||||||
|
uni.showLoading({
|
||||||
|
title:'加载中...'
|
||||||
|
})
|
||||||
|
let data = {
|
||||||
|
orderNo: this.orderId,
|
||||||
|
"status": "5"
|
||||||
|
}
|
||||||
|
this.$u.put("/appVerify/order/damaged", data).then((res) => {
|
||||||
|
this.showload=false
|
||||||
|
if (res.code === 200) {
|
||||||
|
uni.hideLoading()
|
||||||
|
// 处理接口返回的数据,将边界数据转换为地图组件需要的折线结构
|
||||||
|
this.getOrderDetail()
|
||||||
|
uni.showToast({
|
||||||
|
title: '操作成功',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}).catch(error => {
|
||||||
|
console.error("Error fetching area data:", error);
|
||||||
|
});
|
||||||
|
},
|
||||||
status() {
|
status() {
|
||||||
// if (this.deviceInfos.onlineStatus == 0) {
|
// if (this.deviceInfos.onlineStatus == 0) {
|
||||||
// return '离线'
|
// return '离线'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user