#
whycq
2023-11-04 4642a18c955e4b393a222facb889f3d91fa5ed91
pages/api/addMat.js
@@ -8,14 +8,15 @@
      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['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'},
      // ]
   },(res)=>{
      console.log(res);
   })