Commit 03a08936 by 张立顺

权益补单 参数处理错误

1 parent 807dc5cc
// tabWorkOrder/pages/createOrder/createOrderComponents/Popup/Popup.js // tabWorkOrder/pages/createOrder/createOrderComponents/Popup/Popup.js
Component({ Component({
externalClasses: ['popup-slot-class'],
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<block wx:if="{{ title }}"> <block wx:if="{{ title }}">
<view class="popup-title text-center">{{title}}</view> <view class="popup-title text-center">{{title}}</view>
</block> </block>
<view class="popup-slot {{ isFullSucreen?title?'isFullSucreen':'isFullSucreen-notitle':'' }}"> <view class="popup-slot popup-slot-class {{ isFullSucreen?title?'isFullSucreen':'isFullSucreen-notitle':'' }}">
<slot></slot> <slot></slot>
</view> </view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}"> <view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
} }
.popup-slot { .popup-slot {
height: calc(100% - 100rpx); height: calc(100% - 200rpx);
} }
.popup-slot.isFullSucreen { .popup-slot.isFullSucreen {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Component({ Component({
options: { options: {
// 在组件定义时的选项中启用多slot支持 // 在组件定义时的选项中启用多slot支持
multipleSlots: true multipleSlots: true,
}, },
/** /**
* 组件的属性列表 * 组件的属性列表
......
<!--packageEquity/components/storePicker/storePicker.wxml--> <!--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-container">
<view class="date-confirm"> <view class="date-confirm">
<view class="search-box"> <view class="search-box">
......
...@@ -59,3 +59,7 @@ ...@@ -59,3 +59,7 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.popup-style{
height: calc(100% - 100rpx)!important;
}
\ No newline at end of file \ No newline at end of file
...@@ -124,9 +124,9 @@ Page({ ...@@ -124,9 +124,9 @@ Page({
changeTabBar(e) { changeTabBar(e) {
let { pageShow } = this.data, let { pageShow } = this.data,
tabIndex = e.detail tabIndex = e.detail
this.setData({ // this.setData({
tabIndex // tabIndex
}) // })
console.log(pageShow[tabIndex]) console.log(pageShow[tabIndex])
// if (!pageShow[tabIndex]) { // if (!pageShow[tabIndex]) {
// this.getComponentPage().onLoad && this.getComponentPage().onLoad() // this.getComponentPage().onLoad && this.getComponentPage().onLoad()
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<quotation-list id="page-0" navBarHeight="{{navBarHeight}}" class="pagedetail {{tabIndex == 0?'':'hide'}}" mode="{{mode}}" /> <quotation-list id="page-0" navBarHeight="{{navBarHeight}}" class="pagedetail {{tabIndex == 0?'':'hide'}}" mode="{{mode}}" />
<equity-list <equity-list
id="page-1" id="page-1"
tabIndex="{{tabIndex}}" outTabIndex="{{tabIndex}}"
navBarHeight="{{navBarHeight}}" navBarHeight="{{navBarHeight}}"
class="pagedetail {{tabIndex == 1?'':'hide'}}" /> class="pagedetail {{tabIndex == 1?'':'hide'}}" />
</block> </block>
......
...@@ -10,7 +10,7 @@ Component({ ...@@ -10,7 +10,7 @@ Component({
type: Number, type: Number,
value: 0 value: 0
}, },
tabIndex: { outTabIndex: {
type: Number, type: Number,
observer(val) { observer(val) {
console.log(val) console.log(val)
......
...@@ -6,7 +6,12 @@ const equityStatusObj = { ...@@ -6,7 +6,12 @@ const equityStatusObj = {
'2': '提单成功', '2': '提单成功',
'3': '提单失败' '3': '提单失败'
} }
const equityStatusList = [{ const equityStatusList = [
{
confName: '全部',
confId: ''
},
{
confName: '待补单', confName: '待补单',
confId: '0' confId: '0'
}, { }, {
......
...@@ -340,6 +340,20 @@ ...@@ -340,6 +340,20 @@
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "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({ ...@@ -406,14 +406,45 @@ Page({
this.setData({ this.setData({
disabled: true 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 // return
api api
.supplementOrder(orderObj) .supplementOrder(orderObj)
.then(res => { .then(res => {
wx.hideLoading() wx.hideLoading()
// console.log(orderObj, res) // console.log(orderObj, res)
let { code, data, message } = res let { code, data, message,subErrors } = res
if (code == 0) { if (code == 0) {
if (save) { if (save) {
wx.showModal({ wx.showModal({
...@@ -439,7 +470,8 @@ Page({ ...@@ -439,7 +470,8 @@ Page({
} }
} else { } else {
this.showToast(message) this.showToast(message)
throw message // console.log(subErrors);
throw subErrors
} }
}) })
.finally(() => { .finally(() => {
......
...@@ -36,7 +36,7 @@ class Request { ...@@ -36,7 +36,7 @@ class Request {
success(response) { success(response) {
/**业务代码 */ /**业务代码 */
let { let {
data: { code, message }, data: { code, message, subErrors},
data data
} = response } = response
...@@ -47,7 +47,13 @@ class Request { ...@@ -47,7 +47,13 @@ class Request {
if (thisPage.route != 'pages/wxLogin/wxLogin') { if (thisPage.route != 'pages/wxLogin/wxLogin') {
getApp().login(true) getApp().login(true)
} }
} else if (code == -1) { }
// else if (code == 32){
// resolve(data)
// // console.log(subErrors);
// throw subErrors
// }
else if (code == -1) {
wx.showToast({ wx.showToast({
title: message || '网络请求失败', title: message || '网络请求失败',
icon: 'none' icon: 'none'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!