调整提交数据
This commit is contained in:
@@ -164,9 +164,6 @@ const amountType = (bigFive) => {
|
|||||||
|
|
||||||
// 办理业务
|
// 办理业务
|
||||||
const bigfiveStore = data => {
|
const bigfiveStore = data => {
|
||||||
|
|
||||||
console.log(data)
|
|
||||||
|
|
||||||
return request({
|
return request({
|
||||||
url : "bigfive/order/store",
|
url : "bigfive/order/store",
|
||||||
method : "POST",
|
method : "POST",
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
this.needAmount = parentData.need_amount
|
this.needAmount = parentData.need_amount
|
||||||
this.pickerArr = parentData.child.data
|
this.pickerArr = parentData.child.data
|
||||||
this.pickertype = parentData.type
|
this.pickertype = parentData.type
|
||||||
this.selectP = parentData.select_p
|
this.selectP = parentData.select_p || []
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取标的额
|
// 获取标的额
|
||||||
@@ -121,7 +121,10 @@
|
|||||||
let { type, need_amount, select_p } = res;
|
let { type, need_amount, select_p } = res;
|
||||||
this.pickertype = type
|
this.pickertype = type
|
||||||
this.needAmount = need_amount
|
this.needAmount = need_amount
|
||||||
this.selectP = select_p
|
|
||||||
|
console.log(select_p)
|
||||||
|
|
||||||
|
this.selectP = select_p || []
|
||||||
if(type == 'select'){
|
if(type == 'select'){
|
||||||
this.settleInfo()
|
this.settleInfo()
|
||||||
}
|
}
|
||||||
@@ -172,16 +175,17 @@
|
|||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: "提交中...",
|
title: "提交中...",
|
||||||
mask : true
|
mask : true
|
||||||
})
|
})
|
||||||
|
|
||||||
let params = {
|
let params = {
|
||||||
big_id : pickerArr.length > 0 ? pickerArr[pickerIndex].id : this.$Route.query.bigFiveId,
|
big_id : pickerArr.length > 0 ? pickerArr[pickerIndex].id : this.$Route.query.bigFiveId,
|
||||||
name : name,
|
name : name,
|
||||||
amount : amount,
|
amount : amount,
|
||||||
mobile : phone,
|
mobile : phone,
|
||||||
price : pickertype == 'free' ? priceValue : price,
|
price : pickertype == 'free' ? priceValue : price,
|
||||||
select_key : selectP[selectPIndex].key
|
select_key : selectP.length > 0 ? selectP[selectPIndex].key : ''
|
||||||
}
|
}
|
||||||
|
|
||||||
bigfiveStore(params).then(res => {
|
bigfiveStore(params).then(res => {
|
||||||
let { order_type, order_id, order_no } = res;
|
let { order_type, order_id, order_no } = res;
|
||||||
this.$Router.replace({
|
this.$Router.replace({
|
||||||
|
|||||||
Reference in New Issue
Block a user