apply-clients 3.4.21 → 3.4.22
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/index.html +33 -33
- package/package.json +1 -1
- package/src/components/android/Process/AppExplorationUser.vue +10 -10
- package/src/filiale/guangxi/android/Process/Processes/AppAddMaterialScience.vue +57 -68
- package/src/filiale/guangxi/pc/ApplyCharge/chargeManagement.vue +674 -0
- package/src/filiale/guangxi/pc/Process/Service/addMaterialScience.vue +72 -47
- package/src/filiale/guangxi/pc.js +1 -0
- package/src/main.js +3 -3
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
<tr>
|
|
6
6
|
<th class="textNoLineBreak">序号</th>
|
|
7
7
|
<th class="textNoLineBreak">材料名称</th>
|
|
8
|
-
<th class="textNoLineBreak">材料型号</th>
|
|
9
8
|
<th class="textNoLineBreak">材料单位</th>
|
|
9
|
+
<th class="textNoLineBreak">材料单价</th>
|
|
10
10
|
<th class="textNoLineBreak">材料数量</th>
|
|
11
|
-
<th class="textNoLineBreak"
|
|
12
|
-
<th class="textNoLineBreak"
|
|
11
|
+
<th class="textNoLineBreak">材料金额</th>
|
|
12
|
+
<th class="textNoLineBreak">材料备注</th>
|
|
13
13
|
<th class="textNoLineBreak">
|
|
14
14
|
<button class="button_new button_spacing" type="button" @click="$parent.$parent.openMaterialModal()">添加</button>
|
|
15
15
|
<button type="button" class="btn btn-info head-but" v-if="$parent.$parent.mark === 0"
|
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
<nobr>{{row.f_material_name}}</nobr>
|
|
29
29
|
</td>
|
|
30
30
|
<td style="text-align: center;">
|
|
31
|
-
<nobr>{{row.
|
|
31
|
+
<nobr>{{row.f_material_unit}}</nobr>
|
|
32
32
|
</td>
|
|
33
33
|
<td style="text-align: center;">
|
|
34
|
-
<nobr>{{row.
|
|
34
|
+
<nobr>{{row.f_material_price}}</nobr>
|
|
35
35
|
</td>
|
|
36
36
|
<td style="text-align: center;">
|
|
37
37
|
<nobr>{{row.f_material_number}}</nobr>
|
|
38
38
|
</td>
|
|
39
39
|
<td style="text-align: center;">
|
|
40
|
-
<nobr>{{row.
|
|
40
|
+
<nobr>{{row.f_material_money}}</nobr>
|
|
41
41
|
</td>
|
|
42
42
|
<td style="text-align: center;">
|
|
43
|
-
<nobr>{{row.
|
|
43
|
+
<nobr>{{row.f_material_remarks}}</nobr>
|
|
44
44
|
</td>
|
|
45
45
|
<td style="text-align: center;">
|
|
46
46
|
<button type="button" class="button_search button_spacing" @click="$parent.$parent.updateMaterial($index,row)">修改</button>
|
|
@@ -100,16 +100,6 @@
|
|
|
100
100
|
/>
|
|
101
101
|
</div>
|
|
102
102
|
</div>
|
|
103
|
-
<div class="form-group col-sm-6" :class="[item.f_material_style ? '' : 'has-error']">
|
|
104
|
-
<label class="col-sm-4 control-label">材料型号:</label>
|
|
105
|
-
<div class="col-sm-8">
|
|
106
|
-
<input class="form-control input_view" style="" type="text"
|
|
107
|
-
placeholder="材料型号"
|
|
108
|
-
v-model="item.f_material_style"
|
|
109
|
-
:value="item.f_material_style"
|
|
110
|
-
/>
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
103
|
<div class="form-group col-sm-6" :class="[item.f_material_unit ? '' : 'has-error']">
|
|
114
104
|
<label class="col-sm-4 control-label">材料单位:</label>
|
|
115
105
|
<div class="col-sm-8">
|
|
@@ -120,6 +110,16 @@
|
|
|
120
110
|
/>
|
|
121
111
|
</div>
|
|
122
112
|
</div>
|
|
113
|
+
<div class="form-group col-sm-6" :class="[item.f_material_price ? '' : 'has-error']">
|
|
114
|
+
<label class="col-sm-4 control-label">材料单价:</label>
|
|
115
|
+
<div class="col-sm-8">
|
|
116
|
+
<input class="form-control input_view" style="" type="text"
|
|
117
|
+
placeholder="材料单价"
|
|
118
|
+
v-model="item.f_material_price"
|
|
119
|
+
:value="item.f_material_price"
|
|
120
|
+
/>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
123
|
<div class="form-group col-sm-6" :class="[item.f_material_number ? '' : 'has-error']">
|
|
124
124
|
<label class="col-sm-4 control-label">材料数量:</label>
|
|
125
125
|
<div class="col-sm-8">
|
|
@@ -131,22 +131,22 @@
|
|
|
131
131
|
</div>
|
|
132
132
|
</div>
|
|
133
133
|
<div class="form-group col-sm-6">
|
|
134
|
-
<label class="col-sm-4 control-label"
|
|
134
|
+
<label class="col-sm-4 control-label">材料金额:</label>
|
|
135
135
|
<div class="col-sm-8">
|
|
136
136
|
<input class="form-control input_view" style="" type="text"
|
|
137
|
-
placeholder="
|
|
138
|
-
v-model="item.
|
|
139
|
-
:value="item.
|
|
137
|
+
placeholder="材料金额"
|
|
138
|
+
v-model="item.f_material_money"
|
|
139
|
+
:value="item.f_material_money"
|
|
140
140
|
/>
|
|
141
141
|
</div>
|
|
142
142
|
</div>
|
|
143
143
|
<div class="form-group col-sm-6">
|
|
144
|
-
<label class="col-sm-4 control-label"
|
|
144
|
+
<label class="col-sm-4 control-label">材料备注:</label>
|
|
145
145
|
<div class="col-sm-8">
|
|
146
146
|
<input class="form-control input_view" style=""
|
|
147
|
-
placeholder="
|
|
148
|
-
v-model="item.
|
|
149
|
-
:value.sync="item.
|
|
147
|
+
placeholder="材料备注"
|
|
148
|
+
v-model="item.f_material_remarks"
|
|
149
|
+
:value.sync="item.f_material_remarks"
|
|
150
150
|
/>
|
|
151
151
|
</div>
|
|
152
152
|
</div>
|
|
@@ -190,12 +190,11 @@
|
|
|
190
190
|
{
|
|
191
191
|
material:'',
|
|
192
192
|
f_material_name:'',
|
|
193
|
-
f_material_style:'',
|
|
194
193
|
f_material_unit:'',
|
|
194
|
+
f_material_price:'',
|
|
195
195
|
f_material_number:'',
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
f_userinfo_code:''
|
|
196
|
+
f_material_money:'',
|
|
197
|
+
f_material_remarks:''
|
|
199
198
|
}
|
|
200
199
|
],
|
|
201
200
|
meterialOptions:[],
|
|
@@ -209,7 +208,7 @@
|
|
|
209
208
|
methods: {
|
|
210
209
|
async getOnetoManyData () {
|
|
211
210
|
let data = {
|
|
212
|
-
tablename: `
|
|
211
|
+
tablename: `t_material_detail`,
|
|
213
212
|
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
214
213
|
}
|
|
215
214
|
let res = await this.$resetpost(
|
|
@@ -226,12 +225,11 @@
|
|
|
226
225
|
{
|
|
227
226
|
material:'',
|
|
228
227
|
f_material_name:'',
|
|
229
|
-
f_material_style:'',
|
|
230
228
|
f_material_unit:'',
|
|
229
|
+
f_material_price:'',
|
|
231
230
|
f_material_number:'',
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
f_userinfo_code:''
|
|
231
|
+
f_material_money:'',
|
|
232
|
+
f_material_remarks:''
|
|
235
233
|
}
|
|
236
234
|
],
|
|
237
235
|
this.showMaterialModal = true
|
|
@@ -250,11 +248,11 @@
|
|
|
250
248
|
this.materials.push({
|
|
251
249
|
material:'',
|
|
252
250
|
f_material_name:'',
|
|
253
|
-
f_material_style:'',
|
|
254
251
|
f_material_unit:'',
|
|
252
|
+
f_material_price:'',
|
|
255
253
|
f_material_number:'',
|
|
256
|
-
|
|
257
|
-
|
|
254
|
+
f_material_money:'',
|
|
255
|
+
f_material_remarks:''
|
|
258
256
|
})
|
|
259
257
|
},
|
|
260
258
|
// 获取模态框材料
|
|
@@ -272,7 +270,7 @@
|
|
|
272
270
|
|
|
273
271
|
this.meterialOptions = res.data.map(item => {
|
|
274
272
|
return {
|
|
275
|
-
'label': `${item.f_material_name}--${item.
|
|
273
|
+
'label': `${item.f_material_name}--${item.f_material_unit}--${item.f_material_price}`,
|
|
276
274
|
'value': item
|
|
277
275
|
}
|
|
278
276
|
})
|
|
@@ -282,19 +280,21 @@
|
|
|
282
280
|
console.log("dddd",this.materials[index].material)
|
|
283
281
|
let material = this.materials[index].material
|
|
284
282
|
this.materials[index].f_material_name = material.f_material_name
|
|
285
|
-
this.materials[index].f_material_style = material.f_material_style
|
|
286
283
|
this.materials[index].f_material_unit = material.f_material_unit
|
|
284
|
+
this.materials[index].f_material_price = material.f_material_price
|
|
287
285
|
this.materials[index].f_material_number = material.f_material_number
|
|
288
|
-
this.materials[index].
|
|
286
|
+
this.materials[index].f_material_money = material.f_material_money
|
|
289
287
|
},
|
|
290
288
|
// 新增材料
|
|
291
289
|
async addMaterial () {
|
|
292
290
|
console.log("登录信息:",this.$login.f)
|
|
293
291
|
this.title = '新增'
|
|
294
292
|
let data = {
|
|
293
|
+
selectdata:this.selectdata,
|
|
295
294
|
f_process_id : this.selectdata.f_process_id,
|
|
296
295
|
f_operator_id: this.$login.f.id,
|
|
297
296
|
f_operator: this.$login.f.name,
|
|
297
|
+
f_department_name:this.$login.f.f_department_name,
|
|
298
298
|
f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
299
299
|
f_orgid: this.$login.f.orgid,
|
|
300
300
|
f_orgname: this.$login.f.orgs,
|
|
@@ -310,6 +310,31 @@
|
|
|
310
310
|
`rs/logic/saveMaterials`,
|
|
311
311
|
data
|
|
312
312
|
)
|
|
313
|
+
debugger
|
|
314
|
+
// if(res.data == 200){
|
|
315
|
+
// let money = 0;
|
|
316
|
+
// for(var i=0;i<this.materials.length; i++){
|
|
317
|
+
// money +=this.materials[i].f_material_money
|
|
318
|
+
// }
|
|
319
|
+
// this.selectdata.f_contract_money += money
|
|
320
|
+
// console.log('打印this.materials.f_contract_money',money)
|
|
321
|
+
// let contractbu={
|
|
322
|
+
// f_contract_money:money,
|
|
323
|
+
// f_contract_type:'材料合同'
|
|
324
|
+
// }
|
|
325
|
+
// let data ={
|
|
326
|
+
// contract:contractbu,
|
|
327
|
+
// selectdata: this.selectdata,
|
|
328
|
+
// user: this.$login.f,
|
|
329
|
+
// }
|
|
330
|
+
// let http1 = new HttpResetClass()
|
|
331
|
+
// let res = await http1.load(
|
|
332
|
+
// 'POST',
|
|
333
|
+
// `rs/logic/saveReplenishContract`,
|
|
334
|
+
// {data: data},
|
|
335
|
+
// {resolveMsg: null, rejectMsg: '补充协议成功!!!'}
|
|
336
|
+
// )
|
|
337
|
+
// }
|
|
313
338
|
this.closeMaterials()
|
|
314
339
|
},
|
|
315
340
|
async deleteMaterial (row) {
|
|
@@ -337,11 +362,11 @@
|
|
|
337
362
|
{
|
|
338
363
|
material:'',
|
|
339
364
|
f_material_name:row.f_material_name,
|
|
340
|
-
f_material_style:row.f_material_style,
|
|
341
365
|
f_material_unit:row.f_material_unit,
|
|
366
|
+
f_material_price:row.f_material_price,
|
|
342
367
|
f_material_number:row.f_material_number,
|
|
343
|
-
|
|
344
|
-
|
|
368
|
+
f_material_money:row.f_material_money,
|
|
369
|
+
f_material_remarks: row.f_material_remarks
|
|
345
370
|
}
|
|
346
371
|
]
|
|
347
372
|
this.showMaterialModal = true
|
|
@@ -349,18 +374,18 @@
|
|
|
349
374
|
async updateConfirm () {
|
|
350
375
|
let data = this.row
|
|
351
376
|
data.f_material_name = this.materials[0].f_material_name
|
|
352
|
-
data.f_material_style = this.materials[0].f_material_style
|
|
353
377
|
data.f_material_unit = this.materials[0].f_material_unit
|
|
378
|
+
data.f_material_price = this.materials[0].f_material_price
|
|
354
379
|
data.f_material_number = this.materials[0].f_material_number
|
|
355
|
-
data.
|
|
356
|
-
data.
|
|
380
|
+
data.f_material_money = this.materials[0].f_material_money
|
|
381
|
+
data.f_material_remarks = this.materials[0].f_material_remarks
|
|
357
382
|
//报警器流程 设备编号检验
|
|
358
383
|
await this.bjqCheck()
|
|
359
384
|
if (this.bjqChecklag.length > 0){
|
|
360
385
|
return
|
|
361
386
|
}
|
|
362
387
|
let res = await this.$resetpost(
|
|
363
|
-
`rs/entity/
|
|
388
|
+
`rs/entity/t_material_detail`,
|
|
364
389
|
data
|
|
365
390
|
)
|
|
366
391
|
this.closeMaterials()
|
|
@@ -6,6 +6,7 @@ let specialComp = {
|
|
|
6
6
|
'supervisory-service-control': (resolve) => { require(['./pc/Process/Service/SupervisoryServiceControl'], resolve) },
|
|
7
7
|
'service-control': (resolve) => { require(['./pc/Process/Service/ServiceControl'], resolve) },
|
|
8
8
|
'apply-charge-list': (resolve) => { require(['./pc/ApplyCharge/ApplyChargeList'], resolve) },
|
|
9
|
+
'apply-charge-management': (resolve) => { require(['./pc/ApplyCharge/chargeManagement'], resolve) },
|
|
9
10
|
'apply-charge-search': (resolve) => { require(['./pc/ApplyCharge/ApplyChargeSearch'], resolve) },
|
|
10
11
|
'add-material-science': (resolve) => { require(['./pc/Process/Service/addMaterialScience'], resolve) }
|
|
11
12
|
|
package/src/main.js
CHANGED
|
@@ -8,11 +8,11 @@ import {material} from 'material-client'
|
|
|
8
8
|
|
|
9
9
|
import apply from './apply'
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
import applyAndroid from './applyAndroid'
|
|
12
12
|
|
|
13
13
|
all()
|
|
14
|
-
apply('guangxi')
|
|
15
|
-
|
|
14
|
+
// apply('guangxi')
|
|
15
|
+
applyAndroid('guangxi')
|
|
16
16
|
ldap()
|
|
17
17
|
sale()
|
|
18
18
|
material()
|