apply-clients 3.3.110-209 → 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-209",
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>
@@ -150,7 +161,9 @@
150
161
  </template>
151
162
 
152
163
  <script>
164
+ import Vue from 'vue'
153
165
  import {HttpResetClass} from 'vue-client'
166
+
154
167
  export default {
155
168
  name: 'addMaterialScience',
156
169
  props: {
@@ -158,83 +171,85 @@
158
171
  type: Object
159
172
  }
160
173
  },
161
- data () {
174
+ data() {
162
175
  return {
163
176
  onetomany: {
164
177
  rows: []
165
178
  },
166
- title:'新增',
167
- showMaterialModal:false,
168
- materials:[
179
+ title: '新增',
180
+ showMaterialModal: false,
181
+ materials: [
169
182
  {
170
- material:'',
171
- f_material_name:'',
172
- f_material_style:'',
173
- f_material_unit:'',
174
- f_material_number:'',
175
- f_bjq_sid:'',
176
- 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: ''
177
190
  }
178
191
  ],
179
- meterialOptions:[],
180
- row:{}
192
+ meterialOptions: [],
193
+ row: {}
181
194
  }
182
195
  },
183
- ready(){
196
+ ready() {
184
197
  this.getOnetoManyData()
185
198
  },
186
199
  methods: {
187
200
  async getOnetoManyData () {
201
+ let http = new HttpResetClass()
188
202
  let data = {
189
203
  tablename: `t_material_apply`,
190
204
  condition: `f_process_id='${this.selectdata.f_process_id}'`
191
205
  }
192
- let res = await this.$resetpost(
193
- 'rs/sql/singleTable',
206
+ let res = await http.load(
207
+ 'POST',
208
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable?aaa=123`,
194
209
  {data: data},
195
210
  {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
196
211
  )
197
212
  this.onetomany.rows = res.data
198
213
  },
199
- async openMaterialModal () {
214
+ async openMaterialModal() {
200
215
  this.getMateralNames()
201
216
  this.title = '新增'
202
217
  this.materials = [
203
218
  {
204
- material:'',
205
- f_material_name:'',
206
- f_material_style:'',
207
- f_material_unit:'',
208
- f_material_number:'',
209
- f_bjq_sid:'',
210
- 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: ''
211
226
  }
212
227
  ],
213
228
  this.showMaterialModal = true
214
229
  },
215
- deleteDevicesinfo (index) {
230
+ deleteDevicesinfo(index) {
216
231
  this.materials.splice(index, 1)
217
232
  },
218
- pushMaterial () {
233
+ pushMaterial() {
219
234
  this.materials.push({
220
- material:'',
221
- f_material_name:'',
222
- f_material_style:'',
223
- f_material_unit:'',
224
- f_material_number:'',
225
- f_bjq_sid:'',
226
- 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: ''
227
242
  })
228
243
  },
229
244
  // 获取模态框材料
230
- async getMateralNames () {
245
+ async getMateralNames() {
231
246
  let data = {
232
247
  condition: `1=1`
233
248
  }
234
249
  let http = new HttpResetClass()
235
250
  let res = await http.load(
236
251
  'POST',
237
- `rs/sql/getStockMaterial`,
252
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/getStockMaterial`,
238
253
  {data: data},
239
254
  {resolveMsg: null, rejectMsg: '材料查询失败!!!'}
240
255
  )
@@ -246,9 +261,9 @@
246
261
  }
247
262
  })
248
263
  },
249
- modifyOtherValue (index){
250
- console.log("进来了",index)
251
- console.log("dddd",this.materials[index].material)
264
+ modifyOtherValue(index) {
265
+ console.log("进来了", index)
266
+ console.log("dddd", this.materials[index].material)
252
267
  let material = this.materials[index].material
253
268
  this.materials[index].f_material_name = material.f_material_name
254
269
  this.materials[index].f_material_style = material.f_material_style
@@ -256,31 +271,32 @@
256
271
  this.materials[index].f_material_number = material.f_material_number
257
272
  },
258
273
  // 新增材料
259
- async addMaterial () {
274
+ async addMaterial() {
260
275
  this.title = '新增'
261
276
  let data = {
262
- f_process_id : this.selectdata.f_process_id,
263
- f_operator_id: this.$login.f.id,
264
- f_operator: this.$login.f.name,
277
+ f_process_id: this.selectdata.f_process_id,
278
+ f_operator_id: Vue.user.id,
279
+ f_operator: Vue.user.name,
265
280
  f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
266
- f_orgid: this.$login.f.f_orgids,
267
- f_orgname: this.$login.f.f_fengongsi,
268
- materials:this.materials
281
+ f_orgid: Vue.user.orgid,
282
+ f_orgname: Vue.user.orgs,
283
+ materials: this.materials
269
284
  }
270
- let res = await this.$resetpost(
271
- `rs/logic/saveMaterials`,
285
+ let http = new HttpResetClass()
286
+ let res = await http.load(
287
+ 'POST',
288
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/saveMaterials`,
272
289
  data
273
290
  )
274
291
  this.closeMaterials()
275
292
  },
276
- deleteMaterial (row) {
277
- this.$showMessage('您确定要删除这条记录吗?',['confirm']).then(res =>{
278
- if (res === 'confirm'){
293
+ deleteMaterial(row) {
294
+ this.$showMessage('您确定要删除这条记录吗?', ['confirm']).then(res => {
295
+ if (res === 'confirm') {
279
296
  let http = new HttpResetClass()
280
-
281
297
  let res = http.load(
282
298
  'DELETE',
283
- `rs/entity/t_material_apply/${row.id}`,
299
+ `${this.$androidUtil.getProxyUrl()}/rs/entity/t_material_apply/${row.id}`,
284
300
  null,
285
301
  {resolveMsg: null, rejectMsg: '删除失败!!!'}
286
302
  )
@@ -288,36 +304,38 @@
288
304
  }
289
305
  })
290
306
  },
291
- async updateMaterial (index,row) {
307
+ async updateMaterial(index, row) {
292
308
  this.title = '修改'
293
309
  this.row = row
294
310
  this.getMateralNames()
295
311
  this.materials = [
296
312
  {
297
- material:'',
298
- f_material_name:row.f_material_name,
299
- f_material_style:row.f_material_style,
300
- f_material_unit:row.f_material_unit,
301
- f_material_number:row.f_material_number,
302
- 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
303
319
  }
304
320
  ]
305
321
  this.showMaterialModal = true
306
322
  },
307
- async updateConfirm () {
323
+ async updateConfirm() {
308
324
  let data = this.row
309
325
  data.f_material_name = this.materials[0].f_material_name
310
326
  data.f_material_style = this.materials[0].f_material_style
311
327
  data.f_material_unit = this.materials[0].f_material_unit
312
328
  data.f_material_number = this.materials[0].f_material_number
313
329
  data.f_material_code = this.materials[0].f_material_code
314
- let res = await this.$resetpost(
315
- `rs/entity/t_material_apply`,
330
+ let http = new HttpResetClass()
331
+ let res = await http.load(
332
+ 'POST',
333
+ `${this.$androidUtil.getProxyUrl()}/rs/entity/t_material_apply`,
316
334
  data
317
335
  )
318
336
  this.closeMaterials()
319
337
  },
320
- closeMaterials () {
338
+ closeMaterials() {
321
339
  this.getOnetoManyData()
322
340
  this.showMaterialModal = false
323
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>