apply-clients 3.3.110-211 → 3.3.110-214
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/components/android/Process/Processes/AppAddMaterialScience.vue +74 -62
- package/src/components/product/Process/Service/ServiceControl.vue +6 -6
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +0 -99
- package/src/components/product/Supervisory/SupervisoryList.vue +1 -1
package/package.json
CHANGED
|
@@ -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()"
|
|
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"
|
|
43
|
-
|
|
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"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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()"
|
|
145
|
-
|
|
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
|
|
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
|
}
|
|
@@ -244,14 +256,14 @@
|
|
|
244
256
|
|
|
245
257
|
this.meterialOptions = res.data.map(item => {
|
|
246
258
|
return {
|
|
247
|
-
'label': `${item.f_material_name}--${item.f_material_style}
|
|
259
|
+
'label': `${item.f_material_name}--${item.f_material_style}`,
|
|
248
260
|
'value': item
|
|
249
261
|
}
|
|
250
262
|
})
|
|
251
263
|
},
|
|
252
|
-
modifyOtherValue
|
|
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
|
|
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
|
|
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
|
|
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
|
}
|
|
@@ -291,10 +291,6 @@ export default {
|
|
|
291
291
|
this.$nextTick(() => {
|
|
292
292
|
this.showview = true
|
|
293
293
|
})
|
|
294
|
-
if ((this.show_data.f_apply_type === '工商户报建' || this.show_data.f_apply_type === '团购报建')
|
|
295
|
-
&& (this.show_data.defname === '合同签订')){
|
|
296
|
-
this.contract_number()
|
|
297
|
-
}
|
|
298
294
|
},
|
|
299
295
|
// 金额转大写
|
|
300
296
|
smalltoBIG(n) {
|
|
@@ -841,7 +837,8 @@ export default {
|
|
|
841
837
|
f_contract_number = dir + type + nature + year + newMonth + this.PrefixInteger(count, 3)
|
|
842
838
|
console.log("触发else", f_contract_number)
|
|
843
839
|
}
|
|
844
|
-
this.
|
|
840
|
+
this.selectdata.f_contract_number = f_contract_number
|
|
841
|
+
this.show_data.f_contract_number = f_contract_number
|
|
845
842
|
return f_contract_number
|
|
846
843
|
},
|
|
847
844
|
PrefixInteger(num, n) {
|
|
@@ -1485,7 +1482,10 @@ export default {
|
|
|
1485
1482
|
}
|
|
1486
1483
|
}
|
|
1487
1484
|
}
|
|
1488
|
-
|
|
1485
|
+
if ((this.show_data.f_apply_type === '工商户报建' || this.show_data.f_apply_type === '团购报建')
|
|
1486
|
+
&& (this.show_data.defname === '报装申请')){
|
|
1487
|
+
await this.contract_number()
|
|
1488
|
+
}
|
|
1489
1489
|
let res = await this.$resetpost(
|
|
1490
1490
|
`rs/logic/ApplyProductService`,
|
|
1491
1491
|
{data: this.show_data},
|
|
@@ -256,10 +256,6 @@
|
|
|
256
256
|
this.$nextTick(() => {
|
|
257
257
|
this.showview = true
|
|
258
258
|
})
|
|
259
|
-
if ((this.show_data.f_apply_type === '工商户报建' || this.show_data.f_apply_type === '团购报建')
|
|
260
|
-
&& (this.show_data.defname === '合同签订')){
|
|
261
|
-
this.contract_number()
|
|
262
|
-
}
|
|
263
259
|
},
|
|
264
260
|
// 金额转大写
|
|
265
261
|
smalltoBIG(n) {
|
|
@@ -549,101 +545,6 @@
|
|
|
549
545
|
value: item.id
|
|
550
546
|
}
|
|
551
547
|
})
|
|
552
|
-
},
|
|
553
|
-
async contract_number() {
|
|
554
|
-
console.log("进入编号合同编号生成",this.$login.f.orgs)
|
|
555
|
-
let f_contract_number = ''
|
|
556
|
-
const nowDate = new Date();
|
|
557
|
-
const date = {
|
|
558
|
-
year: nowDate.getFullYear(),
|
|
559
|
-
month: nowDate.getMonth() + 1,
|
|
560
|
-
day: nowDate.getDate()
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
function upperCaseChars(dir) {
|
|
564
|
-
let string = '';
|
|
565
|
-
switch (dir){
|
|
566
|
-
case '周口市天然气有限公司':
|
|
567
|
-
string = 'ZK' // 当表达式的结果等于 房产 时,则执行该代码
|
|
568
|
-
break;
|
|
569
|
-
case '项城市天然气有限公司':
|
|
570
|
-
string = "XC" // 当表达式的结果等于 自建房 时,则执行该代码
|
|
571
|
-
break;
|
|
572
|
-
case '西华县天然气有限公司':
|
|
573
|
-
string = 'XH' // 当表达式的结果等于 商业 时,则执行该代码
|
|
574
|
-
break;
|
|
575
|
-
case '鹿邑县天然气有限公司':
|
|
576
|
-
string = 'LY' // 当表达式的结果等于 工业 时,则执行该代码
|
|
577
|
-
break;
|
|
578
|
-
case '郸城县天然气有限公司':
|
|
579
|
-
string = 'DC' // 当表达式的结果等于 中压 时,则执行该代码
|
|
580
|
-
break;
|
|
581
|
-
default :
|
|
582
|
-
break; // 如果没有与表达式相同的值,则执行该代码
|
|
583
|
-
}
|
|
584
|
-
return string;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
const dir = upperCaseChars(this.$login.f.orgs) //分公司
|
|
588
|
-
|
|
589
|
-
let type = 0 //类型
|
|
590
|
-
switch (this.show_data.f_entry_type){
|
|
591
|
-
case '城区':
|
|
592
|
-
type = 1 // 当表达式的结果等于 城区 时,则执行该代码
|
|
593
|
-
break;
|
|
594
|
-
case '新农村':
|
|
595
|
-
type = 2 // 当表达式的结果等于 新农村 时,则执行该代码
|
|
596
|
-
break;
|
|
597
|
-
default :
|
|
598
|
-
break; // 如果没有与表达式相同的值,则执行该代码
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
let nature = 0 // 性质
|
|
602
|
-
switch (this.show_data.f_new_entry){
|
|
603
|
-
case '房产':
|
|
604
|
-
nature = 1 // 当表达式的结果等于 房产 时,则执行该代码
|
|
605
|
-
break;
|
|
606
|
-
case '自建房':
|
|
607
|
-
nature = 2 // 当表达式的结果等于 自建房 时,则执行该代码
|
|
608
|
-
break;
|
|
609
|
-
case '商业':
|
|
610
|
-
nature = 3 // 当表达式的结果等于 商业 时,则执行该代码
|
|
611
|
-
break;
|
|
612
|
-
case '工业':
|
|
613
|
-
nature = 4 // 当表达式的结果等于 工业 时,则执行该代码
|
|
614
|
-
break;
|
|
615
|
-
case '中压':
|
|
616
|
-
nature = 5 // 当表达式的结果等于 中压 时,则执行该代码
|
|
617
|
-
break;
|
|
618
|
-
default :
|
|
619
|
-
break; // 如果没有与表达式相同的值,则执行该代码
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
const newMonth = date.month >= 10 ? date.month : '0' + date.month //月份
|
|
623
|
-
const dataYm = date.year + '-01-01'
|
|
624
|
-
const newYear = date.year + 1
|
|
625
|
-
const year = date.year.toString().substring(2,4) //年份
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
let http = new HttpResetClass()
|
|
630
|
-
let res = await http.load('POST', 'rs/sql/contractCount', {data: {dataYm: dataYm, newYear: newYear, orgid: this.$login.f.orgid}}, {
|
|
631
|
-
resolveMsg: null,
|
|
632
|
-
rejectMsg: null
|
|
633
|
-
})
|
|
634
|
-
if (res.data[0].count === 0) {
|
|
635
|
-
f_contract_number = dir + type + nature + year + newMonth + '001'
|
|
636
|
-
console.log("触发if", f_contract_number)
|
|
637
|
-
} else {
|
|
638
|
-
let count = res.data[0].count
|
|
639
|
-
f_contract_number = dir + type + nature + year + newMonth + this.PrefixInteger(count, 3)
|
|
640
|
-
console.log("触发else", f_contract_number)
|
|
641
|
-
}
|
|
642
|
-
this.setLabelValue("合同编号", f_contract_number)
|
|
643
|
-
return f_contract_number
|
|
644
|
-
},
|
|
645
|
-
PrefixInteger(num, n) {
|
|
646
|
-
return (Array(n).join(0) + num).slice(-n);
|
|
647
548
|
}
|
|
648
549
|
},
|
|
649
550
|
events:{
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
<label class="font_normal_body">表  号:</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="
|
|
161
|
+
condition="meternumber like '%{}%'">
|
|
162
162
|
</div>
|
|
163
163
|
<div class="form-group col-sm-3">
|
|
164
164
|
<label class="font_normal_body">领用人:</label>
|