|
@@ -141,24 +141,15 @@ Component({
|
|
|
/* 去添加产品 */
|
|
|
addProduct() {
|
|
|
let detail = getCurrentPages().find(v => v.__route__ == 'packageA/orderForm/detail').data.detail,
|
|
|
- id = '',
|
|
|
- query = "&newprice=contractprice";
|
|
|
+ id = '';
|
|
|
switch (detail.type) {
|
|
|
- case '项目订单':
|
|
|
- id = 20230103155002;
|
|
|
- break;
|
|
|
case '促销订单':
|
|
|
id = 20230107182302;
|
|
|
break;
|
|
|
- case '工具订单':
|
|
|
- id = 20221109153502;
|
|
|
- query = '';
|
|
|
- break;
|
|
|
case '标准订单':
|
|
|
id = 20221109153502;
|
|
|
break;
|
|
|
}
|
|
|
-
|
|
|
wx.navigateTo({
|
|
|
url: `${detail.type=='促销订单'?'/packageA/activity/selectProduct/index':'/select/product/index'}?params=${JSON.stringify({
|
|
|
"id":id,
|
|
@@ -170,7 +161,7 @@ Component({
|
|
|
"condition": ""
|
|
|
}
|
|
|
}
|
|
|
- })+query}`
|
|
|
+ })}`
|
|
|
});
|
|
|
this.setData({
|
|
|
type: detail.type
|