|
@@ -7,6 +7,7 @@ import store from "@/store"
|
|
const degree2Txt = store.getters['enum/getDegreeText']
|
|
const degree2Txt = store.getters['enum/getDegreeText']
|
|
const getapplyTypeText = store.getters["enum/getapplyTypeText"]
|
|
const getapplyTypeText = store.getters["enum/getapplyTypeText"]
|
|
const getOfferTypeList = store.getters["enum/getOfferTypeList"]
|
|
const getOfferTypeList = store.getters["enum/getOfferTypeList"]
|
|
|
|
+const getLeaveTypeTypeList = store.getters["enum/getLeaveTypeTypeList"]
|
|
|
|
|
|
export function formatApproveItemRow(data, type) {
|
|
export function formatApproveItemRow(data, type) {
|
|
if (typeof type !== 'number') type = Number(type)
|
|
if (typeof type !== 'number') type = Number(type)
|
|
@@ -75,7 +76,7 @@ export function formatApproveItemRow(data, type) {
|
|
break
|
|
break
|
|
case 6:
|
|
case 6:
|
|
arrs = [
|
|
arrs = [
|
|
- { label: '请假类型', val: data.type },
|
|
|
|
|
|
+ { label: '请假类型', val: getLeaveTypeTypeList(data.type) },
|
|
{ label: '开始时间', val: `${data.start_time} ${data.start_am}` },
|
|
{ label: '开始时间', val: `${data.start_time} ${data.start_am}` },
|
|
{ label: '结束时间', val: `${data.end_time} ${data.end_am}` }
|
|
{ label: '结束时间', val: `${data.end_time} ${data.end_am}` }
|
|
]
|
|
]
|
|
@@ -96,7 +97,7 @@ export function formatApproveItemRow(data, type) {
|
|
case 9:
|
|
case 9:
|
|
arrs = [
|
|
arrs = [
|
|
{ label: '合同编号', val: data.reason },
|
|
{ label: '合同编号', val: data.reason },
|
|
- { label: '拟稿日期', val: data.createTime },
|
|
|
|
|
|
+ { label: '拟稿日期', val: data.apply_date },
|
|
{ label: '缓急程度', val: degree2Txt(data.desc) }
|
|
{ label: '缓急程度', val: degree2Txt(data.desc) }
|
|
]
|
|
]
|
|
break
|
|
break
|