jufubao-base 1.0.302-beta3 → 1.0.302-beta7
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 +1 -1
- package/src/components/JfbBaseInvoice/JfbBaseInvoice.vue +1 -1
- package/src/components/JfbBaseInvoice/Mock.js +3 -5
- package/src/components/JfbBaseInvoiceDetail/JfbBaseInvoiceDetail.vue +7 -1
- package/src/components/JfbBaseInvoiceDetail/Mock.js +2 -6
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +2 -3
- package/src/components/JfbBaseOrderDetail/Mock.js +2 -1
package/package.json
CHANGED
|
@@ -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 "@/components/XdUnit/XdUnit
|
|
192
|
+
import XdUnit from "@/components/XdUnit/XdUnit";
|
|
193
193
|
export default {
|
|
194
194
|
name: "JfbBaseInvoice",
|
|
195
195
|
components: {
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
|
|
5
|
-
|
|
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
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
addInvoiceFilmcart:{},
|
|
9
|
+
userInvoiceSubmit:{},
|
|
12
10
|
|
|
13
11
|
}
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
v-else-if="info.status === 'Y'"
|
|
37
37
|
class="jfb-base-invoice-detail__body-status-text"
|
|
38
38
|
>已开发票金额:<xd-unit
|
|
39
|
+
fontSize="28"
|
|
40
|
+
colorNew="#fff"
|
|
39
41
|
:isOld="false"
|
|
40
42
|
:price="info.invoice_amount"
|
|
41
43
|
></xd-unit
|
|
@@ -111,6 +113,7 @@
|
|
|
111
113
|
<image @click="handlePreview(index, item)" :src="item"></image>
|
|
112
114
|
</view>
|
|
113
115
|
</view>
|
|
116
|
+
<view :style="{height: layoutInfo.bottom + 'rpx'}"></view>
|
|
114
117
|
<view v-if="info.status === 'Y'" class="fixe_bottom" :style="prod_bottom">
|
|
115
118
|
<view :style="[bottomBtnWrapStyle]">
|
|
116
119
|
<XdButton
|
|
@@ -153,6 +156,7 @@
|
|
|
153
156
|
<script>
|
|
154
157
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
155
158
|
import XdDailog from "@/components/XdDailog/XdDailog";
|
|
159
|
+
import XdUnit from "@/components/XdUnit/XdUnit";
|
|
156
160
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
157
161
|
import JfbBaseInvoiceDetailMixin from "./JfbBaseInvoiceDetailMixin";
|
|
158
162
|
import { getContainerPropsValue, gCPVal } from "@/utils/xd.base";
|
|
@@ -164,6 +168,7 @@ export default {
|
|
|
164
168
|
components: {
|
|
165
169
|
XdFontIcon,
|
|
166
170
|
XdDailog,
|
|
171
|
+
XdUnit
|
|
167
172
|
},
|
|
168
173
|
mixins: [componentsMixins, extsMixins, JfbBaseInvoiceDetailMixin],
|
|
169
174
|
data() {
|
|
@@ -246,7 +251,7 @@ export default {
|
|
|
246
251
|
if (res.invoice_result.file_info) {
|
|
247
252
|
res.invoice_result.file_info = JSON.parse(res.invoice_result.file_info)
|
|
248
253
|
this.images= res.invoice_result.file_info.map(item=>{
|
|
249
|
-
return getServiceUrl(item.
|
|
254
|
+
return getServiceUrl(item.path,'size3')
|
|
250
255
|
})
|
|
251
256
|
}
|
|
252
257
|
this.info = res.invoice_result;
|
|
@@ -394,6 +399,7 @@ export default {
|
|
|
394
399
|
justify-content: center;
|
|
395
400
|
padding: 8rpx;
|
|
396
401
|
margin-right: 16rpx;
|
|
402
|
+
margin-bottom: 16rpx;
|
|
397
403
|
|
|
398
404
|
& > image {
|
|
399
405
|
width: 192rpx;
|
|
@@ -2,12 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
removeInvoiceFilmAddress:{},
|
|
10
|
-
|
|
11
|
-
addInvoiceFilmcart:{},
|
|
7
|
+
userInvoiceSend: { "email": "1212@163.com", "request_id": "a4b209365a869944" },
|
|
12
8
|
|
|
13
9
|
}
|
|
@@ -896,7 +896,7 @@
|
|
|
896
896
|
</view>
|
|
897
897
|
<view v-else-if="item.action === 'invoice'">
|
|
898
898
|
<xd-button
|
|
899
|
-
v-if="isShowInvoice && is_show_invoice==='Y'&&invoiceStatus==='
|
|
899
|
+
v-if="isShowInvoice && is_show_invoice==='Y'&&invoiceStatus==='P'"
|
|
900
900
|
size="small"
|
|
901
901
|
:type="item.type !== undefined ? item.type: 'primary'"
|
|
902
902
|
:radius="bottomBtnRadius + 'rpx'"
|
|
@@ -909,7 +909,7 @@
|
|
|
909
909
|
</view>
|
|
910
910
|
<view v-else-if="item.action === 'viewInvoice'">
|
|
911
911
|
<xd-button
|
|
912
|
-
v-if="isShowInvoice && is_show_invoice==='Y'&&invoiceStatus
|
|
912
|
+
v-if="isShowInvoice && is_show_invoice==='Y'&&invoiceStatus==='Y'"
|
|
913
913
|
size="small"
|
|
914
914
|
:type="item.type !== undefined ? item.type: 'primary'"
|
|
915
915
|
:radius="bottomBtnRadius + 'rpx'"
|
|
@@ -1668,7 +1668,6 @@ export default {
|
|
|
1668
1668
|
url: `${this.invoicePath}?main_order_id=${this.main_order_id}&pay_order_id=${this.info.pay_info.pay_order_id}`,
|
|
1669
1669
|
});
|
|
1670
1670
|
}if (item.action === "viewInvoice") {
|
|
1671
|
-
this.viewInvoicePath='/plus/invoice/detail'
|
|
1672
1671
|
this.$xdUniHelper.navigateTo({
|
|
1673
1672
|
url: `${this.viewInvoicePath}?main_order_id=${this.main_order_id}&pay_order_id=${this.info.pay_info.pay_order_id}`,
|
|
1674
1673
|
});
|
|
@@ -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
|
}
|