Pārlūkot izejas kodu

修改医嘱模版

csx 6 gadus atpakaļ
vecāks
revīzija
2af95bdede

+ 8 - 8
src/api/stock.js Parādīt failu

@@ -385,9 +385,9 @@ export function DeleteWarehouseInfoItem(params) {
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 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 391
     method: 'post',
392 392
     data: params
393 393
   })
@@ -433,9 +433,9 @@ export function deleteSalesReturnInfo(params) {
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 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 439
     method: 'post',
440 440
     data: params
441 441
   })
@@ -473,9 +473,9 @@ export function getWarehouseOutInfo(params) {
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 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 479
     method: 'post',
480 480
     data: params
481 481
   })
@@ -489,9 +489,9 @@ export function getCancelStockList(params) {
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 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 495
     method: 'post',
496 496
     data: params
497 497
   })

+ 1 - 1
src/xt_pages/stock/cancelStockOrderEdit.vue Parādīt failu

@@ -301,7 +301,7 @@
301 301
             const params = {
302 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 305
               if (response.data.state == 0) {
306 306
                 this.$message.error(response.data.msg)
307 307
                 return false

+ 1 - 1
src/xt_pages/stock/salesReturnEdit.vue Parādīt failu

@@ -309,7 +309,7 @@
309 309
             const params = {
310 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 313
               if (response.data.state == 0) {
314 314
                 this.$message.error(response.data.msg)
315 315
                 return false

+ 1 - 1
src/xt_pages/stock/stockInOrderEdit.vue Parādīt failu

@@ -406,7 +406,7 @@ export default {
406 406
             const params = {
407 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 410
               if (response.data.state == 0) {
411 411
                 this.$message.error(response.data.msg)
412 412
                 return false

+ 3 - 1
src/xt_pages/stock/stockOutOrderEdit.vue Parādīt failu

@@ -333,7 +333,7 @@
333 333
             const params = {
334 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 337
               if (response.data.state == 0) {
338 338
                 this.$message.error(response.data.msg)
339 339
                 return false
@@ -362,6 +362,8 @@
362 362
             }
363 363
             this.warehouseOut = response.data.data.info
364 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 369
           if (this.recordInfo.recordData.length == 0) {