浏览代码

修改医嘱模版

csx 6 年前
父节点
当前提交
2af95bdede

+ 8 - 8
src/api/stock.js 查看文件

385
   })
385
   })
386
 }
386
 }
387
 
387
 
388
-export function EditWarehouse(params, warehousing_time, id,type) {
388
+export function EditWarehouse(params, warehousing_time, id,type,manufacturer_id) {
389
   return request({
389
   return request({
390
-    url: '/api/warehouse/edit?warehousing_time=' + warehousing_time + '&id=' + id+"&type="+type,
390
+    url: '/api/warehouse/edit?warehousing_time=' + warehousing_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id,
391
     method: 'post',
391
     method: 'post',
392
     data: params
392
     data: params
393
   })
393
   })
433
   })
433
   })
434
 }
434
 }
435
 
435
 
436
-export function editSalesReturnInfo(params, return_time, id,type) {
436
+export function editSalesReturnInfo(params, return_time, id,type,manufacturer_id) {
437
   return request({
437
   return request({
438
-    url: '/api/salesreturn/edit?return_time=' + return_time + '&id=' + id+"&type="+type,
438
+    url: '/api/salesreturn/edit?return_time=' + return_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id,
439
     method: 'post',
439
     method: 'post',
440
     data: params
440
     data: params
441
   })
441
   })
473
   })
473
   })
474
 }
474
 }
475
 
475
 
476
-export function editWarehouseoutInfo(params, warehouse_out_time, id,type) {
476
+export function editWarehouseoutInfo(params, warehouse_out_time, id,type,manufacturer_id) {
477
   return request({
477
   return request({
478
-    url: '/api/warehouseout/edit?warehouse_out_time=' + warehouse_out_time + '&id=' + id+"&type="+type,
478
+    url: '/api/warehouseout/edit?warehouse_out_time=' + warehouse_out_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id,
479
     method: 'post',
479
     method: 'post',
480
     data: params
480
     data: params
481
   })
481
   })
489
   })
489
   })
490
 }
490
 }
491
 
491
 
492
-export function editCancelStockInfo(params, cancel_stock_time, id,type) {
492
+export function editCancelStockInfo(params, cancel_stock_time, id,type,manufacturer_id) {
493
   return request({
493
   return request({
494
-    url: '/api/cancelstockinfo/edit?cancel_time=' + cancel_stock_time + '&id=' + id+"&type="+type,
494
+    url: '/api/cancelstockinfo/edit?cancel_time=' + cancel_stock_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id,
495
     method: 'post',
495
     method: 'post',
496
     data: params
496
     data: params
497
   })
497
   })

+ 1 - 1
src/xt_pages/stock/cancelStockOrderEdit.vue 查看文件

301
             const params = {
301
             const params = {
302
               'cancelStock': this.recordInfo.recordData
302
               'cancelStock': this.recordInfo.recordData
303
             }
303
             }
304
-            editCancelStockInfo(params, this.return_time, this.$route.query.id, this.$route.query.type).then(response => {
304
+            editCancelStockInfo(params, this.return_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer).then(response => {
305
               if (response.data.state == 0) {
305
               if (response.data.state == 0) {
306
                 this.$message.error(response.data.msg)
306
                 this.$message.error(response.data.msg)
307
                 return false
307
                 return false

+ 1 - 1
src/xt_pages/stock/salesReturnEdit.vue 查看文件

309
             const params = {
309
             const params = {
310
               'salesReturn': this.recordInfo.recordData
310
               'salesReturn': this.recordInfo.recordData
311
             }
311
             }
312
-            editSalesReturnInfo(params, this.return_time, this.$route.query.id, this.$route.query.type).then(response => {
312
+            editSalesReturnInfo(params, this.return_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer).then(response => {
313
               if (response.data.state == 0) {
313
               if (response.data.state == 0) {
314
                 this.$message.error(response.data.msg)
314
                 this.$message.error(response.data.msg)
315
                 return false
315
                 return false

+ 1 - 1
src/xt_pages/stock/stockInOrderEdit.vue 查看文件

406
             const params = {
406
             const params = {
407
               'stockIn': this.recordInfo.recordData
407
               'stockIn': this.recordInfo.recordData
408
             }
408
             }
409
-            EditWarehouse(params, this.warehousing_time, this.$route.query.id, this.$route.query.type).then(response => {
409
+            EditWarehouse(params, this.warehousing_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer).then(response => {
410
               if (response.data.state == 0) {
410
               if (response.data.state == 0) {
411
                 this.$message.error(response.data.msg)
411
                 this.$message.error(response.data.msg)
412
                 return false
412
                 return false

+ 3 - 1
src/xt_pages/stock/stockOutOrderEdit.vue 查看文件

333
             const params = {
333
             const params = {
334
               'stockOut': this.recordInfo.recordData
334
               'stockOut': this.recordInfo.recordData
335
             }
335
             }
336
-            editWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type).then(response => {
336
+            editWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer).then(response => {
337
               if (response.data.state == 0) {
337
               if (response.data.state == 0) {
338
                 this.$message.error(response.data.msg)
338
                 this.$message.error(response.data.msg)
339
                 return false
339
                 return false
362
             }
362
             }
363
             this.warehouseOut = response.data.data.info
363
             this.warehouseOut = response.data.data.info
364
             this.warehouse_out_time = this.getTime(this.warehouseOut.warehouse_out_time, '{y}-{m}-{d}')
364
             this.warehouse_out_time = this.getTime(this.warehouseOut.warehouse_out_time, '{y}-{m}-{d}')
365
+            this.form.manufacturer = this.warehouseOut.manufacturer
366
+
365
           }
367
           }
366
 
368
 
367
           if (this.recordInfo.recordData.length == 0) {
369
           if (this.recordInfo.recordData.length == 0) {