manage-client 3.3.267 → 3.3.268
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
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
</div>
|
|
40
40
|
|
|
41
41
|
<div class="span" style="float:right;">
|
|
42
|
+
<button class="btn button_clear" @click="$parent.$parent.batchConfirmPay()">批量确认收款</button>
|
|
42
43
|
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
43
44
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
44
45
|
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
@@ -202,9 +203,10 @@
|
|
|
202
203
|
</div>
|
|
203
204
|
</criteria>
|
|
204
205
|
|
|
205
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
206
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" :optional="true" v-ref:grid>
|
|
206
207
|
<template partial='head'>
|
|
207
208
|
<tr>
|
|
209
|
+
<th><nobr>操作</nobr></th>
|
|
208
210
|
<th>
|
|
209
211
|
<!-- <nobr>客户编号</nobr>-->
|
|
210
212
|
<data-order field="f_userinfo_code" name="客户编号"
|
|
@@ -309,11 +311,17 @@
|
|
|
309
311
|
<nobr>审核状态</nobr>
|
|
310
312
|
</th>
|
|
311
313
|
<th><nobr>附件</nobr></th>
|
|
312
|
-
|
|
314
|
+
|
|
313
315
|
<!--<th><nobr>查看详情</nobr></th>-->
|
|
314
316
|
</tr>
|
|
315
317
|
</template>
|
|
316
318
|
<template partial='body'>
|
|
319
|
+
<td style="text-align: center;"><nobr>
|
|
320
|
+
<button class="button_search button_spacing width-60"
|
|
321
|
+
:class="{ 'disabled-button': row.f_audit_state === '审核通过' }"
|
|
322
|
+
:disabled="row.f_audit_state === '审核通过'"
|
|
323
|
+
@click.stop="$parent.$parent.$parent.confirmPay(row)">确认收款</button>
|
|
324
|
+
</nobr></td>
|
|
317
325
|
<td style="text-align: center;">
|
|
318
326
|
<nobr>
|
|
319
327
|
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
|
|
@@ -415,9 +423,7 @@
|
|
|
415
423
|
<td style="text-align: center;"><nobr>
|
|
416
424
|
<button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
|
|
417
425
|
</nobr></td>
|
|
418
|
-
|
|
419
|
-
<button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.confirmPay(row)">确认收款</button>
|
|
420
|
-
</nobr></td>
|
|
426
|
+
|
|
421
427
|
<!--<td style="text-align: center;">-->
|
|
422
428
|
<!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>-->
|
|
423
429
|
<!--</td>-->
|
|
@@ -535,7 +541,8 @@
|
|
|
535
541
|
// 品名规格
|
|
536
542
|
typeNameList: [],
|
|
537
543
|
// 型号
|
|
538
|
-
typenumberList: []
|
|
544
|
+
typenumberList: [],
|
|
545
|
+
selectedRows: []
|
|
539
546
|
}
|
|
540
547
|
},
|
|
541
548
|
ready() {
|
|
@@ -546,6 +553,29 @@
|
|
|
546
553
|
})
|
|
547
554
|
},
|
|
548
555
|
methods: {
|
|
556
|
+
batchConfirmPay() {
|
|
557
|
+
if (this.$refs.paged.$refs.grid.getRowData() === 0) {
|
|
558
|
+
this.$showMessage('请先选择要确认的收款项!');
|
|
559
|
+
return;
|
|
560
|
+
}
|
|
561
|
+
this.$showMessage(`是否确认批量收款,数量 ${this.$refs.paged.$refs.grid.getRowData().length} 个`, ['confirm', 'cancel']).then(
|
|
562
|
+
(response) => {
|
|
563
|
+
if (response === 'confirm') {
|
|
564
|
+
const sqlStatements = this.$refs.paged.$refs.grid.getRowData().map(row =>
|
|
565
|
+
`UPDATE t_othercharge SET f_audit_state = '审核通过' WHERE id = '${row.id}'`
|
|
566
|
+
);
|
|
567
|
+
|
|
568
|
+
const sql = sqlStatements.join('; ');
|
|
569
|
+
const updateData = this.$resetpost('api/af-revenue/logic/runSQL', { data: { sql } }, { resolveMsg: '已确认', rejectMsg: '审核失败!!!' });
|
|
570
|
+
updateData.then(() => {
|
|
571
|
+
this.search();
|
|
572
|
+
});
|
|
573
|
+
} else if (response === 'cancel') {
|
|
574
|
+
this.$dispatch('cancel');
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
);
|
|
578
|
+
},
|
|
549
579
|
confirmPay(row){
|
|
550
580
|
console.log('---------',row)
|
|
551
581
|
this.otherchargeid = row.f_othercharge_id
|
|
@@ -788,3 +818,9 @@
|
|
|
788
818
|
}
|
|
789
819
|
}
|
|
790
820
|
</script>
|
|
821
|
+
<style>
|
|
822
|
+
.disabled-button {
|
|
823
|
+
cursor: not-allowed;
|
|
824
|
+
opacity: 0.6;
|
|
825
|
+
}
|
|
826
|
+
</style>
|