|
@@ -344,20 +344,6 @@
|
344
|
344
|
</div>
|
345
|
345
|
</div>
|
346
|
346
|
|
347
|
|
- <!-- <el-dialog
|
348
|
|
- title="系统提示"
|
349
|
|
- :visible.sync="dialogVisible"
|
350
|
|
- width="30%">
|
351
|
|
- <span>
|
352
|
|
- 采购订单{{number}}已有以下关联数据,不能反审核
|
353
|
|
- <div v-for="(item,index) in orderList" :key="index">
|
354
|
|
- <li>采购单{{item.good_number}}</li> <a @click="toClick(item.id)">点击查看</a>
|
355
|
|
- </div>
|
356
|
|
- </span>
|
357
|
|
- <span slot="footer" class="dialog-footer">
|
358
|
|
- <el-button @click="dialogVisible = false">取 消</el-button>
|
359
|
|
- </span>
|
360
|
|
- </el-dialog> -->
|
361
|
347
|
</div>
|
362
|
348
|
</template>
|
363
|
349
|
|
|
@@ -540,19 +526,11 @@ export default {
|
540
|
526
|
goodList[i].good_type_id = this.goodTypeList[y].type_name;
|
541
|
527
|
}
|
542
|
528
|
}
|
543
|
|
- goodList[i].supply_name =
|
544
|
|
- goodList[i].good_name +
|
545
|
|
- " " +
|
546
|
|
- goodList[i].specification_name +
|
547
|
|
- " " +
|
548
|
|
- goodList[i].manufacturer;
|
|
529
|
+ goodList[i].supply_name =goodList[i].good_name +" " +goodList[i].specification_name +" " + goodList[i].manufacturer;
|
549
|
530
|
goodList[i].supply_type = goodList[i].good_type_id;
|
550
|
|
- goodList[i].supply_specification_name =
|
551
|
|
- goodList[i].specification_name;
|
|
531
|
+ goodList[i].supply_specification_name =goodList[i].specification_name;
|
552
|
532
|
goodList[i].supply_price = goodList[i].buy_price;
|
553
|
|
- goodList[i].supply_total = this.getTotalStockCount(
|
554
|
|
- goodList[i].good_warehouse_info
|
555
|
|
- );
|
|
533
|
+ goodList[i].supply_total = this.getTotalStockCount(goodList[i].good_warehouse_info);
|
556
|
534
|
goodList[i].supply_count = "";
|
557
|
535
|
goodList[i].supply_total_price = "";
|
558
|
536
|
goodList[i].supply_manufacturer = goodList[i].manufacturer;
|
|
@@ -583,8 +561,7 @@ export default {
|
583
|
561
|
this.recordInfo.tableList[i].name = val.name;
|
584
|
562
|
this.recordInfo.tableList[i].supply_name = val.supply_name;
|
585
|
563
|
this.recordInfo.tableList[i].supply_type = val.supply_type;
|
586
|
|
- this.recordInfo.tableList[i].supply_specification_name =
|
587
|
|
- val.supply_specification_name;
|
|
564
|
+ this.recordInfo.tableList[i].supply_specification_name =val.supply_specification_name;
|
588
|
565
|
this.recordInfo.tableList[i].supply_total = val.supply_total;
|
589
|
566
|
if (val.supply_count == NaN) {
|
590
|
567
|
this.recordInfo.tableList[i].supply_count = "";
|
|
@@ -594,15 +571,10 @@ export default {
|
594
|
571
|
: "";
|
595
|
572
|
}
|
596
|
573
|
|
597
|
|
- this.recordInfo.tableList[i].supply_price = val.supply_price
|
598
|
|
- ? val.supply_price
|
599
|
|
- : "";
|
600
|
|
- this.recordInfo.tableList[i].supply_total_price =
|
601
|
|
- val.supply_total_price ? val.supply_total_price : "";
|
602
|
|
- this.recordInfo.tableList[i].supply_manufacturer =
|
603
|
|
- val.supply_manufacturer;
|
604
|
|
- this.recordInfo.tableList[i].supply_license_number =
|
605
|
|
- val.supply_license_number;
|
|
574
|
+ this.recordInfo.tableList[i].supply_price = val.supply_price? val.supply_price: "";
|
|
575
|
+ this.recordInfo.tableList[i].supply_total_price =val.supply_total_price ? val.supply_total_price : "";
|
|
576
|
+ this.recordInfo.tableList[i].supply_manufacturer =val.supply_manufacturer;
|
|
577
|
+ this.recordInfo.tableList[i].supply_license_number =val.supply_license_number;
|
606
|
578
|
this.recordInfo.tableList[i].supply_remake = val.supply_remake;
|
607
|
579
|
this.recordInfo.tableList[i].is_total = val.is_total;
|
608
|
580
|
this.recordInfo.tableList[i].supply_unit = val.supply_unit;
|
|
@@ -709,19 +681,11 @@ export default {
|
709
|
681
|
console.log("生产厂商", this.recordInfo.tableList);
|
710
|
682
|
console.log("生产上次", this.manufactuerList);
|
711
|
683
|
for (let i = 0; i < this.recordInfo.tableList.length; i++) {
|
712
|
|
- this.recordInfo.tableList[i].supply_count = parseInt(
|
713
|
|
- this.recordInfo.tableList[i].supply_count
|
714
|
|
- );
|
715
|
|
- this.recordInfo.tableList[i].supply_license_number =
|
716
|
|
- this.recordInfo.tableList[i].supply_license_number.toString();
|
717
|
|
- this.recordInfo.tableList[i].supply_total_price = (
|
718
|
|
- this.recordInfo.tableList[i].supply_count *
|
719
|
|
- this.recordInfo.tableList[i].supply_price
|
720
|
|
- ).toString();
|
721
|
|
- this.recordInfo.tableList[i].supply_total =
|
722
|
|
- this.recordInfo.tableList[i].supply_total.toString();
|
723
|
|
- this.recordInfo.tableList[i].supply_price =
|
724
|
|
- this.recordInfo.tableList[i].supply_price.toString();
|
|
684
|
+ this.recordInfo.tableList[i].supply_count = parseInt(this.recordInfo.tableList[i].supply_count);
|
|
685
|
+ this.recordInfo.tableList[i].supply_license_number =this.recordInfo.tableList[i].supply_license_number.toString();
|
|
686
|
+ this.recordInfo.tableList[i].supply_total_price = (this.recordInfo.tableList[i].supply_count *this.recordInfo.tableList[i].supply_price).toString();
|
|
687
|
+ this.recordInfo.tableList[i].supply_total =this.recordInfo.tableList[i].supply_total.toString();
|
|
688
|
+ this.recordInfo.tableList[i].supply_price = this.recordInfo.tableList[i].supply_price.toString();
|
725
|
689
|
for (let j = 0; j < this.manufactuerList.length; j++) {
|
726
|
690
|
if (
|
727
|
691
|
this.recordInfo.tableList[i].supply_manufacturer ==
|
|
@@ -974,9 +938,7 @@ export default {
|
974
|
938
|
|
975
|
939
|
if (total != goodOrder.length) {
|
976
|
940
|
str = arr.join(",");
|
977
|
|
- this.$router.push({
|
978
|
|
- path: "/good/order/add?id=" + id + "&ids=" + str,
|
979
|
|
- });
|
|
941
|
+ this.$router.push({path: "/good/order/add?id=" + id + "&ids=" + str});
|
980
|
942
|
}
|
981
|
943
|
}
|
982
|
944
|
}
|