apply-clients 3.3.110-211 → 3.3.110-212

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": "apply-clients",
3
- "version": "3.3.110-211",
3
+ "version": "3.3.110-212",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -11,7 +11,8 @@
11
11
  <th class="textNoLineBreak">材料编号</th>
12
12
  <th class="textNoLineBreak">材料标识</th>
13
13
  <th class="textNoLineBreak">
14
- <button class="button_new button_spacing" type="button" @click="$parent.$parent.openMaterialModal()">添加</button>
14
+ <button class="button_new button_spacing" type="button" @click="$parent.$parent.openMaterialModal()">添加
15
+ </button>
15
16
  </th>
16
17
  </tr>
17
18
  </template>
@@ -39,8 +40,11 @@
39
40
  <nobr>{{row.f_material_code}}</nobr>
40
41
  </td>
41
42
  <td style="text-align: center;">
42
- <button type="button" class="button_search button_spacing" @click="$parent.$parent.updateMaterial($index,row)">修改</button>
43
- <button type="button" class="button_delete button_spacing" @click="$parent.$parent.deleteMaterial(row)">删除</button>
43
+ <button type="button" class="button_search button_spacing"
44
+ @click="$parent.$parent.updateMaterial($index,row)">修改
45
+ </button>
46
+ <button type="button" class="button_delete button_spacing" @click="$parent.$parent.deleteMaterial(row)">删除
47
+ </button>
44
48
  </td>
45
49
  </tr>
46
50
  </template>
@@ -55,11 +59,14 @@
55
59
  <div v-for="(i,item) in materials" class="form-group col-sm-12 panel panel-info">
56
60
  <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
57
61
  <div class="col-sm-6 text-left">材料{{$index+1}}信息</div>
58
- <div class="col-sm-6 text-right"><button
59
- class="button_delete button_spacing"
60
- @click.prevent="deleteDevicesinfo(i)"
61
- v-if="title === '新增'"
62
- >删除</button></div>
62
+ <div class="col-sm-6 text-right">
63
+ <button
64
+ class="button_delete button_spacing"
65
+ @click.prevent="deleteDevicesinfo(i)"
66
+ v-if="title === '新增'"
67
+ >删除
68
+ </button>
69
+ </div>
63
70
  </div>
64
71
  <div class="form-group col-sm-6">
65
72
  <label class="col-sm-4 control-label">选择材料:</label>
@@ -141,8 +148,12 @@
141
148
  <footer slot="modal-footer" class="modal-footer">
142
149
  <template v-if="mark !== 1">
143
150
  <button type="button" class="btn btn-primary" v-if="title==='新增'" @click="pushMaterial()">添加材料</button>
144
- <button type="button" class="btn btn-primary" v-if="title==='新增'" @click="addMaterial()" :disabled="!$v.valid">确认添加</button>
145
- <button type="button" class="btn btn-primary" v-if="title==='修改'" @click="updateConfirm()" :disabled="!$v.valid">确认修改</button>
151
+ <button type="button" class="btn btn-primary" v-if="title==='新增'" @click="addMaterial()"
152
+ :disabled="!$v.valid">确认添加
153
+ </button>
154
+ <button type="button" class="btn btn-primary" v-if="title==='修改'" @click="updateConfirm()"
155
+ :disabled="!$v.valid">确认修改
156
+ </button>
146
157
  </template>
147
158
  </footer>
148
159
  </modal>
@@ -152,6 +163,7 @@
152
163
  <script>
153
164
  import Vue from 'vue'
154
165
  import {HttpResetClass} from 'vue-client'
166
+
155
167
  export default {
156
168
  name: 'addMaterialScience',
157
169
  props: {
@@ -159,29 +171,29 @@
159
171
  type: Object
160
172
  }
161
173
  },
162
- data () {
174
+ data() {
163
175
  return {
164
176
  onetomany: {
165
177
  rows: []
166
178
  },
167
- title:'新增',
168
- showMaterialModal:false,
169
- materials:[
179
+ title: '新增',
180
+ showMaterialModal: false,
181
+ materials: [
170
182
  {
171
- material:'',
172
- f_material_name:'',
173
- f_material_style:'',
174
- f_material_unit:'',
175
- f_material_number:'',
176
- f_bjq_sid:'',
177
- f_material_code:''
183
+ material: '',
184
+ f_material_name: '',
185
+ f_material_style: '',
186
+ f_material_unit: '',
187
+ f_material_number: '',
188
+ f_bjq_sid: '',
189
+ f_material_code: ''
178
190
  }
179
191
  ],
180
- meterialOptions:[],
181
- row:{}
192
+ meterialOptions: [],
193
+ row: {}
182
194
  }
183
195
  },
184
- ready(){
196
+ ready() {
185
197
  this.getOnetoManyData()
186
198
  },
187
199
  methods: {
@@ -193,44 +205,44 @@
193
205
  }
194
206
  let res = await http.load(
195
207
  'POST',
196
- `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
208
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable?aaa=123`,
197
209
  {data: data},
198
210
  {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
199
211
  )
200
212
  this.onetomany.rows = res.data
201
213
  },
202
- async openMaterialModal () {
214
+ async openMaterialModal() {
203
215
  this.getMateralNames()
204
216
  this.title = '新增'
205
217
  this.materials = [
206
218
  {
207
- material:'',
208
- f_material_name:'',
209
- f_material_style:'',
210
- f_material_unit:'',
211
- f_material_number:'',
212
- f_bjq_sid:'',
213
- f_material_code:''
219
+ material: '',
220
+ f_material_name: '',
221
+ f_material_style: '',
222
+ f_material_unit: '',
223
+ f_material_number: '',
224
+ f_bjq_sid: '',
225
+ f_material_code: ''
214
226
  }
215
227
  ],
216
228
  this.showMaterialModal = true
217
229
  },
218
- deleteDevicesinfo (index) {
230
+ deleteDevicesinfo(index) {
219
231
  this.materials.splice(index, 1)
220
232
  },
221
- pushMaterial () {
233
+ pushMaterial() {
222
234
  this.materials.push({
223
- material:'',
224
- f_material_name:'',
225
- f_material_style:'',
226
- f_material_unit:'',
227
- f_material_number:'',
228
- f_bjq_sid:'',
229
- f_material_code:''
235
+ material: '',
236
+ f_material_name: '',
237
+ f_material_style: '',
238
+ f_material_unit: '',
239
+ f_material_number: '',
240
+ f_bjq_sid: '',
241
+ f_material_code: ''
230
242
  })
231
243
  },
232
244
  // 获取模态框材料
233
- async getMateralNames () {
245
+ async getMateralNames() {
234
246
  let data = {
235
247
  condition: `1=1`
236
248
  }
@@ -249,9 +261,9 @@
249
261
  }
250
262
  })
251
263
  },
252
- modifyOtherValue (index){
253
- console.log("进来了",index)
254
- console.log("dddd",this.materials[index].material)
264
+ modifyOtherValue(index) {
265
+ console.log("进来了", index)
266
+ console.log("dddd", this.materials[index].material)
255
267
  let material = this.materials[index].material
256
268
  this.materials[index].f_material_name = material.f_material_name
257
269
  this.materials[index].f_material_style = material.f_material_style
@@ -259,16 +271,16 @@
259
271
  this.materials[index].f_material_number = material.f_material_number
260
272
  },
261
273
  // 新增材料
262
- async addMaterial () {
274
+ async addMaterial() {
263
275
  this.title = '新增'
264
276
  let data = {
265
- f_process_id : this.selectdata.f_process_id,
277
+ f_process_id: this.selectdata.f_process_id,
266
278
  f_operator_id: Vue.user.id,
267
279
  f_operator: Vue.user.name,
268
280
  f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
269
281
  f_orgid: Vue.user.orgid,
270
282
  f_orgname: Vue.user.orgs,
271
- materials:this.materials
283
+ materials: this.materials
272
284
  }
273
285
  let http = new HttpResetClass()
274
286
  let res = await http.load(
@@ -278,9 +290,9 @@
278
290
  )
279
291
  this.closeMaterials()
280
292
  },
281
- deleteMaterial (row) {
282
- this.$showMessage('您确定要删除这条记录吗?',['confirm']).then(res =>{
283
- if (res === 'confirm'){
293
+ deleteMaterial(row) {
294
+ this.$showMessage('您确定要删除这条记录吗?', ['confirm']).then(res => {
295
+ if (res === 'confirm') {
284
296
  let http = new HttpResetClass()
285
297
  let res = http.load(
286
298
  'DELETE',
@@ -292,23 +304,23 @@
292
304
  }
293
305
  })
294
306
  },
295
- async updateMaterial (index,row) {
307
+ async updateMaterial(index, row) {
296
308
  this.title = '修改'
297
309
  this.row = row
298
310
  this.getMateralNames()
299
311
  this.materials = [
300
312
  {
301
- material:'',
302
- f_material_name:row.f_material_name,
303
- f_material_style:row.f_material_style,
304
- f_material_unit:row.f_material_unit,
305
- f_material_number:row.f_material_number,
306
- f_material_code:row.f_material_code
313
+ material: '',
314
+ f_material_name: row.f_material_name,
315
+ f_material_style: row.f_material_style,
316
+ f_material_unit: row.f_material_unit,
317
+ f_material_number: row.f_material_number,
318
+ f_material_code: row.f_material_code
307
319
  }
308
320
  ]
309
321
  this.showMaterialModal = true
310
322
  },
311
- async updateConfirm () {
323
+ async updateConfirm() {
312
324
  let data = this.row
313
325
  data.f_material_name = this.materials[0].f_material_name
314
326
  data.f_material_style = this.materials[0].f_material_style
@@ -323,7 +335,7 @@
323
335
  )
324
336
  this.closeMaterials()
325
337
  },
326
- closeMaterials () {
338
+ closeMaterials() {
327
339
  this.getOnetoManyData()
328
340
  this.showMaterialModal = false
329
341
  }
@@ -158,7 +158,7 @@
158
158
  <label class="font_normal_body">表&emsp;&emsp;号:</label>
159
159
  <input type="text" style="width:60%" class="input_search" placeholder='表号' v-model="model.f_meternumber"
160
160
  v-on:keyup.enter="$parent.$parent.search()"
161
- condition="f_meternumber like '%{}%'">
161
+ condition="meternumber like '%{}%'">
162
162
  </div>
163
163
  <div class="form-group col-sm-3">
164
164
  <label class="font_normal_body">领用人:</label>