From 3f188253e8ce35fc403dd38c666e6246e589b742 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期三, 01 十一月 2023 23:24:22 +0800 Subject: [PATCH] # --- pages/api/addMat.js | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/api/addMat.js b/pages/api/addMat.js index 9a82460..fc0a80e 100644 --- a/pages/api/addMat.js +++ b/pages/api/addMat.js @@ -4,7 +4,8 @@ let that = this,item = {}; var ress = await uni.request({ url: `${baseUrl}/mat/auth`, - data: {matnr: '3CPPJ.B.GMB.LZ.QBY4-10/15P316LLZ'}, + header: {'token': uni.getStorageSync('token')}, + data: {matnr: matnr}, }).then((result)=> { let mat = result.data.data item['detl'] = [ @@ -12,7 +13,7 @@ {key: '鍟嗗搧鍚嶇О',value: mat.maktx}, {key: '瑙勬牸',value: mat.specs}, {key: '鎵瑰彿',value: '',type: 'input'}, - {key: '鏁伴噺',value: 0,type: 'number-box'}, + {key: '鏁伴噺',value: 0,type: 'number-box',valText: 'val-num'}, ] },(res)=>{ console.log(res); -- Gitblit v1.9.1