修改订单基本信息

This commit is contained in:
老叶
2022-01-25 16:44:46 +08:00
parent b2a4167a95
commit 7ada03565c
6 changed files with 18 additions and 9 deletions
+2 -1
View File
@@ -110,7 +110,8 @@ api = {
appCusorderV2Inten:'app/cusorderV2/inten', //新增意向金订单
appCusorderV2:'app/cusorderV2', //新建订单 /获取订单列表 /订单详情 /修改订单信息
appCusorderV2Tabs:'app/cusorderV2/tabs', //获取订单列表tab
appCusorderdata:'app/Cusorderdata', //获取订单图片 /上传编辑国补资料/
appCusorderdata:'app/Cusorderdata', //获取订单图片 /上传编辑国补资料
appCusorderV2Info:'app/cusorderV2/info', //修改订单基本信息
}
+7
View File
@@ -740,4 +740,11 @@ apiQuery.putAppCusorderV2 = function (params) {
})
}
//修改订单基本信息
apiQuery.putAppCusorderV2Info = function (params) {
return new Promise(function (resolve, reject) {
HttpRequest(true, Config.api.appCusorderV2Info, 2, params, "PUT", resolve, reject)
})
}
export default apiQuery;
+1 -1
View File
@@ -400,7 +400,7 @@ Page({
icon: 'none'
})
}
else if(this.data.main_type == 0&&this.data.owner_mobile == ''){
else if(this.data.main_type == 0&&!/^1[3456789]\d{9}$/.test(this.data.owner_mobile)){
wx.showToast({
title: '请填写车主手机号',
icon: 'none'
+5 -4
View File
@@ -45,15 +45,15 @@ Page({
})
},
//编辑信息
putAppCusorderV2Inten() {
//修改订单基本信息
putAppCusorderV2Info() {
if(this.data.main_type == 0&&this.data.owner_name == ''){
wx.showToast({
title: '请填写车主姓名',
icon: 'none'
})
}
else if(this.data.main_type == 0&&this.data.owner_mobile == ''){
else if(this.data.main_type == 0&&!/^1[3456789]\d{9}$/.test(this.data.owner_mobile)){
wx.showToast({
title: '请填写车主手机号',
icon: 'none'
@@ -89,6 +89,7 @@ Page({
submitFlag: true,
})
let params = {};
params['id'] = this.data.id;
if(that.data.owner_name != ''){
params['owner_name'] = that.data.owner_name;
}
@@ -104,7 +105,7 @@ Page({
if(that.data.credit != ''){
params['credit'] = that.data.credit;
}
_.apiQuery.putAppCusorderV2Inten(params).then(res => {
_.apiQuery.putAppCusorderV2Info(params).then(res => {
//刷新详情页
let pages = getCurrentPages();
+1 -1
View File
@@ -46,5 +46,5 @@
</view>
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="putAppCusorderV2Inten">确认编辑</button>
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="putAppCusorderV2Info">确认编辑</button>
</view>
+2 -2
View File
@@ -154,7 +154,7 @@ Page({
icon: 'none'
})
}
else if(this.data.main_type == 0&&this.data.owner_mobile == ''){
else if(this.data.main_type == 0&&!/^1[3456789]\d{9}$/.test(this.data.owner_mobile)){
wx.showToast({
title: '请填写车主手机号',
icon: 'none'
@@ -858,7 +858,7 @@ Page({
icon: 'none'
})
}
else if(this.data.main_type == 0&&this.data.owner_mobile == ''){
else if(this.data.main_type == 0&&!/^1[3456789]\d{9}$/.test(this.data.owner_mobile)){
wx.showToast({
title: '请填写车主手机号',
icon: 'none'