|
本帖最后由 68000458 于 2016-8-1 12:21 编辑
self.comp('PromotionRuleData').loadData(jsonObj.rows1);是载入json
self.comp('PromotionRuleData').newData(jsonObj.rows1);怎么不能插入一条呢
json格式
JSON.stringify(jsonObj.rows1)内容为[{"PRec":389,"TinyPrice":0.00000000,"RetailPrice":2.70000000,"RecPrice":2.00000000,"MinPrice":0.00000000,"MaxPrice":0.00000000,"VipPrice":2.70000000,"dCommRetailPrice":0.00000000,"dRetailPrice":2.70000000,"dMinPrice":0.00000000,"dMaxPrice":0.00000000,"dVipPrice":2.70000000,"Dis":100,"NomalDis":100,"XIntegral":1.0000,"dCommRetailPrice1":0.00000000,"dRetailPrice1":2.70000000,"dMinPrice1":0.00000000,"dMaxPrice1":0.00000000,"dVipPrice1":2.70000000,"promotionprice":2.43000000,"vippromotionprice":2.43000000,"billlimitqty":5.0000,"alllimitqty":6.0000,"useqty":2.0000,"vipdaylimit":6.0000,"Daylimitsum":0.0000,"OnePosDayClientLimit":0.0000,"BillId":120,"PromotionId":1453,"UseIntegral":1,"VipDayInter":0,"billcode":"TJCX0000000140"}]
|
|