apply-clients 3.5.3-74 → 3.5.3-76
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 +1 -1
- package/src/filiale/siyangRH/PC/ServiceControl.vue +0 -1
- package/src/filiale/siyangRH/PC/addMaterialScience.vue +14 -48
- package/src/filiale/siyangRH/android/AppServiceControl.vue +7 -0
- package/src/filiale/yangchunboneng/android/AppServiceControl.vue +21 -21
- package/src/filiale/yangchunboneng/android/AppSuperServiceControl.vue +1524 -1524
- package/src/filiale/yangchunboneng/pc/ServiceControl.vue +21 -21
- package/src/filiale/yangchunboneng/pc/ServiceView.vue +1005 -1005
package/package.json
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
<th class="textNoLineBreak">序号</th>
|
|
7
7
|
<th class="textNoLineBreak">材料名称</th>
|
|
8
8
|
<th class="textNoLineBreak">材料型号</th>
|
|
9
|
-
<th class="textNoLineBreak"
|
|
9
|
+
<th class="textNoLineBreak">材料单位</th>
|
|
10
10
|
<th class="textNoLineBreak">计划材料数量</th>
|
|
11
11
|
<th class="textNoLineBreak">领用材料数量</th>
|
|
12
12
|
<th class="textNoLineBreak">使用材料数量</th>
|
|
13
|
-
<th class="textNoLineBreak"
|
|
13
|
+
<th class="textNoLineBreak">材料标识</th>
|
|
14
14
|
<th class="textNoLineBreak">
|
|
15
15
|
<button class="button_new button_spacing" type="button" @click="$parent.$parent.openMaterialModal()">添加</button>
|
|
16
16
|
<button type="button" class="btn btn-info head-but" v-if="$parent.$parent.mark === 0"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<nobr>{{row.f_material_style}}</nobr>
|
|
33
33
|
</td>
|
|
34
34
|
<td style="text-align: center;">
|
|
35
|
-
<nobr>{{row.
|
|
35
|
+
<nobr>{{row.f_material_unit}}</nobr>
|
|
36
36
|
</td>
|
|
37
37
|
<td style="text-align: center;">
|
|
38
38
|
<nobr>{{row.f_material_number}}</nobr>
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<nobr>{{row.f_use_material_number}}</nobr>
|
|
45
45
|
</td>
|
|
46
46
|
<td style="text-align: center;">
|
|
47
|
-
<nobr>{{
|
|
47
|
+
<nobr>{{row.f_material_code}}</nobr>
|
|
48
48
|
</td>
|
|
49
49
|
<td style="text-align: center;">
|
|
50
50
|
<button type="button" class="button_search button_spacing" @click="$parent.$parent.updateMaterial($index,row)">修改</button>
|
|
@@ -124,16 +124,6 @@
|
|
|
124
124
|
/>
|
|
125
125
|
</div>
|
|
126
126
|
</div>
|
|
127
|
-
<div class="form-group col-sm-6" :class="[item.f_material_unit ? '' : 'has-error']">
|
|
128
|
-
<label class="col-sm-4 control-label">材料单价:</label>
|
|
129
|
-
<div class="col-sm-8">
|
|
130
|
-
<input class="form-control input_view" style="" type="text"
|
|
131
|
-
placeholder="材料单价"
|
|
132
|
-
v-model="item.f_material_price"
|
|
133
|
-
:value="item.f_material_price"
|
|
134
|
-
/>
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
137
127
|
<div class="form-group col-sm-6" :class="[item.f_material_number ? '' : 'has-error']">
|
|
138
128
|
<label class="col-sm-4 control-label">计划材料数量:</label>
|
|
139
129
|
<div class="col-sm-8">
|
|
@@ -164,6 +154,16 @@
|
|
|
164
154
|
/>
|
|
165
155
|
</div>
|
|
166
156
|
</div>
|
|
157
|
+
<div class="form-group col-sm-6">
|
|
158
|
+
<label class="col-sm-4 control-label">材料标识:</label>
|
|
159
|
+
<div class="col-sm-8">
|
|
160
|
+
<input class="form-control input_view" style=""
|
|
161
|
+
placeholder="材料标识"
|
|
162
|
+
v-model="item.f_material_code"
|
|
163
|
+
:value.sync="item.f_material_code"
|
|
164
|
+
/>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
167
|
</div>
|
|
168
168
|
</article>
|
|
169
169
|
<footer slot="modal-footer" class="modal-footer">
|
|
@@ -180,7 +180,6 @@
|
|
|
180
180
|
<script>
|
|
181
181
|
import {HttpResetClass} from 'vue-client'
|
|
182
182
|
import Vue from "vue";
|
|
183
|
-
import {number} from "echarts/lib/export";
|
|
184
183
|
export default {
|
|
185
184
|
name: 'addMaterialScience',
|
|
186
185
|
props: {
|
|
@@ -212,7 +211,6 @@
|
|
|
212
211
|
f_userinfo_code:'',
|
|
213
212
|
f_ly_material_number:'',
|
|
214
213
|
f_use_material_number:'',
|
|
215
|
-
f_material_price:'',
|
|
216
214
|
}
|
|
217
215
|
],
|
|
218
216
|
meterialOptions:[],
|
|
@@ -224,11 +222,6 @@
|
|
|
224
222
|
this.getOnetoManyData()
|
|
225
223
|
},
|
|
226
224
|
methods: {
|
|
227
|
-
getprice(row){
|
|
228
|
-
let num= Number(row.f_material_number)
|
|
229
|
-
let price= Number(row.f_material_price)
|
|
230
|
-
return Number(num*price).toFixed(2)
|
|
231
|
-
},
|
|
232
225
|
async getOnetoManyData () {
|
|
233
226
|
let data = {
|
|
234
227
|
tablename: `t_material_apply`,
|
|
@@ -239,7 +232,6 @@
|
|
|
239
232
|
{data: data},
|
|
240
233
|
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
241
234
|
)
|
|
242
|
-
debugger
|
|
243
235
|
this.onetomany.rows = res.data
|
|
244
236
|
},
|
|
245
237
|
async openMaterialModal () {
|
|
@@ -257,7 +249,6 @@
|
|
|
257
249
|
f_userinfo_code:'',
|
|
258
250
|
f_ly_material_number:'',
|
|
259
251
|
f_use_material_number:'',
|
|
260
|
-
f_material_price:''
|
|
261
252
|
}
|
|
262
253
|
],
|
|
263
254
|
this.showMaterialModal = true
|
|
@@ -313,7 +304,6 @@
|
|
|
313
304
|
this.materials[index].f_material_name = material.f_material_name
|
|
314
305
|
this.materials[index].f_material_style = material.f_material_style
|
|
315
306
|
this.materials[index].f_material_unit = material.f_material_unit
|
|
316
|
-
this.materials[index].f_material_price = material.f_material_price
|
|
317
307
|
this.materials[index].f_material_number = material.f_material_number
|
|
318
308
|
this.materials[index].f_ly_material_number= material.f_ly_material_number
|
|
319
309
|
this.materials[index].f_use_material_number= material.f_use_material_number
|
|
@@ -324,21 +314,6 @@
|
|
|
324
314
|
async addMaterial () {
|
|
325
315
|
console.log("登录信息:",this.$login.f)
|
|
326
316
|
this.title = '新增'
|
|
327
|
-
for (let i = 0; i < this.materials.length; i++) {
|
|
328
|
-
if (this.materials[i].material === '') {
|
|
329
|
-
this.$showMessage('请选择材料!!!')
|
|
330
|
-
return
|
|
331
|
-
}
|
|
332
|
-
if(this.materials[i].f_use_material_number==''){
|
|
333
|
-
this.materials[i].f_use_material_number=0
|
|
334
|
-
}
|
|
335
|
-
if(this.materials[i].f_ly_material_number==''){
|
|
336
|
-
this.materials[i].f_ly_material_number=0
|
|
337
|
-
}
|
|
338
|
-
if(this.materials[i].f_material_number==''){
|
|
339
|
-
this.materials[i].f_material_number=0
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
317
|
let data = {
|
|
343
318
|
f_process_id : this.selectdata.f_process_id,
|
|
344
319
|
f_operator_id: this.$login.f.id,
|
|
@@ -389,7 +364,6 @@
|
|
|
389
364
|
f_material_unit:row.f_material_unit,
|
|
390
365
|
f_material_number:row.f_material_number,
|
|
391
366
|
f_ly_material_number:row.f_ly_material_number,
|
|
392
|
-
f_material_price:row.f_material_price,
|
|
393
367
|
f_use_material_number:row.f_use_material_number,
|
|
394
368
|
f_material_code:row.f_material_code,
|
|
395
369
|
f_userinfo_code:row.f_userinfo_code,
|
|
@@ -409,14 +383,6 @@
|
|
|
409
383
|
data.f_material_code = this.materials[0].f_material_code
|
|
410
384
|
data.f_bjq_sid = this.materials[0].f_bjq_sid
|
|
411
385
|
data.f_userinfo_code = this.materials[0].f_userinfo_code
|
|
412
|
-
if(Number(data.f_ly_material_number)>Number(data.f_material_number)){
|
|
413
|
-
this.$showMessage('领料数量不能大于计划数量!!!')
|
|
414
|
-
return '领料数量不能大于计划数量'
|
|
415
|
-
}
|
|
416
|
-
if(Number(data.f_use_material_number)>Number(data.f_ly_material_number)){
|
|
417
|
-
this.$showMessage('使用量不能大于领料数量!!!')
|
|
418
|
-
return '使用量数量不能大于领料数量'
|
|
419
|
-
}
|
|
420
386
|
//报警器流程 设备编号检验
|
|
421
387
|
await this.bjqCheck()
|
|
422
388
|
if (this.bjqChecklag.length > 0){
|
|
@@ -484,17 +484,17 @@ export default {
|
|
|
484
484
|
'POST',
|
|
485
485
|
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
486
486
|
{data: data},
|
|
487
|
-
{resolveMsg: null, rejectMsg: '
|
|
487
|
+
{resolveMsg: null, rejectMsg: '小区查询失败!!!'}
|
|
488
488
|
)
|
|
489
489
|
|
|
490
|
-
this.setLabelOptions('
|
|
490
|
+
this.setLabelOptions('小区', res.data.map(item => {
|
|
491
491
|
return {
|
|
492
492
|
label: item.f_residential_area,
|
|
493
493
|
value: item.f_residential_area
|
|
494
494
|
}
|
|
495
495
|
}))
|
|
496
496
|
},
|
|
497
|
-
//
|
|
497
|
+
// 获取小区
|
|
498
498
|
async getArea () {
|
|
499
499
|
let data = {
|
|
500
500
|
tablename: 't_area',
|
|
@@ -505,7 +505,7 @@ export default {
|
|
|
505
505
|
'POST',
|
|
506
506
|
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
507
507
|
{data: data},
|
|
508
|
-
{resolveMsg: null, rejectMsg: '
|
|
508
|
+
{resolveMsg: null, rejectMsg: '小区查询失败!!!'}
|
|
509
509
|
)
|
|
510
510
|
|
|
511
511
|
return res.data.map(item => {
|
|
@@ -565,7 +565,7 @@ export default {
|
|
|
565
565
|
|
|
566
566
|
for (const item of this.show_data.fields) {
|
|
567
567
|
if (f_address_type === '民用市区') {
|
|
568
|
-
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '
|
|
568
|
+
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '小区' || item.label === '门牌号') {
|
|
569
569
|
item.hidden = false
|
|
570
570
|
item.required = true
|
|
571
571
|
}
|
|
@@ -578,7 +578,7 @@ export default {
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
if (f_address_type === '民用乡镇') {
|
|
581
|
-
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '
|
|
581
|
+
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '小区' || item.label === '门牌号') {
|
|
582
582
|
item.hidden = false
|
|
583
583
|
item.required = true
|
|
584
584
|
}
|
|
@@ -599,7 +599,7 @@ export default {
|
|
|
599
599
|
item.hidden = false
|
|
600
600
|
item.required = true
|
|
601
601
|
}
|
|
602
|
-
if (item.label === '
|
|
602
|
+
if (item.label === '小区') {
|
|
603
603
|
item.hidden = false
|
|
604
604
|
item.required = false
|
|
605
605
|
}
|
|
@@ -1268,7 +1268,7 @@ export default {
|
|
|
1268
1268
|
if (
|
|
1269
1269
|
this.show_data.fields[index].label === '区/县' ||
|
|
1270
1270
|
this.show_data.fields[index].label === '街道/乡镇' ||
|
|
1271
|
-
this.show_data.fields[index].label === '
|
|
1271
|
+
this.show_data.fields[index].label === '小区' ||
|
|
1272
1272
|
this.show_data.fields[index].label === '楼号/组' ||
|
|
1273
1273
|
this.show_data.fields[index].label === '单元/排' ||
|
|
1274
1274
|
this.show_data.fields[index].label === '楼层' ||
|
|
@@ -1276,7 +1276,7 @@ export default {
|
|
|
1276
1276
|
) {
|
|
1277
1277
|
let f_pcd = this.getLableValue('区/县') || ''
|
|
1278
1278
|
let f_street = this.getLableValue('街道/乡镇') || ''
|
|
1279
|
-
let f_residential_area = this.getLableValue('
|
|
1279
|
+
let f_residential_area = this.getLableValue('小区') || ''
|
|
1280
1280
|
let f_building = this.getLableValue('楼号/组') || ''
|
|
1281
1281
|
let f_building_suffix = f_building ? '号楼' : ''
|
|
1282
1282
|
let f_unit = this.getLableValue('单元/排') || ''
|
|
@@ -1325,7 +1325,7 @@ export default {
|
|
|
1325
1325
|
return
|
|
1326
1326
|
}
|
|
1327
1327
|
|
|
1328
|
-
this.setLabelValue('
|
|
1328
|
+
this.setLabelValue('小区', null)
|
|
1329
1329
|
|
|
1330
1330
|
let data = {
|
|
1331
1331
|
tablename: 't_area',
|
|
@@ -1336,10 +1336,10 @@ export default {
|
|
|
1336
1336
|
'POST',
|
|
1337
1337
|
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1338
1338
|
{data: data},
|
|
1339
|
-
{resolveMsg: null, rejectMsg: '
|
|
1339
|
+
{resolveMsg: null, rejectMsg: '小区查询失败!!!'}
|
|
1340
1340
|
)
|
|
1341
1341
|
|
|
1342
|
-
this.setLabelOptions('
|
|
1342
|
+
this.setLabelOptions('小区', res.data.map(item => {
|
|
1343
1343
|
return {
|
|
1344
1344
|
label: item.f_residential_area,
|
|
1345
1345
|
value: item.f_residential_area
|
|
@@ -1381,7 +1381,7 @@ export default {
|
|
|
1381
1381
|
}
|
|
1382
1382
|
|
|
1383
1383
|
this.setLabelValue('街道/乡镇', null)
|
|
1384
|
-
this.setLabelValue('
|
|
1384
|
+
this.setLabelValue('小区', null)
|
|
1385
1385
|
|
|
1386
1386
|
|
|
1387
1387
|
|
|
@@ -1428,11 +1428,11 @@ export default {
|
|
|
1428
1428
|
// 地址类型失去焦点
|
|
1429
1429
|
'addressTypeChange' (index) {
|
|
1430
1430
|
this.setLabelValue('街道/乡镇', null)
|
|
1431
|
-
this.setLabelValue('
|
|
1431
|
+
this.setLabelValue('小区', null)
|
|
1432
1432
|
let f_address_type = this.show_data.fields[index].value
|
|
1433
1433
|
for (const item of this.show_data.fields) {
|
|
1434
1434
|
if (f_address_type === '民用市区') {
|
|
1435
|
-
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '
|
|
1435
|
+
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '小区' || item.label === '门牌号') {
|
|
1436
1436
|
item.hidden = false
|
|
1437
1437
|
item.required = true
|
|
1438
1438
|
item.value = null
|
|
@@ -1448,7 +1448,7 @@ export default {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
1450
|
if (f_address_type === '民用乡镇') {
|
|
1451
|
-
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '
|
|
1451
|
+
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '小区' || item.label === '门牌号') {
|
|
1452
1452
|
item.hidden = false
|
|
1453
1453
|
item.required = true
|
|
1454
1454
|
item.value = null
|
|
@@ -1474,7 +1474,7 @@ export default {
|
|
|
1474
1474
|
item.required = true
|
|
1475
1475
|
item.value = null
|
|
1476
1476
|
}
|
|
1477
|
-
if (item.label === '
|
|
1477
|
+
if (item.label === '小区') {
|
|
1478
1478
|
item.hidden = false
|
|
1479
1479
|
item.required = false
|
|
1480
1480
|
item.value = null
|
|
@@ -1502,14 +1502,14 @@ export default {
|
|
|
1502
1502
|
'POST',
|
|
1503
1503
|
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1504
1504
|
{data: data},
|
|
1505
|
-
{resolveMsg: null, rejectMsg: '
|
|
1505
|
+
{resolveMsg: null, rejectMsg: '小区查询失败!!!'}
|
|
1506
1506
|
)
|
|
1507
1507
|
|
|
1508
1508
|
if (res.data.length === 0) {
|
|
1509
1509
|
return
|
|
1510
1510
|
}
|
|
1511
1511
|
|
|
1512
|
-
this.setLabelOptions('
|
|
1512
|
+
this.setLabelOptions('小区', res.data.map(item => {
|
|
1513
1513
|
return {
|
|
1514
1514
|
label: item.f_residential_area,
|
|
1515
1515
|
value: item.f_residential_area
|
|
@@ -1527,14 +1527,14 @@ export default {
|
|
|
1527
1527
|
'POST',
|
|
1528
1528
|
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1529
1529
|
{data: data},
|
|
1530
|
-
{resolveMsg: null, rejectMsg: '
|
|
1530
|
+
{resolveMsg: null, rejectMsg: '小区查询失败!!!'}
|
|
1531
1531
|
)
|
|
1532
1532
|
|
|
1533
1533
|
if (res.data.length === 0) {
|
|
1534
1534
|
return
|
|
1535
1535
|
}
|
|
1536
1536
|
|
|
1537
|
-
this.setLabelOptions('
|
|
1537
|
+
this.setLabelOptions('小区', res.data.map(item => {
|
|
1538
1538
|
return {
|
|
1539
1539
|
label: item.f_residential_area,
|
|
1540
1540
|
value: item.f_residential_area
|