#
whycq
2023-11-03 e9db6c25fbf11b214abf5561f592eeb86a2e61be
pages/api/addMat.js
@@ -4,15 +4,17 @@
   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
      console.log(mat);
      item['detl'] = [
         {key: '商品码',value: mat.matnr},
         {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);