sale-client 4.3.99 → 4.4.1

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.
@@ -1,77 +1,71 @@
1
- var path = require('path')
2
- var checkVersion = require('./versionCheck.js')
3
- checkVersion()
4
- const [ serverRul, localUrl ] = ['http://192.168.50.67:31567/', 'http://localhost:9026']
5
- var merge = require('webpack-merge')
6
- var baseConfig = require('./webpack.dev.conf')
7
- var devConfig = {
8
- devServer: {
9
- contentBase: path.join(__dirname, 'src'),
10
- hot: true,
11
- publicPath: baseConfig.output.publicPath,
12
- historyApiFallback: true,
13
- host: '127.0.0.1',
14
- port: 8089,
15
- open: false,
16
- stats: {
17
- colors: false, // 配置控制台输出彩色日志
18
- chunks: false, // 不输出构建 chunk 信息
19
- children: false // 不输出子模块构建信息
20
- },
21
- proxy: {
22
- // '/api/af-revenue/batchdeduction/all': {
23
- // pathRewrite: {
24
- // '/api/af-revenue/batchdeduction/all': '/batchdeduction/all'
25
- // },
26
- // target: localUrl
27
- // },
28
- '/api/af-revenue/logic': {
29
- pathRewrite: {
30
- '/api/af-revenue/logic': '/logic'
31
- },
32
- target: localUrl
33
- },
34
- // '/api/af-revenue/file': {
35
- // // pathRewrite: {
36
- // // '/api/af-revenue/file': '/file'
37
- // // },
38
- // target: localUrl
39
- // },
40
- // '/weixin2/rs':{
41
- //
42
- // target: 'http://410663id1ia4.vicp.fun'
43
- // },
44
- '/api/af-revenue/sql': {
45
- pathRewrite: {
46
- '/api/af-revenue/sql': '/sql'
47
- },
48
- target: localUrl
49
- },
50
- '/rs/pay': {
51
- target: 'http://localhost:8080'
52
- },
53
- // '/api/af-revenue': {
54
- // pathRewrite: {
55
- // '/api/af-revenue': '/'
56
- // },
57
- // target: "http://localhost:9026"
58
- // },
59
- '/api': {
60
- target: serverRul,
61
- secure: false,
62
- changeOrigin: true,
63
- },
64
- '/resource': {
65
- target: serverRul,
66
- secure: false,
67
- changeOrigin: true
68
- },
69
- '/rs': {
70
- target: serverRul,
71
- secure: false,
72
- changeOrigin: true,
73
- }
74
- }
75
- }
76
- }
77
- module.exports = merge(baseConfig, devConfig)
1
+ var path = require('path')
2
+ var checkVersion = require('./versionCheck.js')
3
+ checkVersion()
4
+ const [ serverRul, localUrl ] = ['http://121.36.106.17:31467/', 'http://121.36.106.17:31467/']
5
+ var merge = require('webpack-merge')
6
+ var baseConfig = require('./webpack.dev.conf')
7
+ var devConfig = {
8
+ devServer: {
9
+ contentBase: path.join(__dirname, 'src'),
10
+ hot: true,
11
+ publicPath: baseConfig.output.publicPath,
12
+ historyApiFallback: true,
13
+ host: '127.0.0.1',
14
+ port: 8089,
15
+ open: false,
16
+ stats: {
17
+ colors: false, // 配置控制台输出彩色日志
18
+ chunks: false, // 不输出构建 chunk 信息
19
+ children: false // 不输出子模块构建信息
20
+ },
21
+ proxy: {
22
+ // '/api/af-revenue/batchdeduction/all': {
23
+ // pathRewrite: {
24
+ // '/api/af-revenue/batchdeduction/all': '/batchdeduction/all'
25
+ // },
26
+ // target: localUrl
27
+ // },
28
+ // '/api/af-revenue/logic': {
29
+ // pathRewrite: {
30
+ // '/api/af-revenue/logic': '/logic'
31
+ // },
32
+ // target: localUrl
33
+ // },
34
+ // '/api/af-revenue/file': {
35
+ // // pathRewrite: {
36
+ // // '/api/af-revenue/file': '/file'
37
+ // // },
38
+ // target: localUrl
39
+ // },
40
+ // '/weixin2/rs':{
41
+ //
42
+ // target: 'http://410663id1ia4.vicp.fun'
43
+ // },
44
+ // '/api/af-revenue/sql': {
45
+ // pathRewrite: {
46
+ // '/api/af-revenue/sql': '/sql'
47
+ // },
48
+ // target: localUrl
49
+ // },
50
+ '/rs/pay': {
51
+ target: 'http://localhost:8080'
52
+ },
53
+ // '/api/af-revenue': {
54
+ // pathRewrite: {
55
+ // '/api/af-revenue': '/'
56
+ // },
57
+ // target: "http://localhost:9026"
58
+ // },
59
+ '/api': {
60
+ target: serverRul
61
+ },
62
+ '/resource': {
63
+ target: serverRul
64
+ },
65
+ '/rs': {
66
+ target: serverRul
67
+ }
68
+ }
69
+ }
70
+ }
71
+ module.exports = merge(baseConfig, devConfig)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.3.99",
3
+ "version": "4.4.1",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -0,0 +1,152 @@
1
+ <template>
2
+ <div class="panel panel-info auto">
3
+ <div class="panel-heading auto" style="height: 35px">
4
+ <h4 style="display:inline-block;margin-top: auto">未处理隐患</h4>
5
+ </div>
6
+
7
+ <table class="table table-striped table-bordered" v-if="hiddenDangerList.length > 0">
8
+ <tbody v-for="(index,row) in hiddenDangerList">
9
+ <tr>
10
+ <td colspan="4" style="text-align: center;background-color: #8cbce2;">未处理隐患{{index+1}}明细
11
+ </td>
12
+ </tr>
13
+ <tr>
14
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患名称:</td>
15
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;">{{ row.f_item_name }}</td>
16
+ </tr>
17
+ <tr>
18
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">发现时间:</td>
19
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;">{{ row.f_offsite_time }}</td>
20
+ </tr>
21
+ <tr>
22
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">发现人员:</td>
23
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;">{{ row.f_checker_name }}</td>
24
+ </tr>
25
+ <tr>
26
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">隐患照片:</td>
27
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
28
+ <div class="img">
29
+ <img-self :src="row.f_path" width="150" height="150"></img-self>
30
+ </div>
31
+ </td>
32
+ </tr>
33
+ <tr v-if="row.f_p1_path">
34
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">隐患照片2:</td>
35
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
36
+ <div class="img">
37
+ <img-self :src="'rs/image/file/' + row.f_p1_path" width="150" height="150"></img-self>
38
+ </div>
39
+ </td>
40
+ </tr>
41
+ <tr v-if="row.f_p2_path">
42
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">隐患照片3:</td>
43
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
44
+ <div class="img">
45
+ <img-self :src="'rs/image/file/' + row.f_p2_path" width="150" height="150"></img-self>
46
+ </div>
47
+ </td>
48
+ </tr>
49
+ <tr v-if="row.f_p3_path">
50
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">隐患照片4:</td>
51
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
52
+ <div class="img">
53
+ <img-self :src="'api/af-revenue/file/image/' + row.f_p3_path" width="150" height="150"></img-self>
54
+ </div>
55
+ </td>
56
+ </tr>
57
+ </tbody>
58
+ </table>
59
+
60
+ <div class="auto info-content" v-if="hiddenDangerList.length === 0">
61
+ <div class="row">
62
+ <strong>暂无未处理隐患信息</strong>
63
+ </div>
64
+ </div>
65
+ </div>
66
+
67
+ </template>
68
+ <script>
69
+ /**
70
+ *用户信息
71
+ *安检信息
72
+ */
73
+
74
+ import { HttpResetClass } from 'vue-client'
75
+ import {runLogic} from 'vue-client/src/util/apiUtils'
76
+
77
+ let getHiddenDangerGen = async function (self) {
78
+ try {
79
+ let http = new HttpResetClass()
80
+ let condition = `f_userinfoid = ${self.data.f_userinfo_id} and f_is_repaired = '隐患未处理'`
81
+ let getHiddenDanger = await http.load('POST', 'api/af-safecheck/sql/defectDetails', {
82
+ data: {
83
+ condition: condition,
84
+ f_filialeid: `('${self.$login.f.orgid}')`
85
+ }
86
+ }, {resolveMsg: null, rejectMsg: null})
87
+ console.log('getHiddenDanger', getHiddenDanger)
88
+ self.hiddenDangerList = getHiddenDanger.data
89
+ if (self.hiddenDangerList && self.hiddenDangerList.length > 0) {
90
+ for (let img of self.hiddenDangerList) {
91
+ if (img.f_path && img.f_path !== '') {
92
+ const filename = img.f_path.split('/')[img.f_path.split('/').length - 1]
93
+ try {
94
+ const res = await runLogic('getImageFileLogic', {filename}, 'af-telephone')
95
+ if (res && res.data && res.data.filepath) {
96
+ img.f_path = res.data.filepath
97
+ }
98
+ } catch (error) {
99
+ console.error('获取图片路径失败:', error)
100
+ }
101
+ }
102
+ }
103
+ }
104
+ } catch (error) {
105
+ console.error(error)
106
+ }
107
+ }
108
+
109
+ export default {
110
+ title: '安检信息',
111
+ data () {
112
+ return {
113
+ hiddenDangerList: [],
114
+ style: 'text-align: center;border: #E9E9E9 solid 1px;'
115
+ }
116
+ },
117
+ props: ['data'],
118
+ ready () {
119
+ if (this.data) {
120
+ getHiddenDangerGen(this)
121
+ }
122
+ },
123
+ methods: {},
124
+ computed: {},
125
+ watch: {
126
+ 'data' () {
127
+ if (this.data == null) {
128
+ this.hiddenDangerList = []
129
+ } else {
130
+ getHiddenDangerGen(this)
131
+ }
132
+ }
133
+ }
134
+ }
135
+ </script>
136
+ <style scoped>
137
+ .img {
138
+ border: 1px solid #9773ed;
139
+ width: auto;
140
+ height: auto;
141
+ margin: 6px auto;
142
+ display: inline-block;
143
+ text-align: center;
144
+ }
145
+
146
+ img {
147
+ margin: 6px;
148
+ display: block;
149
+ margin-left: auto;
150
+ margin-right: auto;
151
+ }
152
+ </style>