瀏覽代碼

11月14日 库存扣减更新

XMLWAN 3 年之前
父節點
當前提交
5cbcfb7d6c

+ 5 - 2
src/api/advice.js 查看文件

@@ -333,9 +333,12 @@ export function PostInitAdviceTemplate(params) {
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 340
   return request({
338
-    url: '/api/advicetemplate/getprintinfo',
341
+    url: '/api/advicetemplate/getprintinfo?advice_type=' + advice_type + '&stop_type=' + stop_type,
339 342
     method: 'post',
340 343
     data: data
341 344
   })

+ 2 - 0
src/xt_pages/stock/drugs/inventoryPrint.vue 查看文件

@@ -87,7 +87,9 @@ export default {
87 87
           console.log("parasm2232",params)
88 88
           getDrugInventoryPrintList(params).then(response=>{
89 89
               if(response.data.state == 1){
90
+
90 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 查看文件

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

+ 3 - 1
src/xt_pages/user/doctorAdvice.vue 查看文件

@@ -4355,7 +4355,9 @@ export default {
4355 4355
     },
4356 4356
     // 获取勾选中的行
4357 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 4361
         if (response.data.state === 1) {
4360 4362
           var doctoradvice = response.data.data.doctoradvice;
4361 4363
           console.log("doctoradvice", doctoradvice);