From 12770b8191bc951dc6f9241cc8d437baad1fc8d2 Mon Sep 17 00:00:00 2001
From: xpz2018 <107107461@qq.com>
Date: Thu, 22 Jul 2021 18:18:16 +0800
Subject: [PATCH] no message
---
pages/home/customer-info/index.wxml | 4 ++--
pages/home/customer-list/index.js | 3 +++
pages/home/customer-list/index.json | 1 +
pages/home/customer-list/index.wxml | 4 +++-
pages/process/order-price/index.js | 14 ++++++++++++++
pages/process/order-price/index.wxml | 4 ++--
6 files changed, 25 insertions(+), 5 deletions(-)
diff --git a/pages/home/customer-info/index.wxml b/pages/home/customer-info/index.wxml
index 831976a..5fdb4cb 100644
--- a/pages/home/customer-info/index.wxml
+++ b/pages/home/customer-info/index.wxml
@@ -28,8 +28,8 @@
邀请注册纸通宝
- 删除客户
-
+ 删除客户
+
保存
diff --git a/pages/home/customer-list/index.js b/pages/home/customer-list/index.js
index 2905bdc..6499c3c 100644
--- a/pages/home/customer-list/index.js
+++ b/pages/home/customer-list/index.js
@@ -102,6 +102,9 @@ Scene({
var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index]
wx.navigateTo({ url: `/pages/home/registe/index?id=${item.id}` })
},
+ addCustomer: function(){
+ wx.navigateTo({ url: `/pages/home/customer-info/index?` })
+ },
onUnload: function(){
event.remove('EventMessage', this)
}
diff --git a/pages/home/customer-list/index.json b/pages/home/customer-list/index.json
index 16e2883..29e490d 100644
--- a/pages/home/customer-list/index.json
+++ b/pages/home/customer-list/index.json
@@ -2,6 +2,7 @@
"usingComponents": {
"van-search": "/components/search/index",
"refresh-view": "/components/refresh-view/index",
+ "van-button": "/components/button/index",
"van-image": "/components/image/index",
"van-divider": "/components/divider/index",
"van-loading": "/components/loading/index",
diff --git a/pages/home/customer-list/index.wxml b/pages/home/customer-list/index.wxml
index 3db2056..0596658 100644
--- a/pages/home/customer-list/index.wxml
+++ b/pages/home/customer-list/index.wxml
@@ -50,5 +50,7 @@
-->
-
+
+
+
\ No newline at end of file
diff --git a/pages/process/order-price/index.js b/pages/process/order-price/index.js
index a97df78..26ede27 100644
--- a/pages/process/order-price/index.js
+++ b/pages/process/order-price/index.js
@@ -62,6 +62,20 @@ Scene({
nextStep: function (e) {
this.setData({ step: 2 })
},
+ selectCustomer: function(){
+ var that = this
+ wx.navigateTo({
+ url: `/pages/home/customer-list/index?type=1`,
+ events: {
+ onCallback: (data) => {
+ if (data.what == 130) {
+ that.data.form.factoryCustomerId = data.detail.id
+ that.setData({ ['form.factoryCustomerName']: data.detail.name })
+ }
+ }
+ }
+ })
+ },
showPlate: function (e) {
this.keyboard = this.keyboard || this.selectComponent('#wux-keyboard')
this.keyboard.show(this.data.form.plateNumber, 0)
diff --git a/pages/process/order-price/index.wxml b/pages/process/order-price/index.wxml
index efc4bbd..edae00b 100644
--- a/pages/process/order-price/index.wxml
+++ b/pages/process/order-price/index.wxml
@@ -4,7 +4,7 @@
-
+
客户姓名
{{form.factoryCustomerName}}
@@ -35,7 +35,7 @@
订单信息
-
+
客户姓名
{{form.factoryCustomerName}}