Commit 03a08936 by 张立顺

权益补单 参数处理错误

1 parent 807dc5cc
// tabWorkOrder/pages/createOrder/createOrderComponents/Popup/Popup.js
Component({
externalClasses: ['popup-slot-class'],
/**
* 组件的属性列表
*/
......
......@@ -4,7 +4,7 @@
<block wx:if="{{ title }}">
<view class="popup-title text-center">{{title}}</view>
</block>
<view class="popup-slot {{ isFullSucreen?title?'isFullSucreen':'isFullSucreen-notitle':'' }}">
<view class="popup-slot popup-slot-class {{ isFullSucreen?title?'isFullSucreen':'isFullSucreen-notitle':'' }}">
<slot></slot>
</view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
......
......@@ -42,7 +42,7 @@
}
.popup-slot {
height: calc(100% - 100rpx);
height: calc(100% - 200rpx);
}
.popup-slot.isFullSucreen {
......
......@@ -2,7 +2,7 @@
Component({
options: {
// 在组件定义时的选项中启用多slot支持
multipleSlots: true
multipleSlots: true,
},
/**
* 组件的属性列表
......
<!--packageEquity/components/storePicker/storePicker.wxml-->
<popup class="date-background" show="{{ show }}" bindconfirm="confirm" height="800rpx">
<popup class="date-background" popup-slot-class="popup-style" show="{{ show }}" bindconfirm="confirm" height="800rpx">
<view class="date-container">
<view class="date-confirm">
<view class="search-box">
......
......@@ -58,4 +58,8 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.popup-style{
height: calc(100% - 100rpx)!important;
}
\ No newline at end of file
......@@ -124,9 +124,9 @@ Page({
changeTabBar(e) {
let { pageShow } = this.data,
tabIndex = e.detail
this.setData({
tabIndex
})
// this.setData({
// tabIndex
// })
console.log(pageShow[tabIndex])
// if (!pageShow[tabIndex]) {
// this.getComponentPage().onLoad && this.getComponentPage().onLoad()
......
......@@ -20,7 +20,7 @@
<quotation-list id="page-0" navBarHeight="{{navBarHeight}}" class="pagedetail {{tabIndex == 0?'':'hide'}}" mode="{{mode}}" />
<equity-list
id="page-1"
tabIndex="{{tabIndex}}"
outTabIndex="{{tabIndex}}"
navBarHeight="{{navBarHeight}}"
class="pagedetail {{tabIndex == 1?'':'hide'}}" />
</block>
......
......@@ -10,7 +10,7 @@ Component({
type: Number,
value: 0
},
tabIndex: {
outTabIndex: {
type: Number,
observer(val) {
console.log(val)
......
......@@ -6,7 +6,12 @@ const equityStatusObj = {
'2': '提单成功',
'3': '提单失败'
}
const equityStatusList = [{
const equityStatusList = [
{
confName: '全部',
confId: ''
},
{
confName: '待补单',
confId: '0'
}, {
......
......@@ -340,6 +340,20 @@
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "1.1 首页",
"pathName": "tabIndex/pages/index/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "订单补录",
"pathName": "tabWorkOrder/pages/additionRecordOrder/additionRecordOrder",
"query": "",
"launchMode": "default",
"scene": null
}
]
}
......
......@@ -406,14 +406,45 @@ Page({
this.setData({
disabled: true
})
// console.log(object);
// const orderObj = {
// couponName: "流程测试新建001",
// customer: {customerName: "张立顺",
// customerPhone: "15817639334",
// customerSex: "2",
// experienceFlag: "Y",
// plateNumber: "",
// standNo: ""},
// customerCouponCode: "GH151S",
// employeeName: "刘伟",
// merchantCouponId: 11385,
// merchantId: 44211116,
// merchantName: "流程测试4s店",
// outTradeNo: "0120230630676252458305200128",
// remark: "",
// selectPayType: 2,
// sellerMerchantId: 44211025,
// sellerMerchantName: "流程测试园区门店",
// sellerName: "zhangls",
// sellerUserId: "bfe4919ab01143e5844846ef92aa3db3",
// subOrderList: [
// {baseGoodsId: null, totalPrice: 0.1, number: 1, merchantGoodsId: 7213},
// {baseGoodsId: null, totalPrice: 0.1, number: 1, merchantGoodsId: 5897}
// ],
// subShopMerchantId: 44211746,
// subShopMerchantName: "test_xjq03",
// // userId: "cbe5621e7afa4ccaac1b279c2a2ee98d",
// }
console.log(orderObj);
// return
api
.supplementOrder(orderObj)
.then(res => {
wx.hideLoading()
// console.log(orderObj, res)
let { code, data, message } = res
let { code, data, message,subErrors } = res
if (code == 0) {
if (save) {
wx.showModal({
......@@ -439,7 +470,8 @@ Page({
}
} else {
this.showToast(message)
throw message
// console.log(subErrors);
throw subErrors
}
})
.finally(() => {
......
......@@ -36,7 +36,7 @@ class Request {
success(response) {
/**业务代码 */
let {
data: { code, message },
data: { code, message, subErrors},
data
} = response
......@@ -47,7 +47,13 @@ class Request {
if (thisPage.route != 'pages/wxLogin/wxLogin') {
getApp().login(true)
}
} else if (code == -1) {
}
// else if (code == 32){
// resolve(data)
// // console.log(subErrors);
// throw subErrors
// }
else if (code == -1) {
wx.showToast({
title: message || '网络请求失败',
icon: 'none'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!