doctor-admin-components 1.0.11 → 1.0.12-beta.2

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
- "version": "1.0.11",
4
- "version1": "1.0.6-beta.4",
3
+ "version1": "1.0.11",
4
+ "version": "1.0.12-beta.2",
5
5
  "private": false,
6
6
  "main1": "lib/index.umd.min.js",
7
7
  "main": "packages/index.js",
package/packages/index.js CHANGED
@@ -6,23 +6,22 @@
6
6
  // Vue.use(ZpwComTest); // use install
7
7
  // Vue.config.productionTip = false;
8
8
 
9
- import Cookies from 'js-cookie'
10
- import router from './src/router'
11
- import Element from 'element-ui'
12
- import enLocale from 'element-ui/lib/locale/lang/en'
13
- import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
14
- import './src/assets/icons' // icon
15
- import './src/assets/styles/element-variables.scss'
16
-
17
- import './src/assets/styles/index.scss' // global css
18
- import './src/assets/styles/ruoyi.scss' // ruoyi css
19
- import plugins from './src/plugins'
9
+ import Cookies from "js-cookie";
10
+ import router from "./src/router";
11
+ import Element from "element-ui";
12
+ import enLocale from "element-ui/lib/locale/lang/en";
13
+ import zhLocale from "element-ui/lib/locale/lang/zh-CN";
14
+ import "./src/assets/icons"; // icon
15
+ import "./src/assets/styles/element-variables.scss";
16
+
17
+ import "./src/assets/styles/index.scss"; // global css
18
+ import "./src/assets/styles/ruoyi.scss"; // ruoyi css
19
+ import plugins from "./src/plugins";
20
20
 
21
21
  // import VueI18n from 'vue-i18n'
22
22
  // Vue.use(plugins)
23
23
  // Vue.use(VueI18n)
24
24
 
25
-
26
25
  import {
27
26
  parseTime,
28
27
  resetForm,
@@ -31,59 +30,54 @@ import {
31
30
  selectDictLabels,
32
31
  handleTree,
33
32
  utc2local,
34
- removeMarketContent
33
+ removeMarketContent,
35
34
  } from "./src/utils/ruoyi";
36
35
 
37
- import {
38
- getDicts
39
- } from "./src/api/system/dict/data";
36
+ import { getDicts } from "./src/api/system/dict/data";
40
37
 
41
- import DictTag from './src/components/DictTag'
38
+ import DictTag from "./src/components/DictTag";
42
39
 
43
- import { download } from './src/utils/request'
44
- import moment from 'moment';
45
- import ImagePreview from "./src/components/ImagePreview"
46
- import ImageUpload from "./src/components/ImageUpload/aliyun"
40
+ import { download } from "./src/utils/request";
41
+ import moment from "moment";
42
+ import ImagePreview from "./src/components/ImagePreview";
43
+ import ImageUpload from "./src/components/ImageUpload/aliyun";
47
44
 
48
- import DictData from './src/components/DictData'
45
+ import DictData from "./src/components/DictData";
49
46
 
50
47
  // 导入button组件
51
- import XButton from './Button'
52
- import {
53
- Claim,
54
- ContractTracingDetail
55
- } from "./src";
56
- import locale from 'element-ui/src/locale';
48
+ import XButton from "./Button";
49
+ import { Claim, ContractTracingDetail, PurchaseInvoiceUpload } from "./src";
50
+ import locale from "element-ui/src/locale";
57
51
 
58
52
  // 组件列表
59
53
  const components = [
60
54
  XButton,
61
55
  Claim,
62
- ContractTracingDetail
63
- ]
64
-
56
+ ContractTracingDetail,
57
+ PurchaseInvoiceUpload,
58
+ ];
65
59
 
66
60
  // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册
67
61
  const install = function (Vue, options) {
68
- console.log('---options', options);
69
- Vue.use(plugins)
62
+ console.log("---options", options);
63
+ Vue.use(plugins);
70
64
  // Vue.use(VueI18n)
71
- Vue.prototype.getDicts = getDicts
72
- Vue.prototype.parseTime = parseTime
73
- Vue.prototype.resetForm = resetForm
74
- Vue.prototype.addDateRange = addDateRange
75
- Vue.prototype.selectDictLabel = selectDictLabel
76
- Vue.prototype.selectDictLabels = selectDictLabels
77
- Vue.prototype.download = download
78
- Vue.prototype.handleTree = handleTree
79
- Vue.prototype.utc2local = utc2local
80
- Vue.prototype.removeMarketContent = removeMarketContent
65
+ Vue.prototype.getDicts = getDicts;
66
+ Vue.prototype.parseTime = parseTime;
67
+ Vue.prototype.resetForm = resetForm;
68
+ Vue.prototype.addDateRange = addDateRange;
69
+ Vue.prototype.selectDictLabel = selectDictLabel;
70
+ Vue.prototype.selectDictLabels = selectDictLabels;
71
+ Vue.prototype.download = download;
72
+ Vue.prototype.handleTree = handleTree;
73
+ Vue.prototype.utc2local = utc2local;
74
+ Vue.prototype.removeMarketContent = removeMarketContent;
81
75
  Vue.prototype.$moment = moment;
82
- Vue.component('ImagePreview', ImagePreview)
83
- Vue.component('ImageUpload', ImageUpload)
84
- Vue.component('DictTag', DictTag)
76
+ Vue.component("ImagePreview", ImagePreview);
77
+ Vue.component("ImageUpload", ImageUpload);
78
+ Vue.component("DictTag", DictTag);
85
79
 
86
- DictData.install(Vue)
80
+ DictData.install(Vue);
87
81
 
88
82
  // 字典数据组件
89
83
  // const lang = options?.lang || Cookies.get('lang') || localStorage.getItem('lang') || (navigator.language === 'zh-CN' ? 'zh' : 'en') || 'en'
@@ -95,7 +89,7 @@ const install = function (Vue, options) {
95
89
  // 'en': require('./src/lang/en.json')
96
90
  // }
97
91
  // })
98
-
92
+
99
93
  // Vue.use(Element, {
100
94
  // enLocale,
101
95
  // zhLocale
@@ -103,20 +97,20 @@ const install = function (Vue, options) {
103
97
 
104
98
  // locale.use(lang);
105
99
  // locale.i18n(lang);
106
-
100
+
107
101
  // new Vue({
108
102
  // i18n,
109
103
  // }).$mount('#contract-detail')
110
104
 
111
105
  // 判断是否安装
112
- if (install.installed) return
106
+ if (install.installed) return;
113
107
  // 遍历注册全局组件
114
- components.map(component => Vue.component(component.name, component))
115
- }
108
+ components.map((component) => Vue.component(component.name, component));
109
+ };
116
110
 
117
111
  // 判断是否是直接引入文件
118
- if (typeof window !== 'undefined' && window.Vue) {
119
- install(window.Vue)
112
+ if (typeof window !== "undefined" && window.Vue) {
113
+ install(window.Vue);
120
114
  }
121
115
  export default {
122
116
  // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
@@ -124,5 +118,6 @@ export default {
124
118
  // 以下是具体的组件列表
125
119
  // XButton,
126
120
  ContractTracingDetail,
127
- Claim
128
- }
121
+ Claim,
122
+ PurchaseInvoiceUpload,
123
+ };
@@ -26,6 +26,14 @@ export function getBizContract(id) {
26
26
  });
27
27
  }
28
28
 
29
+ // 查询合同详细
30
+ export function getSaleContractInfo(dealId) {
31
+ return request({
32
+ url: "/biz/contract/saleContract/" + dealId,
33
+ method: "get",
34
+ });
35
+ }
36
+
29
37
  // 查询合同文件详细
30
38
  export function getBizContractFileInfo(id) {
31
39
  return request({
@@ -1,161 +1,166 @@
1
- import request from '../../utils/request'
1
+ import request from "../../utils/request";
2
2
 
3
3
  // 查询发票列表
4
4
  export function listBizInvoice(query) {
5
5
  return request({
6
- url: '/biz/invoice/list',
7
- method: 'get',
8
- params: query
9
- })
6
+ url: "/biz/invoice/list",
7
+ method: "get",
8
+ params: query,
9
+ });
10
10
  }
11
11
 
12
12
  // 查询有未收款的发票
13
13
  export function queryReceivableList(query) {
14
14
  return request({
15
- url: '/biz/invoice/receivable/list',
16
- method: 'get',
17
- params: query
18
- })
15
+ url: "/biz/invoice/receivable/list",
16
+ method: "get",
17
+ params: query,
18
+ });
19
19
  }
20
20
 
21
21
  // 资金预测
22
22
  export function queryCashForecastList(query) {
23
23
  return request({
24
- url: '/biz/invoice/cashForecast/list',
25
- method: 'get',
26
- params: query
27
- })
24
+ url: "/biz/invoice/cashForecast/list",
25
+ method: "get",
26
+ params: query,
27
+ });
28
28
  }
29
29
 
30
30
  // 查询发票详细
31
31
  export function getBizInvoice(id) {
32
32
  return request({
33
- url: '/biz/invoice/' + id,
34
- method: 'get'
35
- })
33
+ url: "/biz/invoice/" + id,
34
+ method: "get",
35
+ });
36
36
  }
37
37
 
38
-
39
38
  // 获得信息与装运
40
39
  export function getInfoWithShipment(id) {
41
40
  return request({
42
- url: '/biz/invoice/withShipment/' + id,
43
- method: 'get'
44
- })
41
+ url: "/biz/invoice/withShipment/" + id,
42
+ method: "get",
43
+ });
45
44
  }
46
45
 
47
46
  // 获取采购合同相关的发票
48
47
  export function getInvoiceListByContractId(id) {
49
48
  return request({
50
- url: '/biz/invoice/getInvoiceListByContractId/' + id,
51
- method: 'get'
52
- })
49
+ url: "/biz/invoice/getInvoiceListByContractId/" + id,
50
+ method: "get",
51
+ });
53
52
  }
54
53
 
55
-
56
54
  // 获取采购合同 装运 相关的发票
57
55
  export function getInvoiceListByShipmentId(shipmentId) {
58
56
  return request({
59
- url: '/biz/invoice/getInvoiceList/' + shipmentId,
60
- method: 'get'
61
- })
57
+ url: "/biz/invoice/getInvoiceList/" + shipmentId,
58
+ method: "get",
59
+ });
62
60
  }
63
61
 
64
62
  // 新增发票
65
63
  export function addBizInvoice(data) {
66
64
  return request({
67
- url: '/biz/invoice',
68
- method: 'post',
69
- data: data
70
- })
65
+ url: "/biz/invoice",
66
+ method: "post",
67
+ data: data,
68
+ });
71
69
  }
72
70
 
73
71
  // 修改发票
74
72
  export function updateBizInvoice(data) {
75
73
  return request({
76
- url: '/biz/invoice',
77
- method: 'put',
78
- data: data
79
- })
74
+ url: "/biz/invoice",
75
+ method: "put",
76
+ data: data,
77
+ });
80
78
  }
81
79
 
82
80
  // 点价发票
83
81
  export function pointPrice(data) {
84
82
  return request({
85
- url: '/biz/invoice/pointPrice',
86
- method: 'put',
87
- data: data
88
- })
83
+ url: "/biz/invoice/pointPrice",
84
+ method: "put",
85
+ data: data,
86
+ });
89
87
  }
90
88
 
91
89
  // 删除发票
92
90
  export function delBizInvoice(id) {
93
91
  return request({
94
- url: '/biz/invoice/' + id,
95
- method: 'delete'
96
- })
92
+ url: "/biz/invoice/" + id,
93
+ method: "delete",
94
+ });
97
95
  }
98
96
 
99
-
100
- //
97
+ //
101
98
  export function fullCollectionOrPayment(id) {
102
99
  return request({
103
- url: '/biz/invoice/financialStatus/' + id,
104
- method: 'delete'
105
- })
100
+ url: "/biz/invoice/financialStatus/" + id,
101
+ method: "delete",
102
+ });
106
103
  }
107
104
 
108
105
  // 导出发票
109
106
  export function exportBizInvoice(query) {
110
107
  return request({
111
- url: '/biz/invoice/export',
112
- method: 'get',
113
- params: query
114
- })
108
+ url: "/biz/invoice/export",
109
+ method: "get",
110
+ params: query,
111
+ });
115
112
  }
116
113
 
117
114
  // 查找定金发票,没有则生成一张
118
115
  export function getDepositInvoice(data) {
119
116
  return request({
120
- url: '/biz/invoice/getDepositInvoice',
121
- method: 'post',
122
- data: data
123
- })
117
+ url: "/biz/invoice/getDepositInvoice",
118
+ method: "post",
119
+ data: data,
120
+ });
124
121
  }
125
122
 
126
123
  // 根据合同ids生成发票
127
124
  export function generateByContractIds(data) {
128
125
  return request({
129
- url: '/biz/invoice/generateByContractIds',
130
- method: 'post',
131
- data: data
132
- })
126
+ url: "/biz/invoice/generateByContractIds",
127
+ method: "post",
128
+ data: data,
129
+ });
133
130
  }
134
131
 
135
132
  // 根据装运ids生成尾款发票
136
133
  export function generateFinalInvoiceByShipmentId(data) {
137
134
  return request({
138
- url: '/biz/invoice/generateFinalInvoiceByShipmentId',
139
- method: 'post',
140
- data: data
141
- })
135
+ url: "/biz/invoice/generateFinalInvoiceByShipmentId",
136
+ method: "post",
137
+ data: data,
138
+ });
142
139
  }
143
140
 
144
141
  // 上传发票
145
142
  export function uploadBizInvoice(data) {
146
143
  return request({
147
- url: '/biz/invoice/upload',
148
- method: 'post',
149
- data: data
150
- })
144
+ url: "/biz/invoice/upload",
145
+ method: "post",
146
+ data: data,
147
+ });
151
148
  }
152
149
 
153
-
154
150
  // 上传发票
155
151
  export function uploadByShipmentId(data) {
156
152
  return request({
157
- url: '/biz/invoice/uploadByShipmentId',
158
- method: 'post',
159
- data: data
160
- })
161
- }
153
+ url: "/biz/invoice/uploadByShipmentId",
154
+ method: "post",
155
+ data: data,
156
+ });
157
+ }
158
+
159
+ // 上传发票
160
+ export function uploadFinallyInvoice(data) {
161
+ return request({
162
+ url: "/biz/invoice/uploadFinallyInvoice",
163
+ method: "post",
164
+ data: data,
165
+ });
166
+ }
@@ -0,0 +1,18 @@
1
+ /*
2
+ * @Author: zhangpengwei 15038779532@163.com
3
+ * @Date: 2023-08-30 15:11:18
4
+ * @LastEditors: zhangpengwei 15038779532@163.com
5
+ * @LastEditTime: 2023-08-30 15:12:17
6
+ * @FilePath: /doctor-admin-components/packages/src/api/biz/file.js
7
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
+ */
9
+ import request from '../../utils/request'
10
+
11
+ // 查询文件信息列表
12
+ export function v2Upload(data) {
13
+ return request({
14
+ url: '/v2/file/upload',
15
+ method: 'post',
16
+ data: data
17
+ })
18
+ }
@@ -46,13 +46,11 @@ export default {
46
46
  },
47
47
  ...mapGetters(["language"]),
48
48
  isChina() {
49
- console.log('this.language',this.language);
50
- return ["zh-CN", "zh-TW","zh"].includes(this.language);
49
+ return ["zh-CN", "zh-TW", "zh"].includes(this.language);
51
50
  },
52
51
  },
53
52
  methods: {
54
53
  getName(item) {
55
- console.log('item',item);
56
54
  return this.isChina ? item?.label : item?.raw?.dictLabelEn;
57
55
  },
58
56
  },