diff --git a/src/pagesReceive/form/pricingForm.vue b/src/pagesReceive/form/pricingForm.vue index 9c356eb..7038dc4 100644 --- a/src/pagesReceive/form/pricingForm.vue +++ b/src/pagesReceive/form/pricingForm.vue @@ -562,16 +562,16 @@ watch( // contrlModalParams.userSelect.list = res.data; // } // }); -ReceiveProductApi.getAllReProducts().then((res) => { - if (res.code === 200) { - contrlModalParams.productSelect.list = _.map( - res.data as any, - function (item: any) { - return { name: item.reProductsName, ...item }; - } - ); - } -}); +// ReceiveProductApi.getAllReProducts().then((res) => { +// if (res.code === 200) { +// contrlModalParams.productSelect.list = _.map( +// res.data as any, +// function (item: any) { +// return { name: item.reProductsName, ...item }; +// } +// ); +// } +// }); const handleSelect = (key: string, v: any) => { contrlModalParams[key].isShow = false; if (key === "userSelect") { diff --git a/src/utils/http.ts b/src/utils/http.ts index 8989b7e..16e0f47 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -91,12 +91,14 @@ export const http = (options: UniApp.RequestOptions) => { //2.根据后端返回的数据调用一次或者两次replace替换 var json1=json.replace(/:s*([0-9]{15,})s*(,?)/g, ': "$1" $2') //3.手动转换回json数据即可 - let res1 = JSON.parse(json1); + let res1:any = JSON.parse(json1); console.log(res1) if (res.statusCode >= 200 && res.statusCode < 300) { if ( - (res1 as any).code === 1001 || - (res1 as any).code === 1002 + res1.code === 1001 || + res1.code === 1002 || + res1.code === 1003 || + res1.code === 1004 ) { uni.showToast({ icon: "none",