|
@@ -19,7 +19,11 @@ import import_mixin from '@/components/template/import_mixin.js'
|
|
|
import ImageUpload from '@/components/file-upload'
|
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
|
import { required, mobileRequired, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
|
|
|
-import { dailySummaryRepiarAllList, dailySummaryRepiarAllListExport } from '@/api/maintenanceWorkOrderSettlement'
|
|
|
+import {
|
|
|
+ dailySummaryRepiarAllList,
|
|
|
+ dailySummaryRepiarAllListExport,
|
|
|
+ repairAllCount
|
|
|
+} from '@/api/maintenanceWorkOrderSettlement'
|
|
|
export default {
|
|
|
components: { TemplatePage, ImageUpload },
|
|
|
mixins: [import_mixin, operation_mixin],
|
|
@@ -35,7 +39,8 @@ export default {
|
|
|
'selection-change': this.selectionChange
|
|
|
},
|
|
|
// 勾选选中行
|
|
|
- recordSelected: []
|
|
|
+ recordSelected: [],
|
|
|
+ count: {}
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -52,19 +57,23 @@ export default {
|
|
|
value: ''
|
|
|
},
|
|
|
{
|
|
|
- label: '未发放',
|
|
|
+ label: `未发放${this.count.waitCount}`,
|
|
|
value: '1'
|
|
|
},
|
|
|
{
|
|
|
- label: '已发放',
|
|
|
+ label: `已发放${this.count.endCount}`,
|
|
|
value: '2'
|
|
|
},
|
|
|
{
|
|
|
- label: '暂不结算',
|
|
|
+ label: `受理中${this.count.ingCount}`,
|
|
|
+ value: '3'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: `发放失败${this.count.errCount}`,
|
|
|
value: '4'
|
|
|
},
|
|
|
{
|
|
|
- label: '已扣回',
|
|
|
+ label: `驳回${this.count.rejectCount}`,
|
|
|
value: '5'
|
|
|
}
|
|
|
]
|
|
@@ -85,7 +94,13 @@ export default {
|
|
|
}
|
|
|
cb && cb(pam)
|
|
|
return dailySummaryRepiarAllList(pam)
|
|
|
- } catch (err) {}
|
|
|
+ } catch (err) {
|
|
|
+ } finally {
|
|
|
+ repairAllCount().then(res => {
|
|
|
+ this.count = res.data
|
|
|
+ console.log(res.data)
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
// 列表导出函数
|
|
|
exportList: dailySummaryRepiarAllListExport,
|