doctor-admin-components 1.0.13-beta.49 → 1.0.13-beta.50
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,3 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
3
|
+
* @Date: 2022-10-08 10:03:50
|
|
4
|
+
* @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
5
|
+
* @LastEditTime: 2024-04-12 14:41:50
|
|
6
|
+
* @FilePath: /doctor-admin-components 公共组件/packages/src/api/biz/bizFileInfo.js
|
|
7
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+
*/
|
|
1
9
|
import request from '../../utils/request'
|
|
2
10
|
|
|
3
11
|
// 查询文件信息列表
|
|
@@ -50,4 +58,12 @@ export function exportBizFileInfo(query) {
|
|
|
50
58
|
method: 'get',
|
|
51
59
|
params: query
|
|
52
60
|
})
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// 草稿提单撤回
|
|
64
|
+
export function shipmentWithDrawDraftBill({shipmentId}) {
|
|
65
|
+
return request({
|
|
66
|
+
url: `/biz/shipment/withdrawDraftBl/${shipmentId}`,
|
|
67
|
+
method: "get"
|
|
68
|
+
});
|
|
53
69
|
}
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
</template>
|
|
81
81
|
<script>
|
|
82
82
|
import { downloadFile } from '../../../utils/request'
|
|
83
|
-
import { getBizFileInfo, delBizFileInfo, addBizFileInfo, updateBizFileInfo } from '../../../api/biz/bizFileInfo'
|
|
83
|
+
import { getBizFileInfo, delBizFileInfo, addBizFileInfo, updateBizFileInfo, shipmentWithDrawDraftBill } from '../../../api/biz/bizFileInfo'
|
|
84
84
|
import { isImage, isPdf } from '../../../utils/index';
|
|
85
85
|
|
|
86
86
|
export default {
|
|
@@ -207,8 +207,15 @@ export default {
|
|
|
207
207
|
return delBizFileInfo(fileIds)
|
|
208
208
|
})
|
|
209
209
|
.then(() => {
|
|
210
|
-
|
|
211
|
-
|
|
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
|
+
}
|
|
212
219
|
})
|
|
213
220
|
.catch(() => {})
|
|
214
221
|
},
|