doctor-admin-components 1.0.14-beta.8 → 1.0.14-beta.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -48
- package/package.json +1 -1
- package/packages/index.js +14 -3
- package/packages/src/api/biz/bizContract.js +36 -9
- package/packages/src/api/biz/bizShipment.js +30 -1
- package/packages/src/api/biz/dictData.js +4 -1
- package/packages/src/i18n/zh-CN/message.json +1 -1
- package/packages/src/index.js +18 -2
- package/packages/src/utils/index.js +1 -1
- package/packages/src/utils/zip.js +29 -11
- package/packages/src/views/biz/bizFileInfo/contract.vue +131 -151
- package/packages/src/views/biz/bizFileInfo/contractFile/IMGPreviewCheckBox.vue +8 -6
- package/packages/src/views/biz/bizFileInfo/fileShow.vue +5 -3
- package/packages/src/views/biz/bizShipment/add.vue +234 -142
- package/packages/src/views/biz/contractTracing/billInfo.vue +17 -9
- package/packages/src/views/biz/contractTracing/changrLogList.vue +67 -0
- package/packages/src/views/biz/contractTracing/companyBanks.vue +19 -8
- package/packages/src/views/biz/contractTracing/contractChangeLog.vue +29 -2
- package/packages/src/views/biz/contractTracing/contractClause.vue +356 -0
- package/packages/src/views/biz/contractTracing/contractClauseComponenrts/TextContent.vue +53 -0
- package/packages/src/views/biz/contractTracing/contractPdf.vue +16 -175
- package/packages/src/views/biz/contractTracing/contractSummary.vue +101 -73
- package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +2 -2
- package/packages/src/views/biz/contractTracing/editBill.vue +35 -27
- package/packages/src/views/biz/contractTracing/info.vue +365 -0
- package/packages/src/views/biz/contractTracing/purchaseInvoiceUpload.vue +5 -2
- package/packages/src/views/biz/contractTracing/queryDeductionRecords.vue +103 -0
- package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +361 -79
- package/packages/src/views/biz/contractTracing/shipmentPurchaseAmountEditDialog.vue +176 -0
|
@@ -56,12 +56,13 @@
|
|
|
56
56
|
"
|
|
57
57
|
/>
|
|
58
58
|
</div>
|
|
59
|
-
<div class="file-list">
|
|
59
|
+
<div class="file-list" style="width: 100%;min-height: 1px;">
|
|
60
60
|
<file-show
|
|
61
61
|
:hiddenOperation="channel == 'official-website'"
|
|
62
62
|
@refresh="handleRefresh" @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item"
|
|
63
63
|
v-for="(item, i) in fileInfo.personalBillFileInfo" :key="i" />
|
|
64
64
|
<contract-file-drag-upload
|
|
65
|
+
v-if="contract.contractType == 'sale'"
|
|
65
66
|
v-show="(!fileInfo.personalBillFileInfo || fileInfo.personalBillFileInfo.length == 0) && channel !== 'official-website'"
|
|
66
67
|
@upload="
|
|
67
68
|
handleUpload(
|
|
@@ -390,7 +391,7 @@
|
|
|
390
391
|
<div v-else>
|
|
391
392
|
<SectionSlot @updateOpen="handleShippingUpdateOpen" :infoPro="shipProgressInfo" v-for="(
|
|
392
393
|
shipmentFileInfo, shipmentIndex
|
|
393
|
-
) in contractFileInfo.shipmentFileInfoList" :key="shipmentIndex" v-if="shipmentIndex == shipBillNo">
|
|
394
|
+
) in contractFileInfo.shipmentFileInfoList" :key="'shipment'+shipmentIndex" v-if="shipmentIndex == shipBillNo">
|
|
394
395
|
<template v-slot:header>
|
|
395
396
|
<div style="position:relative">
|
|
396
397
|
<ProgressDetail :infoPro="shipProgressInfo"></ProgressDetail>
|
|
@@ -456,52 +457,6 @@
|
|
|
456
457
|
</el-col>
|
|
457
458
|
</el-row>
|
|
458
459
|
|
|
459
|
-
<el-row v-if="channel !== 'official-website'" style="padding-top: 20px;">
|
|
460
|
-
<el-col :span="24">
|
|
461
|
-
<span>内部文件夹</span>
|
|
462
|
-
<div class="file-list" v-if="contract.contractType == 'purchase'">
|
|
463
|
-
<file-show
|
|
464
|
-
@refresh="handleRefresh"
|
|
465
|
-
@checked="handleChecked"
|
|
466
|
-
:hiddenOperation="channel == 'official-website'"
|
|
467
|
-
@uncheck="handleUncheck"
|
|
468
|
-
:selectFileListProp="selectFileList"
|
|
469
|
-
:file-info="item"
|
|
470
|
-
v-for="(item, i) in shipmentFileInfo.purchaseShipmentInternalFile" :key="i" />
|
|
471
|
-
<contract-file-drag-upload
|
|
472
|
-
@upload="
|
|
473
|
-
handleUpload(
|
|
474
|
-
$event,
|
|
475
|
-
shipmentFileInfo.shipmentId,
|
|
476
|
-
'shipment',
|
|
477
|
-
'purchase_shipment_internal_file'
|
|
478
|
-
)"
|
|
479
|
-
:isShowTip="false" uploadNameStr="内部文件" />
|
|
480
|
-
</div>
|
|
481
|
-
|
|
482
|
-
<div class="file-list" v-else>
|
|
483
|
-
<file-show
|
|
484
|
-
@refresh="handleRefresh"
|
|
485
|
-
@checked="handleChecked"
|
|
486
|
-
:hiddenOperation="channel == 'official-website'"
|
|
487
|
-
@uncheck="handleUncheck"
|
|
488
|
-
:selectFileListProp="selectFileList"
|
|
489
|
-
:file-info="item"
|
|
490
|
-
v-for="(item, i) in shipmentFileInfo.saleShipmentInternalFile" :key="i" />
|
|
491
|
-
<contract-file-drag-upload
|
|
492
|
-
@upload="
|
|
493
|
-
handleUpload(
|
|
494
|
-
$event,
|
|
495
|
-
shipmentFileInfo.shipmentId,
|
|
496
|
-
'shipment',
|
|
497
|
-
'sale_shipment_internal_file'
|
|
498
|
-
)"
|
|
499
|
-
:isShowTip="false" uploadNameStr="内部文件" />
|
|
500
|
-
</div>
|
|
501
|
-
|
|
502
|
-
</el-col>
|
|
503
|
-
</el-row>
|
|
504
|
-
|
|
505
460
|
<el-col :span="24">
|
|
506
461
|
<div class="hr-class"></div>
|
|
507
462
|
</el-col>
|
|
@@ -515,7 +470,7 @@
|
|
|
515
470
|
bgTime: contract.contractType == 'purchase' ? shipmentFileInfo.purchasePersonalPackingList && timeFormate(shipmentFileInfo.purchasePersonalPackingList) : shipmentFileInfo.packingList && timeFormate(shipmentFileInfo.packingList),
|
|
516
471
|
bgcolor: shipProgressInfo.bgcolor
|
|
517
472
|
}"></ContentTitle>
|
|
518
|
-
<span class="bg-history" @click="handleHistory('purchase_personal_shipment_packing_list', shipmentFileInfo.shipmentId)">{{ $t('contractDetail.view_history') }}</span>
|
|
473
|
+
<span class="bg-history" @click="handleHistory(contract.contractType == 'purchase' ? 'purchase_personal_shipment_packing_list' : 'shipment_packing_list', shipmentFileInfo.shipmentId)">{{ $t('contractDetail.view_history') }}</span>
|
|
519
474
|
<div class="sub-title" style="margin-bottom: 0;" v-if="contract.contractType == 'purchase'">
|
|
520
475
|
<span style="color: #1890ff; cursor: pointer" v-if="shipmentFileInfo &&
|
|
521
476
|
shipmentFileInfo.purchasePersonalPackingList &&
|
|
@@ -625,7 +580,7 @@
|
|
|
625
580
|
</div>
|
|
626
581
|
<el-divider direction="vertical"></el-divider>
|
|
627
582
|
<div :class="hasSelectAllContainer(containerFile.containerId) ? 'border-button' : 'border-button border-button-blue'" @click.stop="clickSelectAllContainer(containerFile.containerId)">
|
|
628
|
-
{{ hasSelectAllContainer(containerFile.containerId) ? $t('contractDetail.
|
|
583
|
+
{{ hasSelectAllContainer(containerFile.containerId) ? $t('contractDetail.Deselect') : $t('contractDetail.select_all') }}
|
|
629
584
|
</div>
|
|
630
585
|
</div>
|
|
631
586
|
</div>
|
|
@@ -771,26 +726,23 @@
|
|
|
771
726
|
<div class="hr-class"></div>
|
|
772
727
|
</el-col>
|
|
773
728
|
<el-col :span="24" v-if="contract.quoteType != 'FIXED'">
|
|
774
|
-
<div class="content-root-row">
|
|
729
|
+
<div class="content-root-row" style="display: flex;">
|
|
775
730
|
<ContentTitle :contentTitleProp="{
|
|
776
731
|
bgButton: $t('contractDetail.saleTemporaryFinallyInvoice'),
|
|
777
732
|
bgTime: shipmentFileInfo.salePersonalTemporaryFinallyInvoice && timeFormate(shipmentFileInfo.salePersonalTemporaryFinallyInvoice),
|
|
778
733
|
bgcolor: shipProgressInfo.bgcolor
|
|
779
734
|
}"></ContentTitle>
|
|
780
735
|
<span class="bg-history" @click="handleHistory(contract.contractType == 'sale' ? 'sale_personal_temporary_finally_invoice' : 'purchase_temporary_finally_invoice', shipmentFileInfo.shipmentId)">{{ $t('contractDetail.view_history') }}</span>
|
|
736
|
+
<span
|
|
737
|
+
v-if="
|
|
738
|
+
channel !== 'official-website' &&
|
|
739
|
+
contract.contractType == 'purchase'
|
|
740
|
+
"
|
|
741
|
+
style="color: #1890ff; cursor: pointer; margin-left: 10px"
|
|
742
|
+
@click.stop="identifyPageBoth(shipmentFileInfo, 1)"
|
|
743
|
+
>
|
|
744
|
+
{{ identify }}</span>
|
|
781
745
|
</div>
|
|
782
|
-
<div class="sub-title">
|
|
783
|
-
<span
|
|
784
|
-
v-if="
|
|
785
|
-
channel !== 'official-website' &&
|
|
786
|
-
contract.contractType == 'purchase'
|
|
787
|
-
"
|
|
788
|
-
style="color: #1890ff; cursor: pointer; margin-left: 10px"
|
|
789
|
-
@click.stop="identifyPageBoth(shipmentFileInfo, 1)"
|
|
790
|
-
>
|
|
791
|
-
<el-divider direction="vertical"></el-divider>
|
|
792
|
-
{{ identify }}</span>
|
|
793
|
-
</div>
|
|
794
746
|
<el-col :span="12" v-if="channel == 'official-website' && shipmentFileInfo.salePersonalTemporaryFinallyInvoice && shipmentFileInfo.salePersonalTemporaryFinallyInvoice.length == 0" class="center-status">
|
|
795
747
|
<i class="el-icon-time"></i>
|
|
796
748
|
{{ $t('contractDetail.Temporary_final_payment_invoice_to_be_updated') }}
|
|
@@ -1108,6 +1060,51 @@
|
|
|
1108
1060
|
:uploadNameStr="$t('contractDetail.otherFile')" />
|
|
1109
1061
|
</div>
|
|
1110
1062
|
</el-col>
|
|
1063
|
+
|
|
1064
|
+
<div v-if="channel !== 'official-website'">
|
|
1065
|
+
<el-col :span="24" style="padding-top: 20px;">
|
|
1066
|
+
<span>内部文件夹</span>
|
|
1067
|
+
<div class="file-list" v-if="contract.contractType == 'purchase'">
|
|
1068
|
+
<file-show
|
|
1069
|
+
@refresh="handleRefresh"
|
|
1070
|
+
@checked="handleChecked"
|
|
1071
|
+
:hiddenOperation="channel == 'official-website'"
|
|
1072
|
+
@uncheck="handleUncheck"
|
|
1073
|
+
:selectFileListProp="selectFileList"
|
|
1074
|
+
:file-info="item"
|
|
1075
|
+
v-for="(item, i) in shipmentFileInfo.purchaseShipmentInternalFile" :key="i" />
|
|
1076
|
+
<contract-file-drag-upload
|
|
1077
|
+
@upload="
|
|
1078
|
+
handleUpload(
|
|
1079
|
+
$event,
|
|
1080
|
+
shipmentFileInfo.shipmentId,
|
|
1081
|
+
'shipment',
|
|
1082
|
+
'purchase_shipment_internal_file'
|
|
1083
|
+
)"
|
|
1084
|
+
:isShowTip="false" uploadNameStr="内部文件" />
|
|
1085
|
+
</div>
|
|
1086
|
+
<div class="file-list" v-else>
|
|
1087
|
+
<file-show
|
|
1088
|
+
@refresh="handleRefresh"
|
|
1089
|
+
@checked="handleChecked"
|
|
1090
|
+
:hiddenOperation="channel == 'official-website'"
|
|
1091
|
+
@uncheck="handleUncheck"
|
|
1092
|
+
:selectFileListProp="selectFileList"
|
|
1093
|
+
:file-info="item"
|
|
1094
|
+
v-for="(item, i) in shipmentFileInfo.saleShipmentInternalFile" :key="i" />
|
|
1095
|
+
<contract-file-drag-upload
|
|
1096
|
+
@upload="
|
|
1097
|
+
handleUpload(
|
|
1098
|
+
$event,
|
|
1099
|
+
shipmentFileInfo.shipmentId,
|
|
1100
|
+
'shipment',
|
|
1101
|
+
'sale_shipment_internal_file'
|
|
1102
|
+
)"
|
|
1103
|
+
:isShowTip="false" uploadNameStr="内部文件" />
|
|
1104
|
+
</div>
|
|
1105
|
+
</el-col>
|
|
1106
|
+
</div>
|
|
1107
|
+
|
|
1111
1108
|
</div>
|
|
1112
1109
|
</template>
|
|
1113
1110
|
</SectionSlot>
|
|
@@ -1120,7 +1117,7 @@
|
|
|
1120
1117
|
ref="SectionReceiving"
|
|
1121
1118
|
:infoPro="getGoodsProgressInfo" v-for="(
|
|
1122
1119
|
shipmentFileInfo, shipmentIndex
|
|
1123
|
-
) in contractFileInfo.shipmentFileInfoList" :key="shipmentIndex" v-if="shipmentIndex == shipBillNo"
|
|
1120
|
+
) in contractFileInfo.shipmentFileInfoList" :key="'receiving'+shipmentIndex" v-if="shipmentIndex == shipBillNo"
|
|
1124
1121
|
>
|
|
1125
1122
|
<template v-slot:header>
|
|
1126
1123
|
<div>
|
|
@@ -1177,7 +1174,7 @@
|
|
|
1177
1174
|
:infoPro="claimProgressInfo"
|
|
1178
1175
|
v-for="(
|
|
1179
1176
|
shipmentFileInfo, shipmentIndex
|
|
1180
|
-
) in contractFileInfo.shipmentFileInfoList" :key="shipmentIndex"
|
|
1177
|
+
) in contractFileInfo.shipmentFileInfoList" :key="'claim'+shipmentIndex"
|
|
1181
1178
|
v-if="shipmentIndex == shipBillNo"
|
|
1182
1179
|
>
|
|
1183
1180
|
<template v-slot:header>
|
|
@@ -1196,13 +1193,13 @@
|
|
|
1196
1193
|
bgTime: claimFileInfoCom && timeFormate(claimFileInfoCom),
|
|
1197
1194
|
bgcolor: claimProgressInfo.bgcolor
|
|
1198
1195
|
}"></ContentTitle>
|
|
1199
|
-
<span class="bg-history" @click="handleHistory(!buyerFlag ? 'claim_credit_note' : 'claim_debit_note', linkId, false)">{{ $t('contractDetail.view_history') }}</span>
|
|
1196
|
+
<!-- <span class="bg-history" @click="handleHistory(!buyerFlag ? 'claim_credit_note' : 'claim_debit_note', linkId, false)">{{ $t('contractDetail.view_history') }}</span> -->
|
|
1200
1197
|
</div>
|
|
1201
1198
|
<el-col :span="24">
|
|
1202
1199
|
<div class="file-list" v-if="claimFileInfoCom">
|
|
1203
1200
|
<file-show @refresh="handleRefresh" @checked="handleChecked" @uncheck="handleUncheck"
|
|
1204
1201
|
:selectFileListProp="selectFileList"
|
|
1205
|
-
:hiddenOperation="
|
|
1202
|
+
:hiddenOperation="true"
|
|
1206
1203
|
:file-info="item" v-for="(item, i) in claimFileInfoCom" :key="i" />
|
|
1207
1204
|
</div>
|
|
1208
1205
|
<div v-else class="center-status">
|
|
@@ -1410,7 +1407,7 @@ export default {
|
|
|
1410
1407
|
contractProgressInfo: {
|
|
1411
1408
|
text: this.$t('contractDetail.contract'),
|
|
1412
1409
|
rate: 0,
|
|
1413
|
-
img: 'https://s3.
|
|
1410
|
+
img: 'https://s3.doctorscrap.com/dev/user/image_9/805524d45f964ad0b3f51437d3b5750e.png',
|
|
1414
1411
|
bgcolor: '#FBB040',
|
|
1415
1412
|
textArr:[],
|
|
1416
1413
|
hidden: false
|
|
@@ -1418,7 +1415,7 @@ export default {
|
|
|
1418
1415
|
shipProgressInfo: {
|
|
1419
1416
|
text: this.$t('contractDetail.shipment'),
|
|
1420
1417
|
rate: 0,
|
|
1421
|
-
img: 'https://s3.
|
|
1418
|
+
img: 'https://s3.doctorscrap.com/dev/user/image_9/8517dbf0444542d5bf100279231c9597.png',
|
|
1422
1419
|
bgcolor: '#54B8FF',
|
|
1423
1420
|
textArr:[this.$t('contractDetail.Waiting_for_the_seller_to_ship')],
|
|
1424
1421
|
hidden: false
|
|
@@ -1426,7 +1423,7 @@ export default {
|
|
|
1426
1423
|
getGoodsProgressInfo: {
|
|
1427
1424
|
text: this.$t('contractDetail.receiving'),
|
|
1428
1425
|
rate: 0,
|
|
1429
|
-
img: 'https://s3.
|
|
1426
|
+
img: 'https://s3.doctorscrap.com/dev/user/image_9/a43ef25e953747efa9b88d3d9bbe674f.png',
|
|
1430
1427
|
bgcolor: '#7CCF48',
|
|
1431
1428
|
textArr:[],
|
|
1432
1429
|
hidden: false
|
|
@@ -1434,7 +1431,7 @@ export default {
|
|
|
1434
1431
|
claimProgressInfo: {
|
|
1435
1432
|
text: this.$t('contractDetail.claim'),
|
|
1436
1433
|
rate: 0,
|
|
1437
|
-
img: 'https://s3.
|
|
1434
|
+
img: 'https://s3.doctorscrap.com/dev/user/image_9/b427331405604eeb8ec368130f00c5e6.png',
|
|
1438
1435
|
bgcolor: '#adadad',
|
|
1439
1436
|
textArr:[],
|
|
1440
1437
|
hidden: false
|
|
@@ -1442,7 +1439,7 @@ export default {
|
|
|
1442
1439
|
cndnProgressInfo: {
|
|
1443
1440
|
text: this.$t('contractDetail.cndn'),
|
|
1444
1441
|
rate: 100,
|
|
1445
|
-
img: 'https://s3.
|
|
1442
|
+
img: 'https://s3.doctorscrap.com/dev/user/image_9/b427331405604eeb8ec368130f00c5e6.png',
|
|
1446
1443
|
bgcolor: '#c47afc',
|
|
1447
1444
|
textArr:[],
|
|
1448
1445
|
hidden: true
|
|
@@ -1540,18 +1537,20 @@ export default {
|
|
|
1540
1537
|
this.contractId = contractId;
|
|
1541
1538
|
this.getContractFileInfo(contractId);
|
|
1542
1539
|
this.queryParams.linkId = contractId;
|
|
1540
|
+
if(this.$route.query.deductionRecordsShipmentId) {
|
|
1541
|
+
const timer = setTimeout(() => {
|
|
1542
|
+
this.$refs.shipmentPurchaseAmount.handleShow(this.$route.query.deductionRecordsShipmentId);
|
|
1543
|
+
clearTimeout(timer);
|
|
1544
|
+
}, 1000)
|
|
1545
|
+
}
|
|
1543
1546
|
}
|
|
1544
1547
|
},
|
|
1545
1548
|
mounted() { },
|
|
1546
1549
|
methods: {
|
|
1547
1550
|
// 装运模块状态变化,需要同步关联模块
|
|
1548
1551
|
handleShippingUpdateOpen(isOpen) {
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
console.log(this.$refs.SectionCNDN)
|
|
1552
|
-
|
|
1553
|
-
this.$refs.SectionReceiving[0]?.setOpen(isOpen)
|
|
1554
|
-
this.$refs.SectionClaim[0]?.setOpen(isOpen)
|
|
1552
|
+
this.$refs.SectionReceiving && this.$refs.SectionReceiving[0]?.setOpen(isOpen)
|
|
1553
|
+
this.$refs.SectionClaim && this.$refs.SectionClaim[0]?.setOpen(isOpen)
|
|
1555
1554
|
this.$refs.SectionCNDN?.setOpen(isOpen)
|
|
1556
1555
|
},
|
|
1557
1556
|
handleScroll(elementId) {
|
|
@@ -1591,6 +1590,7 @@ export default {
|
|
|
1591
1590
|
const ids = this.selectFileList.map((item) => item.fileId)
|
|
1592
1591
|
delBizFileInfo(ids).then(() => {
|
|
1593
1592
|
this.$message.success('删除成功')
|
|
1593
|
+
this.selectFileList = []
|
|
1594
1594
|
this.handleRefresh()
|
|
1595
1595
|
})
|
|
1596
1596
|
})
|
|
@@ -1627,8 +1627,11 @@ export default {
|
|
|
1627
1627
|
return this.$refs['container_packing_photo_' + containerId][0].clickSelectAll()
|
|
1628
1628
|
},
|
|
1629
1629
|
|
|
1630
|
-
hasSelectAllContainer(containerId) {
|
|
1631
|
-
|
|
1630
|
+
hasSelectAllContainer(containerId) {
|
|
1631
|
+
// setTimeout(() => {
|
|
1632
|
+
let res = this.$refs['container_packing_photo_' + containerId] && this.$refs['container_packing_photo_' + containerId][0]?.hasSelectAll()
|
|
1633
|
+
return res
|
|
1634
|
+
// }, 1000);
|
|
1632
1635
|
},
|
|
1633
1636
|
|
|
1634
1637
|
changeShipBillNo(index) {
|
|
@@ -1673,15 +1676,8 @@ export default {
|
|
|
1673
1676
|
},
|
|
1674
1677
|
identifyPage(url, shipmentId, type) {
|
|
1675
1678
|
if (type == 'summary') {
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
query: {
|
|
1679
|
-
// url: url,
|
|
1680
|
-
shipmentId,
|
|
1681
|
-
shipmentOcrType: type,
|
|
1682
|
-
contractId: this.contractId,
|
|
1683
|
-
},
|
|
1684
|
-
});
|
|
1679
|
+
window.open(`/jxxg/ocr/index?shipmentId=${shipmentId}&shipmentOcrType=${type}&contractId=${this.contractId}`, '_blank');
|
|
1680
|
+
return;
|
|
1685
1681
|
}
|
|
1686
1682
|
|
|
1687
1683
|
if (!url) {
|
|
@@ -1689,51 +1685,23 @@ export default {
|
|
|
1689
1685
|
}
|
|
1690
1686
|
|
|
1691
1687
|
if (type == 'draft_bill') {
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
query: {
|
|
1695
|
-
url: url,
|
|
1696
|
-
shipmentId,
|
|
1697
|
-
shipmentOcrType: type,
|
|
1698
|
-
contractId: this.contractId,
|
|
1699
|
-
},
|
|
1700
|
-
});
|
|
1688
|
+
window.open(`/jxxg/ocr/draft-bill?url=${url}&shipmentId=${shipmentId}&shipmentOcrType=${type}&contractId=${this.contractId}`, '_blank');
|
|
1689
|
+
return;
|
|
1701
1690
|
}
|
|
1702
1691
|
|
|
1703
1692
|
if (type == 'packing') {
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
query: {
|
|
1707
|
-
url: url,
|
|
1708
|
-
shipmentId,
|
|
1709
|
-
shipmentOcrType: type,
|
|
1710
|
-
contractId: this.contractId,
|
|
1711
|
-
},
|
|
1712
|
-
});
|
|
1693
|
+
window.open(`/jxxg/ocr/packing-list?url=${url}&shipmentId=${shipmentId}&shipmentOcrType=${type}&contractId=${this.contractId}`, '_blank');
|
|
1694
|
+
return;
|
|
1713
1695
|
}
|
|
1714
1696
|
|
|
1715
1697
|
if (type == 'temporary_invoice') {
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
query: {
|
|
1719
|
-
url: url,
|
|
1720
|
-
shipmentId,
|
|
1721
|
-
shipmentOcrType: type,
|
|
1722
|
-
contractId: this.contractId,
|
|
1723
|
-
},
|
|
1724
|
-
});
|
|
1698
|
+
window.open(`/jxxg/ocr/invoice-balance-temp?url=${url}&shipmentId=${shipmentId}&shipmentOcrType=${type}&contractId=${this.contractId}`, '_blank');
|
|
1699
|
+
return;
|
|
1725
1700
|
}
|
|
1726
1701
|
|
|
1727
1702
|
if (type == 'final_invoice') {
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
query: {
|
|
1731
|
-
url: url,
|
|
1732
|
-
shipmentId,
|
|
1733
|
-
shipmentOcrType: type,
|
|
1734
|
-
contractId: this.contractId,
|
|
1735
|
-
},
|
|
1736
|
-
});
|
|
1703
|
+
window.open(`/jxxg/ocr/invoice-balance?url=${url}&shipmentId=${shipmentId}&shipmentOcrType=${type}&contractId=${this.contractId}`, '_blank');
|
|
1704
|
+
return;
|
|
1737
1705
|
}
|
|
1738
1706
|
},
|
|
1739
1707
|
|
|
@@ -2132,17 +2100,12 @@ export default {
|
|
|
2132
2100
|
|
|
2133
2101
|
// 索赔进度
|
|
2134
2102
|
let claimTextArr = []
|
|
2135
|
-
if(this.contractFileInfo.claimCreateFlag && !this.contractFileInfo.
|
|
2103
|
+
if(this.contractFileInfo.claimCreateFlag && !this.contractFileInfo.claimCloseFlag) {
|
|
2136
2104
|
// 索赔中(英文:Claiming)
|
|
2137
2105
|
claimTextArr.push(this.$t('contractDetail.claiming'))
|
|
2138
2106
|
}
|
|
2139
2107
|
|
|
2140
|
-
if(this.contractFileInfo.claimCreateFlag && this.contractFileInfo.
|
|
2141
|
-
// 文件已更新(英文:Claiming-CN/DN issued
|
|
2142
|
-
claimTextArr.push(this.$t('contractDetail.claiming_update'))
|
|
2143
|
-
}
|
|
2144
|
-
|
|
2145
|
-
if(this.contractFileInfo.claimCreateFlag && this.contractFileInfo.claimProcessFlag && this.contractFileInfo.claimCloseFlag) {
|
|
2108
|
+
if(this.contractFileInfo.claimCreateFlag && this.contractFileInfo.claimCloseFlag) {
|
|
2146
2109
|
// 索赔已关闭(英文:Claim closed)
|
|
2147
2110
|
claimTextArr.push(this.$t('contractDetail.claiming_closed'))
|
|
2148
2111
|
}
|
|
@@ -2359,24 +2322,37 @@ export default {
|
|
|
2359
2322
|
|
|
2360
2323
|
},
|
|
2361
2324
|
claimFileInfoCom() {
|
|
2362
|
-
if (
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
) {
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
} else {
|
|
2378
|
-
|
|
2379
|
-
}
|
|
2325
|
+
// if (
|
|
2326
|
+
// (this.contractFileInfo &&
|
|
2327
|
+
// this.contractFileInfo.claimCreditNoteFileList &&
|
|
2328
|
+
// this.contractFileInfo.claimCreditNoteFileList[0]) ||
|
|
2329
|
+
// (this.contractFileInfo &&
|
|
2330
|
+
// this.contractFileInfo.claimDebitNoteFileList &&
|
|
2331
|
+
// this.contractFileInfo.claimDebitNoteFileList[0])
|
|
2332
|
+
// ) {
|
|
2333
|
+
// return !this.buyerFlag
|
|
2334
|
+
// ? this.contractFileInfo &&
|
|
2335
|
+
// this.contractFileInfo.claimCreditNoteFileList &&
|
|
2336
|
+
// this.contractFileInfo.claimCreditNoteFileList
|
|
2337
|
+
// : this.contractFileInfo &&
|
|
2338
|
+
// this.contractFileInfo.claimDebitNoteFileList &&
|
|
2339
|
+
// this.contractFileInfo.claimDebitNoteFileList;
|
|
2340
|
+
// } else {
|
|
2341
|
+
// false;
|
|
2342
|
+
// }
|
|
2343
|
+
if(this.contractFileInfo?.bills) {
|
|
2344
|
+
return this.contractFileInfo.bills.map(item => {
|
|
2345
|
+
let name = item.billType == 'receipt' ? 'DebitNote' : 'CreditNote'
|
|
2346
|
+
item.url = item.billNo + '.pdf'
|
|
2347
|
+
item.fileName = name + item.billNo + '.pdf'
|
|
2348
|
+
item.downloadUrl = '/bill/download?id=' + item.id
|
|
2349
|
+
return item
|
|
2350
|
+
}).filter(item => {
|
|
2351
|
+
return item.businessType == 1
|
|
2352
|
+
})
|
|
2353
|
+
} else {
|
|
2354
|
+
return false
|
|
2355
|
+
}
|
|
2380
2356
|
},
|
|
2381
2357
|
// 采购获取最新的尾款发票
|
|
2382
2358
|
DNbillsCom() {
|
|
@@ -2388,6 +2364,8 @@ export default {
|
|
|
2388
2364
|
item.downloadUrl = '/bill/download?id=' + item.id
|
|
2389
2365
|
return item
|
|
2390
2366
|
}
|
|
2367
|
+
}).filter(item => {
|
|
2368
|
+
return item.businessType != 1
|
|
2391
2369
|
})
|
|
2392
2370
|
} else {
|
|
2393
2371
|
return false
|
|
@@ -2402,6 +2380,8 @@ export default {
|
|
|
2402
2380
|
item.downloadUrl = '/bill/download?id=' + item.id
|
|
2403
2381
|
return item
|
|
2404
2382
|
}
|
|
2383
|
+
}).filter(item => {
|
|
2384
|
+
return item.businessType != 1
|
|
2405
2385
|
})
|
|
2406
2386
|
} else {
|
|
2407
2387
|
return false
|
|
@@ -2451,7 +2431,7 @@ export default {
|
|
|
2451
2431
|
min-width: 45px;
|
|
2452
2432
|
padding: 0 10px;
|
|
2453
2433
|
width: max-content;
|
|
2454
|
-
height: 21px;
|
|
2434
|
+
min-height: 21px;
|
|
2455
2435
|
text-align: center;
|
|
2456
2436
|
line-height: 17px;
|
|
2457
2437
|
background: #FFFFFF;
|
|
@@ -97,7 +97,9 @@ export default {
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
hasSelectAll() {
|
|
100
|
-
|
|
100
|
+
let res = this.imgList.find((item) => item.checked);
|
|
101
|
+
// console.log('xxxxxxx', res)
|
|
102
|
+
return res
|
|
101
103
|
},
|
|
102
104
|
checkAll1() {
|
|
103
105
|
this.imgList.forEach((item) => {
|
|
@@ -187,15 +189,15 @@ export default {
|
|
|
187
189
|
},
|
|
188
190
|
othersFile(imgUrl) {
|
|
189
191
|
if(isDoc(imgUrl)) {
|
|
190
|
-
return 'https://s3.
|
|
192
|
+
return 'https://s3.doctorscrap.com/dev/user/image_13/1ed150dc6171450d81a5e1f7b4e1253f.png'
|
|
191
193
|
} else if(isPdf(imgUrl)) {
|
|
192
|
-
return 'https://s3.
|
|
194
|
+
return 'https://s3.doctorscrap.com/dev/user/image_13/5a4b66e220794c0b8284f0a8204aac3e.png'
|
|
193
195
|
} else if(isZip(imgUrl)) {
|
|
194
|
-
return 'https://s3.
|
|
196
|
+
return 'https://s3.doctorscrap.com/dev/user/image_13/470eeab01eec430e9ed0edd81d15ace5.png'
|
|
195
197
|
} else if(isXls(imgUrl)) {
|
|
196
|
-
return 'https://s3.
|
|
198
|
+
return 'https://s3.doctorscrap.com/dev/user/image_13/caaa343a68684216be1a4d3b27d40a9d.png'
|
|
197
199
|
} else if(isPpt(imgUrl)) {
|
|
198
|
-
return 'https://s3.
|
|
200
|
+
return 'https://s3.doctorscrap.com/dev/user/image_13/b0590840eceb4162a8c07119ef2fe245.png'
|
|
199
201
|
} else {
|
|
200
202
|
return imgUrl
|
|
201
203
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<el-image style="width: 38px; height: 46px" :src="fileInfo.url" fit="contain" :preview-src-list="[fileInfo.url]" v-else-if="isImage(fileInfo.url)"></el-image>
|
|
10
10
|
<div class="area-file" v-else></div>
|
|
11
11
|
<div>
|
|
12
|
-
<div>
|
|
12
|
+
<div class="name-width">{{ fileInfo.fileName }}</div>
|
|
13
13
|
<div class="preview-download-root">
|
|
14
14
|
<div
|
|
15
15
|
v-if="!fileInfo.downloadUrl"
|
|
@@ -318,8 +318,10 @@ export default {
|
|
|
318
318
|
<style lang="scss" scoped>
|
|
319
319
|
.file-info {
|
|
320
320
|
min-width: 450px;
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
@media screen and (max-width: 768px) {
|
|
322
|
+
min-width: 300px;
|
|
323
|
+
max-width: 300px;
|
|
324
|
+
}
|
|
323
325
|
.main {
|
|
324
326
|
display: flex;
|
|
325
327
|
.checkbox-position {
|