Quellcode durchsuchen

添加产品添加type字段

xiaohaizhao vor 2 Jahren
Ursprung
Commit
53bce1ad17

+ 2 - 1
packageA/contract/modules/discount/product/index.js

@@ -99,7 +99,8 @@ Component({
                                     "price": v.marketprice,
                                     "qty": 1,
                                     "marketprice": v.marketprice,
-                                    "remarks": ""
+                                    "remarks": "",
+                                    type: "指定单价"
                                 }
                             })
                         }

+ 4 - 3
packageA/contract/modules/product/index.js

@@ -139,7 +139,8 @@ Component({
                                     "price": v.marketprice,
                                     "qty": 1,
                                     "marketprice": v.marketprice,
-                                    "remarks": ""
+                                    "remarks": "",
+                                    type: "指定单价"
                                 }
                             })
                         }
@@ -243,8 +244,8 @@ Component({
                 if (res.msg == '成功' && page.__route__ == 'packageA/contract/detail') {
                     console.log(page.data)
                     page.setData({
-                        "briefs[4].value":res.data.signamount,
-                        "list1[5].value":res.data.signamount,
+                        "briefs[4].value": res.data.signamount,
+                        "list1[5].value": res.data.signamount,
                     })
                 }
             })