Explorar o código

客户档案资料费逻辑

xiaohaizhao hai 6 meses
pai
achega
d452524d2c

+ 2 - 0
packageA/market/detail.js

@@ -259,6 +259,7 @@ Page({
 			sa_brandid,
 			itemid: detail.itemid, //货品id
 			qty: detail.qty, //数量
+			custamount: detail.custamount || 0, // 客户档案资料费
 			itemno: detail.itemno, //货品编号
 			tradefield: '默认',
 		}, custom);
@@ -322,6 +323,7 @@ Page({
 			itemid: detail.itemid, //货品id
 			qty: detail.qty, //数量
 			itemno: detail.itemno, //货品编号
+			custamount: detail.custamount || 0, // 客户档案资料费
 		}, custom)];
 
 

+ 3 - 2
packageA/orderForm/modules/product/index.js

@@ -104,10 +104,10 @@ Component({
                 data = this.data.list[index];
             if (data.qty == obj.qty && data.remarks == obj.remarks && data.needdate == obj.needdate) return;
             detail.sa_order_v = this.data.sa_order_v - 0;
-            detail.custamount = 0;
             detail.customcheek = '';
             detail.customcolors = '';
             detail.custommaterial = '';
+            console.log("detail", detail)
             _Http.basic({
                 "id": 20221109093602,
                 "content": {
@@ -303,6 +303,7 @@ Component({
         handleInsert({
             list
         }) {
+            console.log("list", list)
             return new Promise((resolve) => {
                 _Http.basic({
                     "id": 20221109093602,
@@ -313,6 +314,7 @@ Component({
                                 sa_orderitemsid: v.sa_orderitemsid || 0,
                                 itemid: v.itemid, //商品ID
                                 qty: v.qty, //数量
+                                custamount: v.custamount || 0, // 客户档案资料费
                                 width: v.width || 0,
                                 length: v.length || 0,
                                 cheek: v.cheek,
@@ -322,7 +324,6 @@ Component({
                                 custom: v.custom,
                                 price: this.data.type == '工具订单' ? v.marketprice : v.contractprice,
                                 sa_promotion_itemsid: v.sa_promotion_itemsid || 0,
-                                custamount: 0,
                                 customcheek: '',
                                 customcolors: '',
                                 custommaterial: '',

+ 1 - 0
packageA/returnOne/modules/product/index.js

@@ -154,6 +154,7 @@ Component({
                   "sa_aftersalesmag_itemsid": 0,
                   "sa_orderitemsid": v.sa_orderitemsid,
                   "itemid": v.itemid,
+                  custamount: v.custamount || 0, // 客户档案资料费
                   "reason": '',
                   "qty": 1,
                   "price": v.price

+ 1 - 0
packageA/toolBill/modules/toolDetail/index.js

@@ -158,6 +158,7 @@ Component({
 									"sa_aftersalesmag_itemsid":0,
 									"sa_orderitemsid":v.sa_orderitemsid,
 									"itemid": v.itemid,
+                  custamount: v.custamount || 0, // 客户档案资料费
 									"reason":'',
 									"qty":v.qty,
 									"price":v.price

+ 1 - 0
pages/index/collect/index.js

@@ -157,6 +157,7 @@ Component({
 								"itemid": v.itemid,
 								"sa_brandid": v.sa_brandid,
 								"qty": v.qty,
+								custamount: v.custamount || 0, // 客户档案资料费
 								width: v.width || 0,
 								length: v.length || 0,
 								sa_shoppingcartid: v.sa_shoppingcartid || 0

+ 13 - 1
pages/index/index.js

@@ -255,7 +255,19 @@ Page({
 			let banner = wx.getStorageSync('banner_list').find(v => v.location == "index_top");
 			page.setData({
 				entrance,
-				bannerList: banner ? banner.ads : []
+				bannerList: banner.ads.length ? banner.ads : [{
+					attinfos: [{
+						url: "/static/banners/4、390x195-1.png"
+					}]
+				}, {
+					attinfos: [{
+						url: "/static/banners/4、390x195-2.png"
+					}]
+				}, {
+					attinfos: [{
+						url: "/static/banners/4、390x195-3.png"
+					}]
+				}]
 			});
 			pageInit.Home = true;
 			page.selectComponent("#ListBox").setHeight(".head", page);

BIN=BIN
static/banners/4、390x195-1.png


BIN=BIN
static/banners/4、390x195-2.png


BIN=BIN
static/banners/4、390x195-3.png