jufubao-base 1.0.302-beta2 → 1.0.302-beta4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.302-beta2",
3
+ "version": "1.0.302-beta4",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -189,7 +189,7 @@ import { getContainerPropsValue, gCPVal } from "@/utils/xd.base";
189
189
  import componentsMixins from "@/mixins/componentsMixins";
190
190
  import extsMixins from "@/mixins/extsMixins";
191
191
  import getServiceUrl from "@/common/getServiceUrl";
192
- import XdUnit from "../XdUnit/XdUnit.vue";
192
+ import XdUnit from "@/components/XdUnit/XdUnit.vue";
193
193
  export default {
194
194
  name: "JfbBaseInvoice",
195
195
  components: {
@@ -2,12 +2,10 @@
2
2
 
3
3
  module.exports = {
4
4
 
5
- getInvoiceByIdFilmSquate:{},
5
+ userInvoiceDetail: { "invoice_result": { "id": 0, "open_nnid": "", "partner_id": 0, "supplier_id": 0, "site_id": "", "user_id": 0, "issuer": "", "category": "", "category_name": "", "content_type": "", "content_type_name": "", "invoice_header": "", "invoice_header_type": "", "invoice_header_type_name": "", "invoice_amount": 1, "invoice_number": "", "phone_number": "", "email": "", "status": "N", "pay_order_id": "", "main_order_id": "", "scene": "", "supplier_fulfil_type": "", "file_info": "", "product_data": [], "open_user_id": "", "open_username": "", "comment": "", "apply_time": 0, "open_time": 0, "created_time": 0, "updated_time": 0, "issuer_name": "", "product_num": 0, "status_name": "未开票", "total_amount": 0, "channel_amount": 0, "error_info": "", "status_desc": "" }, "request_id": "80f312c6000ec59a" },
6
6
 
7
- updateInvoiceFilmPaiqiDate:{},
7
+ userInvoiceOptions: { "status_list": [{ "label": "未开票", "value": "N" }, { "label": "已开票", "value": "Y" }, { "label": "待开票", "value": "P" }], "category_list": [{ "label": "数电发票(普通发票)", "value": "normal" }], "content_type_list": [{ "label": "明细", "value": "detail" }], "invoice_header_type_list": [{ "label": "个人", "value": "person" }, { "label": "单位", "value": "company" }], "issuer_list": [{ "label": "供货商", "value": "supplier" }, { "label": "平台", "value": "platform" }], "request_id": "c989ca4688ac7ecb" },
8
8
 
9
- removeInvoiceFilmAddress:{},
10
-
11
- addInvoiceFilmcart:{},
9
+ userInvoiceSubmit:{},
12
10
 
13
11
  }
@@ -2,12 +2,8 @@
2
2
 
3
3
  module.exports = {
4
4
 
5
- getInvoiceByIdFilmSquate:{},
5
+ userInvoiceDetail: { "invoice_result": { "id": 8, "open_nnid": "Gymwql5D5WzlEFrqSZ233", "partner_id": 161, "supplier_id": 0, "site_id": "04c78d51890a18b8", "user_id": 5000358, "issuer": "platform", "category": "normal", "category_name": "数电发票(普通发票)", "content_type": "detail", "content_type_name": "", "invoice_header": "123", "invoice_header_type": "person", "invoice_header_type_name": "个人", "invoice_amount": 1, "invoice_number": "", "phone_number": "18888888888", "email": "163@163.com", "status": "Y", "pay_order_id": "781837433628017018", "main_order_id": "c781837426608848897", "scene": "offline", "supplier_fulfil_type": "wallet", "file_info": "[{\"uid\":1765158999985,\"url\":\"\\\/uploads\\\/20251208\\\/9a2a54219b56dca6ebd1fdd1fd5681b5.jpg\",\"name\":\"ceshi.jpg\",\"path\":\"\\\/\\\/sandbox-img.jufubao.cn\\\/uploads\\\/20251208\\\/9a2a54219b56dca6ebd1fdd1fd5681b5.jpg?v=1765159000689\",\"size\":841679,\"type\":\"image\\\/jpeg\",\"width\":1080,\"height\":1620,\"preview_url\":\"https:\\\/\\\/sandbox-private-file.jufubao.cn\\\/sandbox-img.jufubao.cn\\\/uploads\\\/20251208\\\/9a2a54219b56dca6ebd1fdd1fd5681b5.jpg%3Fv%3D1765159000689?Expires=1765244996&OSSAccessKeyId=LTAI5t5x3fSKzMHkbH54VFGi&Signature=x9%2Fvhu7y95Yo%2BmezI5pnYAP%2BczU%3D\"},{\"uid\":1765158999989,\"url\":\"\\\/uploads\\\/20251208\\\/0710b7c47859bfab774a43335378cbd4.jpeg\",\"name\":\"d5eb1020142d38771f897368ac3e577c.jpeg\",\"path\":\"\\\/\\\/sandbox-img.jufubao.cn\\\/uploads\\\/20251208\\\/0710b7c47859bfab774a43335378cbd4.jpeg?v=1765159000526\",\"size\":36934,\"type\":\"image\\\/jpeg\",\"width\":800,\"height\":800,\"preview_url\":\"https:\\\/\\\/sandbox-private-file.jufubao.cn\\\/sandbox-img.jufubao.cn\\\/uploads\\\/20251208\\\/0710b7c47859bfab774a43335378cbd4.jpeg%3Fv%3D1765159000526?Expires=1765244996&OSSAccessKeyId=LTAI5t5x3fSKzMHkbH54VFGi&Signature=xFXXhr%2BLeMiObcaUeHA91te6FUk%3D\"},{\"uid\":1765158999990,\"url\":\"\\\/uploads\\\/20251208\\\/45c20724c94a768ef22b196b0f720054.jpeg\",\"name\":\"d9cecdeeaab3c0d7a105417f2f01a1984767.jpeg\",\"path\":\"\\\/\\\/sandbox-img.jufubao.cn\\\/uploads\\\/20251208\\\/45c20724c94a768ef22b196b0f720054.jpeg?v=1765159000528\",\"size\":25981,\"type\":\"image\\\/jpeg\",\"width\":610,\"height\":488,\"preview_url\":\"https:\\\/\\\/sandbox-private-file.jufubao.cn\\\/sandbox-img.jufubao.cn\\\/uploads\\\/20251208\\\/45c20724c94a768ef22b196b0f720054.jpeg%3Fv%3D1765159000528?Expires=1765244996&OSSAccessKeyId=LTAI5t5x3fSKzMHkbH54VFGi&Signature=zDkZe%2FvJZjV1LdAE1417byZZWus%3D\"},{\"uid\":1765158999992,\"url\":\"\\\/uploads\\\/20251208\\\/f2a84bf4bc08805b775337223b1b1307.jpeg\",\"name\":\"f1a393f1c007477c1424fa19185447d4.jpeg\",\"path\":\"\\\/\\\/sandbox-img.jufubao.cn\\\/uploads\\\/20251208\\\/f2a84bf4bc08805b775337223b1b1307.jpeg?v=1765159000554\",\"size\":37881,\"type\":\"image\\\/jpeg\",\"width\":500,\"height\":647,\"preview_url\":\"https:\\\/\\\/sandbox-private-file.jufubao.cn\\\/sandbox-img.jufubao.cn\\\/uploads\\\/20251208\\\/f2a84bf4bc08805b775337223b1b1307.jpeg%3Fv%3D1765159000554?Expires=1765244996&OSSAccessKeyId=LTAI5t5x3fSKzMHkbH54VFGi&Signature=uUoAnINhVh0WzKGEvAb2NUzxis0%3D\"}]", "product_data": [], "open_user_id": "lichao", "open_username": "lichao", "comment": "", "apply_time": 1764923171, "open_time": 1765159004, "created_time": 1764923171, "updated_time": 1765159004, "issuer_name": "平台", "product_num": 1, "status_name": "已开票", "total_amount": 1, "channel_amount": 1, "error_info": "", "status_desc": "已开发票金额:¥0.01" }, "request_id": "2f2265fc4c01f34b" },
6
6
 
7
- updateInvoiceFilmPaiqiDate:{},
8
-
9
- removeInvoiceFilmAddress:{},
10
-
11
- addInvoiceFilmcart:{},
7
+ userInvoiceSend: { "email": "1212@163.com", "request_id": "a4b209365a869944" },
12
8
 
13
9
  }
@@ -102,5 +102,6 @@ module.exports = {
102
102
  "request_id": "6178d3499b91f274"
103
103
  },
104
104
  cancelBaseOrder:{"pay_order_id": "488003809474256896","request_id": "6178d3499b91f274"},
105
- deleteBaseOrder:{"pay_order_id": "488003809474256896","request_id": "6178d3499b91f274"},
105
+ deleteBaseOrder: { "pay_order_id": "488003809474256896", "request_id": "6178d3499b91f274" },
106
+ getCheckInvoice: { "partner_id": 0, "site_id": "", "user_id": 5000358, "is_allow_open": "Y", "error_reason": "", "open_nnid": "", "status": "N", "status_name": "未开票", "request_id": "420fc4fe050beb91" }
106
107
  }
@@ -1,24 +0,0 @@
1
- 'use strict';
2
- /**
3
- * @description 接口配置,
4
- * 在设置方法名字当时候,别忘记加上【模块名字】:Invoice
5
- * @type {*[]}
6
- */
7
- module.exports = [
8
- {
9
- //设置方法名字当别忘记加上【模块名字】:Invoice
10
- mapFnName: 'userInvoiceSubmit',
11
- title: '用户开票 - 申请开票',
12
- path: '/pay/v1/user-invoice/submit',
13
- isRule: false,
14
- data: {
15
- main_order_id: ['订单编号', 'Number', '必选'],
16
- pay_order_id: ['支付订单号', 'Number', '必选'],
17
- email: ['邮箱', 'Number', '必选'],
18
- invoice_header: ['发票抬头', 'Number', '必选'],
19
- invoice_header_type: ['发票抬头类型', 'Number', '必选'],
20
- },
21
- isConsole: true,
22
- disabled: true,
23
- },
24
- ];
@@ -1,21 +0,0 @@
1
- 'use strict';
2
- import Content from './cusAttr/content'
3
- import Style from './cusAttr/style'
4
- import Advanced from './cusAttr/advanced'
5
- /**
6
- * @description 当表单组件中有联动操作时候,使用方法进行返回
7
- */
8
- export default {
9
- style: [],
10
- content: (data, gValue, gColor, oldData = {}) => {
11
- return [
12
- ...Content(data, gValue, gColor, oldData),
13
- ...Style(data, gValue, gColor, oldData),
14
- ...Advanced(data, gValue, gColor, oldData),
15
-
16
- ].filter(i => i)
17
- },
18
- advanced: [
19
-
20
- ],
21
- };
@@ -1,208 +0,0 @@
1
- <template>
2
- <view
3
- class="jfb-base-invoice-confirm"
4
- @click="handleEditxSelect"
5
- :class="{ editx: isEditx && active }"
6
- >
7
- <!--#ifdef H5-->
8
- <view
9
- class="jfb-base-invoice-confirm__edit"
10
- :class="{ editx: isEditx && active }"
11
- v-if="isEditx && active"
12
- >
13
- <view class="jfb-base-invoice-confirm__edit-icon" @click="delEdit"
14
- >删除</view
15
- >
16
- </view>
17
- <!-- #endif -->
18
- <view
19
- class="jfb-base-invoice-confirm__body"
20
- :style="{ minHeight: layoutInfo.bodyMinHeightRpx + 'rpx' }"
21
- >
22
-
23
- </view>
24
- </view>
25
- </template>
26
-
27
- <script>
28
- import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
29
- import { jfbRootExec } from "@/utils/xd.event";
30
- import JfbBaseInvoiceConfirmMixin from "./JfbBaseInvoiceConfirmMixin";
31
- import { getContainerPropsValue } from "@/utils/xd.base";
32
- import componentsMixins from "@/mixins/componentsMixins";
33
- import extsMixins from "@/mixins/extsMixins";
34
- export default {
35
- name: "JfbBaseInvoiceConfirm",
36
- components: {
37
- XdFontIcon,
38
- },
39
- mixins: [componentsMixins, extsMixins, JfbBaseInvoiceConfirmMixin],
40
- data() {
41
- return {
42
- confirmPath: "",
43
- invoicePath: "",
44
- main_order_id: "",
45
- pay_order_id: "",
46
- invoice_amount: 0,
47
- invoice_header_type: "",
48
- invoice_header: "",
49
- phone_number: "",
50
- invoice_number: "",
51
- email: "",
52
- };
53
- },
54
- computed: {
55
- prod_bottom() {
56
- return this.fixedStyle({ height: 0, zIndex: 111 });
57
- },
58
- btnStyle() {
59
- return {
60
- color: this.mainColor,
61
- border: `1px solid ${this.mainColor}`,
62
- };
63
- },
64
- },
65
- watch: {
66
- container(value, oldValue) {
67
- if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
68
- if (this.$configProject["isPreview"]) this.init(value);
69
- },
70
- },
71
- created() {
72
- this.init(this.container);
73
-
74
- //todo
75
- },
76
- methods: {
77
- onJfbLoad(options) {
78
- this.main_order_id = options.main_order_id;
79
- this.pay_order_id = options.pay_order_id;
80
- this.invoice_amount = options.invoice_amount;
81
- this.invoice_header_type = options.invoice_header_type;
82
- this.invoice_header = options.invoice_header;
83
- this.phone_number = options.phone_number;
84
- this.invoice_number = options.invoice_number;
85
- this.email = options.email;
86
- // jfbRootExec('baiduUserLogin', {
87
- // vm: this,// data: {
88
- // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
89
- // }
90
- // }).then().catch()
91
- },
92
- /**
93
- * @description 监听事件变化
94
- * @param container {object} 业务组件对象自己
95
- */
96
- init(container) {
97
- this.confirmPath = getContainerPropsValue(
98
- container,
99
- "content.confirmPath",
100
- { value: "" }
101
- ).value;
102
- this.invoicePath = getContainerPropsValue(
103
- container,
104
- "content.invoicePath",
105
- { value: "" }
106
- ).value;
107
- },
108
- handleConfirm() {
109
- //调用确认提交接口并跳转详情页面
110
- jfbRootExec("userInvoiceSubmit", {
111
- vm: this,
112
- data: {
113
- main_order_id: this.main_order_id,
114
- pay_order_id: this.pay_order_id,
115
- email: this.email,
116
- invoice_header_type: this.invoice_header_type,
117
- invoice_header: this.invoice_header,
118
- phone_number: this.phone_number,
119
- invoice_number: this.invoice_number,
120
- },
121
- }).then((res) => {
122
- let params = {
123
- main_order_id: this.main_order_id,
124
- pay_order_id: this.pay_order_id,
125
- };
126
- params = this.convertObjToQueryString(params);
127
- params = this.$xdUniHelper.navigateTo({
128
- url: `${this.detailPath}?${params}`,
129
- });
130
- });
131
- },
132
- handleBack() {
133
- //返回修改页面
134
- this.$xdUniHelper.navigateBack();
135
- // this.$xdUniHelper.navigateTo({
136
- // url: `${this.invoicePath}?main_order_id=${this.main_order_id}&pay_order_id=${this.pay_order_id}`,
137
- // });
138
- },
139
- onJfbScroll(options) {
140
- console.log("event.onJfbScroll", options);
141
- },
142
- onJfbReachBottom(options) {
143
- console.log("event.onJfbReachBottom", options);
144
- },
145
- onJfbShow(options) {
146
- console.log("event.onJfbShow", options);
147
- },
148
- onJfbHide(options) {
149
- console.log("event.onJfbHide", options);
150
- },
151
- onJfbBack(options) {
152
- console.log("event.onJfbBack", options);
153
- },
154
- onJfbUpdate(...data) {
155
- console.log("event.onJfbUpdate", data);
156
- },
157
- onJfbCustomEvent(options) {
158
- console.log("event.onJfbReachBottom", options);
159
- },
160
- },
161
- };
162
- </script>
163
-
164
- <style scoped lang="less">
165
- @import "./JfbBaseInvoiceConfirmLess.less";
166
-
167
- .jfb-base-invoice-confirm {
168
- &__body {
169
- &-content {
170
- padding: 24rpx;
171
- border-radius: 16rpx;
172
- &-item {
173
- background: #fff;
174
- border-radius: 8rpx;
175
- &-info {
176
- padding: 20rpx 48rpx;
177
- display: flex;
178
- justify-content: space-between;
179
- align-items: center;
180
- color: #333333;
181
- font-size: 28rpx;
182
- border-bottom: 2rpx solid #f7f7f7;
183
- }
184
- }
185
- }
186
- .fixe_bottom {
187
- display: flex;
188
- align-items: center;
189
- justify-content: space-around;
190
- height: unit(100, rpx);
191
- padding: 0 unit(40, rpx);
192
- flex-flow: nowrap;
193
- background: #fff;
194
- box-shadow: 0 0 unit(16, rpx) rgba(0, 0, 0, 0.05);
195
- .flex_l {
196
- display: flex;
197
- align-items: center;
198
- font-size: unit(32, rpx);
199
- }
200
-
201
- & > view {
202
- flex: 1;
203
- padding: 0 unit(15, rpx);
204
- }
205
- }
206
- }
207
- }
208
- </style>
@@ -1,79 +0,0 @@
1
- /**
2
- * @desc 获取绝对路径完整地址
3
- * @param @path
4
- **/
5
- //例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
6
- @basePath: 'business/';
7
- @doMain: '//sandbox-img.jufubao.cn/';
8
-
9
- .getBusinessImageUrl(@path, @size: 'size8') {
10
- @url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
11
- background-image: url(@url);
12
- }
13
-
14
- //start
15
- .jfb-base-invoice-confirm {
16
- box-sizing: border-box;
17
-
18
- &__body{
19
- position: relative;
20
- overflow: hidden;
21
- z-index: 2
22
- }
23
-
24
- &.editx,&.editx:hover {
25
- position: relative;
26
- min-height: unit(100, rpx);
27
- z-index: 3;
28
- &::after {
29
- border: 2rpx dashed blue;
30
- content: " ";
31
- position: absolute;
32
- top:0;
33
- left:0;
34
- bottom:0;
35
- right:0;
36
- z-index: 4;
37
- cursor: pointer;
38
- }
39
-
40
- }
41
-
42
-
43
- &__edit {
44
- cursor: pointer;
45
- position: absolute;
46
- right: unit(0, rpx);
47
- top: unit(-52, rpx);
48
- height: unit(50, rpx);
49
- line-height: unit(50, rpx);
50
- display: flex;
51
- justify-content: center;
52
- align-items: center;
53
- background: rgba(0, 0, 0, .6);
54
- border-radius: unit(10, rpx);
55
- box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
56
- color: #fff;
57
- font-size: unit(22, rpx);
58
-
59
- &-icon{
60
- padding: 0 unit(20, rpx);
61
- }
62
-
63
- &.editx {
64
- box-sizing: border-box;
65
-
66
- }
67
- }
68
- }
69
- //end
70
-
71
-
72
- /**notPreview**/
73
- .jfb-base-invoice-confirm {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
78
- }
79
- /**endNotPreview**/
@@ -1,30 +0,0 @@
1
- 'use strict';
2
-
3
-
4
- //@AttrImport
5
- import Attr from "./Attr";
6
- //@EndAttrImport
7
-
8
-
9
- export default {
10
- data() {
11
- return {
12
- //#ifdef H5
13
-
14
- //@AttrData
15
- Attr:{}, //对外开发编辑属性
16
- //@EndAttrData
17
-
18
- // #endif
19
- cssRoot: 'jfb-base-invoice-confirm'
20
- }
21
- },
22
- created() {
23
-
24
- //@AttrDataCreated
25
- this.Attr = this.$xdUniHelper.customClone(Attr);
26
- //@EndAttrDataCreated
27
-
28
-
29
- },
30
- }
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
-
5
- getInvoiceByIdFilmSquate:{},
6
-
7
- updateInvoiceFilmPaiqiDate:{},
8
-
9
- removeInvoiceFilmAddress:{},
10
-
11
- addInvoiceFilmcart:{},
12
-
13
- }
@@ -1,33 +0,0 @@
1
- import {
2
- dataVal,
3
- } from "@/utils/AttrTools";
4
- export default (data, gValue, gColor, oldData = {}) => {
5
- return [
6
- {
7
- label: '开票详情',
8
- ele: 'xd-select-pages-path',
9
- valueKey: 'detailPath',
10
- placeholder: '请选择开票详情页面',
11
- value: data['detailPath'] || {},
12
- labelInline: true,
13
- setting: {
14
- router: XdBus.getParentApi('getPagesTree'),
15
- },
16
- className: 'input100',
17
- groupKey: 'advanced',
18
- },
19
- {
20
- label: '申请开票',
21
- ele: 'xd-select-pages-path',
22
- valueKey: 'invoicePath',
23
- placeholder: '请选择申请开票页面',
24
- value: data['invoicePath'] || {},
25
- labelInline: true,
26
- setting: {
27
- router: XdBus.getParentApi('getPagesTree'),
28
- },
29
- className: 'input100',
30
- groupKey: 'advanced',
31
- },
32
- ].filter(i => i);
33
- }
@@ -1,12 +0,0 @@
1
- 'use strict';
2
- import {
3
- dataVal,
4
- statusDataVal,
5
- statusShow,
6
- customVal,
7
- getRemoteOptions
8
- } from "@/utils/AttrTools";
9
-
10
- export default (data, gValue, gColor, oldData = {}) => {
11
- return [].filter(i => i);
12
- }
@@ -1,12 +0,0 @@
1
- import {
2
- dataVal,
3
- statusDataVal,
4
- statusShow,
5
- cRaBorShadow,
6
- cusDisabled,
7
- getCustomAttr,
8
- TestCssInfo
9
- } from "@/utils/AttrTools";
10
- export default (data, gValue, gColor, oldData = {}) => {
11
- return [].filter(i => i);
12
- }