Przeglądaj źródła

从保修卡添加存在bom逻辑

xiaohaizhao 4 miesięcy temu
rodzic
commit
499a549ab8

+ 1 - 0
packageA/orderForm/detail.js

@@ -113,6 +113,7 @@ Page({
 				res.data.sa_accountclassinfos = res.data.sa_accountclassinfos[0]
 				this.getAccount(res.data.sys_enterpriseid, res.data.accountclass.accountno)
 			}
+			_Http.sa_orderid = res.data.sa_orderid;
 			this.setData({
 				detail: res.data,
 				loading: false,

+ 2 - 2
packageA/writeOff/detail.wxml

@@ -11,9 +11,9 @@
 	<view class="exp">
 		申请金额:{{handleHide.verify(detail.totalamount,'totalamount',privacyFieldC)}}
 	</view>
-	<view class="exp">
+	<!-- <view class="exp">
 		核销金额:{{handleHide.verify(detail.offamount,'totalamount',privacyFieldC)}}
-	</view>
+	</view> -->
 	<view class="exp">
 		提交日期:{{detail.submitdate || '--'}}
 	</view>

+ 7 - 1
packageA/writeOff/product/index.wxml

@@ -19,9 +19,12 @@
           <text style="margin-right: 6rpx;">客户名称:{{item.name|| '--'}}</text>
           <text>客户手机号:{{item.phonenumber|| '--'}}</text>
         </view>
+        <view class="subfield" style="margin-top: 8rpx;">
+          客户地址:{{item.address|| '--'}}
+        </view>
         <view class="subfield" style="margin-top: 8rpx;">
           <text style="margin-right: 6rpx;">品号:{{item.itemno}}</text>
-          <text>单价:{{handleHide.verify(item.price,'totalamount',privacyFieldC)}}</text>
+          <text>申请单价:{{handleHide.verify(item.price,'totalamount',privacyFieldC)}}</text>
         </view>
         <view class="subfield" style="margin-top: 8rpx;">
           <text style="margin-right: 6rpx;">数量:{{item.qty||' --'}}</text>
@@ -31,6 +34,9 @@
           <text style="margin-right: 6rpx;">保修卡号:{{item.cardno}}</text>
           <text>是否保内:{{item.billingstatus||' --'}}</text>
         </view>
+        <view class="subfield" style="margin-top: 8rpx;">
+          备注:{{item.remarks||' --'}}
+        </view>
       </view>
     </view>
   </view>

+ 25 - 4
select/product/index.js

@@ -19,9 +19,6 @@ Page({
 		cardno: null
 	},
 	onLoad(options) {
-		if (_Http.cardno) this.setData({
-			cardno: _Http.cardno
-		})
 		if (options.params) {
 			let params = JSON.parse(options.params);
 			if (!params.content.pageNumber || !params.content.pageTotal) {
@@ -29,9 +26,26 @@ Page({
 				params.content.pageTotal = 1;
 			}
 			this.setData({
-				params
+				params,
+				copyParams: JSON.parse(JSON.stringify(params))
 			});
 		};
+		if (_Http.cardno) {
+			let cardno = _Http.cardno;
+			this.setData({
+				params: {
+					"id": 2025080511204503,
+					"content": {
+						"itemid": cardno.itemid,
+						"sa_orderid": _Http.sa_orderid,
+						pageNumber: 1,
+						pageTotal: 1,
+						pageSize: 20,
+					},
+				},
+				cardno
+			})
+		}
 		this.setData({
 			radio: options.radio ? true : false,
 			idname: options.idname || this.data.idname,
@@ -62,6 +76,13 @@ Page({
 				title: res.msg,
 				icon: "none"
 			})
+			if (res.pageNumber == 1 && res.data.length == 0 && params.id == '2025080511204503') {
+				this.setData({
+					params: this.data.copyParams
+				})
+				this.getList(true)
+				return;
+			}
 			const CNY = num => currency(num, {
 				symbol: "¥",
 				precision: 2