Procházet zdrojové kódy

修改促销套餐获取套餐类型接口

xiaohaizhao před 10 měsíci
rodič
revize
e6ab98fc0f

+ 5 - 5
packageA/activity/bindingProduct/index.js

@@ -35,11 +35,12 @@ Page({
         params.content.pageNumber = 1;
         params.content.pageTotal = 1;
       }
+      console.log(params)
       _Http.basic({
-        "classname": "sysmanage.develop.optiontype.optiontype",
-        "method": "optiontypeselect",
-        "content": {
-          "typename": "package"
+        id: 2024080614131103,
+        content: {
+          sa_promotionid: params.content.sa_promotionid,
+          packagetype: params.content.packagetype
         }
       }).then(res => {
         console.log('套餐分类', res)
@@ -50,7 +51,6 @@ Page({
         let packageList = []
         try {
           let packagetypemxrows = [];
-
           if (options.packagetypemxrows) {
             this.data.packagetypemxrows = JSON.parse(options.packagetypemxrows);
             packagetypemxrows = this.data.packagetypemxrows.map(v => v.packagetypemx);

+ 1 - 1
packageA/orderForm/detail.wxml

@@ -65,7 +65,7 @@
 </view>
 <view style="height: 20rpx;" />
 <Yl_FunTabs list='{{tabsList}}' active='{{tabsActive}}' bind:onChenge="tabsChange">
-    <Product slot='产品明细' privacyFieldC='{{privacyFieldC}}' packagetypemxrows="{{detail.packagetypemxrows}}" id='Product' disabled="{{detail.status!='新建'}}" packagetype='{{detail.packagetype}}' sa_order_v='{{detail.sa_order_v}}' bind:returnProductCount='getProductCount' />
+    <Product slot='产品明细' privacyFieldC='{{privacyFieldC}}' sa_promotionid="{{detail.sa_promotionid}}" packagetypemxrows="{{detail.packagetypemxrows}}" id='Product' disabled="{{detail.status!='新建'}}" packagetype='{{detail.packagetype}}' sa_order_v='{{detail.sa_order_v}}' bind:returnProductCount='getProductCount' />
     <Yl_Attachment slot='附件' id='Yl_Attachment' ownertable="sa_order" ownerid="{{detail.sa_orderid}}" disabled="{{detail.status!='新建'}}" />
     <Progress slot='订单进度' id='Progress' hidePrice='{{hidePrice.hidePrice("订单进度",privacyFieldC)}}' />
     <Consignment slot='出库单' id='Consignment' />

+ 4 - 0
packageA/orderForm/modules/product/index.js

@@ -29,6 +29,9 @@ Component({
         packagetypemxrows: {
             type: Array,
             value: []
+        },
+        sa_promotionid:{
+            type: String
         }
     },
     data: {
@@ -176,6 +179,7 @@ Component({
                             nocache: true,
                             sa_orderid, //订单ID
                             packagetype: this.data.packagetype,
+                            sa_promotionid: this.data.sa_promotionid,
                             "where": {
                                 "condition": "",
                                 packagetypemx: "",