doctor-admin-components 1.0.13-beta.9 → 1.0.13-beta.91
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 +28 -9
- package/package.json +1 -1
- package/packages/index.js +10 -0
- package/packages/src/api/biz/bizContract.js +996 -1
- package/packages/src/api/biz/bizContractCompany.js +1 -1
- package/packages/src/api/biz/bizFileInfo.js +16 -0
- package/packages/src/api/biz/bizInvoice.js +1 -1
- package/packages/src/api/biz/bizShipment.js +18 -0
- package/packages/src/assets/images/click-show-table.png +0 -0
- package/packages/src/assets/images/more.png +0 -0
- package/packages/src/assets/images/pdf-new.png +0 -0
- package/packages/src/components/DictTag/index.vue +12 -2
- package/packages/src/components/FileUpload/contract-drag-new.vue +99 -10
- package/packages/src/i18n/en/message.json +305 -0
- package/packages/src/i18n/index.js +38 -0
- package/packages/src/i18n/zh-CN/message.json +305 -0
- package/packages/src/index.js +13 -1
- package/packages/src/utils/index.js +35 -0
- package/packages/src/utils/request.js +120 -146
- package/packages/src/views/biz/bizFileInfo/PAYMENT_VOUCHER(/"payment_voucher/", /"/344/273/230/346/254/276/345/207/255/350/257/201.ini" +222 -0
- package/packages/src/views/biz/bizFileInfo/contract copy.vue +1711 -0
- package/packages/src/views/biz/bizFileInfo/contract.vue +1783 -986
- package/packages/src/views/biz/bizFileInfo/contractFile/BillOfLadingNoTab.vue +114 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/ContentTitle.vue +102 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/IMGPreviewCheckBox.vue +308 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/Progress.vue +85 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/ProgressDetail.vue +123 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/SectionSlot.vue +83 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/ShowAndHide.vue +178 -0
- package/packages/src/views/biz/bizFileInfo/fileShow copy.vue +321 -0
- package/packages/src/views/biz/bizFileInfo/fileShow.vue +143 -47
- package/packages/src/views/biz/bizFileInfo/fileShowClaim.vue +1 -1
- package/packages/src/views/biz/bizShipment/add.vue +223 -75
- package/packages/src/views/biz/bizShipment/referenceAlert.vue +168 -0
- package/packages/src/views/biz/contractTracing/addSubCompany.vue +106 -169
- package/packages/src/views/biz/contractTracing/billInfo.vue +191 -332
- package/packages/src/views/biz/contractTracing/companyBanks.vue +228 -0
- package/packages/src/views/biz/contractTracing/contractInfo.vue +1 -1
- package/packages/src/views/biz/contractTracing/contractPdf.vue +7 -4
- package/packages/src/views/biz/contractTracing/contractSummary.vue +20 -7
- package/packages/src/views/biz/contractTracing/contractTracingDetail copy.vue +107 -0
- package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +229 -9
- package/packages/src/views/biz/contractTracing/editBill.vue +236 -363
- package/packages/src/views/biz/contractTracing/purchaseInvoiceUpload.vue +153 -7
- package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +8 -2
- package/packages/src/views/biz/contractTracing/subCompanyDialog.vue +202 -176
- package/packages/src/views/components/RegionPicker/Distpicker.vue +459 -0
- package/packages/src/views/components/RegionPicker/districts.js +4641 -0
- package/packages/src/views/test.vue +3 -3
- package/packages/src/views/biz/contractTracing/association.vue +0 -189
- package/packages/src/views/biz/contractTracing/chargingDialog.vue +0 -84
- package/packages/src/views/biz/contractTracing/contract.vue +0 -1276
- package/packages/src/views/biz/contractTracing/disputeRecord.vue +0 -311
- package/packages/src/views/biz/contractTracing/edit.vue +0 -205
- package/packages/src/views/biz/contractTracing/sendDrafEmail.vue +0 -120
- package/packages/src/views/biz/contractTracing/shipment.vue +0 -601
|
@@ -1,34 +1,55 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="file-info" v-if="fileInfo.url">
|
|
3
3
|
<div class="main">
|
|
4
|
-
<el-checkbox v-if="!this.hiddenOperation" label="" @change="handleCheck"
|
|
4
|
+
<el-checkbox v-if="!this.hiddenOperation" label="" class="checkbox-position" @change="handleCheck" v-model="checkFlag">
|
|
5
|
+
</el-checkbox>
|
|
5
6
|
<div class="area">
|
|
6
7
|
<div class="area-info">
|
|
7
|
-
<div class="area-pdf" v-if="fileInfo.
|
|
8
|
-
<el-image style="width:
|
|
8
|
+
<div class="area-pdf" v-if="isPdf(fileInfo.url)"></div>
|
|
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>
|
|
9
10
|
<div class="area-file" v-else></div>
|
|
10
|
-
<
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
<div>
|
|
12
|
+
<div> {{ fileInfo.fileName }}</div>
|
|
13
|
+
<div class="preview-download-root">
|
|
14
|
+
<div
|
|
15
|
+
v-if="!fileInfo.downloadUrl"
|
|
16
|
+
type="text"
|
|
17
|
+
size="mini"
|
|
18
|
+
class="preview-download"
|
|
19
|
+
@click="openFile(fileInfo.url)"
|
|
20
|
+
>{{ $t("contractDetail.preview") }}</div
|
|
21
|
+
>
|
|
22
|
+
<div class="preview-download" type="text" size="mini" @click="handleDownload">
|
|
23
|
+
{{ $t("contractDetail.download") }}
|
|
24
|
+
</div>
|
|
25
|
+
<div v-if="!this.hiddenOperation">
|
|
26
|
+
<el-dropdown trigger="click" @command="handleCommand">
|
|
27
|
+
<span class="el-dropdown-link">
|
|
28
|
+
<div class="more-icon"></div>
|
|
29
|
+
</span>
|
|
30
|
+
|
|
31
|
+
<el-dropdown-menu slot="dropdown" v-if="type == 'signContract'" >
|
|
32
|
+
<el-dropdown-item command="signContract">
|
|
33
|
+
{{ $t('contractDetail.withdraw_sign') }}
|
|
34
|
+
</el-dropdown-item>
|
|
35
|
+
<el-dropdown-item command="rename">{{$t('contractDetail.rename')}}</el-dropdown-item>
|
|
36
|
+
</el-dropdown-menu>
|
|
37
|
+
<el-dropdown-menu slot="dropdown" v-else >
|
|
38
|
+
<el-dropdown-item command="delete">{{
|
|
39
|
+
$t("contractDetail.delete")
|
|
40
|
+
}}</el-dropdown-item>
|
|
41
|
+
<el-dropdown-item command="rename">{{$t('contractDetail.rename')}}</el-dropdown-item>
|
|
42
|
+
<!-- <el-dropdown-item command="deleteAndUpload">
|
|
43
|
+
{{ $t("contractDetail.deleteAndUpload") }}
|
|
44
|
+
</el-dropdown-item> -->
|
|
45
|
+
</el-dropdown-menu>
|
|
46
|
+
</el-dropdown>
|
|
47
|
+
</div>
|
|
48
|
+
<!-- <div v-else style="width:120px;word-break:break-all">
|
|
18
49
|
{{ fileInfo.fileName }}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<el-dropdown-item command="delete">{{ $t('contractDetail.delete') }}</el-dropdown-item>
|
|
23
|
-
<el-dropdown-item command="rename">重命名</el-dropdown-item>
|
|
24
|
-
<el-dropdown-item command="deleteAndUpload">
|
|
25
|
-
{{ $t('contractDetail.deleteAndUpload') }}
|
|
26
|
-
</el-dropdown-item>
|
|
27
|
-
</el-dropdown-menu>
|
|
28
|
-
</el-dropdown>
|
|
29
|
-
</div>
|
|
30
|
-
<div v-else style="width: 120px; word-break: break-all">
|
|
31
|
-
{{ fileInfo.fileName }}
|
|
50
|
+
</div> -->
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
32
53
|
</div>
|
|
33
54
|
</div>
|
|
34
55
|
</div>
|
|
@@ -37,7 +58,7 @@
|
|
|
37
58
|
<el-dialog :title="title" :visible.sync="open" width="550px" append-to-body>
|
|
38
59
|
<el-form ref="form" :model="form" label-width="100px">
|
|
39
60
|
<el-form-item :label="$t('contractDetail.fileNmae')" prop="fileName">
|
|
40
|
-
<el-input v-model="form.fileName" placeholder="
|
|
61
|
+
<el-input v-model="form.fileName" :placeholder="$t('contractDetail.Please_enter_a_file_name')" />
|
|
41
62
|
</el-form-item>
|
|
42
63
|
</el-form>
|
|
43
64
|
<div slot="footer" class="dialog-footer">
|
|
@@ -60,7 +81,9 @@
|
|
|
60
81
|
</template>
|
|
61
82
|
<script>
|
|
62
83
|
import { downloadFile } from '../../../utils/request'
|
|
63
|
-
import { getBizFileInfo, delBizFileInfo, addBizFileInfo, updateBizFileInfo } from '../../../api/biz/bizFileInfo'
|
|
84
|
+
import { getBizFileInfo, delBizFileInfo, addBizFileInfo, updateBizFileInfo, shipmentWithDrawDraftBill } from '../../../api/biz/bizFileInfo'
|
|
85
|
+
import { isImage, isPdf } from '../../../utils/index';
|
|
86
|
+
|
|
64
87
|
export default {
|
|
65
88
|
name: 'FileShow',
|
|
66
89
|
props: {
|
|
@@ -75,14 +98,26 @@ export default {
|
|
|
75
98
|
}
|
|
76
99
|
}
|
|
77
100
|
},
|
|
101
|
+
selectFileListProp: {
|
|
102
|
+
type: Array,
|
|
103
|
+
default: () => {
|
|
104
|
+
return []
|
|
105
|
+
}
|
|
106
|
+
},
|
|
78
107
|
//是否隐藏操作
|
|
79
108
|
hiddenOperation: {
|
|
80
109
|
type: Boolean,
|
|
81
|
-
default: false
|
|
82
|
-
}
|
|
110
|
+
default: false,
|
|
111
|
+
},
|
|
112
|
+
type: {
|
|
113
|
+
type: String,
|
|
114
|
+
default: '',
|
|
115
|
+
},
|
|
83
116
|
},
|
|
84
117
|
data() {
|
|
85
118
|
return {
|
|
119
|
+
isImage,
|
|
120
|
+
isPdf,
|
|
86
121
|
checkedIds: [],
|
|
87
122
|
//是否显示上传弹出层
|
|
88
123
|
uploadOpen: false,
|
|
@@ -93,9 +128,10 @@ export default {
|
|
|
93
128
|
// 表单参数
|
|
94
129
|
form: {},
|
|
95
130
|
//上传表单
|
|
96
|
-
uploadForm: {}
|
|
131
|
+
uploadForm: {},
|
|
132
|
+
checkFlag: false
|
|
97
133
|
}
|
|
98
|
-
},
|
|
134
|
+
},
|
|
99
135
|
computed: {
|
|
100
136
|
fileId() {
|
|
101
137
|
return this.fileInfo.fileId
|
|
@@ -172,8 +208,15 @@ export default {
|
|
|
172
208
|
return delBizFileInfo(fileIds)
|
|
173
209
|
})
|
|
174
210
|
.then(() => {
|
|
175
|
-
|
|
176
|
-
|
|
211
|
+
if(row.fileType == "draft_bill_of_lading") {
|
|
212
|
+
shipmentWithDrawDraftBill({shipmentId:row.linkId}).then(() => {
|
|
213
|
+
this.$emit('refresh')
|
|
214
|
+
this.$modal.msgSuccess('删除成功')
|
|
215
|
+
})
|
|
216
|
+
} else {
|
|
217
|
+
this.$emit('refresh')
|
|
218
|
+
this.$modal.msgSuccess('删除成功')
|
|
219
|
+
}
|
|
177
220
|
})
|
|
178
221
|
.catch(() => {})
|
|
179
222
|
},
|
|
@@ -207,26 +250,36 @@ export default {
|
|
|
207
250
|
},
|
|
208
251
|
handleCommand(command) {
|
|
209
252
|
switch (command) {
|
|
210
|
-
case
|
|
211
|
-
this.handleDelete(this.fileInfo)
|
|
212
|
-
break
|
|
213
|
-
case
|
|
214
|
-
this.handleUpdate(this.fileInfo)
|
|
215
|
-
break
|
|
216
|
-
case
|
|
217
|
-
this
|
|
218
|
-
break
|
|
253
|
+
case "delete":
|
|
254
|
+
this.handleDelete(this.fileInfo);
|
|
255
|
+
break;
|
|
256
|
+
case "rename":
|
|
257
|
+
this.handleUpdate(this.fileInfo);
|
|
258
|
+
break;
|
|
259
|
+
case "signContract":
|
|
260
|
+
this.$emit("signContract", this.fileInfo);
|
|
261
|
+
break;
|
|
262
|
+
case "deleteAndUpload":
|
|
263
|
+
this.handleDeleteAndUpload(this.fileInfo);
|
|
264
|
+
break;
|
|
219
265
|
default:
|
|
220
266
|
break
|
|
221
267
|
}
|
|
222
268
|
},
|
|
223
|
-
isImage(ext) {
|
|
224
|
-
return ['.jpg', '.jpeg', '.png', '.gif'].includes(ext)
|
|
225
|
-
},
|
|
226
269
|
/** 下载文件 */
|
|
227
270
|
handleDownload() {
|
|
228
271
|
// this.download(this.fileInfo.url, {}, this.fileInfo.fileName);
|
|
229
|
-
|
|
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
|
+
}
|
|
230
283
|
},
|
|
231
284
|
openFile(url) {
|
|
232
285
|
window.open(url)
|
|
@@ -234,20 +287,36 @@ export default {
|
|
|
234
287
|
handleCheck(val) {
|
|
235
288
|
if (val) {
|
|
236
289
|
this.$emit('checked', this.fileInfo)
|
|
290
|
+
this.checkFlag = true
|
|
237
291
|
} else {
|
|
238
292
|
this.$emit('uncheck', this.fileInfo.fileId)
|
|
293
|
+
this.checkFlag = false
|
|
239
294
|
}
|
|
240
295
|
}
|
|
296
|
+
},
|
|
297
|
+
watch: {
|
|
298
|
+
selectFileListProp: {
|
|
299
|
+
handler(val) {
|
|
300
|
+
if(val == 0) {
|
|
301
|
+
this.checkFlag = false
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
immediate: true,
|
|
305
|
+
deep: true
|
|
306
|
+
}
|
|
241
307
|
}
|
|
242
308
|
}
|
|
243
309
|
</script>
|
|
244
310
|
<style lang="scss" scoped>
|
|
245
311
|
.file-info {
|
|
246
|
-
width:
|
|
312
|
+
min-width: 450px;
|
|
247
313
|
display: flex;
|
|
248
314
|
// border: 1px solid red;
|
|
249
315
|
.main {
|
|
250
316
|
display: flex;
|
|
317
|
+
.checkbox-position {
|
|
318
|
+
margin-top: 10px;
|
|
319
|
+
}
|
|
251
320
|
.area {
|
|
252
321
|
margin-left: 5px;
|
|
253
322
|
width: 100%;
|
|
@@ -258,7 +327,7 @@ export default {
|
|
|
258
327
|
.area-pdf {
|
|
259
328
|
width: 38px;
|
|
260
329
|
height: 46px;
|
|
261
|
-
background: url(
|
|
330
|
+
background: url("../../../assets/images/pdf-new.png") no-repeat center;
|
|
262
331
|
background-size: contain;
|
|
263
332
|
}
|
|
264
333
|
.area-file {
|
|
@@ -267,6 +336,33 @@ export default {
|
|
|
267
336
|
background: url('../../../assets/images/file.png') no-repeat center;
|
|
268
337
|
background-size: contain;
|
|
269
338
|
}
|
|
339
|
+
.more-icon {
|
|
340
|
+
margin-left:10px;
|
|
341
|
+
cursor: pointer;
|
|
342
|
+
width: 20px;
|
|
343
|
+
height: 20px;
|
|
344
|
+
background: url("../../../assets/images/more.png") no-repeat center;
|
|
345
|
+
background-size: contain;
|
|
346
|
+
}
|
|
347
|
+
.preview-download-root {
|
|
348
|
+
display:flex;
|
|
349
|
+
margin-top:5px;
|
|
350
|
+
|
|
351
|
+
.preview-download {
|
|
352
|
+
cursor: pointer;
|
|
353
|
+
margin-left:8px;
|
|
354
|
+
min-width: 45px;
|
|
355
|
+
width:max-content;
|
|
356
|
+
padding: 0 10px;
|
|
357
|
+
height: 21px;
|
|
358
|
+
text-align: center;
|
|
359
|
+
line-height: 17px;
|
|
360
|
+
background: #FFFFFF;
|
|
361
|
+
border-radius: 11px;
|
|
362
|
+
font-size:12px;
|
|
363
|
+
border: 2px solid #D1D3D4;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
270
366
|
}
|
|
271
367
|
}
|
|
272
368
|
.filename {
|
|
@@ -269,7 +269,7 @@ export default {
|
|
|
269
269
|
.area-pdf {
|
|
270
270
|
width: 38px;
|
|
271
271
|
height: 46px;
|
|
272
|
-
background-image: url("../../../assets/images/pdf.png") no-repeat
|
|
272
|
+
background-image: url("../../../assets/images/pdf-new.png") no-repeat
|
|
273
273
|
center;
|
|
274
274
|
background-size: contain;
|
|
275
275
|
}
|