safecheck-client 3.0.33-3 → 3.0.33-31
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 +3 -3
- package/src/App.vue +2 -2
- package/src/components/paper/PaperList.vue +5 -4
- package/src/components/planmanage/checkUserList.vue +34 -2
- package/src/components/report/CheckPlanCountChartArea.vue +5 -0
- package/src/filiale/bayan/android/AddPlanItem.vue +12 -3
- package/src/filiale/bayan/android/SafecheckOrderV.vue +4 -1
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
- package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
- package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
- package/src/filiale/fugou/pc/CheckBook.vue +303 -301
- package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -161
- package/src/filiale/fugou/pc/CheckBookEntry.vue +94 -66
- package/src/filiale/fugou/pc/CheckBookList.vue +366 -366
- package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -560
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +809 -651
- package/src/filiale/fugou/pc/CheckBookUser.vue +47 -44
- package/src/filiale/fugou/pc/PlanManage.vue +27 -8
- package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
- package/src/filiale/fugou/pc/checkUserList.vue +222 -42
- package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
- package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
- package/src/filiale/weinan/android/SafecheckDevices.vue +1082 -1025
- package/src/filiale/weinan/android/SafecheckOrderV.vue +71 -26
- package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
- package/src/filiale/wensu/pc/DefectPaperNew.vue +1 -1
- package/src/filiale/wensu/pc/checkUserList.vue +8 -8
- package/src/filiale/wenxi/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/wuhai/pc/PaperList.vue +785 -0
- package/src/filiale/wuhai/pc.js +1 -0
- package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
- package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
- package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
- package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
- package/src/filiale/yongzhou/pc/safeDetail.vue +212 -14
- package/src/filiale/yongzhou/pc.js +3 -0
- package/src/filiale/yunchengminsheng/pc/checkUserList.vue +18 -1
- package/src/main.js +1 -1
@@ -85,7 +85,7 @@ import Vue from 'vue'
|
|
85
85
|
|
86
86
|
export default {
|
87
87
|
title: '物联网表单户开通',
|
88
|
-
data
|
88
|
+
data() {
|
89
89
|
return {
|
90
90
|
showpictrue: false,
|
91
91
|
showd: false,
|
@@ -106,27 +106,22 @@ export default {
|
|
106
106
|
}
|
107
107
|
},
|
108
108
|
props: {},
|
109
|
-
async ready
|
109
|
+
async ready() {
|
110
110
|
await this.readyInit()
|
111
111
|
},
|
112
112
|
methods: {
|
113
|
-
readyInit
|
113
|
+
readyInit() {
|
114
114
|
this.tabname = this.data.tabname
|
115
115
|
console.log('-----------------------------------this.tabname', this.tabname)
|
116
116
|
this.model = Object.assign({}, this.model, this.data)
|
117
|
-
this.model.f_gas_person=Vue.user.name
|
117
|
+
this.model.f_gas_person = Vue.user.name
|
118
118
|
},
|
119
|
-
cameraCallBack
|
119
|
+
cameraCallBack(prop, fileName) {
|
120
120
|
HostApp.__this__.model.f_notified_path = fileName + '?' + Math.random()
|
121
121
|
HostApp.__callback__ = null
|
122
122
|
HostApp.__this__ = null
|
123
123
|
},
|
124
|
-
|
125
|
-
goback (val) {
|
126
|
-
this.$dispatch('backarrdel')
|
127
|
-
this.$back()
|
128
|
-
},
|
129
|
-
async commit () {
|
124
|
+
async commit() {
|
130
125
|
if (!this.model.f_gas_person) {
|
131
126
|
this.$showMessage(`请填写通气人`, ['confirm', 'cancel'])
|
132
127
|
return
|
@@ -134,46 +129,39 @@ export default {
|
|
134
129
|
let param = {
|
135
130
|
f_user_id: this.model.f_user_id,
|
136
131
|
f_userinfo_id: this.model.f_userinfo_id,
|
137
|
-
f_meternumber: this.model.f_meternumber,
|
138
|
-
version: this.model.version,
|
139
|
-
f_table_state: '正常',
|
140
132
|
f_open_date: Util.toStandardTimeString(),
|
141
133
|
f_open_person: Vue.user.name,
|
142
134
|
f_comments: this.model.f_comments,
|
143
|
-
f_gas_person: this.model.f_gas_person,
|
144
|
-
f_operat_type: '开通',
|
145
|
-
f_describe: `${Vue.user.name}对用户${this.model.f_user_name}进行开通操作`,
|
146
135
|
f_state: '有效',
|
147
136
|
f_operator: Vue.user.name,
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
f_open_date: Util.toStandardTimeString()
|
160
|
-
}
|
137
|
+
f_operatorid: Vue.user.id,
|
138
|
+
f_orgname: Vue.user.orgs,
|
139
|
+
f_orgid: Vue.user.orgid,
|
140
|
+
f_depid: Vue.user.orgid,
|
141
|
+
f_depname: Vue.user.orgs,
|
142
|
+
f_meternumber: this.model.f_meternumber,
|
143
|
+
version: this.model.version,
|
144
|
+
f_table_state: '正常',
|
145
|
+
f_gas_date: Util.toStandardTimeString(),
|
146
|
+
f_gas_person: this.model.f_gas_person,
|
147
|
+
f_userfiles_id: this.model.f_userfiles_id
|
161
148
|
}
|
162
149
|
this.$showMessage(`开通前请确认表号和表类型!!!`, ['confirm', 'cancel']).then((res) => {
|
163
150
|
if (res === 'confirm') {
|
164
|
-
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/
|
165
|
-
|
166
|
-
|
167
|
-
}
|
168
|
-
|
151
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/updateUserfiles`, param).then((res) => {
|
152
|
+
if (res.data == 200) {
|
153
|
+
this.$showMessage('开通成功')
|
154
|
+
} else {
|
155
|
+
this.$showMessage('网络异常,请稍后再试')
|
156
|
+
}
|
157
|
+
})
|
169
158
|
}
|
170
159
|
})
|
171
|
-
|
172
160
|
},
|
173
161
|
|
174
162
|
},
|
175
163
|
watch: {
|
176
|
-
'data'
|
164
|
+
'data'() {
|
177
165
|
}
|
178
166
|
}
|
179
167
|
}
|
@@ -3,11 +3,11 @@
|
|
3
3
|
<div class="auto select-overspread">
|
4
4
|
<validator name='v'>
|
5
5
|
<ul class="nav nav-tabs">
|
6
|
-
<p class="bg-info text-center" style="padding: 8px;"
|
6
|
+
<p class="bg-info text-center" style="padding: 8px;">添加到目标安检册</p>
|
7
7
|
</ul>
|
8
|
-
<div class="form-horizontal select-overspread container-fluid auto" style="margin-top:20px;flex: 1;"
|
8
|
+
<div class="form-horizontal select-overspread container-fluid auto" style="margin-top:20px;flex: 1;">
|
9
9
|
<div class="row" style="text-align: center">
|
10
|
-
|
10
|
+
<p class="text-center" style="padding: 8px;">共{{usernum?usernum:0}}位用户</p>
|
11
11
|
<div class="col-sm-12 form-group" :class="[$v.f_check_book_num.required ? 'has-error' : '']">
|
12
12
|
<label class="font_normal_body" style="width: 26%;">目标安检册</label>
|
13
13
|
<input type="text" v-model="model.f_check_book_num" v-show="false"
|
@@ -18,9 +18,18 @@
|
|
18
18
|
style="width:60%"
|
19
19
|
close-on-select></v-select>
|
20
20
|
</div>
|
21
|
+
<!--
|
22
|
+
<div class="col-sm-6 form-group" :class="[$v.f_invoice_type.required ? 'has-error' : '']">
|
23
|
+
<label class="font_normal_body">发票类型</label>
|
24
|
+
<input type="text" v-model="model.f_invoice_type" v-show="false" v-validate:f_invoice_type='{required: true }'>
|
25
|
+
<v-select :value.sync="model.f_invoice_type" :options='invoiceType' :value-single="true" :search="false"
|
26
|
+
placeholder='发票类型' close-on-select v-model='model.f_invoice_type'>
|
27
|
+
</v-select>
|
28
|
+
</div>
|
29
|
+
-->
|
21
30
|
</div>
|
22
31
|
</div>
|
23
|
-
<div class="row"
|
32
|
+
<div class="row">
|
24
33
|
<div style="float:right;margin-top: 250px;margin-right: 20px;">
|
25
34
|
<button @click="confirm()" class="btn button_search" style="width: 70px" :disabled='!$v.valid'>
|
26
35
|
<span class="glyphicon glyphicon-floppy-disk"></span>保存
|
@@ -30,129 +39,57 @@
|
|
30
39
|
</validator>
|
31
40
|
</div>
|
32
41
|
</div>
|
33
|
-
|
34
42
|
</template>
|
35
43
|
|
36
44
|
<script>
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
created () {
|
54
|
-
},
|
55
|
-
ready () {
|
56
|
-
// this.close()
|
57
|
-
new HttpResetClass().load('POST','rs/sql/safe_singleTable_OrderBy',{data: {
|
58
|
-
items: 'id,f_check_book_name,f_check_book_type,f_user_type',
|
59
|
-
tablename: 't_check_book',
|
60
|
-
condition: `1=1`,
|
61
|
-
orderitem: 'id'
|
62
|
-
}}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
63
|
-
console.log("checkbook", res.data)
|
64
|
-
res.data.forEach(item=>{
|
65
|
-
this.checkbooks.push({
|
66
|
-
f_user_type:item.f_user_type,
|
67
|
-
booktype:item.f_check_book_type,
|
68
|
-
label:item.f_check_book_name,
|
69
|
-
value:item.id
|
70
|
-
})
|
71
|
-
})
|
72
|
-
this.checkbook = this.checkbooks.filter(item=>item.f_user_type==='民用')
|
73
|
-
})
|
74
|
-
},
|
75
|
-
methods: {
|
76
|
-
selectbook(val){
|
77
|
-
|
78
|
-
},
|
79
|
-
close () {
|
80
|
-
|
45
|
+
export default {
|
46
|
+
name: 'AddTobook',
|
47
|
+
props: ['usernum'],
|
48
|
+
data () {
|
49
|
+
return {
|
50
|
+
model: {
|
51
|
+
f_check_book_num: '',
|
52
|
+
f_userinfo_code: '',
|
53
|
+
f_user_state: '',
|
54
|
+
f_operator: this.$login.f.name,
|
55
|
+
f_operatorid: this.$login.f.id,
|
56
|
+
f_orgid: this.$login.f.orgid,
|
57
|
+
f_orgname: this.$login.f.orgs,
|
58
|
+
f_depid: this.$login.f.depids,
|
59
|
+
f_depname: this.$login.f.deps,
|
60
|
+
f_state: '有效'
|
81
61
|
},
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
userCondition = this.$parent.bookCondition
|
99
|
-
}
|
100
|
-
}else if(this.$parent.bookList.length > 0){
|
101
|
-
userCondition = this.$parent.$refs.tabs.active ===0? 'ta.id in (' + this.$parent.bookList.toString() + ')':
|
102
|
-
'tc.id in (' + this.$parent.bookList.toString() + ')'
|
103
|
-
}else{
|
104
|
-
this.$showMessage(this.$parent.$refs.tabs.active===0?'请选择小区':'请选择单位')
|
105
|
-
return;
|
106
|
-
}
|
107
|
-
if(this.$parent.$refs.tabs.active ===0){
|
108
|
-
new HttpResetClass().load('POST', 'rs/logic/updateCheckBook', {data: {f_check_book_id: this.model.f_check_book_num,
|
109
|
-
f_check_book_type:'小区',condition:userCondition}},
|
110
|
-
{resolveMsg: null, rejectMsg: '添加失败'}).then(res=>{
|
111
|
-
if(res && res.data){
|
112
|
-
this.model.f_check_book_num = ""
|
113
|
-
this.$showMessage("本次成功添加"+res.data+"个小区",['confirm']).then(res=>{
|
114
|
-
if(res==='confirm'){
|
115
|
-
console.log("刷新了")
|
116
|
-
bus.$emit('fresh-area')
|
117
|
-
}
|
118
|
-
})
|
119
|
-
}else{
|
120
|
-
this.$showMessage("添加失败")
|
121
|
-
}
|
122
|
-
})
|
123
|
-
}else{
|
124
|
-
new HttpResetClass().load('POST', 'rs/logic/updateCheckBook', {data: {f_check_book_id: this.model.f_check_book_num,
|
125
|
-
f_check_book_type:'单位',condition:userCondition}},
|
126
|
-
{resolveMsg: null, rejectMsg: '添加失败'}).then(res=>{
|
127
|
-
if(res && res.data){
|
128
|
-
this.model.f_check_book_num = ""
|
129
|
-
this.$showMessage("本次成功添加"+res.data+"个单位",['confirm']).then(res=>{
|
130
|
-
if(res==='confirm'){
|
131
|
-
console.log("刷新了")
|
132
|
-
bus.$emit('fresh-area')
|
133
|
-
}
|
134
|
-
})
|
135
|
-
}else{
|
136
|
-
this.$showMessage("添加失败")
|
137
|
-
}
|
138
|
-
})
|
139
|
-
}
|
140
|
-
}
|
62
|
+
checkbook: [],
|
63
|
+
f_orgid: ''
|
64
|
+
}
|
65
|
+
},
|
66
|
+
created () {
|
67
|
+
},
|
68
|
+
async ready () {
|
69
|
+
// await this.$LoadParams.loadMeterBook(this.f_filialeid)
|
70
|
+
this.$refs.paged.$refs.cri.model.performDate = this.$login.toStandardDateString()
|
71
|
+
// this.close()
|
72
|
+
},
|
73
|
+
methods: {
|
74
|
+
selectbook(val){
|
75
|
+
console.log("val",val)
|
76
|
+
this.checkbook=val
|
77
|
+
console.log(" this.checkbook.push(val)", this.checkbook)
|
141
78
|
},
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
this.checkbook = this.checkbooks.filter(item=>item.f_user_type==='民用')
|
146
|
-
}else{
|
147
|
-
this.checkbook = this.checkbooks.filter(item=>item.f_user_type==='非民用')
|
148
|
-
}
|
149
|
-
this.model.f_check_book_num = ''
|
150
|
-
}
|
79
|
+
close () {
|
80
|
+
this.model.f_check_book_num = ''
|
81
|
+
this.$dispatch('add-tobook-refresh')
|
151
82
|
},
|
152
|
-
|
153
|
-
|
83
|
+
confirm () {
|
84
|
+
this.$dispatch('add-tobook-confirm', this.model)
|
154
85
|
}
|
86
|
+
},
|
87
|
+
computed: {
|
88
|
+
// meterbooks () {
|
89
|
+
// return [{label: '移出表册', value: 'null'}, ...this.$GetSaleParam.getMeterBooks()]
|
90
|
+
// }
|
155
91
|
}
|
92
|
+
}
|
156
93
|
</script>
|
157
94
|
|
158
95
|
<style lang="less">
|