损坏撤回

This commit is contained in:
tx 2024-08-22 18:04:02 +08:00
parent 86f2a95be3
commit f32527137c
2 changed files with 37 additions and 2 deletions

View File

@ -5,11 +5,11 @@ const install = (Vue, vm) => {
Vue.prototype.$u.http.setConfig({
// baseUrl: 'http://61.174.243.28:15861',
// 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://dche.ccttiot.com/prod-api',
baseUrl: 'https://dche.ccttiot.com/prod-api',
// 创特
loadingText: '努力加载中~',
loadingTime: 10000,

View File

@ -307,6 +307,10 @@
v-if="orderInfo.status==6">
押金扣款
</view>
<view class="btn" @click="backpass()"
v-if="orderInfo.status==6">
撤销损坏
</view>
<view class="btn" @click="callPhone">
联系客户
</view>
@ -615,6 +619,37 @@
},
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() {
// if (this.deviceInfos.onlineStatus == 0) {
// return '线'