Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
5cbcfb7d6c

+ 5 - 2
src/api/advice.js View File

333
   })
333
   })
334
 }
334
 }
335
 
335
 
336
-export function getPrintInfo(data) {
336
+export function getPrintInfo(data, advice_type, stop_type) {
337
+  console.log('data', data)
338
+  console.log('advice_tuype23232', advice_type)
339
+  console.log('stop_type', stop_type)
337
   return request({
340
   return request({
338
-    url: '/api/advicetemplate/getprintinfo',
341
+    url: '/api/advicetemplate/getprintinfo?advice_type=' + advice_type + '&stop_type=' + stop_type,
339
     method: 'post',
342
     method: 'post',
340
     data: data
343
     data: data
341
   })
344
   })

+ 2 - 0
src/xt_pages/stock/drugs/inventoryPrint.vue View File

87
           console.log("parasm2232",params)
87
           console.log("parasm2232",params)
88
           getDrugInventoryPrintList(params).then(response=>{
88
           getDrugInventoryPrintList(params).then(response=>{
89
               if(response.data.state == 1){
89
               if(response.data.state == 1){
90
+
90
                  this.tableData = response.data.data.list
91
                  this.tableData = response.data.data.list
92
+                 console.log("表格333333",this.tableData)
91
               }
93
               }
92
           })    
94
           })    
93
         }
95
         }

+ 1 - 1
src/xt_pages/stock/inventoryPrint.vue View File

33
                         <td>{{getTime(item.expiry_date)}}</td>
33
                         <td>{{getTime(item.expiry_date)}}</td>
34
                         <td>{{getManufacturerName(item.manufacturer)}}</td>
34
                         <td>{{getManufacturerName(item.manufacturer)}}</td>
35
                         <td>{{item.remark}}</td>
35
                         <td>{{item.remark}}</td>
36
-                        <td>{{item.warehousing_unit}}</td>
36
+                        <td>{{item.packing_unit}}</td>
37
                         <td></td>
37
                         <td></td>
38
                     </tr>
38
                     </tr>
39
                 </table>
39
                 </table>

+ 3 - 1
src/xt_pages/user/doctorAdvice.vue View File

4355
     },
4355
     },
4356
     // 获取勾选中的行
4356
     // 获取勾选中的行
4357
     getPrintInfo(ids) {
4357
     getPrintInfo(ids) {
4358
-      getPrintInfo({ ids: ids}).then(response => {
4358
+      console.log("23332332323232",this.adviceType,"33333333",this.stopType)
4359
+     
4360
+      getPrintInfo({ids:ids},this.adviceType,this.stopType).then(response => {
4359
         if (response.data.state === 1) {
4361
         if (response.data.state === 1) {
4360
           var doctoradvice = response.data.data.doctoradvice;
4362
           var doctoradvice = response.data.data.doctoradvice;
4361
           console.log("doctoradvice", doctoradvice);
4363
           console.log("doctoradvice", doctoradvice);