doctor-admin-components 1.0.13-beta.69 → 1.0.13-beta.70

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "doctor-admin-components",
3
3
  "version1": "1.0.11",
4
- "version": "1.0.13-beta.69",
4
+ "version": "1.0.13-beta.70",
5
5
  "private": false,
6
6
  "main1": "lib/index.umd.min.js",
7
7
  "main": "packages/index.js",
@@ -559,6 +559,7 @@
559
559
  <IMGPreviewCheckBox :ref="`container_packing_photo_${containerFile.containerId}`"
560
560
  :imgArr="containerFile.packingPhoto"
561
561
  :info="containerFile"
562
+ @refresh="handleRefresh"
562
563
  >
563
564
  <template>
564
565
  <contract-file-drag-upload v-show="channel !== 'official-website'" @upload="
@@ -2,7 +2,7 @@
2
2
  * @Author: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
3
3
  * @Date: 2024-02-26 10:03:01
4
4
  * @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
5
- * @LastEditTime: 2024-04-09 20:22:25
5
+ * @LastEditTime: 2024-05-08 15:22:56
6
6
  * @FilePath: /doctor-admin-components 公共组件/packages/src/views/biz/bizFileInfo/IMGPreviewCheckBox.vue
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
8
  -->
@@ -25,6 +25,7 @@
25
25
  <i class="el-checkbox__inner"></i>
26
26
  </i>
27
27
  <i @click.stop="downloadSingleFile(fit)" class="el-icon-download download-icon"/>
28
+ <i @click.stop="delteFile(fit.fileId)" class="el-icon-close download-delete"/>
28
29
  </div>
29
30
  <div class="billOfLadingNo-more" @click.stop="openFun" v-if="imgList && imgList.length > 7">
30
31
  <i v-if="open" class="el-icon-caret-top"></i>
@@ -32,6 +33,7 @@
32
33
  </div>
33
34
  </div>
34
35
  <div class="batch-download" v-show="showDownloadIcon" @click.stop="downLoadFile">批量下载</div>
36
+ <div class="batch-download batch-delete" v-show="showDownloadIcon" @click.stop="deleteAll">批量删除</div>
35
37
  </div>
36
38
  </template>
37
39
 
@@ -40,6 +42,8 @@ import JSZip from 'jszip';
40
42
  import { saveAs } from 'file-saver';
41
43
  import { isImage, isVideo, isDoc, isPdf, isZip, isXls, isPpt } from '../../../../utils/index';
42
44
  import { Loading } from 'element-ui';
45
+ import { delBizFileInfo } from '../../../../api/biz/bizFileInfo';
46
+
43
47
 
44
48
  export default {
45
49
  name: 'IMGPreviewCheckBox',
@@ -69,6 +73,12 @@ export default {
69
73
  },
70
74
 
71
75
  methods: {
76
+ delteFile(fileId) {
77
+ delBizFileInfo(fileId).then(() => {
78
+ this.$message.success('删除成功')
79
+ this.$emit('refresh')
80
+ })
81
+ },
72
82
  previewFile(file) {
73
83
  if (!(isImage(file.url) || isVideo(file.url))) {
74
84
  window.open(file.url);
@@ -153,6 +163,13 @@ export default {
153
163
  }
154
164
  this.cancelAll1()
155
165
  },
166
+ async deleteAll () {
167
+ let files = this.imgList.filter(item => item.checked)
168
+ files.length && await delBizFileInfo(files.map(item => item.fileId)).then(() => {
169
+ this.$message.success('删除成功')
170
+ this.$emit('refresh')
171
+ })
172
+ },
156
173
  openFun () {
157
174
  this.open = !this.open
158
175
  },
@@ -182,7 +199,8 @@ export default {
182
199
  let coverUrl = this.othersFile(item.url)
183
200
  this.imgList.push({
184
201
  url: item.url,
185
- checked: false
202
+ checked: false,
203
+ fileId: item.fileId
186
204
  });
187
205
  this.srcList.push(coverUrl);
188
206
  });
@@ -246,6 +264,13 @@ export default {
246
264
  background-color: #fff;
247
265
  cursor: pointer;
248
266
  }
267
+ .download-delete {
268
+ position: absolute;
269
+ top:1px;
270
+ right:1px;
271
+ background-color: #fff;
272
+ cursor: pointer;
273
+ }
249
274
 
250
275
  .billOfLadingNo-more {
251
276
  width:20px;
@@ -275,6 +300,9 @@ export default {
275
300
  cursor: pointer;
276
301
  font-size:12px;
277
302
  }
303
+ .batch-delete {
304
+ left: 710px;
305
+ }
278
306
  }
279
307
 
280
308
  </style>
@@ -117,9 +117,11 @@
117
117
  <div v-else>{{ contract.otherPaymentTerm }}</div>
118
118
  </el-descriptions-item>
119
119
  <el-descriptions-item label="Price Fixing Option">
120
- {{ contract.livePriceDays }} Days {{ contract.livePriceForm }} cargo arrives at POD in
121
- {{ contract.livePriceUsertype }}
122
- {{ contract.livePriceType }}'s option
120
+ <div v-if="contract.livericeSwitch">
121
+ {{ contract.livePriceDays }} Days {{ contract.livePriceForm }} cargo arrives at POD in
122
+ {{ contract.livePriceUsertype }}
123
+ {{ contract.livePriceType }}'s option
124
+ </div>
123
125
  </el-descriptions-item>
124
126
 
125
127
  <el-descriptions-item label="Origin Country/Region">{{ contract.originCountry }}</el-descriptions-item>
@@ -2,7 +2,7 @@
2
2
  * @Author: zhangpengwei 15038779532@163.com
3
3
  * @Date: 2023-07-20 17:13:54
4
4
  * @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
5
- * @LastEditTime: 2024-04-19 18:10:17
5
+ * @LastEditTime: 2024-05-08 14:21:04
6
6
  * @FilePath: /recycle-vue-ui再生博士后台管理/src/views/biz/contractTracing/contractTracingDetail.vue
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
8
  -->