safecheck-client 3.0.30-73 → 3.0.30-74

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,133 +1,133 @@
1
- {
2
- "name": "safecheck-client",
3
- "//": "主分支版本别乱升,测试包的版本直接发包(建议使用1.XX.XX-XXX格式作为测试包,不要频繁升级第三位版本号),别提交版本号。切了分支切记把主分支版本升了,保证主分支始终是最高版本!!!!!",
4
- "version": "3.0.30-73",
5
- "description": "安检模块 前端组件",
6
- "author": "丁新 <417755458@qq.com>",
7
- "license": "ISC",
8
- "main": "src/index.js",
9
- "keywords": [
10
- "safecheck"
11
- ],
12
- "scripts": {
13
- "example": "node build/example-server.js",
14
- "dev": "webpack-dev-server --config ./build/dev-server.js",
15
- "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
16
- "build": "rimraf dist && mkdirp dist && ncp static dist/safecheck && cross-env webpack --progress --hide-modules --config build/webpack.prod.conf.js",
17
- "hanwei": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.hanwei.conf.js",
18
- "android": "node build/dev-android.js",
19
- "unit": "karma start test/unit/karma.conf.js --single-run",
20
- "make": "rimraf dist-android && mkdirp dist-android && ncp static dist-android/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prodandroid.conf.js && publish",
21
- "e2e": "node test/e2e/runner.js",
22
- "release": "bash build/release.sh",
23
- "fix-memory-limit": "cross-env LIMIT=4096 increase-memory-limit"
24
- },
25
- "repository": {
26
- "type": "git",
27
- "url": "https://gitee.com/aote/product-hujiao"
28
- },
29
- "dependencies": {
30
- "axios": "^0.27.2",
31
- "benz-amr-recorder": "^1.1.3",
32
- "browserslist": "^4.21.4",
33
- "crypto-js": "^4.2.0",
34
- "html2canvas": "^1.1.4",
35
- "html2pdf.js": "^0.10.1",
36
- "jspdf": "^2.3.1",
37
- "less": "^4.2.0",
38
- "mint-ui": "^1.0.2",
39
- "node-libs-browser": "^2.2.1",
40
- "pretty-error": "^4.0.0",
41
- "vue": "^1.0.17",
42
- "wavesurfer.js": "^3.3.3",
43
- "xlsx": "^0.17.3"
44
- },
45
- "devDependencies": {
46
- "babel-core": "^6.26.0",
47
- "babel-loader": "^6.0.0",
48
- "babel-plugin-transform-runtime": "^6.0.0",
49
- "babel-preset-es2015": "^6.0.0",
50
- "babel-preset-stage-2": "^6.0.0",
51
- "chai": "^3.5.0",
52
- "compression-webpack-plugin": "^1.1.2",
53
- "connect-history-api-fallback": "^1.1.0",
54
- "cross-env": "^1.0.7",
55
- "cross-spawn": "^2.1.5",
56
- "css-loader": "^0.23.0",
57
- "echarts": "^4.1.0",
58
- "eslint": "^2.0.0",
59
- "eslint-config-standard": "^5.1.0",
60
- "eslint-friendly-formatter": "^1.2.2",
61
- "eslint-loader": "^1.3.0",
62
- "eslint-plugin-html": "^1.3.0",
63
- "eslint-plugin-promise": "^1.0.8",
64
- "eslint-plugin-standard": "^1.3.2",
65
- "eslint-plugin-vue": "^0.1.1",
66
- "eventsource-polyfill": "^0.9.6",
67
- "express": "^4.13.3",
68
- "extract-text-webpack-plugin": "^3.0.2",
69
- "file-loader": "^0.8.4",
70
- "function-bind": "^1.0.2",
71
- "html-webpack-plugin": "^2.30.1",
72
- "http-proxy-middleware": "^0.11.0",
73
- "increase-memory-limit": "^1.0.7",
74
- "inject-loader": "^2.0.1",
75
- "isparta-loader": "^2.0.0",
76
- "jasmine-core": "^2.4.1",
77
- "jquery": "^3.3.1",
78
- "jsencrypt": "3.0.0-rc.1",
79
- "json-loader": "^0.5.4",
80
- "karma": "^1.4.1",
81
- "karma-chrome-launcher": "^2.2.0",
82
- "karma-coverage": "^1.1.1",
83
- "karma-mocha": "^1.3.0",
84
- "karma-phantomjs-launcher": "^1.0.2",
85
- "karma-phantomjs-shim": "^1.4.0",
86
- "karma-sinon-chai": "^1.3.1",
87
- "karma-sourcemap-loader": "^0.3.7",
88
- "karma-spec-reporter": "0.0.31",
89
- "karma-webpack": "^2.0.2",
90
- "less-loader": "^2.2.3",
91
- "lolex": "^1.5.2",
92
- "mkdirp": "^0.5.1",
93
- "mocha": "^3.2.0",
94
- "ncp": "^2.0.0",
95
- "nightwatch": "^0.8.18",
96
- "ol": "^4.6.4",
97
- "phantomjs-prebuilt": "^2.1.3",
98
- "proj4": "^2.2.1",
99
- "rimraf": "^2.5.0",
100
- "selenium-server": "2.52.0",
101
- "sinon": "^2.1.0",
102
- "sinon-chai": "^2.8.0",
103
- "sketch-vue3": "^1.0.0",
104
- "style": "0.0.3",
105
- "style-loader": "^0.20.3",
106
- "system-clients": "3.2.76",
107
- "system-phone": "1.2.100",
108
- "telephone-clients": "1.1.27",
109
- "terser-webpack-plugin-legacy": "^1.2.5",
110
- "url-loader": "^0.5.7",
111
- "vue-amap": "0.5.10",
112
- "vue-client": "1.24.129",
113
- "vue-hot-reload-api": "^1.2.0",
114
- "vue-html-loader": "^1.0.0",
115
- "vue-loader": "^8.2.1",
116
- "vue-resource": "^1.5.0",
117
- "vue-router": "^0.7.13",
118
- "vue-strap": "^1.0.9",
119
- "vue-style-loader": "^1.0.0",
120
- "vue-validator": "2.1.7",
121
- "webpack": "^3.12.0",
122
- "webpack-dev-middleware": "^1.4.0",
123
- "webpack-dev-server": "^2.9.7",
124
- "webpack-hot-middleware": "^2.6.0",
125
- "webpack-merge": "^0.8.3",
126
- "weixin-js-sdk": "^1.2.0"
127
- },
128
- "directories": {
129
- "doc": "docs",
130
- "example": "examples",
131
- "test": "test"
132
- }
133
- }
1
+ {
2
+ "name": "safecheck-client",
3
+ "//": "主分支版本别乱升,测试包的版本直接发包(建议使用1.XX.XX-XXX格式作为测试包,不要频繁升级第三位版本号),别提交版本号。切了分支切记把主分支版本升了,保证主分支始终是最高版本!!!!!",
4
+ "version": "3.0.30-74",
5
+ "description": "安检模块 前端组件",
6
+ "author": "丁新 <417755458@qq.com>",
7
+ "license": "ISC",
8
+ "main": "src/index.js",
9
+ "keywords": [
10
+ "safecheck"
11
+ ],
12
+ "scripts": {
13
+ "example": "node build/example-server.js",
14
+ "dev": "webpack-dev-server --config ./build/dev-server.js",
15
+ "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
16
+ "build": "rimraf dist && mkdirp dist && ncp static dist/safecheck && cross-env webpack --progress --hide-modules --config build/webpack.prod.conf.js",
17
+ "hanwei": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.hanwei.conf.js",
18
+ "android": "node build/dev-android.js",
19
+ "unit": "karma start test/unit/karma.conf.js --single-run",
20
+ "make": "rimraf dist-android && mkdirp dist-android && ncp static dist-android/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prodandroid.conf.js && publish",
21
+ "e2e": "node test/e2e/runner.js",
22
+ "release": "bash build/release.sh",
23
+ "fix-memory-limit": "cross-env LIMIT=4096 increase-memory-limit"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://gitee.com/aote/product-hujiao"
28
+ },
29
+ "dependencies": {
30
+ "axios": "^0.27.2",
31
+ "benz-amr-recorder": "^1.1.3",
32
+ "browserslist": "^4.21.4",
33
+ "crypto-js": "^4.2.0",
34
+ "html2canvas": "^1.1.4",
35
+ "html2pdf.js": "^0.10.1",
36
+ "jspdf": "^2.3.1",
37
+ "less": "^4.2.0",
38
+ "mint-ui": "^1.0.2",
39
+ "node-libs-browser": "^2.2.1",
40
+ "pretty-error": "^4.0.0",
41
+ "vue": "^1.0.17",
42
+ "wavesurfer.js": "^3.3.3",
43
+ "xlsx": "^0.17.3"
44
+ },
45
+ "devDependencies": {
46
+ "babel-core": "^6.26.0",
47
+ "babel-loader": "^6.0.0",
48
+ "babel-plugin-transform-runtime": "^6.0.0",
49
+ "babel-preset-es2015": "^6.0.0",
50
+ "babel-preset-stage-2": "^6.0.0",
51
+ "chai": "^3.5.0",
52
+ "compression-webpack-plugin": "^1.1.2",
53
+ "connect-history-api-fallback": "^1.1.0",
54
+ "cross-env": "^1.0.7",
55
+ "cross-spawn": "^2.1.5",
56
+ "css-loader": "^0.23.0",
57
+ "echarts": "^4.1.0",
58
+ "eslint": "^2.0.0",
59
+ "eslint-config-standard": "^5.1.0",
60
+ "eslint-friendly-formatter": "^1.2.2",
61
+ "eslint-loader": "^1.3.0",
62
+ "eslint-plugin-html": "^1.3.0",
63
+ "eslint-plugin-promise": "^1.0.8",
64
+ "eslint-plugin-standard": "^1.3.2",
65
+ "eslint-plugin-vue": "^0.1.1",
66
+ "eventsource-polyfill": "^0.9.6",
67
+ "express": "^4.13.3",
68
+ "extract-text-webpack-plugin": "^3.0.2",
69
+ "file-loader": "^0.8.4",
70
+ "function-bind": "^1.0.2",
71
+ "html-webpack-plugin": "^2.30.1",
72
+ "http-proxy-middleware": "^0.11.0",
73
+ "increase-memory-limit": "^1.0.7",
74
+ "inject-loader": "^2.0.1",
75
+ "isparta-loader": "^2.0.0",
76
+ "jasmine-core": "^2.4.1",
77
+ "jquery": "^3.3.1",
78
+ "jsencrypt": "3.0.0-rc.1",
79
+ "json-loader": "^0.5.4",
80
+ "karma": "^1.4.1",
81
+ "karma-chrome-launcher": "^2.2.0",
82
+ "karma-coverage": "^1.1.1",
83
+ "karma-mocha": "^1.3.0",
84
+ "karma-phantomjs-launcher": "^1.0.2",
85
+ "karma-phantomjs-shim": "^1.4.0",
86
+ "karma-sinon-chai": "^1.3.1",
87
+ "karma-sourcemap-loader": "^0.3.7",
88
+ "karma-spec-reporter": "0.0.31",
89
+ "karma-webpack": "^2.0.2",
90
+ "less-loader": "^2.2.3",
91
+ "lolex": "^1.5.2",
92
+ "mkdirp": "^0.5.1",
93
+ "mocha": "^3.2.0",
94
+ "ncp": "^2.0.0",
95
+ "nightwatch": "^0.8.18",
96
+ "ol": "^4.6.4",
97
+ "phantomjs-prebuilt": "^2.1.3",
98
+ "proj4": "^2.2.1",
99
+ "rimraf": "^2.5.0",
100
+ "selenium-server": "2.52.0",
101
+ "sinon": "^2.1.0",
102
+ "sinon-chai": "^2.8.0",
103
+ "sketch-vue3": "^1.0.0",
104
+ "style": "0.0.3",
105
+ "style-loader": "^0.20.3",
106
+ "system-clients": "3.2.76",
107
+ "system-phone": "1.2.100",
108
+ "telephone-clients": "1.1.27",
109
+ "terser-webpack-plugin-legacy": "^1.2.5",
110
+ "url-loader": "^0.5.7",
111
+ "vue-amap": "0.5.10",
112
+ "vue-client": "1.24.129",
113
+ "vue-hot-reload-api": "^1.2.0",
114
+ "vue-html-loader": "^1.0.0",
115
+ "vue-loader": "^8.2.1",
116
+ "vue-resource": "^1.5.0",
117
+ "vue-router": "^0.7.13",
118
+ "vue-strap": "^1.0.9",
119
+ "vue-style-loader": "^1.0.0",
120
+ "vue-validator": "2.1.7",
121
+ "webpack": "^3.12.0",
122
+ "webpack-dev-middleware": "^1.4.0",
123
+ "webpack-dev-server": "^2.9.7",
124
+ "webpack-hot-middleware": "^2.6.0",
125
+ "webpack-merge": "^0.8.3",
126
+ "weixin-js-sdk": "^1.2.0"
127
+ },
128
+ "directories": {
129
+ "doc": "docs",
130
+ "example": "examples",
131
+ "test": "test"
132
+ }
133
+ }
@@ -71,7 +71,7 @@
71
71
  <div class="col-sm-8 col-xs-8" :class="style__">
72
72
  <label class="text-left font">拒检照片:</label>
73
73
  <img-self :src="item.f_rejectcheck_path" alt="拒检照片" style=" display: inline-block" width="150" height="200"> </img-self>
74
- <!-- <img-self :src="item.f_noanswertwo_path" alt="到访不遇照片" style=" display: inline-block" width="150" height="200"> </img-self>-->
74
+ <img-self v-if="item.f_rejectcheck2_path" :src="item.f_rejectcheck2_path" alt="拒检照片" style=" display: inline-block" width="150" height="200"> </img-self>
75
75
 
76
76
  </div>
77
77
  <div class="col-sm-4 col-xs-4">
@@ -85,6 +85,47 @@
85
85
  </div>
86
86
  </div>
87
87
  </div>
88
+
89
+ <div class="row" v-show="item.f_entry_status=='激光检漏'">
90
+ <div class="col-sm-8 col-xs-8" :class="style__">
91
+ <label class="text-left font">激光检漏照片:</label>
92
+ <img-self :src="item.f_detection_path" alt="激光检漏照片" style=" display: inline-block" width="150" height="200"> </img-self>
93
+ <img-self v-if="item.f_detection2_path" :src="item.f_detection2_path" alt="激光检漏照片" style=" display: inline-block" width="150" height="200"> </img-self>
94
+ <img-self v-if="item.f_detection3_path" :src="item.f_detection3_path" alt="激光检漏照片" style=" display: inline-block" width="150" height="200"> </img-self>
95
+ <img-self v-if="item.f_detection4_path" :src="item.f_detection4_path" alt="激光检漏照片" style=" display: inline-block" width="150" height="200"> </img-self>
96
+ <img-self v-if="item.f_detection5_path" :src="item.f_detection5_path" alt="激光检漏照片" style=" display: inline-block" width="150" height="200"> </img-self>
97
+ <img-self v-if="item.f_detection6_path" :src="item.f_detection6_path" alt="激光检漏照片" style=" display: inline-block" width="150" height="200"> </img-self>
98
+ <img-self v-if="item.f_detection7_path" :src="item.f_detection7_path" alt="激光检漏照片" style=" display: inline-block" width="150" height="200"> </img-self>
99
+ <img-self v-if="item.f_detection8_path" :src="item.f_detection8_path" alt="激光检漏照片" style=" display: inline-block" width="150" height="200"> </img-self>
100
+ </div>
101
+ </div>
102
+ <div class="row" v-show="item.f_entry_status=='立杠保压'">
103
+ <div class="col-sm-8 col-xs-8" :class="style__">
104
+ <label class="text-left font">立杠保压照片:</label>
105
+ <img-self :src="item.f_pressure_path" alt="立杠保压照片" style=" display: inline-block" width="150" height="200"> </img-self>
106
+ <img-self v-if="item.f_pressure2_path" :src="item.f_pressure2_path" alt="立杠保压照片" style=" display: inline-block" width="150" height="200"> </img-self>
107
+ <img-self v-if="item.f_pressure3_path" :src="item.f_pressure3_path" alt="立杠保压照片" style=" display: inline-block" width="150" height="200"> </img-self>
108
+ <img-self v-if="item.f_pressure4_path" :src="item.f_pressure4_path" alt="立杠保压照片" style=" display: inline-block" width="150" height="200"> </img-self>
109
+ <img-self v-if="item.f_pressure5_path" :src="item.f_pressure5_path" alt="立杠保压照片" style=" display: inline-block" width="150" height="200"> </img-self>
110
+ <img-self v-if="item.f_pressure6_path" :src="item.f_pressure6_path" alt="立杠保压照片" style=" display: inline-block" width="150" height="200"> </img-self>
111
+ <img-self v-if="item.f_pressure7_path" :src="item.f_pressure7_path" alt="立杠保压照片" style=" display: inline-block" width="150" height="200"> </img-self>
112
+ <img-self v-if="item.f_pressure8_path" :src="item.f_pressure8_path" alt="立杠保压照片" style=" display: inline-block" width="150" height="200"> </img-self>
113
+ </div>
114
+ </div>
115
+ <div class="row" v-show="item.f_entry_status=='室外关阀'">
116
+ <div class="col-sm-8 col-xs-8" :class="style__">
117
+ <label class="text-left font">室外关阀照片:</label>
118
+ <img-self :src="item.f_outdoor_path" alt="室外关阀照片" style=" display: inline-block" width="150" height="200"> </img-self>
119
+ <img-self v-if="item.f_outdoor2_path" :src="item.f_outdoor2_path" alt="室外关阀照片" style=" display: inline-block" width="150" height="200"> </img-self>
120
+ <img-self v-if="item.f_outdoor3_path" :src="item.f_outdoor3_path" alt="室外关阀照片" style=" display: inline-block" width="150" height="200"> </img-self>
121
+ <img-self v-if="item.f_outdoor4_path" :src="item.f_outdoor4_path" alt="室外关阀照片" style=" display: inline-block" width="150" height="200"> </img-self>
122
+ <img-self v-if="item.f_outdoor5_path" :src="item.f_outdoor5_path" alt="室外关阀照片" style=" display: inline-block" width="150" height="200"> </img-self>
123
+ <img-self v-if="item.f_outdoor6_path" :src="item.f_outdoor6_path" alt="室外关阀照片" style=" display: inline-block" width="150" height="200"> </img-self>
124
+ <img-self v-if="item.f_outdoor7_path" :src="item.f_outdoor7_path" alt="室外关阀照片" style=" display: inline-block" width="150" height="200"> </img-self>
125
+ <img-self v-if="item.f_outdoor8_path" :src="item.f_outdoor8_path" alt="室外关阀照片" style=" display: inline-block" width="150" height="200"> </img-self>
126
+ </div>
127
+ </div>
128
+
88
129
  <!-- <div class="row" v-show="item.f_entry_status=='拒检'">
89
130
  <div class="col-sm-8 col-xs-8">
90
131
  <label class="text-left font">拒检照片:</label>
@@ -381,6 +381,7 @@
381
381
  import {HttpResetClass} from 'vue-client'
382
382
  import * as Util from "../Util";
383
383
  import Vue from 'vue'
384
+ import {toStandardDateString} from "../Util";
384
385
 
385
386
  export default {
386
387
  title: '设备查看',
@@ -1113,6 +1114,24 @@
1113
1114
  this.userinfo = res.data
1114
1115
  this.userinfo_old = JSON.parse(JSON.stringify(res.data))
1115
1116
  this.model = this.userinfo.meterinfo[0].devicesinfo.concat(this.userinfo.meterinfo[0].devicesinfonew)
1117
+ //已经超期
1118
+ let now = Util.toStandardDateString()
1119
+ let overdue = this.model.filter(item => item.f_expire_date <= now).map(item => item.f_devices_type).join(',')
1120
+ //临近超期
1121
+ let date = new Date()
1122
+ date.setDate(date.getDate() - this.$appdata.getSingleValue('设备超期提醒'))
1123
+ let dt = new Date(date)
1124
+ let month = dt.getMonth()+1
1125
+ let now_advent = dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (dt.getDate()<10? '0'+ dt.getDate() : dt.getDate())
1126
+ let advent = this.model.filter(item => item.f_expire_date >= now_advent).map(item => item.f_devices_type).join(',')
1127
+
1128
+ if(overdue && advent){
1129
+ this.$showMessage(`${overdue}设备已过期,${advent}设备临近超期`)
1130
+ }else if(advent){
1131
+ this.$showMessage(`${advent}设备临近超期`)
1132
+ }else if(overdue){
1133
+ this.$showMessage(`${overdue}设备已过期`)
1134
+ }
1116
1135
  this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
1117
1136
  this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
1118
1137
  this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
@@ -481,6 +481,14 @@ export default {
481
481
  return '未使用天然气则必须拍照'
482
482
  if(Vue.android && this.data.f_entry_status == '到访不遇' && this.data.f_noanswer_path == Vue.nopic)
483
483
  return '到访不遇必须拍照'
484
+
485
+ if(Vue.android && this.data.f_entry_status == '激光检漏' && this.data.f_detection_path == Vue.nopic)
486
+ return '激光检漏必须拍照'
487
+ if(Vue.android && this.data.f_entry_status == '立杠保压' && this.data.f_pressure_path == Vue.nopic)
488
+ return '立杠保压必须拍照'
489
+ if(Vue.android && this.data.f_entry_status == '室外关阀' && this.data.f_outdoor_path == Vue.nopic)
490
+ return '室外关阀必须拍照'
491
+
484
492
  },
485
493
  verifyUser() {
486
494
  let prefix = '用户基本信息:'