sale-client 3.5.265 → 3.5.266

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,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.265",
3
+ "version": "3.5.266",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -0,0 +1,252 @@
1
+ <template>
2
+ <div class="auto">
3
+ <modal :show.sync="show_devices" width="80%" title="设备信息" v-ref:modal large backdrop="false">
4
+ <article slot="modal-body" class="modal-body" style="height: auto">
5
+ <div class="flex-row flex-deviceinfo">
6
+ <div class="flex-row flex-two-info panel panel-default" v-for="(index,row) in devicesinfonew">
7
+ <avatar-upload :img-src.sync="row.img.content" :filename.sync="row.img.filename"></avatar-upload>
8
+ <form class="form-horizontal select-overspread " style="flex: 1;">
9
+ <div class="row auto" style="margin-top: 10px;margin-left: 10px;">
10
+ <div class="col-sm-6 form-group" style="padding-right: 5px;">
11
+ <label class="font_normal_body">设备类型</label>
12
+ <v-select :value.sync="row.f_devices_type" v-model="row.f_devices_type"
13
+ :options='devicetypes' placeholder='设备类型' :value-single="true"
14
+ close-on-select @change="onChange"></v-select>
15
+ </div>
16
+ <div class="col-sm-6 form-group" style="padding-right: 5px;">
17
+ <label class=" font_normal_body">厂&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;家&nbsp;</label>
18
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_manufactor"
19
+ placeholder='厂家' v-next-el="{id: $index+'brand'}">
20
+ </div>
21
+ </div>
22
+ <div class="row auto" style="margin-left: 10px;">
23
+ <div class="col-sm-6 form-group" style="padding-right: 5px;">
24
+ <label class=" font_normal_body">设备编号</label>
25
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_devices_no" placeholder='设备编号' v-next-el="{id: $index+'brand'}">
26
+ </div>
27
+ <div class="col-sm-6 form-group" style="padding-right: 5px;">
28
+ <label class="font_normal_body">设备品牌</label>
29
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_brand" placeholder='设备品牌' v-next-el="{id: $index+'devicesmodel'}" :id="$index+'brand'">
30
+ </div>
31
+ </div>
32
+ <div class="row auto" style="margin-left: 10px;">
33
+ <div class="col-sm-6 form-group" style="padding-right: 5px;">
34
+ <label class="font_normal_body">设备型号</label>
35
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_devices_model"
36
+ placeholder='设备型号' :id="$index+'devicesmodel'">
37
+ </div>
38
+ <div class="col-sm-6 form-group" style="padding-right: 5px;">
39
+ <label class="font_normal_body">&nbsp;安&nbsp;装&nbsp;人&nbsp;</label>
40
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_instaler_person"
41
+ placeholder='安装人' v-next-el="{id: $index+'f_instaler_person'}" :id="$index+'brand'">
42
+ </div>
43
+ </div>
44
+ <div class="row auto" style="margin-left: 10px;">
45
+ <div class="col-sm-6 form-group" style="padding-right: 5px;">
46
+ <label class="font_normal_body">生产日期</label>
47
+ <datepicker placeholder="生产日期" style="width: 60%"
48
+ v-model="row.f_make_date"
49
+ :value.sync="row.f_make_date"
50
+ :format="'yyyy-MM-dd HH:mm:ss'">
51
+ </datepicker>
52
+ </div>
53
+ <div class="col-sm-6 form-group" style="padding-right: 5px;">
54
+ <label class="font_normal_body">安装日期</label>
55
+ <datepicker placeholder="安装日期" style="width: 60%"
56
+ v-model="row.f_input_date"
57
+ :value.sync="row.f_input_date"
58
+ :onchange="expireDate(index)"
59
+ :format="'yyyy-MM-dd HH:mm:ss'">
60
+ </datepicker>
61
+ </div>
62
+ </div>
63
+ <div class="row auto" style="margin-left: 10px;">
64
+ <div class="col-sm-6 form-group" style="padding-right: 5px;">
65
+ <label class="font_normal_body">设备数量</label>
66
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_devices_num"
67
+ placeholder='设备数量' v-next-el="{id: $index+'devicesmodel'}" :id="$index+'brand'">
68
+ </div>
69
+ <div class="col-sm-6 form-group" style="padding-right: 5px;" v-show="row.f_devices_type == '报警器'">
70
+ <label class="font_normal_body">首校日期</label>
71
+ <datepicker placeholder="首校日期" style="width: 60%"
72
+ v-model="row.f_firstcheck_date"
73
+ :value.sync="row.f_firstcheck_date"
74
+ :onchange="alarmExpireDate(index)"
75
+ :format="'yyyy-MM-dd HH:mm:ss'">
76
+ </datepicker>
77
+ </div>
78
+ <div class="col-sm-6 form-group" style="padding-right: 5px;" v-show="row.f_devices_type == '调压器'">
79
+ <label class="font_normal_body">流&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;量&nbsp;</label>
80
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_rate_flow"
81
+ placeholder='流量' v-next-el="{id: $index+'devicesmodel'}" :id="$index+'brand'">
82
+ </div>
83
+ <div class="col-sm-6 form-group" style="padding-right: 5px;" v-if="row.f_devices_type == '切断阀' && devicesinfoShow">
84
+ <label class="font_normal_body">报废日期</label>
85
+ <datepicker placeholder="报废日期" style="width: 60%"
86
+ v-model="row.f_expire_date" disabled
87
+ :value.sync="row.f_expire_date"
88
+ :format="'yyyy-MM-dd HH:mm:ss'">
89
+ </datepicker>
90
+ </div>
91
+ </div>
92
+ <div class="row auto" style="margin-left: 10px;">
93
+ <div class="col-sm-6 form-group" style="padding-right: 5px;" v-if="row.f_devices_type == '报警器' && devicesinfoShow">
94
+ <label class="font_normal_body">报废日期</label>
95
+ <datepicker placeholder="报废日期" style="width: 60%"
96
+ v-model="row.f_expire_date" disabled
97
+ :value.sync="row.f_expire_date"
98
+ :format="'yyyy-MM-dd HH:mm:ss'">
99
+ </datepicker>
100
+ </div>
101
+ <div class="col-sm-6 form-group" style="padding-right: 5px;" v-if="row.f_devices_type == '报警器' && devicesinfoShow">
102
+ <label class="font_normal_body">下次校验</label>
103
+ <datepicker placeholder="下次校验日期" style="width: 60%"
104
+ v-model="row.f_nextcheck_date" disabled
105
+ :value.sync="row.f_nextcheck_date"
106
+ :format="'yyyy-MM-dd HH:mm:ss'">
107
+ </datepicker>
108
+ </div>
109
+ <div class="col-sm-6 form-group" style="padding-right: 5px;" v-show="row.f_devices_type == '调压器'">
110
+ <label class="font_normal_body">压力范围</label>
111
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_pressure_range"
112
+ placeholder='压力范围' v-next-el="{id: $index+'devicesmodel'}" :id="$index+'brand'">
113
+ </div>
114
+ </div>
115
+ <div class="row auto" style="margin-left: 10px;">
116
+ <div style="" class="col-sm-8 form-group">
117
+ <label for="f_comments" class="font_normal_body ">&nbsp;&nbsp;&nbsp;备&nbsp;&nbsp;&nbsp;注</label>
118
+ <input class="input_search" style="width:80%" v-model="row.f_comments"/>
119
+ </div>
120
+ </div>
121
+ </form>
122
+ <img :src="imgdelete" alt="图片加载失败" class="img-rounded"
123
+ style="width: 60px;padding: 20px;margin-left: -15px;cursor: pointer;"
124
+ @click="deleteDevice($index, row)">
125
+ </div>
126
+ <div class="panel panel-default flex-two-info text-center" style="line-height: 164px;">
127
+ <img :src="imgadd" alt="图片加载失败1" class="img-rounded" style="width: 60px;padding: 10px;cursor: pointer;"
128
+ @click="addDevice()">
129
+ </div>
130
+ </div>
131
+ </article>
132
+ <footer slot="modal-footer" class="modal-footer">
133
+ </footer>
134
+ </modal>
135
+ </div>
136
+
137
+ </template>
138
+
139
+ <script>
140
+ export default {
141
+ title: '表具设备信息',
142
+ data () {
143
+ return {
144
+ imgdelete: '/images/mainicon/deletedevice.png',
145
+ imgadd: '/images/mainicon/adddevice.png',
146
+ devicetypes: [{label: '调压器', value: '调压器'}, {label: '报警器', value: '报警器'}, {label: '切断阀', value: '切断阀'}],
147
+ devicesinfoShow: false
148
+ }
149
+ },
150
+ props: {
151
+ devicesinfonew: {
152
+ type: Array,
153
+ default: []
154
+ },
155
+ show_devices: {
156
+ type: Boolean,
157
+ default: false
158
+ },
159
+ usertype: {
160
+ type: String
161
+ }
162
+ },
163
+ methods: {
164
+ onChange (val) {
165
+ console.log('。。。。。看看变化的值:' + val)
166
+ this.changeDate()
167
+ },
168
+ changeDate () {
169
+ for (let i = 0; i < this.devicesinfonew.length; i++) {
170
+ if (this.devicesinfonew[i].f_devices_type == '报警器') {
171
+ this.alarmExpireDate(i)
172
+ } else if (this.devicesinfonew[i].f_devices_type == '切断阀') {
173
+ this.expireDate(i)
174
+ }
175
+ }
176
+ },
177
+ expireDate (index) {
178
+ if (this.devicesinfonew[index].f_devices_type == '切断阀') {
179
+ if (this.devicesinfonew[index].f_input_date === '' || this.devicesinfonew[index].f_input_date === undefined) {
180
+ } else {
181
+ let b = new Date(this.devicesinfonew[index].f_input_date)
182
+ let year = (b.getFullYear() - 0) + 10
183
+ let month = (b.getMonth() - 0) + 1
184
+ var day = b.getDate()
185
+ this.devicesinfonew[index].f_expire_date = year + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day)
186
+ this.devicesinfoShow = false
187
+ this.$nextTick(() => {
188
+ this.devicesinfoShow = true
189
+ })
190
+ }
191
+ }
192
+ },
193
+ alarmExpireDate (index) {
194
+ if (this.devicesinfonew[index].f_firstcheck_date === '' || this.devicesinfonew[index].f_firstcheck_date === undefined) {
195
+ } else {
196
+ let b = new Date(this.devicesinfonew[index].f_firstcheck_date)
197
+ let year = (b.getFullYear() - 0) + 3
198
+ let year2 = (b.getFullYear() - 0) + 1
199
+ let month = (b.getMonth() - 0) + 1
200
+ var day = b.getDate()
201
+ this.devicesinfonew[index].f_expire_date = year + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day)
202
+ this.devicesinfonew[index].f_nextcheck_date = year2 + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day)
203
+ this.devicesinfoShow = false
204
+ this.$nextTick(() => {
205
+ this.devicesinfoShow = true
206
+ })
207
+ }
208
+ },
209
+ deleteDevice (index, row) {
210
+ console.log('删除的信息', row)
211
+ if (!this.$login.r.includes('删除表具设备信息')) {
212
+ return this.$showAlert('【删除表具设备信息】权限不足!!!', 'info', 1000)
213
+ }
214
+ if (row.id) {
215
+ this.$showMessage('此操作无法还原,是否确定要删除此设备?', ['confirm', 'cancel']).then((res) => {
216
+ if (res === 'confirm') {
217
+ this.$resetpost('rs/logic/deletedevices', {param: row}, {
218
+ resolveMsg: `成功删除此设备`,
219
+ rejectMsg: '删除设备失败'
220
+ }).then((res) => {
221
+ this.devicesinfonew.splice(index, 1)
222
+ })
223
+ }
224
+ })
225
+ } else {
226
+ this.devicesinfonew.splice(index, 1)
227
+ }
228
+ },
229
+ addDevice () {
230
+ console.log('设备信息', this.devicesinfonew)
231
+ this.devicesinfonew.push({
232
+ f_devices_type: '调压器',
233
+ f_input_date: this.$login.toStandardTimeString()
234
+ })
235
+ }
236
+ }
237
+ }
238
+ </script>
239
+ <style lang="less">
240
+ .flex-deviceinfo {
241
+ padding: 0px 20px;
242
+ justify-content: space-between;
243
+ height: auto;
244
+ flex-wrap: wrap;
245
+ }
246
+
247
+ .flex-two-info {
248
+ margin-bottom: 10px;
249
+ align-items: center;
250
+ width: 48%;
251
+ }
252
+ </style>
@@ -0,0 +1,179 @@
1
+ <template>
2
+ <div class="auto">
3
+ <div class="" v-for="row in meterinfo">
4
+ <div style="margin-bottom: 2%; margin-top: 2%">
5
+ <img style="margin-top: -5px" src="../../../static/images/lefticon/矩形1183.png">
6
+ <a style="font-size: 20px;font-weight: 500;">表具{{ $index + 1 }}信息</a>&nbsp;<a
7
+ style="color: #999999;text-decoration: none"></a>
8
+ <button class="button_search" style="width: max-content" @click="deleteMeter($index, row)"
9
+ v-if="!row.f_table_state ">删除表具
10
+ </button>
11
+ <button class="button_search" style="width: max-content" @click="showDevices($index, row)">用气设备信息</button>
12
+ <button class="button_search" style="width: max-content" @click="showDevicesNew($index, row)">设备信息</button>
13
+ </div>
14
+ <file-meter-info :curuser="curuser" :meter="row" :f_filialeid="f_filialeid" :usertype="usertype"
15
+ :gasproperties="gasproperties" :overdueset="overdueset" @self-valid='valida'
16
+ @delete-meter="deleteMeter($index)" :f_userinfo_id="f_userinfo_id"></file-meter-info>
17
+ <file-user-fire-info @clearfire="clearfire(row)" :addressinfo="addressinfo" :fireinfo.sync="fireinfo"
18
+ :show_fire.sync="show_fire" :meter.sync="row" :baseinfo.sync="baseinfo"
19
+ :userinfoid='data.baseinfo.base.f_userinfo_id'></file-user-fire-info>
20
+
21
+ </div>
22
+ <div class="panel panel-default auto text-center" @click="addMeter()" style="cursor: pointer;"
23
+ v-if="permission('建档一户多表')">
24
+ <span class="glyphicon glyphicon-plus"></span>
25
+ <!--<img :src="imgmeter" alt="图片加载失败" class="img-rounded" style="width: 50px;margin:10px;">-->
26
+ </div>
27
+ <file-user-device-info :devicesinfo.sync="devicesinfo" :show_devices.sync="show_devices"
28
+ :f_input_person="f_input_person"
29
+ :userinfoid='data.baseinfo.base.f_userinfo_id'></file-user-device-info>
30
+ <customer-device-info-test :devicesinfonew.sync="devicesinfonew" :show_devices.sync="show_devices_new"
31
+ :f_input_person="f_input_person" :usertype.sync="data.baseinfo.base.f_user_type"
32
+ :userinfoid='data.baseinfo.base.f_userinfo_id'></customer-device-info-test>
33
+ </div>
34
+ </template>
35
+
36
+ <script>
37
+ import UserDeviceInfoTest from './UserDeviceInfoTest'
38
+ import CustomerDeviceInfoTest from './CustomerDeviceInfoTest'
39
+
40
+ export default {
41
+ components: {CustomerDeviceInfoTest, UserDeviceInfoTest},
42
+ title: '表具信息',
43
+ data () {
44
+ return {
45
+ pricenames: [],
46
+ devicesinfo: [],
47
+ devicesinfonew: [],
48
+ show_devices: false,
49
+ show_devices_new: false,
50
+ fireinfo: {},
51
+ f_input_person: '',
52
+ show_fire: false,
53
+ imgdelete: '/images/mainicon/deletedevice.png',
54
+ imgsrc: '/images/mainicon/biaopan.png',
55
+ imgmeter: '/images/mainicon/addmeter.png'
56
+ }
57
+ },
58
+ // props: ['meterinfo', 'usertype', 'gasproperties', 'metervalid'],
59
+
60
+ props: {
61
+ meterinfo: [],
62
+ usertype: {},
63
+ gasproperties: {},
64
+ metervalid: {
65
+ twoWay: true
66
+ },
67
+ addressinfo: {},
68
+ baseinfo: {},
69
+ f_filialeid: {},
70
+ f_userinfo_id: {},
71
+ overdueset: {},
72
+ curuser: {}
73
+ },
74
+ ready () {
75
+ console.log('表具信息,,,,', this.meterinfo)
76
+ },
77
+ methods: {
78
+ permission (name) {
79
+ if (!this.$login.r.find(value => value == name)) {
80
+ return false
81
+ }
82
+ return true
83
+ },
84
+ isNull (value) {
85
+ return value && value.length > 0
86
+ },
87
+ addMeter () {
88
+ this.meterinfo.push({
89
+ // 表号
90
+ f_meternumber: '',
91
+ f_metertitles: '',
92
+ f_area_code: '',
93
+ // 气表品牌
94
+ gasbrand: '',
95
+ // 气表型号
96
+ gasmodel: '',
97
+ // 气表类型
98
+ gasmodeltype: '',
99
+ pricetype: '', // 气价类型
100
+ pricename: '', // 气价名称
101
+ f_user_type: '', // 用户类型
102
+ f_gasproperties: '', // 用气性质
103
+ f_inputtor: '',
104
+ // 安装位置
105
+ f_position: '',
106
+ f_subscribe_date: '',
107
+ // 左右表
108
+ f_aroundmeter: '',
109
+ f_garbage_fee: '',
110
+ f_meter_base: '',
111
+ // 安装人
112
+ f_instaler_person: '',
113
+ // 通气人
114
+ f_gas_person: '',
115
+ f_adjustable: '', // 调压箱
116
+ devicesinfo: [],
117
+ fireinfo: {}
118
+ })
119
+ },
120
+
121
+ showDevices (index, row) {
122
+ this.devicesinfo = []
123
+ this.show_devices = true
124
+ this.devicesinfo = row.devicesinfo
125
+ if (row.f_install_person[0]) {
126
+ this.f_input_person = row.f_install_person[0]
127
+ }
128
+ console.log('查看设备信息', this.devicesinfo)
129
+ console.log('查看设备信息', Object.prototype.toString.call(this.devicesinfo) === '[object Array]')
130
+ },
131
+ showDevicesNew (index, row) {
132
+ this.devicesinfonew = []
133
+ this.show_devices_new = true
134
+ this.devicesinfonew = row.devicesinfonew
135
+ if (row.f_install_person[0]) {
136
+ this.f_input_person = row.f_install_person[0]
137
+ }
138
+ console.log('查看设备信息2', this.devicesinfonew)
139
+ },
140
+ showFire (index, row) {
141
+ if (row.f_user_type.length == 0) {
142
+ this.$showAlert('请先确定客户类型', 'warning', 3000)
143
+ } else {
144
+ this.fireinfo = {}
145
+ this.show_fire = true
146
+ this.fireinfo = row.fireinfo ? row.fireinfo : {}
147
+ }
148
+ },
149
+ // 清楚表具信息
150
+
151
+ clearMeter () {
152
+ this.meterinfo = []
153
+ },
154
+ deleteMeter (index) {
155
+ this.meterinfo.splice(index, 1)
156
+ this.valida()
157
+ },
158
+ valida () {
159
+ for (var i = 0; i < this.meterinfo.length; i++) {
160
+ console.log('表具信息验证', this.meterinfo, this.meterinfo[i].valid)
161
+ if (!this.meterinfo[i].valid) {
162
+ this.metervalid = false
163
+ return
164
+ }
165
+ }
166
+ this.metervalid = true
167
+ }
168
+ }
169
+ }
170
+ </script>
171
+ <style lang="less">
172
+ .user-meter-padding {
173
+ .form-group {
174
+ > div {
175
+ padding-right: 5px;
176
+ }
177
+ }
178
+ }
179
+ </style>
@@ -101,4 +101,8 @@ export default function () {
101
101
  Vue.component('al-returns-money', (resolve) => { require(['./alReturnsMoney'], resolve) })
102
102
  // 收费
103
103
  Vue.component('charge-list', (resolve) => { require(['./ChargeList'], resolve) })
104
+ Vue.component('customer-device-info', (resolve) => { require(['./CustomerDeviceInfoTest'], resolve) })
105
+
106
+ // 用户表具信息test
107
+ Vue.component('file-user-meter-info', (resolve) => { require(['./UserMeterInfoTest'], resolve) })
104
108
  }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="auto" id="meterInfoTest">
3
- <validator name='m' @valid="mValid(true)" @invalid="mValid(true)">
3
+ <validator name='m' @valid="mValid(true)" @invalid="mValid(false)">
4
4
  <form class="form-horizontal select-overspread ">
5
5
  <div style="margin-top: 2%;">
6
6
  <a style="font-size: 16px;font-weight: 500;">表具信息</a>&nbsp;<a style="color: #999999;text-decoration: none"></a>
@@ -350,9 +350,9 @@
350
350
  v-ref:aroundmeter
351
351
  ></v-select>
352
352
  </div>
353
- <div class="col-sm-4 form-group" v-if="this.flag===1" >
353
+ <div class="col-sm-4 form-group" v-if="this.flag===1" :class="[$m.aroundmeter.required ? 'has-error' : '']" >
354
354
  <label for="f_aroundmeter" class="font_normal_body">&ensp;左&ensp;右&ensp;表</label>
355
- <input type="text" v-model="row.f_aroundmeter" v-show="false">
355
+ <input type="text" v-model="row.f_aroundmeter" v-show="false" v-validate:aroundmeter='{required: true }'>
356
356
  <v-select :value.sync="row.f_aroundmeter" v-model="row.f_aroundmeter"
357
357
  :options='aroundmeters' placeholder='请选择'
358
358
  close-on-select
@@ -42,7 +42,7 @@
42
42
  <div class="form-group">
43
43
  <div style="text-align:right;">
44
44
 
45
- <button class="button_search" @click="confirm()" :disabled="flag===2?!(essentialInfo && meterInfo ):false">确认
45
+ <button class="button_search" @click="confirm()" :disabled="!(essentialInfo && meterInfo )">确认
46
46
  </button>
47
47
  <button class="button_search" style="width: max-content" v-if="haslimit" @click="limitClick">限购配置</button>
48
48
  <button class="button_clear" @click="cancel()">取消</button>
@@ -325,6 +325,7 @@ export default {
325
325
  // 如果是修改, 则展示修改的明细给用户
326
326
  if (this.fileSaveData.userinfo.f_userinfo_id) {
327
327
  if (this.row.f_user_state === '预备' && this.fileSaveData.userinfo.f_user_state === '正常') {
328
+ this.fileSaveData.userinfo.f_createfile_person = this.$login.f.name
328
329
  this.fileSaveData.modifyReason = this.reason = '建档(档案信息完善)'
329
330
  } else {
330
331
  this.reason = '其他'
@@ -362,9 +363,9 @@ export default {
362
363
  console.log('打印保存数据', this.fileSaveData)
363
364
  console.log('打印id', this.fileSaveData.userinfo.f_userinfo_id)
364
365
  // 如果是修改操作则修改建党人
365
- if (this.fileSaveData.userinfo.f_userinfo_id) {
366
- this.fileSaveData.userinfo.f_createfile_person = this.$login.f.name
367
- }
366
+ // if (this.fileSaveData.userinfo.f_userinfo_id) {
367
+ // this.fileSaveData.userinfo.f_createfile_person = this.$login.f.name
368
+ // }
368
369
  console.log('二次打印打印保存数据', this.fileSaveData)
369
370
  FileManageService.fileSave(this.fileSaveData).then((res) => {
370
371
  this.$parent.resdata = res.data.result[0].f_userinfo_code
@@ -271,6 +271,47 @@ let FileManageService = {
271
271
  // }
272
272
  userfilesdevices.push(userfilesdevice)
273
273
  })
274
+ // 这里是给荣成新增的一个模块
275
+ if (meter.devicesinfonew != undefined && Object.prototype.toString.call(meter.devicesinfonew) === '[object Array]') {
276
+ meter.devicesinfonew.forEach((devitem) => {
277
+ let userfilesdevice = Object.assign({}, userfilesdevice, devitem)
278
+ userfilesdevice.f_user_id = data.meterinfo[0].f_user_id ? data.meterinfo[0].f_user_id : null
279
+ userfilesdevice.f_devices_type = userfilesdevice.f_devices_type
280
+ userfilesdevice.WatchPurchase = userfilesdevice.WatchPurchase
281
+ userfilesdevice.f_state = userfilesdevice.f_state ? userfilesdevice.f_state : '有效'
282
+ userfilesdevice.f_devices_no = userfilesdevice.f_devices_no ? userfilesdevice.f_devices_no : null
283
+ userfilesdevice.f_brand = userfilesdevice.f_brand ? userfilesdevice.f_brand : null
284
+ userfilesdevice.f_builderunit = userfilesdevice.f_builderunit ? userfilesdevice.f_builderunit : null
285
+ userfilesdevice.f_builder_phone = userfilesdevice.f_builder_phone ? userfilesdevice.f_builder_phone : null
286
+ userfilesdevice.f_devices_model = userfilesdevice.f_devices_model ? userfilesdevice.f_devices_model : null
287
+ userfilesdevice.f_devices_num = userfilesdevice.f_devices_num ? userfilesdevice.f_devices_num : null
288
+ userfilesdevice.f_input_person = userfilesdevice.f_input_person ? userfilesdevice.f_input_person : null
289
+ userfilesdevice.f_input_date = userfilesdevice.f_input_date ? userfilesdevice.f_input_date : null
290
+ userfilesdevice.f_make_date = userfilesdevice.f_make_date ? userfilesdevice.f_make_date : null
291
+ userfilesdevice.f_service_life = userfilesdevice.f_service_life ? userfilesdevice.f_service_life : null
292
+ userfilesdevice.f_expire_date = userfilesdevice.f_expire_date ? userfilesdevice.f_expire_date : null
293
+ userfilesdevice.f_pipeinstall_date = userfilesdevice.f_pipeinstall_date ? userfilesdevice.f_pipeinstall_date : null
294
+ userfilesdevice.f_pipe_type = userfilesdevice.f_pipe_type ? userfilesdevice.f_pipe_type : null
295
+ userfilesdevice.f_pipeexpire_date = userfilesdevice.f_pipeexpire_date ? userfilesdevice.f_pipeexpire_date : null
296
+ userfilesdevice.f_userinfodevices_state = userfilesdevice.f_userinfodevices_state ? userfilesdevice.f_userinfodevices_state : null
297
+ userfilesdevice.f_manufactor = userfilesdevice.f_manufactor ? userfilesdevice.f_manufactor : null
298
+ userfilesdevice.f_rate_flow = userfilesdevice.f_rate_flow ? userfilesdevice.f_rate_flow : null
299
+ userfilesdevice.f_pressure_range = userfilesdevice.f_pressure_range ? userfilesdevice.f_pressure_range : null
300
+ userfilesdevice.f_firstcheck_date = userfilesdevice.f_firstcheck_date ? userfilesdevice.f_firstcheck_date : null
301
+ userfilesdevice.f_nextcheck_date = userfilesdevice.f_nextcheck_date ? userfilesdevice.f_nextcheck_date : null
302
+ userfilesdevice.f_comments = userfilesdevice.f_comments ? userfilesdevice.f_comments : null
303
+ userfilesdevice.img = userfilesdevice.img ? userfilesdevice.img : {content: null, filename: null}
304
+ userfilesdevice.img.content = userfilesdevice.img.content ? userfilesdevice.img.content : null
305
+ userfilesdevice.img.filename = userfilesdevice.img.filename ? userfilesdevice.img.filename : null
306
+ userfilesdevice.f_operator = Vue.$login.f.name
307
+ userfilesdevice.f_operatorid = Vue.$login.f.id
308
+ // if (!userfilesdevice.id) {
309
+ // userfilesdevice.f_input_person = Vue.$login.f.name
310
+ // userfilesdevice.f_input_date = Vue.$login.toStandardTimeString ()
311
+ // }
312
+ userfilesdevices.push(userfilesdevice)
313
+ })
314
+ }
274
315
  meter.devicesinfo = userfilesdevices
275
316
  result.userfiles.push(meter)
276
317
  })