safecheck-client 3.0.33-13 → 3.0.33-15

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.
@@ -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 (prop, fileName) {
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
- f_filiale: Vue.user.f_fengongsi,
149
- f_outlets: Vue.user.f_parentname,
150
- f_orgstr: Vue.user.orgpathstr,
151
- f_filialeids: Vue.user.f_orgids,
152
- userfiles: {
153
- f_user_id: this.model.f_user_id,
154
- f_meternumber: this.model.f_meternumber,
155
- version: this.model.version,
156
- f_table_state: '正常',
157
- f_gas_date: Util.toStandardTimeString(),
158
- f_gas_person: this.model.f_gas_person,
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/entity/t_open_meter`, param, {rejectMsg: '开通失败', resolveMsg: '开通成功'}).then(res=>(
165
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/updateUserfiles`, param.userfiles).then((res) => {
166
- if (res.data == 200){this.$back()}else {this.$showMessage('网络异常,请稍后再试')}
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
  }