|
@@ -18,6 +18,7 @@
|
18
|
18
|
v-model="supplier_name"
|
19
|
19
|
style="width: 140px; margin-right: 10px"
|
20
|
20
|
placeholder="请选择"
|
|
21
|
+ :disabled="disabled"
|
21
|
22
|
>
|
22
|
23
|
<el-option
|
23
|
24
|
v-for="item in supplyList"
|
|
@@ -39,6 +40,7 @@
|
39
|
40
|
align="right"
|
40
|
41
|
format="yyyy-MM-dd"
|
41
|
42
|
value-format="yyyy-MM-dd"
|
|
43
|
+ :disabled="disabled"
|
42
|
44
|
></el-date-picker>
|
43
|
45
|
|
44
|
46
|
<span>单据编码:{{ number }}</span>
|
|
@@ -214,16 +216,20 @@
|
214
|
216
|
<div style="visibility: hidden">/</div>
|
215
|
217
|
</template>
|
216
|
218
|
</el-table-column>
|
217
|
|
- <el-table-column label="折扣率" align="center" width="120px">
|
|
219
|
+ <el-table-column label="折扣率(%)" align="center" width="120px">
|
218
|
220
|
<template slot-scope="scope">
|
219
|
|
- {{ calculate(scope.row.supply_count * scope.row.supply_price) }}
|
|
221
|
+ <el-input
|
|
222
|
+ v-model="scope.row.deposit_rate"
|
|
223
|
+ style="width: 80px"
|
|
224
|
+ :disabled="disabled"
|
|
225
|
+ ></el-input>
|
220
|
226
|
<div style="visibility: hidden">/</div>
|
221
|
227
|
</template>
|
222
|
228
|
</el-table-column>
|
223
|
229
|
|
224
|
230
|
<el-table-column label="折扣金额" align="center" width="120px">
|
225
|
231
|
<template slot-scope="scope">
|
226
|
|
- {{ calculate(scope.row.supply_count * scope.row.supply_price) }}
|
|
232
|
+ {{ calculate(scope.row.supply_count * scope.row.supply_price * (scope.row.deposit_rate/100)) }}
|
227
|
233
|
<div style="visibility: hidden">/</div>
|
228
|
234
|
</template>
|
229
|
235
|
</el-table-column>
|
|
@@ -250,7 +256,7 @@
|
250
|
256
|
</template>
|
251
|
257
|
</el-table-column>
|
252
|
258
|
|
253
|
|
- <el-table-column label="源采购单号" align="center" width="200px">
|
|
259
|
+ <el-table-column label="关联采购单号" align="center" width="200px">
|
254
|
260
|
<template slot-scope="scope">
|
255
|
261
|
<el-input
|
256
|
262
|
v-model="scope.row.good_number"
|
|
@@ -321,6 +327,13 @@
|
321
|
327
|
>
|
322
|
328
|
</el-input>
|
323
|
329
|
</div>
|
|
330
|
+ <!-- 审核水印 -->
|
|
331
|
+ <img
|
|
332
|
+ src="@/assets/purchase/Reviewed.png"
|
|
333
|
+ alt="正在加载..."
|
|
334
|
+ class="reviewImg"
|
|
335
|
+ v-show="Reviewed == true"
|
|
336
|
+ />
|
324
|
337
|
<div style="margin-top: 10px">合计:{{ getAllPrice() }} 元</div>
|
325
|
338
|
<div style="margin-top: 10px">
|
326
|
339
|
<span
|
|
@@ -329,6 +342,7 @@
|
329
|
342
|
v-model="rate_of_concession"
|
330
|
343
|
@input="addressChange"
|
331
|
344
|
placeholder="请输入优惠率"
|
|
345
|
+ :disabled="disabled"
|
332
|
346
|
></el-input
|
333
|
347
|
>%</span
|
334
|
348
|
>
|
|
@@ -339,15 +353,17 @@
|
339
|
353
|
v-model="discount_amount"
|
340
|
354
|
@input="count_discount"
|
341
|
355
|
placeholder="请输入优惠金额"
|
|
356
|
+ :disabled="disabled"
|
342
|
357
|
></el-input
|
343
|
358
|
></span>
|
344
|
359
|
|
345
|
360
|
<span
|
346
|
|
- >本次付款:<el-input
|
|
361
|
+ >本次退款:<el-input
|
347
|
362
|
style="width: 100px"
|
348
|
363
|
v-model="payment"
|
349
|
364
|
@input="count_payment"
|
350
|
|
- placeholder="请输入本次付款"
|
|
365
|
+ placeholder="请输入本次退款"
|
|
366
|
+ :disabled="disabled"
|
351
|
367
|
></el-input
|
352
|
368
|
></span>
|
353
|
369
|
|
|
@@ -357,10 +373,12 @@
|
357
|
373
|
v-model="arrearage"
|
358
|
374
|
@input="count_arrearage"
|
359
|
375
|
placeholder="请输入本次欠款"
|
|
376
|
+ :disabled="disabled"
|
360
|
377
|
></el-input
|
361
|
378
|
></span>
|
362
|
379
|
</div>
|
363
|
380
|
</div>
|
|
381
|
+
|
364
|
382
|
</div>
|
365
|
383
|
</template>
|
366
|
384
|
|
|
@@ -436,6 +454,7 @@ export default {
|
436
|
454
|
warehouse_out_id:0,
|
437
|
455
|
showThree:false,
|
438
|
456
|
tableDataList:[],
|
|
457
|
+ Reviewed:false,
|
439
|
458
|
};
|
440
|
459
|
},
|
441
|
460
|
watch: {
|
|
@@ -507,6 +526,12 @@ export default {
|
507
|
526
|
drugList[i].type = 1;
|
508
|
527
|
drugList[i].supply_price = drugList[i].last_price;
|
509
|
528
|
drugList[i].name = drugList[i].drug_name;
|
|
529
|
+ drugList[i].count = this.getWarehoseInfo(
|
|
530
|
+ drugList[i].drug_warehouse_info,
|
|
531
|
+ drugList[i].max_unit,
|
|
532
|
+ drugList[i].min_unit,
|
|
533
|
+ drugList[i].min_number
|
|
534
|
+ );
|
510
|
535
|
drugList[i].unitList = [
|
511
|
536
|
{ id: 1, name: "" },
|
512
|
537
|
{ id: 2, name: "" },
|
|
@@ -545,6 +570,9 @@ export default {
|
545
|
570
|
goodList[i].supply_total = this.getTotalStockCount(
|
546
|
571
|
goodList[i].good_warehouse_info
|
547
|
572
|
);
|
|
573
|
+ goodList[i].count = this.getTotalStockCount(
|
|
574
|
+ goodList[i].good_warehouse_info
|
|
575
|
+ );
|
548
|
576
|
goodList[i].supply_count = "";
|
549
|
577
|
goodList[i].supply_total_price = "";
|
550
|
578
|
goodList[i].supply_manufacturer = goodList[i].manufacturer;
|
|
@@ -601,6 +629,7 @@ export default {
|
601
|
629
|
this.recordInfo.tableList[i].is_total = val.is_total;
|
602
|
630
|
this.recordInfo.tableList[i].supply_unit = val.supply_unit;
|
603
|
631
|
this.recordInfo.tableList[i].unitList = val.unitList;
|
|
632
|
+ this.recordInfo.tableList[i].count = val.count
|
604
|
633
|
}
|
605
|
634
|
}
|
606
|
635
|
},
|
|
@@ -631,6 +660,7 @@ export default {
|
631
|
660
|
tempObj["warehouse_info_id"] =0
|
632
|
661
|
tempObj["good_number"] = ""
|
633
|
662
|
tempObj["min_price"] = "";
|
|
663
|
+ tempObj["deposit_rate"] = ""
|
634
|
664
|
this.recordInfo.tableList.push(tempObj);
|
635
|
665
|
},
|
636
|
666
|
handleDelete: function (index, row) {
|
|
@@ -781,6 +811,7 @@ export default {
|
781
|
811
|
orderInfo[i].supply_batch_number = orderInfo[i].supply_batch_number
|
782
|
812
|
orderInfo[i].warehousing_id = orderInfo[i].warehousing_id
|
783
|
813
|
orderInfo[i].warehouse_info_id = orderInfo[i].warehouse_info_id
|
|
814
|
+ orderInfo[i].deposit_rate = ""
|
784
|
815
|
if (orderInfo[i].is_source == 1) {
|
785
|
816
|
for (let j = 0; j < drugList.length; j++) {
|
786
|
817
|
if (orderInfo[i].project_id == drugList[j].id) {
|
|
@@ -826,11 +857,12 @@ export default {
|
826
|
857
|
if(valid){
|
827
|
858
|
this.loading = true
|
828
|
859
|
for(let i=0;i<this.recordInfo.tableList.length;i++){
|
829
|
|
- this.recordInfo.tableList[i].supply_count = parseInt(this.recordInfo.tableList[i].supply_count);
|
|
860
|
+ this.recordInfo.tableList[i].supply_count = parseInt(this.recordInfo.tableList[i].supply_count);
|
830
|
861
|
this.recordInfo.tableList[i].supply_price =this.recordInfo.tableList[i].supply_price.toString();
|
831
|
862
|
this.recordInfo.tableList[i].supply_total =this.recordInfo.tableList[i].supply_total.toString();
|
|
863
|
+ this.recordInfo.tableList[i].count =this.recordInfo.tableList[i].count.toString();
|
|
864
|
+ this.recordInfo.tableList[i].deposit_rate = this.recordInfo.tableList[i].deposit_rate.toString()
|
832
|
865
|
if(this.recordInfo.tableList[i].supply_product_date == ""){
|
833
|
|
- console.log("进来3323232")
|
834
|
866
|
this.recordInfo.tableList[i].supply_product_date = 0
|
835
|
867
|
}
|
836
|
868
|
if(this.recordInfo.tableList[i].supply_expiry_date == ""){
|
|
@@ -882,8 +914,11 @@ export default {
|
882
|
914
|
this.arrearage = out.arrearage
|
883
|
915
|
this.start_time = this.getTimes(out.document_date)
|
884
|
916
|
var orderInfo = response.data.data.list
|
|
917
|
+
|
885
|
918
|
for(let i=0;i< orderInfo.length;i++){
|
886
|
|
- orderInfo[i].supply_count = orderInfo[i].count
|
|
919
|
+ orderInfo[i].name = orderInfo[i].name
|
|
920
|
+ orderInfo[i].id = orderInfo[i].id
|
|
921
|
+ orderInfo[i].supply_count = orderInfo[i].supply_count
|
887
|
922
|
orderInfo[i].supply_price = orderInfo[i].price
|
888
|
923
|
orderInfo[i].supply_remake = orderInfo[i].remark
|
889
|
924
|
orderInfo[i].type = orderInfo[i].is_source
|
|
@@ -891,9 +926,13 @@ export default {
|
891
|
926
|
orderInfo[i].supply_unit = orderInfo[i].supply_unit
|
892
|
927
|
orderInfo[i].order_number = orderInfo[i].order_number
|
893
|
928
|
orderInfo[i].good_number = orderInfo[i].good_number
|
894
|
|
- orderInfo[i].supply_total_price = (orderInfo[i].count * orderInfo[i].price).toFixed(2)
|
|
929
|
+ orderInfo[i].supply_total_price = (orderInfo[i].supply_count * orderInfo[i].price).toFixed(2)
|
895
|
930
|
orderInfo[i].supply_expiry_date = this.getTimes(orderInfo[i].supply_expiry_date)
|
896
|
931
|
orderInfo[i].supply_product_date = this.getTimes(orderInfo[i].supply_product_date)
|
|
932
|
+ orderInfo[i].deposit_rate = orderInfo[i].deposit_rate
|
|
933
|
+ orderInfo[i].count = orderInfo[i].count
|
|
934
|
+ orderInfo[i].supply_total = orderInfo[i].supply_total
|
|
935
|
+ orderInfo[i].supply_specification_name = orderInfo[i].supply_specification_name
|
897
|
936
|
if(orderInfo[i].is_source == 1){
|
898
|
937
|
for(let j=0;j<this.drugList.length;j++){
|
899
|
938
|
if(orderInfo[i].project_id == this.drugList[j].id){
|
|
@@ -922,6 +961,9 @@ export default {
|
922
|
961
|
}
|
923
|
962
|
}
|
924
|
963
|
}
|
|
964
|
+ console.log("oredereInof2332",orderInfo)
|
|
965
|
+ this.recordInfo.tableList = []
|
|
966
|
+ this.recordInfo.tableList = orderInfo
|
925
|
967
|
}
|
926
|
968
|
})
|
927
|
969
|
|
|
@@ -937,7 +979,8 @@ export default {
|
937
|
979
|
this.recordInfo.tableList[i].supply_count = parseInt(this.recordInfo.tableList[i].supply_count)
|
938
|
980
|
this.recordInfo.tableList[i].supply_price = this.recordInfo.tableList[i].supply_price.toString()
|
939
|
981
|
this.recordInfo.tableList[i].supply_total = this.recordInfo.tableList[i].supply_total.toString()
|
940
|
|
-
|
|
982
|
+ this.recordInfo.tableList[i].count =this.recordInfo.tableList[i].count.toString();
|
|
983
|
+ this.recordInfo.tableList[i].deposit_rate = this.recordInfo.tableList[i].deposit_rate.toString()
|
941
|
984
|
for(let j=0;j<this.manufactuerList.length;j++){
|
942
|
985
|
if(this.recordInfo.tableList[i].supply_manufacturer == this.manufactuerList[j].manufacturer_name){
|
943
|
986
|
this.recordInfo.tableList[i].manufacturer_id = this.manufactuerList[j].id
|
|
@@ -974,9 +1017,11 @@ export default {
|
974
|
1017
|
if(response.data.state == 1){
|
975
|
1018
|
this.loading = false
|
976
|
1019
|
this.showThree = false
|
|
1020
|
+ this.disabled = true
|
977
|
1021
|
this.is_check = 1
|
978
|
1022
|
var msg = response.data.data.msg
|
979
|
|
- this.$message.success("保存成功!")
|
|
1023
|
+ this.Reviewed = true
|
|
1024
|
+ this.$message.success("审核成功!")
|
980
|
1025
|
}
|
981
|
1026
|
})
|
982
|
1027
|
},
|
|
@@ -991,7 +1036,9 @@ export default {
|
991
|
1036
|
this.loading = false;
|
992
|
1037
|
var msg = response.data.data.msg;
|
993
|
1038
|
this.$message.success("反审核成功!");
|
|
1039
|
+ this.disabled = false
|
994
|
1040
|
this.is_check = 2
|
|
1041
|
+ this.Reviewed = false
|
995
|
1042
|
}
|
996
|
1043
|
});
|
997
|
1044
|
},
|
|
@@ -1021,11 +1068,12 @@ export default {
|
1021
|
1068
|
tempObj["supply_expiry_date"] = ""
|
1022
|
1069
|
tempObj["warehousing_id"] =0
|
1023
|
1070
|
tempObj["warehouse_info_id"] =0
|
1024
|
|
- tempObj["count"] = 0;
|
|
1071
|
+ tempObj["count"] = "";
|
1025
|
1072
|
tempObj["good_number"] = ""
|
1026
|
1073
|
tempObj["min_price"] = "";
|
|
1074
|
+ tempObj["deposit_rate"] = ""
|
1027
|
1075
|
this.recordInfo.tableList.push(tempObj);
|
1028
|
|
- console.log("即哪里地方2",this.recordInfo.tableList)
|
|
1076
|
+
|
1029
|
1077
|
this.getInitOrder();
|
1030
|
1078
|
if(parseInt(this.$route.query.id) > 0){
|
1031
|
1079
|
|