@nstc-business/tbm 1.0.8 → 1.0.9
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 +80 -81
- package/src/components/invoiceDetail/index.vue +208 -153
- package/src/components/invoiceDetail/invoiceLog.vue +288 -285
- package/src/components/invoiceDetail/invoiceTemplateDetail.vue +100 -99
- package/src/components/invoiceDetail/occupationLog.vue +298 -297
- package/src/components/invoiceDetail/quotaInfor.vue +506 -488
- package/src/components/invoiceDetail/subComponents/inspectionDialog.vue +108 -0
- package/src/components/invoiceDetail/subComponents/memberSelectMultiple.vue +162 -162
- package/src/components/test/index.js +8 -8
- package/src/components/test/src/index.vue +38 -28
- package/src/index.js +24 -24
package/package.json
CHANGED
|
@@ -1,81 +1,80 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@nstc-business/tbm",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"main": "src/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"serve": "vue-cli-service serve",
|
|
8
|
-
"test": "vue-cli-service serve --test",
|
|
9
|
-
"deadcode": "vue-cli-service serve --seecode",
|
|
10
|
-
"analy": "vue-cli-service build --analy",
|
|
11
|
-
"getI18n": "node ./node_modules/nstc-get-i18n",
|
|
12
|
-
"format": "prettier --write \"./**/*.{html,vue,ts,js,json,md}\"",
|
|
13
|
-
"build": "vue-cli-service build"
|
|
14
|
-
},
|
|
15
|
-
"publishConfig": {
|
|
16
|
-
"access": "public"
|
|
17
|
-
},
|
|
18
|
-
"dependencies": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"@babel/plugin-
|
|
40
|
-
"@
|
|
41
|
-
"@vue/cli-plugin-
|
|
42
|
-
"@vue/cli-
|
|
43
|
-
"@vue/
|
|
44
|
-
"
|
|
45
|
-
"babel-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"nstc-
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"webpack": "^
|
|
59
|
-
"webpack-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@nstc-business/tbm",
|
|
3
|
+
"version": "1.0.9",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"serve": "vue-cli-service serve",
|
|
8
|
+
"test": "vue-cli-service serve --test",
|
|
9
|
+
"deadcode": "vue-cli-service serve --seecode",
|
|
10
|
+
"analy": "vue-cli-service build --analy",
|
|
11
|
+
"getI18n": "node ./node_modules/nstc-get-i18n",
|
|
12
|
+
"format": "prettier --write \"./**/*.{html,vue,ts,js,json,md}\"",
|
|
13
|
+
"build": "vue-cli-service build"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"core-js": "^3.6.5",
|
|
20
|
+
"dayjs": "^1.10.7",
|
|
21
|
+
"el-table-draggable": "^1.4.4",
|
|
22
|
+
"qrcode": "^1.5.0",
|
|
23
|
+
"resize-detector": "^0.3.0",
|
|
24
|
+
"vue": "^2.6.11",
|
|
25
|
+
"vue-router": "^3.5.2",
|
|
26
|
+
"vuedraggable": "^2.24.3",
|
|
27
|
+
"vuex": "^3.6.2"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"src/components",
|
|
31
|
+
"src/index.js"
|
|
32
|
+
],
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"axios": "^0.21.4",
|
|
35
|
+
"element-ui": "^2.15.6",
|
|
36
|
+
"vxe-table": "^3.6.17",
|
|
37
|
+
"n20-common-lib": "2.7.57",
|
|
38
|
+
"@babel/plugin-proposal-optional-chaining": "^7.14.5",
|
|
39
|
+
"@babel/plugin-transform-flow-comments": "^7.14.5",
|
|
40
|
+
"@vue/cli-plugin-babel": "~4.5.0",
|
|
41
|
+
"@vue/cli-plugin-eslint": "~4.5.0",
|
|
42
|
+
"@vue/cli-service": "~4.5.0",
|
|
43
|
+
"@vue/compiler-sfc": "^3.0.0-rc.6",
|
|
44
|
+
"babel-eslint": "^10.1.0",
|
|
45
|
+
"babel-plugin-component": "^1.1.1",
|
|
46
|
+
"compression-webpack-plugin": "^3.1.0",
|
|
47
|
+
"copy-webpack-plugin": "^6.4.1",
|
|
48
|
+
"eslint": "^6.7.2",
|
|
49
|
+
"prettier": "^3.0.3",
|
|
50
|
+
"husky": "^8.0.0",
|
|
51
|
+
"eslint-plugin-vue": "^6.2.2",
|
|
52
|
+
"less": "^3.12.2",
|
|
53
|
+
"nstc-gitinfo": "^0.0.9",
|
|
54
|
+
"nstc-get-i18n": "^0.0.3",
|
|
55
|
+
"less-loader": "^7.0.0",
|
|
56
|
+
"vue-template-compiler": "^2.6.11",
|
|
57
|
+
"webpack": "^4.46.0",
|
|
58
|
+
"webpack-bundle-analyzer": "^3.9.0",
|
|
59
|
+
"webpack-deadcode-plugin": "^0.1.15"
|
|
60
|
+
},
|
|
61
|
+
"eslintConfig": {
|
|
62
|
+
"root": true,
|
|
63
|
+
"env": {
|
|
64
|
+
"node": true
|
|
65
|
+
},
|
|
66
|
+
"extends": [
|
|
67
|
+
"plugin:vue/essential",
|
|
68
|
+
"eslint:recommended"
|
|
69
|
+
],
|
|
70
|
+
"parserOptions": {
|
|
71
|
+
"parser": "babel-eslint"
|
|
72
|
+
},
|
|
73
|
+
"rules": {}
|
|
74
|
+
},
|
|
75
|
+
"browserslist": [
|
|
76
|
+
"> 1%",
|
|
77
|
+
"last 2 versions",
|
|
78
|
+
"not dead"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
@@ -1,153 +1,208 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
<template slot="header">
|
|
5
|
-
<
|
|
6
|
-
</template>
|
|
7
|
-
<div class="wrapperCss">
|
|
8
|
-
<template v-if="name === '发票信息'">
|
|
9
|
-
<div class="flex-box">
|
|
10
|
-
<div class="wrapperLeft">
|
|
11
|
-
<invoiceTemplateDetail v-model="formData"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<Dialog v-drag width="80%" :destroy-on-close="true" max-dialog :visible.sync="invoiceVisible" title="发票详情">
|
|
3
|
+
<Page>
|
|
4
|
+
<template slot="header">
|
|
5
|
+
<tertiary-tab class="m-b-s m-t-s" :init.sync="name" :data="tabList" @click="clickTab"/>
|
|
6
|
+
</template>
|
|
7
|
+
<div class="wrapperCss">
|
|
8
|
+
<template v-if="name === '发票信息'">
|
|
9
|
+
<div class="flex-box">
|
|
10
|
+
<div class="wrapperLeft">
|
|
11
|
+
<invoiceTemplateDetail v-model="formData">
|
|
12
|
+
<template slot="endDate">
|
|
13
|
+
<el-descriptions-item label="查验结果">
|
|
14
|
+
<span
|
|
15
|
+
v-title="formData.inspectionMsg"
|
|
16
|
+
:class="
|
|
17
|
+
formData?.inspectionResult && formData?.inspectionResult?.code === '0000'
|
|
18
|
+
? 'color-danger'
|
|
19
|
+
: formData?.inspectionResult && formData?.inspectionResult?.code === '0001'
|
|
20
|
+
? 'color-success'
|
|
21
|
+
: ''
|
|
22
|
+
"
|
|
23
|
+
>
|
|
24
|
+
{{ (formData?.inspectionResult && formData?.inspectionResult?.name) || '--' }}
|
|
25
|
+
</span>
|
|
26
|
+
</el-descriptions-item>
|
|
27
|
+
<el-descriptions-item label="查验次数">
|
|
28
|
+
<el-link
|
|
29
|
+
v-if="formData.checkCount"
|
|
30
|
+
:underline="false"
|
|
31
|
+
type="primary"
|
|
32
|
+
class="text-ellipsis"
|
|
33
|
+
style="display: block"
|
|
34
|
+
@click="showInspection()"
|
|
35
|
+
>
|
|
36
|
+
{{ formData.checkCount }}
|
|
37
|
+
</el-link>
|
|
38
|
+
<span v-else>--</span>
|
|
39
|
+
</el-descriptions-item>
|
|
40
|
+
</template>
|
|
41
|
+
</invoiceTemplateDetail>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<div class="wrapperRight">
|
|
45
|
+
<iframe class="invoiceImg" :src="'/api/onlinePreview?beid=' + beid" frameborder="0" v-if="beid"></iframe>
|
|
46
|
+
<empty :type="`empty`" content="暂无图片" :width="400" v-else></empty>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<template v-if="name === '额度占用信息'">
|
|
52
|
+
<quotaInfor :type="'invoice'" :tradeId="query.invoiceId"></quotaInfor>
|
|
53
|
+
</template>
|
|
54
|
+
|
|
55
|
+
<div class="tableHeight">
|
|
56
|
+
<occupationLog :invoiceId="query.invoiceId" v-if="name === '关联记录'"></occupationLog>
|
|
57
|
+
<invoiceLog :sourceId="query.invoiceId" v-if="name === '发票操作记录'"></invoiceLog>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</Page>
|
|
61
|
+
<!-- 查验次数 -->
|
|
62
|
+
<inspectionDialog ref="inspectionDialog"></inspectionDialog>
|
|
63
|
+
</Dialog>
|
|
64
|
+
</template>
|
|
65
|
+
|
|
66
|
+
<script>
|
|
67
|
+
import {Page, Dialog, TertiaryTab, Empty} from 'n20-common-lib'
|
|
68
|
+
import invoiceTemplateDetail from './invoiceTemplateDetail.vue'
|
|
69
|
+
import quotaInfor from './quotaInfor.vue'
|
|
70
|
+
import invoiceLog from './invoiceLog.vue'
|
|
71
|
+
import occupationLog from './occupationLog.vue'
|
|
72
|
+
import inspectionDialog from './subComponents/inspectionDialog.vue'
|
|
73
|
+
|
|
74
|
+
export default {
|
|
75
|
+
name: 'InvoiceDetail',
|
|
76
|
+
props: {
|
|
77
|
+
value: {
|
|
78
|
+
require: true
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
components: {
|
|
82
|
+
Page,
|
|
83
|
+
Dialog,
|
|
84
|
+
TertiaryTab,
|
|
85
|
+
Empty,
|
|
86
|
+
quotaInfor,
|
|
87
|
+
invoiceLog,
|
|
88
|
+
invoiceTemplateDetail,
|
|
89
|
+
occupationLog,
|
|
90
|
+
inspectionDialog
|
|
91
|
+
},
|
|
92
|
+
data() {
|
|
93
|
+
return {
|
|
94
|
+
invoiceVisible: false,
|
|
95
|
+
name: '发票信息',
|
|
96
|
+
tabList: [{name: '发票信息'}, {name: '额度占用信息'}, {name: '关联记录'}, {name: '发票操作记录'}],
|
|
97
|
+
formData: {}, // 发票信息变量
|
|
98
|
+
beid: '', // 发票附件fileId
|
|
99
|
+
query: {}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
watch: {},
|
|
103
|
+
created() {
|
|
104
|
+
},
|
|
105
|
+
methods: {
|
|
106
|
+
async clickTab(item) {
|
|
107
|
+
this.name = item.name
|
|
108
|
+
},
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @param data 调用示例setInfo({invoiceId:invoiceId}) invoiceId发票ID
|
|
112
|
+
* @returns {Promise<void>} 获取发票信息并弹出发票详情窗口
|
|
113
|
+
*/
|
|
114
|
+
setInfo(data) {
|
|
115
|
+
this.name = '发票信息'
|
|
116
|
+
this.formData = {}
|
|
117
|
+
this.query = data
|
|
118
|
+
this.setInvoice()
|
|
119
|
+
this.invoiceVisible = true
|
|
120
|
+
},
|
|
121
|
+
/** 获取发票信息 */
|
|
122
|
+
async setInvoice() {
|
|
123
|
+
const {code, data} = await this.$axios.get(`/tbm/invoice-info/${this.query.invoiceId}`, {
|
|
124
|
+
loading: false
|
|
125
|
+
})
|
|
126
|
+
if (code === 200) {
|
|
127
|
+
this.formData = data
|
|
128
|
+
this.beid = data?.fileId
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
showInspection() {
|
|
132
|
+
this.$refs['inspectionDialog'].setView(this.formData)
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
</script>
|
|
137
|
+
<style lang="less" scoped>
|
|
138
|
+
.wrapperCss {
|
|
139
|
+
height: 100%;
|
|
140
|
+
|
|
141
|
+
.wrapperLeft {
|
|
142
|
+
height: 100%;
|
|
143
|
+
width: 500px;
|
|
144
|
+
overflow-y: scroll;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.tableHeight {
|
|
148
|
+
height: 450px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.n20-empty {
|
|
152
|
+
height: 98%;
|
|
153
|
+
padding-bottom: 0;
|
|
154
|
+
overflow: hidden;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.wrapperRight {
|
|
158
|
+
height: 65vh;
|
|
159
|
+
flex: 1;
|
|
160
|
+
|
|
161
|
+
.agnc {
|
|
162
|
+
text-align: center;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.upload-wrap,
|
|
166
|
+
.invoiceImg {
|
|
167
|
+
position: relative;
|
|
168
|
+
flex: 1;
|
|
169
|
+
height: 100%;
|
|
170
|
+
border: 1px solid #ebeef5;
|
|
171
|
+
width: 100%;
|
|
172
|
+
border-radius: 5px;
|
|
173
|
+
margin-left: 20px;
|
|
174
|
+
overflow: auto;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.rotateCss {
|
|
178
|
+
position: absolute;
|
|
179
|
+
bottom: 88px;
|
|
180
|
+
right: 40px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.upload-wrap {
|
|
184
|
+
position: relative;
|
|
185
|
+
|
|
186
|
+
& > div {
|
|
187
|
+
position: absolute;
|
|
188
|
+
top: 50%;
|
|
189
|
+
left: 50%;
|
|
190
|
+
transform: translate(-50%, -50%);
|
|
191
|
+
width: 450px;
|
|
192
|
+
margin: 0 auto;
|
|
193
|
+
|
|
194
|
+
& > p {
|
|
195
|
+
font-size: 12px;
|
|
196
|
+
color: #999;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.upload-icon {
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
color: #008df0;
|
|
203
|
+
font-size: 50px;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
</style>
|