diff --git a/app.js b/app.js
index 9e7258d..b0427db 100644
--- a/app.js
+++ b/app.js
@@ -1,10 +1,18 @@
//app.js
App({
- onLaunch: function() {
-
+ onShow: function() {
+ var that = this;
+ wx.getSystemInfo({
+ success: function (res) {
+ that.globalData.winWidth = res.windowWidth;
+ that.globalData.winHeight = res.windowHeight;
+ }
+ });
},
globalData: {
+ winHeight: 0,
+ winWidth: 0,
phoneNum: "",
openID: "",
appName: "WeChat",
diff --git a/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.js b/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.js
index 5c71778..aa9c9fa 100644
--- a/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.js
+++ b/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.js
@@ -1,19 +1,40 @@
// pages/goodaNameChooseTemplate/goodaNameChooseTemplate.js
+var app = getApp()
+var network = require("../../utils/net.js")
+var dateTimePicker = require('../../utils/dateTimePicker.js');
+var utilll = require('../../utils/util.js');
+
+var getAccountingUnit = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetAccountingUnit";
+var getCustomer = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetCustomer";
+
Page({
- /**
- * 页面的初始数据
- */
data: {
+ winHeight: app.globalData.winHeight,
currentTab: 0,
- winHeight: 0,
- winWidth: 0,
- unCheckDataArr:[1,2,3,4,5,6,7,8,9,1],
+ customerCollectionArray:[],
+ customerArray:[],
+ unCheckDataArr: [1, 2, 3, 4, 5, 6, 7, 8, 9, 1],
+ },
+
+ GetCustomer: function(inputValue) {
+ var that =this;
+ let method = getCustomer;
+ let params = [{
+ "InputValue": inputValue,
+ "PageIndex": 0,
+ "PageSize": 100
+ }];
+ network.transfer_request(method, params, function(res) {
+ that.setData({
+ customerArray: res.result
+ })
+ })
},
/**
- * 滑动切换tab
- */
- bindChange: function (e) {
+ * 滑动切换tab
+ */
+ bindChange: function(e) {
var that = this;
that.setData({
currentTab: e.detail.current
@@ -23,7 +44,7 @@ Page({
/**
* 点击tab切换
*/
- swichNav: function (e) {
+ swichNav: function(e) {
var that = this;
if (this.data.currentTab === e.target.dataset.current) {
return false;
@@ -36,64 +57,58 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
- onLoad: function (options) {
+ onLoad: function(options) {
var that = this;
- wx.getSystemInfo({
- success: function (res) {
- that.setData({
- winWidth: res.windowWidth,
- winHeight: res.windowHeight
- });
- }
- });
+ this.GetCustomer();
+
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
- onReady: function () {
+ onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
- onShow: function () {
+ onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
- onHide: function () {
+ onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
- onUnload: function () {
+ onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
- onPullDownRefresh: function () {
+ onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
- onReachBottom: function () {
+ onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
- onShareAppMessage: function () {
+ onShareAppMessage: function() {
}
})
\ No newline at end of file
diff --git a/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.wxml b/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.wxml
index eea9bc2..1881308 100644
--- a/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.wxml
+++ b/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.wxml
@@ -13,9 +13,11 @@
收藏
-
-
+
+
+
+
添加存货明细
@@ -23,37 +25,20 @@
-
-
-
+
+
+
+
+
-
+
-
-
-
-
- NO:{{item.orderID}}
-
-
- 流程状态:{{item.workFlowState}}
-
-
-
-
- {{item.Customer_Name}}
-
-
- 发货日期:{{item.time}}
-
-
+ 你大吉大利看见噶说;{{item.name}}
+
+
\ No newline at end of file
diff --git a/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.wxss b/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.wxss
index b737f13..cdd78e9 100644
--- a/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.wxss
+++ b/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.wxss
@@ -1,6 +1,6 @@
/* pages/goodaNameChooseTemplate/goodaNameChooseTemplate.wxss */
page{
- background:#EAF1F8;
+ background:#EFEFF6;
height: 100%;
}
@@ -73,12 +73,33 @@ page{
}
.scroll-views {
- height: calc(100% - 80px);
+ margin-top: 25rpx;
+ height: calc(100% - 97px);
width: 100%;
display: flex;
flex-direction: column;
}
+.listBackGroundView{
+ background-color: #fff;
+}
+
+.listItem{
+ height: 80rpx;
+ display: flex;
+ padding: 10rpx 20rpx;
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.horizontallineView {
+ height: 1rpx;
+ background-color: #dbdbdb;
+ margin-left: 20rpx;
+ margin-right: 0rpx;
+}
+
.addGoodsName{
height: 45px;
width: 100%;
diff --git a/pages/guarantee/detail/detail.js b/pages/guarantee/detail/detail.js
index 942df46..b97f62c 100644
--- a/pages/guarantee/detail/detail.js
+++ b/pages/guarantee/detail/detail.js
@@ -180,7 +180,7 @@ Page({
allBillMoney: 0,
array: [],
showView: false,
- winHeight: 0
+ winHeight: app.globalData.winHeight,
},
/**
@@ -194,15 +194,6 @@ Page({
title: '业务担保单No.' + ID,
})
load(that, ID)
- wx.getSystemInfo({
-
- success: function(res) {
- that.setData({
- winHeight: res.windowHeight
- });
- }
-
- });
},
/**
diff --git a/pages/guarantee/guarantee.js b/pages/guarantee/guarantee.js
index ae78560..a33de85 100644
--- a/pages/guarantee/guarantee.js
+++ b/pages/guarantee/guarantee.js
@@ -1,4 +1,5 @@
// pages/guarantee/guarantee.js
+var app = getApp();
var network = require("../../utils/net.js")
var timechage = require("../../utils/dateTimeUtil.js")
var PageIndexN = 0
@@ -65,8 +66,7 @@ Page({
* 页面的初始数据
*/
data: {
- winWidth: 0,
- winHeight: 0,
+ winHeight: app.globalData.winHeight,
// tab切换
currentTab: 0,
@@ -81,18 +81,6 @@ Page({
*/
onLoad: function (options) {
var that = this;
- /**
- * 获取系统信息
- */
- wx.getSystemInfo({
- success: function (res) {
- that.setData({
- winWidth: res.windowWidth,
- winHeight: res.windowHeight
- });
- }
- });
-
getListN(that, PageIndexN, PageSizeN)
getListY(that, PageIndexY, PageSizeY)
},
diff --git a/pages/guarantee/newbill/newbill.js b/pages/guarantee/newbill/newbill.js
index 5ee0a03..53ab5b6 100644
--- a/pages/guarantee/newbill/newbill.js
+++ b/pages/guarantee/newbill/newbill.js
@@ -94,7 +94,7 @@ Page({
requestMoney: 0,
allBillMoney: 0,
array: [],
- winHeight: 0
+ winHeight: app.globalData.winHeight,
},
/**
@@ -111,16 +111,6 @@ Page({
Name: app.globalData.department_Name
}],
})
- var that = this
- wx.getSystemInfo({
-
- success: function(res) {
- that.setData({
- winHeight: res.windowHeight
- });
- }
-
- });
},
/**
diff --git a/pages/guarantee/selectbill/selectbill.js b/pages/guarantee/selectbill/selectbill.js
index e68d916..280326b 100644
--- a/pages/guarantee/selectbill/selectbill.js
+++ b/pages/guarantee/selectbill/selectbill.js
@@ -76,8 +76,7 @@ Page({
* 页面的初始数据
*/
data: {
- winWidth: 0,
- winHeight: 0,
+ winHeight: app.globalData.winHeight,
// tab切换
currentTab: 0,
arrayOut:[],
@@ -95,17 +94,6 @@ Page({
onLoad: function (options) {
customerid = Number(options.customerid)
var that = this;
- /**
- * 获取系统信息
- */
- wx.getSystemInfo({
- success: function (res) {
- that.setData({
- winWidth: res.windowWidth,
- winHeight: res.windowHeight
- });
- }
- });
getBillForDetail777(that, customerid)
getBillForDetail792(that, customerid)
getBillForDetail776(that, customerid)
diff --git a/pages/order/detail/detail.js b/pages/order/detail/detail.js
index d26c2dc..52d2d0b 100644
--- a/pages/order/detail/detail.js
+++ b/pages/order/detail/detail.js
@@ -130,7 +130,7 @@ Page({
*/
which: "",
winWidth: 0,
- winHeight: 0,
+ winHeight: app.globalData.winHeight,
// tab切换
currentTab: 0,
obj: [],
@@ -237,20 +237,6 @@ Page({
setTime(that)
})
-
- /**
- * 获取系统信息
- */
- wx.getSystemInfo({
-
- success: function (res) {
- that.setData({
- winWidth: res.windowWidth,
- winHeight: res.windowHeight
- });
- }
-
- });
},
/**
diff --git a/pages/order/newBill/newBill.js b/pages/order/newBill/newBill.js
index 8565e6a..e38f7f4 100644
--- a/pages/order/newBill/newBill.js
+++ b/pages/order/newBill/newBill.js
@@ -106,7 +106,7 @@ Page({
*/
which: "",
winWidth: 0,
- winHeight: 0,
+ winHeight: app.globalData.winHeight,
// tab切换
currentTab: 0,
obj: [],
@@ -146,7 +146,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
- var that = this;
// 获取完整的年月日 时分秒,以及默认显示的数组
var obj1 = dateTimePicker.dateTimePicker(this.data.startYear, this.data.endYear);
@@ -160,19 +159,7 @@ Page({
dateTimeArray1: obj1.dateTimeArray,
dateTime1: obj1.dateTime
});
- /**
- * 获取系统信息
- */
- wx.getSystemInfo({
- success: function(res) {
- that.setData({
- winWidth: res.windowWidth,
- winHeight: res.windowHeight
- });
- }
-
- });
},
/**
diff --git a/pages/order/order.js b/pages/order/order.js
index 9c993a5..f812bbc 100644
--- a/pages/order/order.js
+++ b/pages/order/order.js
@@ -61,7 +61,7 @@ Page({
arry: [],
scrollTop: 0,
scrollHeight: 0,
- winHeight: 0
+ winHeight: app.globalData.winHeight,
},
/**
@@ -85,14 +85,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function() {
- var that = this;
- wx.getSystemInfo({
- success: function (res) {
- that.setData({
- winHeight: res.windowHeight
- });
- }
- });
+
},
/**
diff --git a/pages/saleForecastList/Detail/Detail.js b/pages/saleForecastList/Detail/Detail.js
index 62e7b08..0bdaa5d 100644
--- a/pages/saleForecastList/Detail/Detail.js
+++ b/pages/saleForecastList/Detail/Detail.js
@@ -130,7 +130,7 @@ Page({
*/
which: "",
winWidth: 0,
- winHeight: 0,
+ winHeight: app.globalData.winHeight,
// tab切换
currentTab: 0,
obj: [],
@@ -237,20 +237,6 @@ Page({
setTime(that)
})
-
- /**
- * 获取系统信息
- */
- wx.getSystemInfo({
-
- success: function (res) {
- that.setData({
- winWidth: res.windowWidth,
- winHeight: res.windowHeight
- });
- }
-
- });
},
/**
diff --git a/pages/saleForecastList/newBill/newBill.js b/pages/saleForecastList/newBill/newBill.js
index 1bc0850..8cd7d08 100644
--- a/pages/saleForecastList/newBill/newBill.js
+++ b/pages/saleForecastList/newBill/newBill.js
@@ -113,7 +113,7 @@ Page({
*/
which: "",
winWidth: 0,
- winHeight: 0,
+ winHeight: app.globalData.winHeight,
// tab切换
currentTab: 0,
obj: [],
@@ -167,19 +167,7 @@ Page({
dateTimeArray1: obj1.dateTimeArray,
dateTime1: obj1.dateTime
});
- /**
- * 获取系统信息
- */
- wx.getSystemInfo({
-
- success: function(res) {
- that.setData({
- winWidth: res.windowWidth,
- winHeight: res.windowHeight
- });
- }
-
- });
+
},
/**
diff --git a/pages/saleForecastList/saleForecastList.js b/pages/saleForecastList/saleForecastList.js
index 544cf3b..6ca6466 100644
--- a/pages/saleForecastList/saleForecastList.js
+++ b/pages/saleForecastList/saleForecastList.js
@@ -96,8 +96,7 @@ Page({
checkedDataArr: [],
unCheckDataArr: [],
currentTab: 0,
- winHeight: 0,
- winWidth: 0,
+ winHeight: app.globalData.winHeight,
Customer_ID: null,
},
@@ -160,14 +159,6 @@ Page({
Customer_ID: app.globalData.selectCustomer_ID,
})
var that = this;
- wx.getSystemInfo({
- success: function (res) {
- that.setData({
- winWidth: res.windowWidth,
- winHeight: res.windowHeight
- });
- }
- });
UnCheckPageIndex = 0;
CheckedPageIndex = 0;
getUnCheckOrderList(that, UnCheckPageIndex, UnCheckPageSize);