diff --git a/app.json b/app.json
index 6f86003..af810c1 100644
--- a/app.json
+++ b/app.json
@@ -25,6 +25,8 @@
"pages/outStore/outStoreDetail/outStoreDetail",
"pages/specialOrderApplication/specialOrderApplyDetail/specialOrderApplyDetail",
"pages/outStore/query/query",
+ "pages/waitForApproval/waitForApproval",
+ "pages/waitForApproval/approvalDetail/approvalDetail",
"pages/startImage/startImage"
],
diff --git a/imgs/waitApproval.png b/imgs/waitApproval.png
new file mode 100755
index 0000000..2e9e79d
Binary files /dev/null and b/imgs/waitApproval.png differ
diff --git a/pages/homePage/homePage.js b/pages/homePage/homePage.js
index ce321fc..3ae5c13 100644
--- a/pages/homePage/homePage.js
+++ b/pages/homePage/homePage.js
@@ -68,6 +68,9 @@ Page({
case "5":
transferURL = '/pages/guarantee/guarantee';
break;
+ case "6":
+ transferURL = '/pages/waitForApproval/waitForApproval';
+ break;
}
wx.navigateTo({
diff --git a/pages/homePage/homePage.wxml b/pages/homePage/homePage.wxml
index b26a018..4bbfa0e 100644
--- a/pages/homePage/homePage.wxml
+++ b/pages/homePage/homePage.wxml
@@ -24,4 +24,8 @@
担保单
+
+
+ 待办审批
+
\ No newline at end of file
diff --git a/pages/waitForApproval/approvalDetail/approvalDetail.js b/pages/waitForApproval/approvalDetail/approvalDetail.js
new file mode 100644
index 0000000..f39b6ba
--- /dev/null
+++ b/pages/waitForApproval/approvalDetail/approvalDetail.js
@@ -0,0 +1,386 @@
+// pages/waitForApproval/approvalDetail/approvalDetail.js
+var app = getApp();
+var network = require("../../../utils/net.js");
+var timechage = require("../../../utils/dateTimeUtil.js");
+
+// 销售 - 销售订单
+var saleOrderMethod = '/MainSystem/B3MiniProgramRpc/Rpcs/ManagerRpc/OrderRpc/Load';
+// 销售 - 销售预报
+var saleForecastMethod = '/MainSystem/B3MiniProgramRpc/Rpcs/ManagerRpc/SaleForecastRpc/Load';
+// 销售 - 业务担保
+var businessGuaranteeMethod = '/MainSystem/B3MiniProgramRpc/Rpcs/ManagerRpc/BusinessGuaranteeRpc/Load';
+// 屠宰分割-生产通知单
+var productNoticeMethod = '/MainSystem/B3MiniProgramRpc/Rpcs/ManagerRpc/ProductNoticeRpc/Load';
+
+/**
+ * 确定按钮点击进行审核的方法
+ */
+// 销售 - 销售订单
+var saleOrderForward = '/MainSystem/B3MiniProgramRpc/Rpcs/ManagerRpc/OrderRpc/Forward';
+var saleOrderBackward = "/MainSystem/B3MiniProgramRpc/Rpcs/ManagerRpc/OrderRpc/Backward"
+// 销售 - 销售预报
+var saleForecastForward = '/MainSystem/B3MiniProgramRpc/Rpcs/ManagerRpc/SaleForecastRpc/Forward';
+var saleForecastBackward = '/MainSystem/B3MiniProgramRpc/Rpcs/ManagerRpc/SaleForecastRpc/Backward';
+// 销售 - 业务担保
+var businessGuaranteeForward = '/MainSystem/B3MiniProgramRpc/Rpcs/ManagerRpc/BusinessGuaranteeRpc/Forward';
+var businessGuaranteeBackward = '/MainSystem/B3MiniProgramRpc/Rpcs/ManagerRpc/BusinessGuaranteeRpc/Backward';
+// 屠宰分割-生产通知单
+var productNoticeForward = '/MainSystem/B3MiniProgramRpc/Rpcs/ManagerRpc/ProductNoticeRpc/Forward';
+var productNoticeBackward = '/MainSystem/B3MiniProgramRpc/Rpcs/ManagerRpc/ProductNoticeRpc/Backward';
+
+//将要获取的表头模版名称
+var formTitleTemplate = "";
+//将要获取的详情模版名称
+var detailInfoTemplate = "";
+
+var detailItemType = "";
+
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ dataArr: [],
+ titleObj: {},
+ templateName: "",
+ titleTemplateName: "",
+ showBottomView: true,
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function(options) {
+ //正常登录流程进入值为0,分享页面直接进入值为1
+ if (app.globalData.shareInState == 1) {
+ return;
+ }
+ var that = this;
+
+ if (app.globalData.shareInParameter.id) {
+ var detailItemID = parseInt(app.globalData.shareInParameter.id);
+ detailItemType = app.globalData.shareInParameter.detailItemType;
+ } else {
+ var detailItemID = parseInt(options.id);
+ detailItemType = options.detailItemType;
+ var detailItemState = options.detailItemState;
+ if (detailItemState == "true") {
+ that.setData({
+ showBottomView: true,
+ });
+ } else {
+ that.setData({
+ showBottomView: false,
+ });
+ }
+ }
+
+ if (!detailItemID || !detailItemType) {
+ wx.showModal({
+ title: '提示',
+ content: '单据信息不明确,无法获取详情数据',
+ success:function(res){
+ app.globalData.shareInParameter = {};
+ app.globalData.shareInPath = '';
+ if (res.confirm) {
+ wx.navigateBack({
+ delta:1,
+ })
+ }
+ },
+ });
+ return;
+ }
+ console.log("获取到的详情ID = " + detailItemID);
+ console.log("获取到的详情类型 = " + detailItemType);
+
+ let method = '';
+ switch (detailItemType) {
+ case "销售-销售订单":
+ method = saleOrderMethod;
+ break;
+ case "销售-销售预报":
+ method = saleForecastMethod;
+ break;
+ case "销售-业务担保":
+ method = businessGuaranteeMethod;
+ break;
+ case "屠宰分割-生产通知单":
+ method = productNoticeMethod;
+ break;
+ }
+ let params = [detailItemID];
+ network.transfer_request(method, params, function(res) {
+
+ // let DepartmentWorkFlow_Detail_Name = res.result.DepartmentWorkFlow_Detail_Name
+ // if (DepartmentWorkFlow_Detail_Name == "初始") {
+ // that.setData({
+ // showBottomView: true,
+ // });
+ // } else {
+ // that.setData({
+ // showBottomView: true,
+ // });
+ // }
+ // 置空公众号跳转信息json 防止下次进入
+ app.globalData.shareInParameter = {};
+ app.globalData.shareInPath = '';
+
+ var array = res.result;
+ if (array.length <= 0) {
+ wx.showToast({
+ title: '无数据更新',
+ })
+ return;
+ }
+ switch (detailItemType) {
+ case "销售-销售订单":
+ formTitleTemplate = "commonFormTitleTemplate";
+ detailInfoTemplate = "saleOrderTemplate";
+ that.saleOrder(array, detailInfoTemplate, formTitleTemplate);
+ break;
+
+ case "销售-销售预报":
+ formTitleTemplate = "commonFormTitleTemplate";
+ detailInfoTemplate = "saleOrderTemplate";
+ // that.saleForecast(array, detailInfoTemplate, formTitleTemplate)
+ that.saleOrder(array, detailInfoTemplate, formTitleTemplate);
+ break;
+
+ case "销售-业务担保":
+ formTitleTemplate = "guaranteeFormTitleTemplate";
+ detailInfoTemplate = "businessGuaranteeTemplate";
+ that.businessGuarantee(array, detailInfoTemplate, formTitleTemplate);
+ break;
+
+ case "屠宰分割-生产通知单":
+ formTitleTemplate = "commonFormTitleTemplate";
+ detailInfoTemplate = "productNoticeTemplate";
+ that.productNotice(array, detailInfoTemplate, formTitleTemplate);
+ break;
+ }
+ })
+ },
+
+ // 销售订单 销售预报 数据解析
+ saleOrder: function(result, infoTemplate, titleTemplate) {
+ var formTitle = {
+ //返回的订单ID
+ orderID: result.ID,
+ // 购货客户
+ Customer_Name: result.Customer_Name,
+ // 会计单位
+ AccountingUnit_Name: result.AccountingUnit_Name,
+ // 部门
+ Department_Name: result.Department_Name,
+ // 日期
+ CreateTime: timechage.formatTimeTwo(result.CreateTime.substring(6, 19), 'Y/M/D h:m')
+ }
+ let arrayLast = [];
+ var detailArr = result.Details;
+ for (var i = 0; i < detailArr.length; i++) {
+ var policyPrice = detailArr[i].PolicyPrice;
+ if (!policyPrice) {
+ policyPrice = 0;
+ }
+ var dmo = {
+ listNumber: i + 1,
+ // 存活名称
+ Goods_Name: detailArr[i].Goods_Name,
+ // 主数量
+ Number: detailArr[i].Number,
+ // 单价
+ Price: detailArr[i].Price,
+ // 辅数量
+ SecondNumber: detailArr[i].SecondNumber,
+ // 政策单价
+ PolicyPrice: policyPrice,
+
+ }
+ arrayLast.push(dmo);
+ }
+ this.setData({
+ // 表头模版
+ titleTemplateName: titleTemplate,
+ // 详情模版名称
+ templateName: infoTemplate,
+ // 详情数组
+ dataArr: arrayLast,
+ // 表头明细
+ titleObj: formTitle,
+ })
+ },
+
+ // 业务担保数据解析
+ businessGuarantee: function(result, infoTemplate, titleTemplate) {
+ var formTitle = {
+ //返回的订单ID
+ orderID: result.ID,
+ // 购货客户
+ Customer_Name: result.Customer_Name,
+ // 会计单位
+ AccountingUnit_Name: result.AccountingUnit_Name,
+ // 部门
+ Department_Name: result.Department_Name,
+ // 担保日期
+ GuaranteeDate: timechage.formatTimeTwo(result.GuaranteeDate.substring(6, 19), 'Y/M/D h:m'),
+ // 承诺回款日期
+ CashBackDate: timechage.formatTimeTwo(result.CashBackDate.substring(6, 19), 'Y/M/D h:m'),
+ // 担保金额
+ GuaranteeMoney: result.GuaranteeMoney,
+ }
+ let arrayLast = [];
+ var detailArr = result.Details;
+ for (var i = 0; i < detailArr.length; i++) {
+ var money = detailArr[i].Value;
+ if (!money) {
+ money = 0;
+ }
+ var dmo = {
+ listNumber: i + 1,
+ // 客户名称
+ Customer_Name: detailArr[i].Customer_Name,
+ // 单据类型
+ DmoTypeIDName: detailArr[i].DmoTypeIDName,
+ // 单号
+ ID: detailArr[i].ID,
+ // 单据日期
+ Date: timechage.formatTimeTwo(detailArr[i].Date.substring(6, 19), 'Y/M/D h:m'),
+ // 单据金额
+ Value: money,
+ }
+ arrayLast.push(dmo);
+ }
+ this.setData({
+ // 表头模版
+ titleTemplateName: titleTemplate,
+ // 详情模版名称
+ templateName: infoTemplate,
+ // 详情数组
+ dataArr: arrayLast,
+ // 表头明细
+ titleObj: formTitle,
+ })
+ },
+
+
+ // 生产通知单数据解析
+ productNotice: function(result, infoTemplate, titleTemplate) {
+ var formTitle = {
+ //返回的订单ID
+ // 生产通知订单ID在表头内取不到,包含在详情数组内
+ // orderID: result.ID,
+ orderID: result.Details[0].ProductNotice_ID,
+ // 购货客户
+ Customer_Name: result.Customer_Name,
+ // 会计单位
+ AccountingUnit_Name: result.AccountingUnit_Name,
+ // 部门
+ Department_Name: result.Department_Name,
+ // 日期
+ CreateTime: timechage.formatTimeTwo(result.Date.substring(6, 19), 'Y/M/D'),
+ }
+ let arrayLast = [];
+ var detailArr = result.Details;
+ for (var i = 0; i < detailArr.length; i++) {
+ var dmo = {
+ listNumber: i + 1,
+ // 存活名称
+ Goods_Name: detailArr[i].Goods_Name,
+ // 主数量
+ Number: detailArr[i].Number,
+ // 辅数量
+ SecondNumber: detailArr[i].SecondNumber,
+ // 生产日期
+ ProduceDate: timechage.formatTimeTwo(detailArr[i].ProduceDate.substring(6, 19), 'Y/M/D'),
+ // 交货日期
+ DeliveryDate: timechage.formatTimeTwo(detailArr[i].DeliveryDate.substring(6, 19), 'Y/M/D'),
+ // 加工要求
+ ProduceRequest: detailArr[i].ProduceRequest,
+ }
+ arrayLast.push(dmo);
+ }
+ this.setData({
+ // 表头模版
+ titleTemplateName: titleTemplate,
+ // 详情模版名称
+ templateName: infoTemplate,
+ // 详情数组
+ dataArr: arrayLast,
+ // 表头明细
+ titleObj: formTitle,
+ })
+ },
+
+ /**
+ * 确定按钮点击事件
+ */
+ sureBtnClicked: function(event) {
+ var id = event.currentTarget.dataset.orderid;
+ console.log("点击的按钮ID == " + id);
+ let method = '';
+ switch (detailItemType) {
+ case "销售-销售订单":
+ method = saleOrderForward;
+ break;
+ case "销售-销售预报":
+ method = saleForecastForward;
+ break;
+ case "销售-业务担保":
+ method = businessGuaranteeForward;
+ break;
+ case "屠宰分割-生产通知单":
+ method = productNoticeForward;
+ break;
+ }
+ let params = [id];
+ network.transfer_request(method, params, function(res) {
+ wx.showToast({
+ title: '审批成功',
+ success: function() {
+ wx.navigateBack({
+ delta: 1,
+ })
+ }
+ })
+ })
+ },
+
+ /**
+ * 退回按钮点击事件
+ */
+ cancleBtnClicked: function(event) {
+ var id = event.currentTarget.dataset.orderid;
+ console.log("点击的按钮ID == " + id);
+ let method = '';
+ switch (detailItemType) {
+ case "销售-销售订单":
+ method = saleOrderBackward;
+ break;
+ case "销售-销售预报":
+ method = saleForecastBackward;
+ break;
+ case "销售-业务担保":
+ method = businessGuaranteeBackward;
+ break;
+ case "屠宰分割-生产通知单":
+ method = productNoticeBackward;
+ break;
+ }
+ let params = [id];
+ network.transfer_request(method, params, function(res) {
+ wx.showToast({
+ title: '退回成功',
+ success: function() {
+ wx.navigateBack({
+ delta: 1,
+ })
+ }
+ })
+ })
+ },
+
+
+
+})
\ No newline at end of file
diff --git a/pages/waitForApproval/approvalDetail/approvalDetail.json b/pages/waitForApproval/approvalDetail/approvalDetail.json
new file mode 100644
index 0000000..a0082c4
--- /dev/null
+++ b/pages/waitForApproval/approvalDetail/approvalDetail.json
@@ -0,0 +1,3 @@
+{
+ "navigationBarTitleText": "审批单详情"
+}
\ No newline at end of file
diff --git a/pages/waitForApproval/approvalDetail/approvalDetail.wxml b/pages/waitForApproval/approvalDetail/approvalDetail.wxml
new file mode 100644
index 0000000..ab3339b
--- /dev/null
+++ b/pages/waitForApproval/approvalDetail/approvalDetail.wxml
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确认
+
+
+ 退回
+
+
+
+
+
+购货客户:{{titleObj.Customer_Name}}
+ 会计单位:{{titleObj.AccountingUnit_Name}}
+ 部门:{{titleObj.Department_Name}}
+ 日期:{{titleObj.CreateTime}}
+
+
+
+
+结账客户:{{titleObj.Customer_Name}}
+ 会计单位:{{titleObj.AccountingUnit_Name}}
+ 部门:{{titleObj.Department_Name}}
+ 担保日期:{{titleObj.GuaranteeDate}}
+ 承诺回款日期:{{titleObj.CashBackDate}}
+ 担保金额:{{titleObj.GuaranteeMoney}}
+
+
+
+
+ 明细清单:{{item.listNumber}}
+ 存货名称:{{item.Goods_Name}}
+ 主数量:{{item.Number}}
+ 辅数量:{{item.SecondNumber}}
+ 单价:{{item.Price}}
+ 政策单价:{{item.PolicyPrice}}
+
+
+
+
+ 明细清单:{{item.listNumber}}
+ 存货名称:{{item.Goods_Name}}
+ 主数量:{{item.Number}}
+ 辅数量:{{item.SecondNumber}}
+ 生产日期:{{item.ProduceDate}}
+ 交货日期:{{item.DeliveryDate}}
+ 加工要求:{{item.ProduceRequest}}
+
+
+
+
+ 担保明细:{{item.listNumber}}
+ 客户名称:{{item.Customer_Name}}
+ 单据类型:{{item.DmoTypeIDName}}
+ 单号:{{item.ID}}
+ 单据日期:{{item.Date}}
+ 单据金额:{{item.Value}}
+
\ No newline at end of file
diff --git a/pages/waitForApproval/approvalDetail/approvalDetail.wxss b/pages/waitForApproval/approvalDetail/approvalDetail.wxss
new file mode 100644
index 0000000..269bf34
--- /dev/null
+++ b/pages/waitForApproval/approvalDetail/approvalDetail.wxss
@@ -0,0 +1,91 @@
+/* pages/waitForApproval/approvalDetail/approvalDetail.wxss */
+
+.listContainer {
+ margin-top: 10rpx;
+ display: flex;
+ flex-direction: column;
+ /* padding: 20rpx 20rpx 20rpx 20rpx; */
+ background-color: #fff;
+}
+
+.listItem {
+ padding: 20rpx 20rpx 20rpx 20rpx;
+ border-bottom: 0.1px solid #dbdbdb;
+ font-size: 16px;
+ color: black;
+}
+
+.lightGray{
+ color: #666;
+}
+
+.detaileListContainer {
+ display: flex;
+ flex-direction: column;
+ background-color: #fff;
+}
+
+.listNumberView {
+ background-color: #f0eff5;
+ padding: 10rpx 10rpx 10rpx 10rpx;
+ font-size: 16px;
+ color: #666;
+}
+
+.bottomView {
+ height: 40px;
+ width: 100%;
+ display: flex;
+ flex-direction: row;
+ margin-top: 30rpx;
+ margin-bottom: 30rpx;
+}
+
+.sureBtnView {
+ height: 100%;
+ width: 50%;
+ align-items: center;
+ justify-content: center;
+ display: flex;
+}
+
+.cancleBtnView {
+ height: 100%;
+ width: 50%;
+ align-items: center;
+ justify-content: center;
+ display: flex;
+}
+
+.sureBtn {
+ height: 40px;
+ width: 80%;
+ border: 1;
+ border-radius: 8rpx;
+ background-color: #2E8CF5;
+ text-align: center;
+ line-height: 40px;
+}
+
+.sureBtnText{
+ color: white;
+}
+
+.cancleBtn {
+ height: 40px;
+ width: 80%;
+ border: 1;
+ border-radius: 8rpx;
+ background-color: #d6d6d6;
+ text-align: center;
+ line-height: 40px;
+}
+
+.cancleBtnText{
+ color: #666;
+}
+
+page {
+ background-color: #f0eff5;
+ height: 100%;
+}
diff --git a/pages/waitForApproval/waitForApproval.js b/pages/waitForApproval/waitForApproval.js
new file mode 100644
index 0000000..1d00890
--- /dev/null
+++ b/pages/waitForApproval/waitForApproval.js
@@ -0,0 +1,167 @@
+const app = getApp();
+var network = require("../../utils/net.js");
+var timechage = require("../../utils/dateTimeUtil.js");
+var UnCheckPageIndex = 0
+var UnCheckPageSize = 10
+var CheckedPageIndex = 0
+var CheckedPageSize = 10
+var outStoreMethod = '/MainSystem/B3MiniProgramRpc/Rpcs/ManagerRpc/WorkFlowApproveRecordRpc/GetList'
+// 未审核订单列表
+function getUnCheckOrderList(that, UnCheckPageIndex, UnCheckPageSize, successaction) {
+ let getArr = [];
+ let method = outStoreMethod;
+ let params = [false, UnCheckPageIndex, UnCheckPageSize];
+ network.transfer_request(method, params, function(res) {
+ var array = res.result;
+ successaction();
+ if (array.length <= 0) {
+ wx.showToast({
+ title: '无数据更新',
+ })
+ if (UnCheckPageIndex > 0) {
+ UnCheckPageIndex = UnCheckPageIndex - 1;
+ }
+ return;
+ }
+ for (var i = 0; i < array.length; i++) {
+ var dmo = {
+ //是否显示审批按钮所在bottom
+ billState: true,
+ billType: array[i].BillType_Name,
+ billID: array[i].Bill_ID,
+ remark: array[i].EndStateName,
+ time: timechage.formatTimeTwo(array[i].CreateTime.substring(6, 19), 'Y/M/D h:m')
+ }
+ getArr.push(dmo);
+ }
+ let arrLast = that.data.unCheckDataArr.concat(getArr);
+ that.setData({
+ unCheckDataArr: arrLast,
+ })
+ })
+}
+
+// 已审核订单列表
+function getCheckedOrderList(that, CheckedPageIndex, CheckedPageSize) {
+ let getArr = [];
+ let method = outStoreMethod;
+ let params = [true, CheckedPageIndex, CheckedPageSize];
+ network.transfer_request(method, params, function(res) {
+ var array = res.result;
+ if (array.length <= 0) {
+ wx.showToast({
+ title: '无数据更新',
+ })
+ if (CheckedPageIndex > 0) {
+ CheckedPageIndex = CheckedPageIndex - 1;
+ }
+ return;
+ }
+ for (var i = 0; i < array.length; i++) {
+ var dmo = {
+ //是否显示审批按钮所在bottom
+ billState: false,
+ billType: array[i].BillType_Name,
+ billID: array[i].Bill_ID,
+ remark: array[i].Remark,
+ time: timechage.formatTimeTwo(array[i].CreateTime.substring(6, 19), 'Y/M/D h:m')
+ }
+ getArr.push(dmo);
+ }
+ let arrLast = that.data.checkedDataArr.concat(getArr);
+ that.setData({
+ checkedDataArr: arrLast,
+ })
+ })
+}
+
+Page({
+ data: {
+ checkedDataArr: [],
+ unCheckDataArr: [],
+ currentTab: 0,
+ winHeight: 0,
+ winWidth: 0,
+ },
+
+ /**
+ * 滑动切换tab
+ */
+ bindChange: function(e) {
+ var that = this;
+ that.setData({
+ currentTab: e.detail.current
+ });
+
+ },
+ /**
+ * 点击tab切换
+ */
+ swichNav: function(e) {
+ var that = this;
+ if (this.data.currentTab === e.target.dataset.current) {
+ return false;
+ } else {
+ that.setData({
+ currentTab: e.target.dataset.current
+ })
+ }
+ },
+ //点击进入详情页面
+ transToOrderDetail: function(event) {
+ var itemID = event.currentTarget.dataset.detailitemid;
+ var itemType = event.currentTarget.dataset.detailitemtype;
+ var itemState = event.currentTarget.dataset.detailitemstate;
+ wx.navigateTo({
+ url: 'approvalDetail/approvalDetail?id=' + itemID + '&detailItemType=' + itemType + '&detailItemState=' + itemState,
+ })
+ },
+
+ onShow: function(options) {
+ this.setData({
+ checkedDataArr: [],
+ unCheckDataArr: [],
+ })
+ var that = this;
+ wx.getSystemInfo({
+ success: function(res) {
+ that.setData({
+ winWidth: res.windowWidth,
+ winHeight: res.windowHeight
+ });
+ }
+ });
+ UnCheckPageIndex = 0;
+ CheckedPageIndex = 0;
+ getUnCheckOrderList(that, UnCheckPageIndex, UnCheckPageSize,function (res){
+ getCheckedOrderList(that, CheckedPageIndex, CheckedPageSize);
+ });
+ },
+
+ //未审核订单滑动到底部加载
+ unCheckedScrollLower: function(event) {
+ var that = this;
+ UnCheckPageIndex = UnCheckPageIndex + 1;
+ getUnCheckOrderList(that, UnCheckPageIndex, UnCheckPageSize, function (res) { });
+ },
+
+ //已审核订单滑动到底部加载
+ CheckedScrollLower: function(event) {
+ var that = this;
+ CheckedPageIndex = CheckedPageIndex + 1;
+ getCheckedOrderList(that, CheckedPageIndex, CheckedPageSize);
+ },
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function() {
+ var that = this;
+ if (this.data.currentTab === 0) {
+ UnCheckPageIndex = UnCheckPageIndex + 1;
+ getUnCheckOrderList(that, UnCheckPageIndex, UnCheckPageSize, function(res) { });
+ } else {
+ CheckedPageIndex = CheckedPageIndex + 1;
+ getCheckedOrderList(that, CheckedPageIndex, CheckedPageSize);
+ }
+ },
+})
\ No newline at end of file
diff --git a/pages/waitForApproval/waitForApproval.json b/pages/waitForApproval/waitForApproval.json
new file mode 100644
index 0000000..45014ad
--- /dev/null
+++ b/pages/waitForApproval/waitForApproval.json
@@ -0,0 +1,3 @@
+{
+ "navigationBarTitleText": "待办审批"
+}
\ No newline at end of file
diff --git a/pages/waitForApproval/waitForApproval.wxml b/pages/waitForApproval/waitForApproval.wxml
new file mode 100644
index 0000000..743ca90
--- /dev/null
+++ b/pages/waitForApproval/waitForApproval.wxml
@@ -0,0 +1,44 @@
+
+
+
+ 待我审批
+ 我已审批
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 状态:{{item.remark}}
+
+
+ 时间:{{item.time}}
+
+
+
+ 单号:{{item.billID}}
+
+
+ 类型:{{item.billType}}
+
+
+
+
\ No newline at end of file
diff --git a/pages/waitForApproval/waitForApproval.wxss b/pages/waitForApproval/waitForApproval.wxss
new file mode 100644
index 0000000..6baa5b7
--- /dev/null
+++ b/pages/waitForApproval/waitForApproval.wxss
@@ -0,0 +1,100 @@
+/* pages/saleOutStore/saleOutStore.wxss */
+.swiper-tab {
+ width: 100%;
+ /* height: 40px; */
+ text-align: center;
+ line-height: 45px;
+ background: white;
+ display: flex;
+ flex-direction: row;
+ justify-content: space-around;
+ border-bottom: 0.2rpx solid rgb(236, 231, 231);
+}
+
+.swiper-tab-list {
+ font-size: 30rpx;
+ width: 25%;
+ color: #777;
+}
+
+.on {
+ border-bottom: 1.5px solid #2E8CF5 ;
+ color: #2E8CF5;
+}
+
+.swiper-box {
+ margin-top: 3px;
+ display: block;
+ width: 100%;
+ overflow: hidden;
+}
+
+.swiper-items1 {
+ height: 100%;
+ /* padding-top: 3%; */
+}
+
+.swiper-items2 {
+ height: 100%;
+ /* padding-top: 3%; */
+}
+
+.scroll-views {
+ height: 100%;
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+}
+
+.listItem{
+ /* width: 100%; */
+ /* height: 200rpx; */
+ display: flex;
+ flex-direction: column;
+ background-color: #fff;
+ padding: 20rpx 20rpx;
+ border-bottom: 1rpx solid #ddd;
+ background: white;
+
+}
+
+.orderID{
+ /* height: 50%;
+ width: 100%; */
+
+}
+.bottomView{
+ /* height: 50%;*/
+ width: 100%;
+ display: flex;
+ flex-direction: row;
+}
+.goodsNum{
+ /* height: 100%; */
+ width: 50%;
+}
+
+.goodsIDText{
+ font-size: 16px;
+}
+
+.goodsNumText{
+ font-size: 14px;
+ color: #666;
+}
+.goodsMoney{
+ /* height: 100%;*/
+ width: 50%;
+ text-align: right;
+
+}
+
+.goodsMoneyText{
+ font-size: 14px;
+ color: #666;
+}
+
+page{
+ background-color: #F0EFF5;
+ height: 100%;
+}
\ No newline at end of file