diff --git a/src/pages/audits/data.data.js b/src/pages/audits/data.data.js
index 0f28745..c7eb76f 100644
--- a/src/pages/audits/data.data.js
+++ b/src/pages/audits/data.data.js
@@ -12,14 +12,9 @@ export default {
return statusFun(value, 'statusExpense2', 'name')
}
},
- {
- title: '未通过理由',
- dataIndex: 'workflow_check.check_remarks',
- labelPosition: 'top',
- isShow: (item) => {
- return item?.workflow_check?.check_status == 4
- },
- },
+
+
+ { title: '申请人', dataIndex: 'check.employee.name'},
{
title: '所属门店',
dataIndex: 'check.subject.store.title',
@@ -45,8 +40,16 @@ export default {
dataIndex: 'check.subject.photos',
type: 'album',
},
+ {
+ title: '未通过理由',
+ dataIndex: 'workflow_check.check_remarks',
+ labelPosition: 'top',
+ isShow: (item) => {
+ return item?.workflow_check?.check_status == 4
+ },
+ },
],
- params: { include: 'check.subject.task,check.subject.storeMaster,check.subject.store' }
+ params: { include: 'check.subject.task,check.subject.storeMaster,check.subject.store,check.employee' }
},
//报销
reimbursements: {
@@ -61,14 +64,7 @@ export default {
return statusFun(value, 'statusExpense2', 'name')
}
},
- {
- title: '未通过原因',
- dataIndex: 'remarks',
- labelPosition: 'top',
- isShow: (item) => {
- return item?.check_status == 4
- },
- },
+
{
title: "申请人",
dataIndex: "check.subject.employee.name"
@@ -103,6 +99,14 @@ export default {
dataIndex: 'check.subject.photos',
type: 'album',
},
+ {
+ title: '未通过原因',
+ dataIndex: 'remarks',
+ labelPosition: 'top',
+ isShow: (item) => {
+ return item?.check_status == 4
+ },
+ },
]
},
@@ -113,7 +117,7 @@ export default {
},
data: [
{ title: '审核状态', dataIndex: 'check_status', format: (value) => statusFun(value, 'statusExpense2', 'name')},
- { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4},
+
{ title: '晋升职位', dataIndex: 'check.subject.job.name'},
{ title: '推荐人', dataIndex: 'check.subject.invitor.name'},
{ title: '申请人', dataIndex: 'check.subject.employee.name'},
@@ -125,7 +129,8 @@ export default {
{ title: '本公司工作年限', dataIndex: 'check.subject.employee_data.work_years_in_company'},
{ title: '员工自评', dataIndex: 'check.subject.employee_data.comment_self', labelPosition: 'top'},
{ title: '未来计划', dataIndex: 'check.subject.employee_data.plans', labelPosition: 'top'},
- { title: '推荐理由', dataIndex: 'check.subject.employee_data.reason', labelPosition: 'top'}
+ { title: '推荐理由', dataIndex: 'check.subject.employee_data.reason', labelPosition: 'top'},
+ { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4},
]
},
//补卡申请
@@ -135,15 +140,17 @@ export default {
},
data: [
{ title: '审核状态', dataIndex: 'check_status', format: (value) => statusFun(value, 'statusExpense2', 'name')},
- { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4},
+
{ title: '申请人', dataIndex: 'check.subject.employee.name'},
{ title: '所属门店', dataIndex: 'check.subject.store.title'},
{ title: '电话号码', dataIndex: 'check.subject.employee.phone'},
{ title: '申请时间', dataIndex: 'check.subject.created_format'},
{ title: '补卡时间', dataIndex: 'check.subject.date_format'},
+ { title: '补卡类别', dataIndex: 'check.subject.sign_time_text'},
{ title: '补卡原因', dataIndex: 'check.subject.reason', labelPosition: 'top'},
{ title: '是否外勤', dataIndex: 'check.subject.sign_type', format: (e) => e == 1 ? '否' : '是'},
- { title: '外勤事由', dataIndex: 'check.subject.outside_remarks', labelPosition: 'top', isShow: (item) => item?.sign_type == 2}
+ { title: '外勤事由', dataIndex: 'check.subject.outside_remarks', labelPosition: 'top', isShow: (item) => item?.check?.subject?.sign_type == 2},
+ { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4},
]
},
//请假申请
@@ -153,15 +160,17 @@ export default {
},
data: [
{ title: '审核状态', dataIndex: 'check_status', format: (value) => statusFun(value, 'statusExpense2', 'name')},
- { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4},
+
{ title: '申请人', dataIndex: 'check.subject.employee.name'},
{ title: '申请时间', dataIndex: 'check.subject.created_format'},
{ title: '所属门店', dataIndex: 'check.subject.store.title'},
{ title: '电话号码', dataIndex: 'check.subject.employee.phone'},
{ title: '请假类型', dataIndex: 'check.subject.type.name'},
- { title: '开始时间', dataIndex: 'check.subject.start_format'},
+ { title: '请假开始时间', dataIndex: 'check.subject.start_format'},
{ title: '请假结束时间', dataIndex: 'check.subject.end_format'},
- { title: '请假原因', dataIndex: 'check.subject.reason', labelPosition: 'top'}]
+ { title: '请假原因', dataIndex: 'check.subject.reason', labelPosition: 'top'},
+ { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4},
+ ]
},
offical_business: {
params: {
@@ -172,6 +181,8 @@ export default {
{ title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 },
{ title: '申请人', dataIndex: 'check.subject.employee.name' },
{ title: '所属门店', dataIndex: 'check.subject.store.title' },
+ { title: '电话号码', dataIndex: 'check.subject.employee.phone' },
+ { title: '申请时间', dataIndex: 'check.subject.created_format' },
{ title: '目的地', dataIndex: 'check.subject.address' },
{ title: '开始时间', dataIndex: 'check.subject.start_format' },
{ title: '结束时间', dataIndex: 'check.subject.end_format' },
@@ -184,25 +195,33 @@ export default {
},
data: [
{ title: '审核状态', dataIndex: 'check_status', format: (value) => statusFun(value, 'statusExpense2', 'name')},
- { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 },
+
{ title: '申请人', dataIndex: 'check.subject.employee.name' },
{ title: '所属门店', dataIndex: 'check.subject.store.title' },
- { title: '日期', dataIndex: 'check.subject.date_format' },
+ { title: '电话号码', dataIndex: 'check.subject.employee.phone' },
+ { title: '申请时间', dataIndex: 'check.subject.created_format' },
+ { title: '加班日期', dataIndex: 'check.subject.date_format' },
{ title: '开始时间', dataIndex: 'check.subject.start_format' },
{ title: '结束时间', dataIndex: 'check.subject.end_format' },
+ { title: '加班时长(时)', dataIndex: 'check.subject.hours' },
{ title: '加班事由', dataIndex: 'check.subject.reason', labelPosition: 'top' },
+ { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 },
]
},
agreements: {
params: {
- include: 'check.subject.employee'
+ include: 'check.subject.employee,check.subject.employee.store'
},
data: [
{ title: '审核状态', dataIndex: 'check_status', format: (value) => statusFun(value, 'statusExpense2', 'name')},
- { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 },
- { title: '申请人', dataIndex: 'check.subject.employee.name' },
+
+ { title: '上传人', dataIndex: 'check.subject.employee.name' },
+ { title: '所属门店', dataIndex: 'check.subject.employee.store.title' },
+ { title: '电话号码', dataIndex: 'check.subject.employee.phone' },
+ { title: '上传时间', dataIndex: 'check.subject.created_format' },
{ title: '合同名称', dataIndex: 'check.subject.name' },
{ title: '合同照片', dataIndex: 'check.subject.images', type: 'album' },
+ { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 },
]
}
}
\ No newline at end of file
diff --git a/src/pages/business/detail.vue b/src/pages/business/detail.vue
index 714e714..3b5928c 100644
--- a/src/pages/business/detail.vue
+++ b/src/pages/business/detail.vue
@@ -35,10 +35,11 @@ const columns = [
{ title: '所属门店', dataIndex: 'store.title' },
{ title: '电话号码', dataIndex: 'employee.phone' },
{ title: '目的地', dataIndex: 'address' },
+ { title: '申请时间', dataIndex: 'created_format' },
{ title: '开始时间', dataIndex: 'start_format' },
{ title: '结束时间', dataIndex: 'end_format' },
{ title: '出差原因', dataIndex: 'reason', labelPosition: 'top' },
- { title: '申请时间', dataIndex: 'created_format' },
+
]
const pickerRef = ref(null)
diff --git a/src/pages/contract/detail.vue b/src/pages/contract/detail.vue
index be549f8..1de8f14 100644
--- a/src/pages/contract/detail.vue
+++ b/src/pages/contract/detail.vue
@@ -33,9 +33,10 @@ const id = ref(0)
const columns = [
{ title: '审核状态', dataIndex: 'workflow_check.check_status_text' },
{ title: '拒绝原因', dataIndex: 'workflow_check.check_remarks', labelPosition: 'top', isShow: (data) => data?.workflow_check?.check_status == 4 },
- { title: '申请人', dataIndex: 'employee.name' },
+ { title: '上传人', dataIndex: 'employee.name' },
+ { title: '所属门店', dataIndex: 'store.title' },
{ title: '电话号码', dataIndex: 'employee.phone' },
- { title: '创建时间', dataIndex: 'created_format' },
+ { title: '上传时间', dataIndex: 'created_format' },
{ title: '合同名称', dataIndex: 'name' },
{ title: '合同内容', dataIndex: 'images', type: 'album' },
]
diff --git a/src/pages/contract/list.vue b/src/pages/contract/list.vue
index 79d4f88..73f6352 100644
--- a/src/pages/contract/list.vue
+++ b/src/pages/contract/list.vue
@@ -33,7 +33,7 @@
:status-color="statusFun(item.workflow_check.check_status,'statusExpense','color')"
:images="item.images"
:body="[
- { label: '创建时间', value: item.created_format }
+ // { label: '创建时间', value: item.created_format }
]"
@click.stop="applyDetail(item)"
/>
@@ -58,8 +58,8 @@
:status-color="statusFun(item.check_status,'statusExpense','color')"
:images="item.check.subject.images"
:body="[
- { label: '创建人', value: item.check.subject.employee.name },
- { label: '创建时间', value: item.check.subject.created_format }
+ // { label: '创建人', value: item.check.subject.employee.name },
+ // { label: '创建时间', value: item.check.subject.created_format }
]"
@click.stop="checkDetail(item)"
/>
diff --git a/src/pages/make-card/create.vue b/src/pages/make-card/create.vue
index 2f7a6b8..3a6ccbd 100644
--- a/src/pages/make-card/create.vue
+++ b/src/pages/make-card/create.vue
@@ -22,9 +22,9 @@
-
+
{
}
const rules = reactive({
date: [{ required: true, message: '请选择补卡时间' }],
- sign_time: [{ required: true, message: '请选择补卡类型' }],
+ sign_time: [{ required: true, message: '请选择补卡类别' }],
reason: [{ required: true, message: '请输入补卡理由' }],
outside_remarks: [{ required: true, message: '请输入外勤事由' }],
})
diff --git a/src/pages/make-card/detail.vue b/src/pages/make-card/detail.vue
index c3424c6..ed3e69a 100644
--- a/src/pages/make-card/detail.vue
+++ b/src/pages/make-card/detail.vue
@@ -54,6 +54,10 @@ const detailColumns = [
title: "补卡时间",
dataIndex: "date_format"
},
+ {
+ title: "补卡类别",
+ dataIndex: "sign_time_text"
+ },
{
title: "补卡原因",
dataIndex: "reason"
diff --git a/src/pages/overtime/create.vue b/src/pages/overtime/create.vue
index 08ea09a..a4e63a1 100644
--- a/src/pages/overtime/create.vue
+++ b/src/pages/overtime/create.vue
@@ -39,7 +39,7 @@
data?.workflow_check?.check_status == 4,
},
{ title: '申请人', dataIndex: 'employee.name' },
- { title: '申请时间', dataIndex: 'created_format' },
+
{ title: '所属门店', dataIndex: 'store.title' },
{ title: '电话号码', dataIndex: 'employee.phone' },
+ { title: '申请时间', dataIndex: 'created_format' },
{ title: '加班日期', dataIndex: 'date_format' },
{ title: '开始时间', dataIndex: 'start_format' },
{ title: '结束时间', dataIndex: 'end_format' },
- { title: '请假原因', dataIndex: 'reason', labelPosition: 'top' },
+ { title: '加班时长(时)', dataIndex: 'hours' },
+ { title: '请假事由', dataIndex: 'reason', labelPosition: 'top' },
]
const open = () => {
diff --git a/src/pages/task/index.vue b/src/pages/task/index.vue
index b2cbe36..75eb5b6 100644
--- a/src/pages/task/index.vue
+++ b/src/pages/task/index.vue
@@ -29,8 +29,7 @@
:status-text="item.taskable.status_text"
:status-color="statusFun(item.taskable.status, 'statusExpense' ,'color')"
:body="[
- {label: '任务时间: ', value: item.start_format + '-' + item.end_format},
- {label: '提交时间: ', value: item.created_format},
+ {label: '任务时间: ', value: item.start_format + '-' + item.end_format}
]"
@click.stop="applyClick(item)"
/>
@@ -54,8 +53,7 @@
:status-text="statusFun(item.check_status, 'statusExpense2' ,'name')"
:status-color="statusFun(item.check_status, 'statusExpense' ,'color')"
:body="[
- {label: '任务时间: ', value: item.check.subject.task.start_format + '-' + item.check.subject.task.end_format},
- {label: '提交时间: ', value: item.check.subject.task.created_format},
+ {label: '任务时间: ', value: item.check.subject.task.start_format + '-' + item.check.subject.task.end_format}
]"
@click.stop="checkClick(item)"
/>
diff --git a/src/pages/upgrade/call-check-version.js b/src/pages/upgrade/call-check-version.js
index c624d85..42edd0c 100644
--- a/src/pages/upgrade/call-check-version.js
+++ b/src/pages/upgrade/call-check-version.js
@@ -17,6 +17,7 @@ export default function () {
wgtVersion: widgetInfo.version
};
http.get('/latest-app-versions').then(resData => {
+ console.log(resData);
// _id : string
// appid : string
@@ -51,7 +52,7 @@ export default function () {
title: info.title,
contents: info.description,
url: info.update_strategy === 'wgt' ? info.wgt_url : info.apk_url,
- platform: systemInfo.platform,
+ platform: [systemInfo.platform],
version: info.version,
uni_platform: systemInfo.platform,
stable_publish: true,
@@ -62,7 +63,7 @@ export default function () {
}
}
-
+ console.log(resInfo);
resolve(resInfo);
}).catch(err => {
reject(err);
diff --git a/src/pages/upgrade/index.vue b/src/pages/upgrade/index.vue
index 872ff86..205e911 100644
--- a/src/pages/upgrade/index.vue
+++ b/src/pages/upgrade/index.vue
@@ -68,8 +68,8 @@
import { createNotificationProgress, cancelNotificationProgress, finishNotificationProgress } from '@/uni_modules/uts-progressNotification'
// #endif
const localFilePathKey = 'UNI_ADMIN_UPGRADE_CENTER_LOCAL_FILE_PATH'
- const platform_iOS = 'iOS';
- const platform_Android = 'Android';
+ const platform_iOS = 'ios';
+ const platform_Android = 'android';
let downloadTask = null;
let openSchemePromise
@@ -178,7 +178,6 @@
}
Object.assign(this, localPackageInfo)
- console.log(localPackageInfo);
this.checkLocalStoragePackage()
},
onBackPress() {
@@ -328,7 +327,6 @@
this.downLoadPercent = res.progress;
this.downloadedSize = (res.totalBytesWritten / Math.pow(1024, 2)).toFixed(2);
this.packageFileSize = (res.totalBytesExpectedToWrite / Math.pow(1024, 2)).toFixed(2);
-
if (this.needNotificationProgress && !this.downloadSuccess) {
createNotificationProgress({
title: "升级中心正在下载安装包……",