doctor-admin-components 1.0.13-beta.88 → 1.0.13-beta.89
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/package.json +1 -1
- package/packages/src/i18n/en/message.json +4 -2
- package/packages/src/i18n/zh-CN/message.json +4 -2
- package/packages/src/views/biz/bizFileInfo/contract.vue +122 -5
- package/packages/src/views/biz/bizFileInfo/contractFile/BillOfLadingNoTab.vue +2 -2
- package/packages/src/views/biz/bizFileInfo/contractFile/ProgressDetail.vue +6 -5
- package/packages/src/views/biz/bizFileInfo/fileShow.vue +12 -1
package/package.json
CHANGED
|
@@ -83,7 +83,8 @@
|
|
|
83
83
|
"remarkTip": "Please enter a note",
|
|
84
84
|
"Payable_Amount": "Payable Amount",
|
|
85
85
|
"Amount_Paid": "Amount Paid",
|
|
86
|
-
"Balance_Due": "Balance Due"
|
|
86
|
+
"Balance_Due": "Balance Due",
|
|
87
|
+
"Voided": "Voided"
|
|
87
88
|
},
|
|
88
89
|
"contractDetail": {
|
|
89
90
|
"Reference_No": "Reference No.",
|
|
@@ -293,7 +294,8 @@
|
|
|
293
294
|
"voided": "Voided",
|
|
294
295
|
"voucherOrReceipt": "Voucher/Receipt",
|
|
295
296
|
"weight": "weight(MT)",
|
|
296
|
-
"yes": "Yes"
|
|
297
|
+
"yes": "Yes",
|
|
298
|
+
"cndn": "Debit note & Credit note"
|
|
297
299
|
},
|
|
298
300
|
"distpicker":{
|
|
299
301
|
"province": "Province",
|
|
@@ -83,7 +83,8 @@
|
|
|
83
83
|
"remarkTip": "请输入备注",
|
|
84
84
|
"Payable_Amount": "应付金额",
|
|
85
85
|
"Amount_Paid": "已付金额",
|
|
86
|
-
"Balance_Due": "待付余额"
|
|
86
|
+
"Balance_Due": "待付余额",
|
|
87
|
+
"Voided": "已作废"
|
|
87
88
|
},
|
|
88
89
|
"contractDetail": {
|
|
89
90
|
"Reference_No": "合同参考号",
|
|
@@ -293,7 +294,8 @@
|
|
|
293
294
|
"voided": "已作废",
|
|
294
295
|
"voucherOrReceipt": "凭证/条款",
|
|
295
296
|
"weight": "重量(MT)",
|
|
296
|
-
"yes": "Yes"
|
|
297
|
+
"yes": "Yes",
|
|
298
|
+
"cndn": "Debit note & Credit note"
|
|
297
299
|
},
|
|
298
300
|
"distpicker":{
|
|
299
301
|
"province": "省",
|
|
@@ -1202,6 +1202,84 @@
|
|
|
1202
1202
|
</template>
|
|
1203
1203
|
</SectionSlot>
|
|
1204
1204
|
</div>
|
|
1205
|
+
<!-- cndn -->
|
|
1206
|
+
<div style="margin-top:50px" v-if="CNbillsCom.length || DNbillsCom.length">
|
|
1207
|
+
<SectionSlot
|
|
1208
|
+
:infoPro="cndnProgressInfo"
|
|
1209
|
+
>
|
|
1210
|
+
<template v-slot:header>
|
|
1211
|
+
<div>
|
|
1212
|
+
<ProgressDetail :infoPro="cndnProgressInfo"></ProgressDetail>
|
|
1213
|
+
</div>
|
|
1214
|
+
</template>
|
|
1215
|
+
<template v-slot:content>
|
|
1216
|
+
<div class="content-root">
|
|
1217
|
+
<div v-if="DNbillsCom.length">
|
|
1218
|
+
<ContentTitle
|
|
1219
|
+
:contentTitleProp="{
|
|
1220
|
+
bgButton: $t('contractDetail.Debit_Note'),
|
|
1221
|
+
bgTime: DNbillsCom.length && timeFormate(DNbillsCom),
|
|
1222
|
+
bgcolor: cndnProgressInfo.bgcolor
|
|
1223
|
+
}"></ContentTitle>
|
|
1224
|
+
<el-col :span="24">
|
|
1225
|
+
<div class="file-list" v-if="DNbillsCom.length">
|
|
1226
|
+
<file-show @refresh="handleRefresh" @checked="handleChecked" @uncheck="handleUncheck"
|
|
1227
|
+
:selectFileListProp="selectFileList"
|
|
1228
|
+
:hiddenOperation="true"
|
|
1229
|
+
:file-info="item" v-for="(item, i) in DNbillsCom" :key="i" />
|
|
1230
|
+
<!-- <contract-file-drag-upload
|
|
1231
|
+
@upload="
|
|
1232
|
+
handleUpload(
|
|
1233
|
+
$event,
|
|
1234
|
+
shipmentFileInfo.shipmentId,
|
|
1235
|
+
'shipment',
|
|
1236
|
+
'shipment_delivery_receipt'
|
|
1237
|
+
)
|
|
1238
|
+
"
|
|
1239
|
+
:isShowTip="false"
|
|
1240
|
+
/> -->
|
|
1241
|
+
</div>
|
|
1242
|
+
<!-- <div v-else class="center-status">
|
|
1243
|
+
<i class="el-icon-time"></i>
|
|
1244
|
+
{{ $t('contractDetail.no_files') }}
|
|
1245
|
+
</div> -->
|
|
1246
|
+
</el-col>
|
|
1247
|
+
</div>
|
|
1248
|
+
<div v-if="CNbillsCom.length">
|
|
1249
|
+
<ContentTitle
|
|
1250
|
+
:contentTitleProp="{
|
|
1251
|
+
bgButton: $t('contractDetail.Credit_Note'),
|
|
1252
|
+
bgTime: CNbillsCom.length && timeFormate(CNbillsCom),
|
|
1253
|
+
bgcolor: cndnProgressInfo.bgcolor
|
|
1254
|
+
}"></ContentTitle>
|
|
1255
|
+
<el-col :span="24">
|
|
1256
|
+
<div class="file-list" v-if="CNbillsCom.length">
|
|
1257
|
+
<file-show @refresh="handleRefresh" @checked="handleChecked" @uncheck="handleUncheck"
|
|
1258
|
+
:selectFileListProp="selectFileList"
|
|
1259
|
+
:hiddenOperation="true"
|
|
1260
|
+
:file-info="item" v-for="(item, i) in CNbillsCom" :key="i" />
|
|
1261
|
+
<!-- <contract-file-drag-upload
|
|
1262
|
+
@upload="
|
|
1263
|
+
handleUpload(
|
|
1264
|
+
$event,
|
|
1265
|
+
shipmentFileInfo.shipmentId,
|
|
1266
|
+
'shipment',
|
|
1267
|
+
'shipment_delivery_receipt'
|
|
1268
|
+
)
|
|
1269
|
+
"
|
|
1270
|
+
:isShowTip="false"
|
|
1271
|
+
/> -->
|
|
1272
|
+
</div>
|
|
1273
|
+
<!-- <div v-else class="center-status">
|
|
1274
|
+
<i class="el-icon-time"></i>
|
|
1275
|
+
{{ $t('contractDetail.no_files') }}
|
|
1276
|
+
</div> -->
|
|
1277
|
+
</el-col>
|
|
1278
|
+
</div>
|
|
1279
|
+
</div>
|
|
1280
|
+
</template>
|
|
1281
|
+
</SectionSlot>
|
|
1282
|
+
</div>
|
|
1205
1283
|
|
|
1206
1284
|
<deposit-invoice ref="depositInvoice"></deposit-invoice>
|
|
1207
1285
|
|
|
@@ -1340,28 +1418,40 @@ export default {
|
|
|
1340
1418
|
rate: 0,
|
|
1341
1419
|
img: 'https://s3.cdn.doctorscrap.com/dev/user/image_9/805524d45f964ad0b3f51437d3b5750e.png',
|
|
1342
1420
|
bgcolor: '#FBB040',
|
|
1343
|
-
textArr:[]
|
|
1421
|
+
textArr:[],
|
|
1422
|
+
hidden: false
|
|
1344
1423
|
},
|
|
1345
1424
|
shipProgressInfo: {
|
|
1346
1425
|
text: this.$t('contractDetail.shipment'),
|
|
1347
1426
|
rate: 0,
|
|
1348
1427
|
img: 'https://s3.cdn.doctorscrap.com/dev/user/image_9/8517dbf0444542d5bf100279231c9597.png',
|
|
1349
1428
|
bgcolor: '#54B8FF',
|
|
1350
|
-
textArr:[this.$t('contractDetail.Waiting_for_the_seller_to_ship')]
|
|
1429
|
+
textArr:[this.$t('contractDetail.Waiting_for_the_seller_to_ship')],
|
|
1430
|
+
hidden: false
|
|
1351
1431
|
},
|
|
1352
1432
|
getGoodsProgressInfo: {
|
|
1353
1433
|
text: this.$t('contractDetail.receiving'),
|
|
1354
1434
|
rate: 0,
|
|
1355
1435
|
img: 'https://s3.cdn.doctorscrap.com/dev/user/image_9/a43ef25e953747efa9b88d3d9bbe674f.png',
|
|
1356
1436
|
bgcolor: '#7CCF48',
|
|
1357
|
-
textArr:[]
|
|
1437
|
+
textArr:[],
|
|
1438
|
+
hidden: false
|
|
1358
1439
|
},
|
|
1359
1440
|
claimProgressInfo: {
|
|
1360
1441
|
text: this.$t('contractDetail.claim'),
|
|
1361
1442
|
rate: 0,
|
|
1362
1443
|
img: 'https://s3.cdn.doctorscrap.com/dev/user/image_9/b427331405604eeb8ec368130f00c5e6.png',
|
|
1363
1444
|
bgcolor: '#adadad',
|
|
1364
|
-
textArr:[]
|
|
1445
|
+
textArr:[],
|
|
1446
|
+
hidden: false
|
|
1447
|
+
},
|
|
1448
|
+
cndnProgressInfo: {
|
|
1449
|
+
text: this.$t('contractDetail.cndn'),
|
|
1450
|
+
rate: 100,
|
|
1451
|
+
img: 'https://s3.cdn.doctorscrap.com/dev/user/image_9/b427331405604eeb8ec368130f00c5e6.png',
|
|
1452
|
+
bgcolor: '#c47afc',
|
|
1453
|
+
textArr:[],
|
|
1454
|
+
hidden: true
|
|
1365
1455
|
},
|
|
1366
1456
|
identify: this.$t('contractDetail.identify'),
|
|
1367
1457
|
selectRadio: 0,
|
|
@@ -2210,6 +2300,33 @@ export default {
|
|
|
2210
2300
|
false;
|
|
2211
2301
|
}
|
|
2212
2302
|
},
|
|
2303
|
+
// 采购获取最新的尾款发票
|
|
2304
|
+
DNbillsCom() {
|
|
2305
|
+
if(this.contractFileInfo?.bills) {
|
|
2306
|
+
return this.contractFileInfo.bills.filter(item => {
|
|
2307
|
+
if(item.billType == 'receipt') {
|
|
2308
|
+
item.url = item.billNo + '.pdf'
|
|
2309
|
+
item.downloadUrl = '/bill/download?id=' + item.id
|
|
2310
|
+
return item
|
|
2311
|
+
}
|
|
2312
|
+
})
|
|
2313
|
+
} else {
|
|
2314
|
+
return false
|
|
2315
|
+
}
|
|
2316
|
+
},
|
|
2317
|
+
CNbillsCom() {
|
|
2318
|
+
if(this.contractFileInfo?.bills) {
|
|
2319
|
+
return this.contractFileInfo.bills.filter(item => {
|
|
2320
|
+
if(item.billType == 'payment') {
|
|
2321
|
+
item.url = item.billNo + '.pdf'
|
|
2322
|
+
item.downloadUrl = '/bill/download?id=' + item.id
|
|
2323
|
+
return item
|
|
2324
|
+
}
|
|
2325
|
+
})
|
|
2326
|
+
} else {
|
|
2327
|
+
return false
|
|
2328
|
+
}
|
|
2329
|
+
},
|
|
2213
2330
|
},
|
|
2214
2331
|
watch: {
|
|
2215
2332
|
selectFileListProp: {
|
|
@@ -2363,7 +2480,7 @@ export default {
|
|
|
2363
2480
|
}
|
|
2364
2481
|
.addshipment {
|
|
2365
2482
|
position: absolute;
|
|
2366
|
-
left:
|
|
2483
|
+
left:140px;
|
|
2367
2484
|
top:120px;
|
|
2368
2485
|
background-color:#fff;
|
|
2369
2486
|
height:30px;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
3
3
|
* @Date: 2024-03-13 14:28:59
|
|
4
4
|
* @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
5
|
-
* @LastEditTime: 2024-
|
|
5
|
+
* @LastEditTime: 2024-06-05 13:54:37
|
|
6
6
|
* @FilePath: /doctor-admin-components 公共组件/packages/src/views/biz/bizFileInfo/contractFile/BillOfLadingNoTab.vue
|
|
7
7
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
8
|
-->
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
{{ $t('contractDetail.BL_No') }} {{ shipmentFileInfo.billOfLadingNo
|
|
16
16
|
? shipmentFileInfo.billOfLadingNo
|
|
17
|
-
: '' }}
|
|
17
|
+
: '' }} <span v-if="shipmentFileInfo.voidStatus == 1"> ( {{ $t('contract.Voided') }} )</span>
|
|
18
18
|
</div>
|
|
19
19
|
<div class="billOfLadingNo-more" v-if="contractFileInfoData.shipmentFileInfoList && contractFileInfoData.shipmentFileInfoList.length > 4" @click.stop="openFun">
|
|
20
20
|
<!-- <div class="billOfLadingNo-more" @click.stop="openFun"> -->
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
* @Author: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
3
3
|
* @Date: 2024-02-22 11:04:36
|
|
4
4
|
* @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
5
|
-
* @LastEditTime: 2024-
|
|
5
|
+
* @LastEditTime: 2024-06-05 13:48:22
|
|
6
6
|
* @FilePath: /doctor-admin-components 公共组件/packages/src/views/biz/bizFileInfo/contractFile/Process.vue
|
|
7
7
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div class="progress" :style="{backgroundColor:info.bgcolor}">
|
|
11
11
|
<el-row>
|
|
12
|
-
<el-col :span="8">
|
|
12
|
+
<el-col :span="info.hidden ? 13: 8">
|
|
13
13
|
<div class="progress-left">
|
|
14
14
|
<img class="progress-img" :src="info.img" alt="">
|
|
15
15
|
<div class="progress-text">{{ info.text}}</div>
|
|
16
16
|
</div>
|
|
17
17
|
</el-col>
|
|
18
|
-
<el-col :span="16">
|
|
18
|
+
<el-col :span="info.hidden ? 11 : 16">
|
|
19
19
|
<div class="progress-info"
|
|
20
20
|
:style="{background:`linear-gradient(to right,${info.bgcolor} 0%, ${info.bgcolor} ${rate}%, #fff ${rate}%, #fff 100%)`}"
|
|
21
21
|
>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</div>
|
|
28
28
|
</el-col>
|
|
29
29
|
</el-row>
|
|
30
|
-
<div class="progress-rate">{{ $t('contractDetail.progress') }} {{ rate }}%</div>
|
|
30
|
+
<div v-if="!info.hidden" class="progress-rate">{{ $t('contractDetail.progress') }} {{ rate }}%</div>
|
|
31
31
|
</div>
|
|
32
32
|
</template>
|
|
33
33
|
|
|
@@ -79,7 +79,8 @@ export default {
|
|
|
79
79
|
min-height:150px;
|
|
80
80
|
display: flex;
|
|
81
81
|
align-items: center;
|
|
82
|
-
justify-content: center;
|
|
82
|
+
//justify-content: center;
|
|
83
|
+
margin-left:120px;
|
|
83
84
|
.progress-img {
|
|
84
85
|
width: 36px;
|
|
85
86
|
height: 36px;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
<div> {{ fileInfo.fileName }}</div>
|
|
13
13
|
<div class="preview-download-root">
|
|
14
14
|
<div
|
|
15
|
+
v-if="!fileInfo.downloadUrl"
|
|
15
16
|
type="text"
|
|
16
17
|
size="mini"
|
|
17
18
|
class="preview-download"
|
|
@@ -268,7 +269,17 @@ export default {
|
|
|
268
269
|
/** 下载文件 */
|
|
269
270
|
handleDownload() {
|
|
270
271
|
// this.download(this.fileInfo.url, {}, this.fileInfo.fileName);
|
|
271
|
-
|
|
272
|
+
if(this.fileInfo.downloadUrl) {
|
|
273
|
+
let filename
|
|
274
|
+
if (this.fileInfo.billType === 'receipt') {
|
|
275
|
+
filename = 'DebitNote ' + this.fileInfo.billNo + '.pdf'
|
|
276
|
+
} else {
|
|
277
|
+
filename = 'CreditNote ' + this.fileInfo.billNo + '.pdf'
|
|
278
|
+
}
|
|
279
|
+
this.$download.zip('/bill/download?id=' + this.fileInfo.id, filename)
|
|
280
|
+
} else {
|
|
281
|
+
downloadFile(this.fileInfo.url, this.fileInfo.fileName)
|
|
282
|
+
}
|
|
272
283
|
},
|
|
273
284
|
openFile(url) {
|
|
274
285
|
window.open(url)
|