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