#
whycq
2024-03-30 9ab6b38c098f857f2ce0772693142c930e4f9b6d
pages/api/addMat.js
@@ -10,16 +10,7 @@
      header: {'token': uni.getStorageSync('token')},
      data: {matnr: matnr},
   }).then((result)=> {
      let mat = result.data.data
      item = mat
      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',valText: 'val-num'},
      // ]
      item = result.data
   },(res)=>{
      console.log(res);
   })