apply-clients 3.4.53 → 3.4.55
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 +2 -2
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +10 -4
- package/src/filiale/guangxi/android/Process/Processes/AppAddMaterialScience.vue +51 -1
- package/src/filiale/guangxi/android/Process/Processes/AppChargeManagement.vue +46 -30
- package/src/filiale/guangxi/pc/ApplyCharge/chargeManagement.vue +34 -12
- package/src/filiale/guangxi/pc/Process/Service/addMaterialScience.vue +58 -23
- package/src/main.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apply-clients",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.55",
|
|
4
4
|
"description": "报建前端模块",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"directories": {
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"system-clients": "3.1.87",
|
|
97
97
|
"system-phone": "1.2.80-49",
|
|
98
98
|
"url-loader": "^0.5.7",
|
|
99
|
-
"vue-client": "1.24.
|
|
99
|
+
"vue-client": "1.24.74",
|
|
100
100
|
"vue-hot-reload-api": "^1.2.0",
|
|
101
101
|
"vue-html-loader": "^1.0.0",
|
|
102
102
|
"vue-loader": "^8.2.1",
|
|
@@ -253,6 +253,12 @@
|
|
|
253
253
|
let temp = JSON.parse(JSON.stringify(this.selectdata))
|
|
254
254
|
|
|
255
255
|
this.show_data = temp
|
|
256
|
+
for (const item of this.show_data.fields) {
|
|
257
|
+
debugger
|
|
258
|
+
if(item.label==='气价名称'){
|
|
259
|
+
item.value=this.show_data.f_price_name
|
|
260
|
+
}
|
|
261
|
+
}
|
|
256
262
|
this.$nextTick(() => {
|
|
257
263
|
this.showview = true
|
|
258
264
|
})
|
|
@@ -494,7 +500,7 @@
|
|
|
494
500
|
})
|
|
495
501
|
},
|
|
496
502
|
async getPrice (f_price_id) {
|
|
497
|
-
|
|
503
|
+
/* console.log('=======================')
|
|
498
504
|
console.log(f_price_id)
|
|
499
505
|
|
|
500
506
|
let data = {
|
|
@@ -517,7 +523,7 @@
|
|
|
517
523
|
label: item.f_price_name,
|
|
518
524
|
value: item
|
|
519
525
|
}
|
|
520
|
-
})
|
|
526
|
+
})*/
|
|
521
527
|
},
|
|
522
528
|
materialSupervisory () {
|
|
523
529
|
if (this.selectdata.userid === this.$login.f.id) {
|
|
@@ -651,10 +657,10 @@
|
|
|
651
657
|
},
|
|
652
658
|
// 通气点火初始化
|
|
653
659
|
async 'gasReadyEvent' () {
|
|
654
|
-
if (!isEmpty(this.show_data.f_price_id)) {
|
|
660
|
+
/*if (!isEmpty(this.show_data.f_price_id)) {
|
|
655
661
|
let priceList = await this.getPrice(this.show_data.f_price_id)
|
|
656
662
|
this.setLabelValue('气价名称', priceList[0].value)
|
|
657
|
-
}
|
|
663
|
+
}*/
|
|
658
664
|
|
|
659
665
|
|
|
660
666
|
// 保险初始化显示内容
|
|
@@ -340,6 +340,7 @@
|
|
|
340
340
|
// 新增材料
|
|
341
341
|
async addMaterial() {
|
|
342
342
|
this.title = '新增'
|
|
343
|
+
var mater_Code=this.getProjectNum() + Math.floor(Math.random() * 10000)
|
|
343
344
|
let data = {
|
|
344
345
|
selectdata: this.selectdata,
|
|
345
346
|
f_process_id: this.selectdata.f_process_id,
|
|
@@ -349,6 +350,7 @@
|
|
|
349
350
|
f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
350
351
|
f_orgid: Vue.user.orgid,
|
|
351
352
|
f_orgname: Vue.user.orgs,
|
|
353
|
+
f_material_code:mater_Code,
|
|
352
354
|
materials: this.materials
|
|
353
355
|
}
|
|
354
356
|
|
|
@@ -364,7 +366,55 @@
|
|
|
364
366
|
`${this.$androidUtil.getProxyUrl()}/rs/logic/saveMaterials`,
|
|
365
367
|
data
|
|
366
368
|
)
|
|
367
|
-
|
|
369
|
+
if(res.data == 200){
|
|
370
|
+
this.contractMoney = 0
|
|
371
|
+
for(var i=0;i<this.materials.length; i++){
|
|
372
|
+
this.contractMoney =parseFloat(parseFloat(this.materials[i].f_material_money)+ parseFloat(this.contractMoney)).toFixed(2)
|
|
373
|
+
}
|
|
374
|
+
let contractbu={
|
|
375
|
+
f_process_id :this.selectdata.f_process_id,//项目节点编号
|
|
376
|
+
f_apply_num : this.selectdata.f_apply_num, //项目编号
|
|
377
|
+
f_contract_number:mater_Code, //协议编号
|
|
378
|
+
f_contract_type: '材料代购', //协议类型
|
|
379
|
+
f_contract_money:this.contractMoney , //协议金额
|
|
380
|
+
f_contract_time:new Date().Format('yyyy-MM-dd HH:mm:ss'),//协议创造时间
|
|
381
|
+
f_contract_status: '有效', //协议是否有效
|
|
382
|
+
f_remarks :'材料代购', //备注
|
|
383
|
+
f_operator:this.$login.f.name, //操作人
|
|
384
|
+
f_date :new Date().Format('yyyy-MM-dd HH:mm:ss'),//操作时间
|
|
385
|
+
f_department : this.$login.f.f_department_name, //部门
|
|
386
|
+
f_filiale :this.$login.f.orgs //组织名称
|
|
387
|
+
}
|
|
388
|
+
let data1 ={
|
|
389
|
+
contract:contractbu
|
|
390
|
+
}
|
|
391
|
+
let http1 = new HttpResetClass()
|
|
392
|
+
let res = await http1.load(
|
|
393
|
+
'POST',
|
|
394
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/NewAddMaterContract`,
|
|
395
|
+
{data: data1},
|
|
396
|
+
{resolveMsg: null, rejectMsg: '补充协议成功!!!'}
|
|
397
|
+
)
|
|
398
|
+
this.closeMaterials()
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
getProjectNum () {
|
|
402
|
+
const projectTime = new Date() // 当前中国标准时间
|
|
403
|
+
const Year = projectTime.getFullYear() // 获取当前年份 支持IE和火狐浏览器.
|
|
404
|
+
const Month = projectTime.getMonth() + 1 // 获取中国区月份
|
|
405
|
+
const Day = projectTime.getDate() // 获取几号
|
|
406
|
+
var CurrentDate = Year
|
|
407
|
+
if (Month >= 10) { // 判断月份和几号是否大于10或者小于10
|
|
408
|
+
CurrentDate += Month
|
|
409
|
+
} else {
|
|
410
|
+
CurrentDate += '0' + Month
|
|
411
|
+
}
|
|
412
|
+
if (Day >= 10) {
|
|
413
|
+
CurrentDate += Day
|
|
414
|
+
} else {
|
|
415
|
+
CurrentDate += '0' + Day
|
|
416
|
+
}
|
|
417
|
+
return CurrentDate
|
|
368
418
|
},
|
|
369
419
|
async deleteMaterial(row) {
|
|
370
420
|
debugger
|
|
@@ -122,7 +122,21 @@
|
|
|
122
122
|
</div>
|
|
123
123
|
</div>
|
|
124
124
|
</div>
|
|
125
|
-
<div class="
|
|
125
|
+
<div class="form-group col-sm-12" :class="[$v.f_payment_method.required ? 'has-error' : '']">
|
|
126
|
+
<label class="col-sm-2 control-label">付款方式:</label>
|
|
127
|
+
<div class="col-sm-10">
|
|
128
|
+
<input type="text" v-show="false" v-model="charge.f_payment_method" v-validate:f_payment_method = "['required']" >
|
|
129
|
+
<input-select
|
|
130
|
+
placeholder='请选择' width="100%"
|
|
131
|
+
v-model="charge.f_payment_method"
|
|
132
|
+
:value.sync="charge.f_payment_method"
|
|
133
|
+
:options='paymentMethod'
|
|
134
|
+
class="select select_list"
|
|
135
|
+
:value-single="true"
|
|
136
|
+
close-on-select ></input-select>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
<!-- <div class="row" style="display: flex"> <button type="button" style="margin: 0 auto;" class="btn btn-primary" @click.prevent="addPaymentTerms()">增加收费项目</button> </div>-->
|
|
126
140
|
<div class="form-group row vertical-center">
|
|
127
141
|
<label class="col-xs-4 control-label">应交总金额:</label>
|
|
128
142
|
<div class="col-xs-8">
|
|
@@ -149,7 +163,7 @@
|
|
|
149
163
|
</div>
|
|
150
164
|
</article>
|
|
151
165
|
<footer slot="modal-footer" class="modal-footer">
|
|
152
|
-
<button type="button" class="btn btn-primary" @click.prevent="
|
|
166
|
+
<button type="button" class="btn btn-primary" @click.prevent="saveCharge()">确认</button>
|
|
153
167
|
</footer>
|
|
154
168
|
</modal>
|
|
155
169
|
|
|
@@ -216,24 +230,6 @@ export default {
|
|
|
216
230
|
},
|
|
217
231
|
ready () {
|
|
218
232
|
this.search()
|
|
219
|
-
if (Vue.user.orgid == '10101') {
|
|
220
|
-
console.log('zhoukou')
|
|
221
|
-
this.filiale = 'zhoukou'
|
|
222
|
-
}else if (Vue.user.orgid == '35520') {
|
|
223
|
-
console.log('xiangcheng')
|
|
224
|
-
this.filiale = 'xiangcheng'
|
|
225
|
-
}else if (Vue.user.orgid == '35532') {
|
|
226
|
-
console.log('luyi')
|
|
227
|
-
this.filiale = 'luyi'
|
|
228
|
-
}else if (Vue.user.orgid == '35538') {
|
|
229
|
-
console.log('dancheng')
|
|
230
|
-
this.filiale = 'dancheng'
|
|
231
|
-
}else if (Vue.user.orgid == '35526') {
|
|
232
|
-
console.log('xihua')
|
|
233
|
-
this.filiale = 'xihua'
|
|
234
|
-
}else {
|
|
235
|
-
this.$showMessage('分公司异常,请联系管理员!')
|
|
236
|
-
}
|
|
237
233
|
},
|
|
238
234
|
methods: {
|
|
239
235
|
addPaymentTerms(){
|
|
@@ -254,7 +250,7 @@ export default {
|
|
|
254
250
|
})
|
|
255
251
|
this.selectdata = res.data
|
|
256
252
|
|
|
257
|
-
this.$dispatch('breakControl')
|
|
253
|
+
this.$dispatch('breakControl',this.selectdata)
|
|
258
254
|
},
|
|
259
255
|
// 获取订单信息
|
|
260
256
|
async getOrderInformation () {
|
|
@@ -290,7 +286,6 @@ export default {
|
|
|
290
286
|
// 清除二维码
|
|
291
287
|
this.clearQrCode()
|
|
292
288
|
this.showQrCode = false
|
|
293
|
-
|
|
294
289
|
this.saveCharge()
|
|
295
290
|
}
|
|
296
291
|
},
|
|
@@ -392,8 +387,6 @@ export default {
|
|
|
392
387
|
this.$showMessage('订单生成失败')
|
|
393
388
|
}
|
|
394
389
|
})
|
|
395
|
-
|
|
396
|
-
|
|
397
390
|
},
|
|
398
391
|
accMul(arg1,arg2) {
|
|
399
392
|
let m = 0, s1 = arg1.toString(), s2 = arg2.toString();
|
|
@@ -432,7 +425,7 @@ export default {
|
|
|
432
425
|
clearQrCode () {
|
|
433
426
|
document.getElementById('qrcode').innerHTML = ''
|
|
434
427
|
},
|
|
435
|
-
|
|
428
|
+
/* moneyChange (index) {
|
|
436
429
|
console.log(`当前下标----${index}`)
|
|
437
430
|
if (isEmpty(this.charge.payment_terms[index].f_charge_money) || Number(this.charge.payment_terms[index].f_charge_money) === 0) {
|
|
438
431
|
this.$showAlert('单笔收费不能为0元!!!', 'warning', 3000)
|
|
@@ -440,8 +433,8 @@ export default {
|
|
|
440
433
|
return
|
|
441
434
|
}
|
|
442
435
|
|
|
443
|
-
}
|
|
444
|
-
|
|
436
|
+
},*/
|
|
437
|
+
moneyChange () {
|
|
445
438
|
if (isEmpty(this.charge.f_charge_money) || Number(this.charge.f_charge_money) === 0) {
|
|
446
439
|
this.$showAlert('单笔收费不能为0元!!!', 'warning', 3000)
|
|
447
440
|
this.charge.f_charge_money = null
|
|
@@ -457,7 +450,7 @@ export default {
|
|
|
457
450
|
this.charge.f_charge_money = null
|
|
458
451
|
return
|
|
459
452
|
}
|
|
460
|
-
}
|
|
453
|
+
},
|
|
461
454
|
// 金额转大写
|
|
462
455
|
handleInput(index) {
|
|
463
456
|
// 通过正则过滤小数点后两位
|
|
@@ -525,12 +518,35 @@ export default {
|
|
|
525
518
|
})
|
|
526
519
|
|
|
527
520
|
},
|
|
521
|
+
//查询补充协议金额,并更新
|
|
528
522
|
async showChargeModal() {
|
|
523
|
+
if(this.selectdata.defname==='报装缴费'){
|
|
524
|
+
if (this.selectdata.f_apply_type === '团购报建') {
|
|
525
|
+
this.charge.f_dev_info_id = this.selectdata.f_dev_id
|
|
526
|
+
}
|
|
527
|
+
this.getUserAddress()
|
|
528
|
+
this.charge.f_payment_method = '掌上营业厅'
|
|
529
|
+
this.showCharge = true
|
|
530
|
+
}else{
|
|
531
|
+
let data={
|
|
532
|
+
f_process_id:this.selectdata.f_process_id
|
|
533
|
+
}
|
|
534
|
+
let http = new HttpResetClass()
|
|
535
|
+
let res = await http.load(
|
|
536
|
+
'POST',
|
|
537
|
+
`rs/logic/getApplyContractSumMoney`,
|
|
538
|
+
{data: data},
|
|
539
|
+
{resolveMsg: null, rejectMsg: '更新补充金额!!!'}
|
|
540
|
+
)
|
|
541
|
+
this.selectdata.f_due_money = res.data + this.selectdata.f_contract_money
|
|
542
|
+
this.selectdata.f_surplus_money = res.data + this.selectdata.f_contract_money- this.selectdata.f_cumulative_payment_money
|
|
543
|
+
if (this.selectdata.f_apply_type === '团购报建') {
|
|
544
|
+
this.charge.f_dev_info_id = this.selectdata.f_dev_id
|
|
545
|
+
}
|
|
529
546
|
this.getUserAddress()
|
|
530
|
-
|
|
531
547
|
this.charge.f_payment_method = '掌上营业厅'
|
|
532
|
-
|
|
533
548
|
this.showCharge = true
|
|
549
|
+
}
|
|
534
550
|
},
|
|
535
551
|
async search () {
|
|
536
552
|
let http = new HttpResetClass()
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
type="button"
|
|
27
27
|
class="btn btn-info head-but"
|
|
28
28
|
@click="$parent.$parent.showChargeModal()"
|
|
29
|
-
:disabled="$parent.$parent.mark === 1
|
|
29
|
+
:disabled="$parent.$parent.mark === 1"
|
|
30
30
|
>新增收费</button>
|
|
31
31
|
</th>
|
|
32
32
|
</tr>
|
|
@@ -468,6 +468,7 @@ export default {
|
|
|
468
468
|
this.showPrint = true
|
|
469
469
|
},
|
|
470
470
|
selectAddres () {
|
|
471
|
+
debugger
|
|
471
472
|
if (this.charge.useraddres) {
|
|
472
473
|
this.charge.f_cumulative_payment_money = this.charge.useraddres.f_cumulative_payment_money
|
|
473
474
|
this.charge.f_outstanding_amount = this.selectdata.f_price - this.charge.useraddres.f_cumulative_payment_money
|
|
@@ -475,6 +476,7 @@ export default {
|
|
|
475
476
|
this.charge.f_cumulative_payment_money = 0
|
|
476
477
|
this.charge.f_outstanding_amount = this.selectdata.f_price
|
|
477
478
|
}
|
|
479
|
+
debugger
|
|
478
480
|
},
|
|
479
481
|
async invalidApplyCharge() {
|
|
480
482
|
|
|
@@ -506,7 +508,6 @@ export default {
|
|
|
506
508
|
user: this.$login.f,
|
|
507
509
|
charge: this.charge
|
|
508
510
|
}
|
|
509
|
-
|
|
510
511
|
let res = await http.load('POST', 'rs/logic/addApplyChargeRecord', {data:data}, {
|
|
511
512
|
resolveMsg: null,
|
|
512
513
|
rejectMsg: '缴费失败!!!'
|
|
@@ -601,7 +602,6 @@ export default {
|
|
|
601
602
|
resolveMsg: null,
|
|
602
603
|
rejectMsg: '开发商档案查询失败!!!'
|
|
603
604
|
})
|
|
604
|
-
|
|
605
605
|
this.charge.f_payer_name = res.data[0].f_dev_name
|
|
606
606
|
this.charge.f_payer_account = res.data[0].f_bank_account
|
|
607
607
|
}
|
|
@@ -626,11 +626,9 @@ export default {
|
|
|
626
626
|
resolveMsg: null,
|
|
627
627
|
rejectMsg: '用户获取失败!!!'
|
|
628
628
|
})
|
|
629
|
-
|
|
630
629
|
if (res.data.length <= 0) {
|
|
631
630
|
this.$showAlert('暂无需要缴费用户!!!', 'warning', 3000)
|
|
632
631
|
}
|
|
633
|
-
|
|
634
632
|
this.useraddresList = res.data.map(item => {
|
|
635
633
|
return {
|
|
636
634
|
// 有用户姓名地址后拼接姓名
|
|
@@ -638,18 +636,41 @@ export default {
|
|
|
638
636
|
value: item
|
|
639
637
|
}
|
|
640
638
|
})
|
|
641
|
-
|
|
642
639
|
},
|
|
643
640
|
async showChargeModal() {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
this.
|
|
641
|
+
debugger
|
|
642
|
+
if(this.selectdata.defname==='报装缴费'){
|
|
643
|
+
this.getUserAddress()
|
|
644
|
+
if (this.selectdata.f_apply_type === '团购报建') {
|
|
645
|
+
this.charge.f_dev_info_id = this.selectdata.f_dev_id
|
|
646
|
+
}
|
|
647
|
+
this.showCharge = true
|
|
648
|
+
}else {
|
|
649
|
+
//查询补充协议金额,并更新
|
|
650
|
+
let data = {
|
|
651
|
+
f_process_id: this.selectdata.f_process_id
|
|
652
|
+
}
|
|
653
|
+
let http = new HttpResetClass()
|
|
654
|
+
let res = await http.load(
|
|
655
|
+
'POST',
|
|
656
|
+
`rs/logic/getApplyContractSumMoney`,
|
|
657
|
+
{data: data},
|
|
658
|
+
{resolveMsg: null, rejectMsg: '更新补充金额!!!'}
|
|
659
|
+
)
|
|
660
|
+
this.selectdata.f_due_money = res.data + this.selectdata.f_contract_money
|
|
661
|
+
this.selectdata.f_surplus_money = res.data + this.selectdata.f_contract_money- this.selectdata.f_cumulative_payment_money
|
|
662
|
+
this.getUserAddress()
|
|
663
|
+
if (this.selectdata.f_apply_type === '团购报建') {
|
|
664
|
+
this.charge.f_dev_info_id = this.selectdata.f_dev_id
|
|
665
|
+
}
|
|
666
|
+
this.selectAddres()
|
|
667
|
+
this.showCharge = true
|
|
668
|
+
debugger
|
|
648
669
|
}
|
|
649
|
-
|
|
650
|
-
this.showCharge = true
|
|
651
670
|
},
|
|
671
|
+
|
|
652
672
|
async search () {
|
|
673
|
+
debugger
|
|
653
674
|
let http = new HttpResetClass()
|
|
654
675
|
let data = {
|
|
655
676
|
// condition: `cr.f_charge_status != '退款'`,
|
|
@@ -660,6 +681,7 @@ export default {
|
|
|
660
681
|
rejectMsg: '收费记录查询失败!!!'
|
|
661
682
|
})
|
|
662
683
|
this.model.data = res.data
|
|
684
|
+
debugger
|
|
663
685
|
},
|
|
664
686
|
// 关闭对话框
|
|
665
687
|
closeModal() {
|
|
@@ -189,6 +189,7 @@
|
|
|
189
189
|
onetomany: {
|
|
190
190
|
rows: []
|
|
191
191
|
},
|
|
192
|
+
contractMoney:0,
|
|
192
193
|
title:'新增',
|
|
193
194
|
summoney:0,
|
|
194
195
|
showMaterialModal:false,
|
|
@@ -216,7 +217,6 @@
|
|
|
216
217
|
},
|
|
217
218
|
methods: {
|
|
218
219
|
sumMaterialzong(materials){
|
|
219
|
-
debugger
|
|
220
220
|
this.summoney=0
|
|
221
221
|
for(var i=0;i<materials.length; i++){
|
|
222
222
|
this.summoney =parseFloat(parseFloat(materials[i].f_material_money)+ parseFloat(this.summoney)).toFixed(2)
|
|
@@ -315,8 +315,10 @@
|
|
|
315
315
|
},
|
|
316
316
|
// 新增材料
|
|
317
317
|
async addMaterial () {
|
|
318
|
+
debugger
|
|
318
319
|
console.log("登录信息:",this.$login.f)
|
|
319
320
|
this.title = '新增'
|
|
321
|
+
var mater_Code=this.getProjectNum() + Math.floor(Math.random() * 10000)
|
|
320
322
|
let data = {
|
|
321
323
|
selectdata:this.selectdata,
|
|
322
324
|
f_process_id : this.selectdata.f_process_id,
|
|
@@ -326,6 +328,7 @@
|
|
|
326
328
|
f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
327
329
|
f_orgid: this.$login.f.orgid,
|
|
328
330
|
f_orgname: this.$login.f.orgs,
|
|
331
|
+
f_material_code:mater_Code,
|
|
329
332
|
materials:this.materials
|
|
330
333
|
}
|
|
331
334
|
//报警器流程 设备编号检验
|
|
@@ -339,33 +342,65 @@
|
|
|
339
342
|
data
|
|
340
343
|
)
|
|
341
344
|
debugger
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
345
|
+
if(res.data == 200){
|
|
346
|
+
this.contractMoney = 0
|
|
347
|
+
for(var i=0;i<this.materials.length; i++){
|
|
348
|
+
this.contractMoney =parseFloat(parseFloat(this.materials[i].f_material_money)+ parseFloat(this.contractMoney)).toFixed(2)
|
|
349
|
+
}
|
|
350
|
+
let contractbu={
|
|
351
|
+
f_process_id :this.selectdata.f_process_id,//项目节点编号
|
|
352
|
+
f_apply_num : this.selectdata.f_apply_num, //项目编号
|
|
353
|
+
f_contract_number:mater_Code, //协议编号
|
|
354
|
+
f_contract_type: '材料代购', //协议类型
|
|
355
|
+
f_contract_money:this.contractMoney , //协议金额
|
|
356
|
+
f_contract_time:new Date().Format('yyyy-MM-dd HH:mm:ss'),//协议创造时间
|
|
357
|
+
f_contract_status: '有效', //协议是否有效
|
|
358
|
+
f_remarks :'材料代购', //备注
|
|
359
|
+
f_operator:this.$login.f.name, //操作人
|
|
360
|
+
f_date :new Date().Format('yyyy-MM-dd HH:mm:ss'),//操作时间
|
|
361
|
+
f_department : this.$login.f.f_department_name, //部门
|
|
362
|
+
f_filiale :this.$login.f.orgs //组织名称
|
|
363
|
+
}
|
|
364
|
+
let data1 ={
|
|
365
|
+
contract:contractbu
|
|
366
|
+
}
|
|
367
|
+
let http1 = new HttpResetClass()
|
|
368
|
+
let res = await http1.load(
|
|
369
|
+
'POST',
|
|
370
|
+
`rs/logic/NewAddMaterContract`,
|
|
371
|
+
{data: data1},
|
|
372
|
+
{resolveMsg: null, rejectMsg: '补充协议成功!!!'}
|
|
373
|
+
)
|
|
374
|
+
this.closeMaterials()
|
|
375
|
+
debugger
|
|
376
|
+
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
getProjectNum () {
|
|
380
|
+
const projectTime = new Date() // 当前中国标准时间
|
|
381
|
+
const Year = projectTime.getFullYear() // 获取当前年份 支持IE和火狐浏览器.
|
|
382
|
+
const Month = projectTime.getMonth() + 1 // 获取中国区月份
|
|
383
|
+
const Day = projectTime.getDate() // 获取几号
|
|
384
|
+
var CurrentDate = Year
|
|
385
|
+
if (Month >= 10) { // 判断月份和几号是否大于10或者小于10
|
|
386
|
+
CurrentDate += Month
|
|
387
|
+
} else {
|
|
388
|
+
CurrentDate += '0' + Month
|
|
389
|
+
}
|
|
390
|
+
if (Day >= 10) {
|
|
391
|
+
CurrentDate += Day
|
|
392
|
+
} else {
|
|
393
|
+
CurrentDate += '0' + Day
|
|
394
|
+
}
|
|
395
|
+
return CurrentDate
|
|
362
396
|
},
|
|
397
|
+
//删除材料的同时更新合同或者删除合同
|
|
363
398
|
async deleteMaterial (row) {
|
|
399
|
+
debugger
|
|
364
400
|
var show1 = window.confirm('您确定要删除这条记录吗?')
|
|
365
401
|
if(show1 != true){
|
|
366
402
|
this.closeMaterials()
|
|
367
403
|
}else{
|
|
368
|
-
debugger
|
|
369
404
|
let http = new HttpResetClass()
|
|
370
405
|
let res = await http.load(
|
|
371
406
|
'POST',
|
|
@@ -373,9 +408,9 @@
|
|
|
373
408
|
{data: row},
|
|
374
409
|
{resolveMsg: null, rejectMsg: '材料删除失败!!!'}
|
|
375
410
|
)
|
|
411
|
+
debugger
|
|
376
412
|
this.closeMaterials()
|
|
377
413
|
}
|
|
378
|
-
|
|
379
414
|
},
|
|
380
415
|
async updateMaterial (index,row) {
|
|
381
416
|
this.title = '修改'
|