doctor-admin-components 1.0.14-beta.1 → 1.0.14-beta.10

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: zhangpengwei 15038779532@163.com
3
3
  * @Date: 2023-07-24 15:11:26
4
4
  * @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
5
- * @LastEditTime: 2024-06-11 12:25:48
5
+ * @LastEditTime: 2024-07-29 18:10:31
6
6
  * @FilePath: /doctor-admin-components/README.md
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE1
8
8
  -->
@@ -83,3 +83,8 @@ VDistpicker
83
83
  <VDistpicker :hideArea="true" @selected="onSelected" :province="placeholders.province" :city="placeholders.city"></VDistpicker>
84
84
 
85
85
  ```
86
+
87
+ https://npmmirror.com/package/doctor-admin-components/versions?
88
+
89
+
90
+ npm config set proxy http://127.0.0.1:7890
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.14-beta.1",
4
+ "version": "1.0.14-beta.10",
5
5
  "private": false,
6
6
  "main1": "lib/index.umd.min.js",
7
7
  "main": "packages/index.js",
package/packages/index.js CHANGED
@@ -21,7 +21,6 @@ import plugins from "./src/plugins";
21
21
  // import VueI18n from 'vue-i18n'
22
22
  // Vue.use(plugins)
23
23
  // Vue.use(VueI18n)
24
-
25
24
  import {
26
25
  parseTime,
27
26
  resetForm,
@@ -136,3 +136,23 @@ export function haveVoidShipment(contractId) {
136
136
  params: {}
137
137
  })
138
138
  }
139
+
140
+ // 保存草稿
141
+ export function saveDraft(data) {
142
+ return request({
143
+ url: '/biz/shipment/saveDraft',
144
+ method: 'post',
145
+ data
146
+ })
147
+ }
148
+
149
+ // 保存草稿
150
+ export function getDraft(contractId) {
151
+ return request({
152
+ url: '/biz/shipment/getDraft',
153
+ method: 'get',
154
+ params: {
155
+ contractId
156
+ }
157
+ })
158
+ }
@@ -0,0 +1,12 @@
1
+ export function CommonFormatNumber(input, bit) {
2
+ const num = Number(input);
3
+ if (isNaN(num)) {
4
+ return 'Invalid input'; // 输入不是有效数字时返回错误信息
5
+ }
6
+ if (!bit) {
7
+ bit = 3;
8
+ }
9
+ return parseFloat(num.toFixed(bit));
10
+ }
11
+
12
+