|
@@ -1,123 +1,66 @@
|
|
|
<template>
|
|
|
- <div style="box-sizing: border-box; padding: 20px">
|
|
|
- <zj-form-container
|
|
|
- ref="formRef"
|
|
|
- :formData="formData"
|
|
|
- :formRules="formRules"
|
|
|
- :formAttributes="{ 'label-position': 'top' }"
|
|
|
- >
|
|
|
- <zj-form-module title="中差评申诉配置" :formData="formData" :formItems="formItems" :column="1"> </zj-form-module>
|
|
|
- </zj-form-container>
|
|
|
- <div>
|
|
|
- <el-button size="mini" type="primary" @click="submit">提交</el-button>
|
|
|
- <el-button size="mini" type="success" @click="reset">重置</el-button>
|
|
|
- </div>
|
|
|
+ <div style="box-sizing: border-box; padding: 30px">
|
|
|
+ <el-card style="width: 100%">
|
|
|
+ <el-table :data="tableData" style="width: 100%">
|
|
|
+ <el-table-column prop="title" label="配置类型" align="left" width="280px"> </el-table-column>
|
|
|
+ <el-table-column prop="val" label="时间设置" align="left">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input type="number" v-model="scope.row.val" placeholder="请输入内容">
|
|
|
+ <template slot="append">单位(小时)</template>
|
|
|
+ </el-input>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="remark" label="" align="left"> </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-card>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { insureEmailConfig, insureEmailDetail } from '@/api/InsuranceManagement.js'
|
|
|
-import editTable from '@/components/template/editTable.js'
|
|
|
-import { getDataDictionary } from '@/api/dataDictionary.js'
|
|
|
+import { appraiseApplyConfigList, appraiseApplyConfigSave } from '@/api/workOrderAppealTime'
|
|
|
export default {
|
|
|
- mixins: [editTable],
|
|
|
data() {
|
|
|
return {
|
|
|
- formData: {
|
|
|
- accidentMailbox: '',
|
|
|
- employerMailbox: '',
|
|
|
- receiveMailbox: '',
|
|
|
- appToken: '',
|
|
|
- companyId: '',
|
|
|
- overNum: '',
|
|
|
- sendMailbox: '',
|
|
|
- sendName: '',
|
|
|
- sendPassword: '',
|
|
|
- sendTime: '',
|
|
|
- mailboxReceives: []
|
|
|
- },
|
|
|
- formRules: {
|
|
|
- appToken: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
- companyId: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
- overNum: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
- sendMailbox: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
- sendName: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
- sendMailbox: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
- sendPassword: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
- sendTime: [{ required: true, message: '请输入', trigger: 'blur' }]
|
|
|
- },
|
|
|
- INSURE_STEAD_UNIT: []
|
|
|
- }
|
|
|
- },
|
|
|
- computed: {
|
|
|
- formItems() {
|
|
|
- return [
|
|
|
- {
|
|
|
- name: 'el-input',
|
|
|
- md: 24,
|
|
|
- attributes: {},
|
|
|
- formItemAttributes: { label: '接收邮箱,(意外险专用),多邮箱以英文逗号隔开', prop: 'accidentMailbox' }
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'el-input',
|
|
|
- md: 24,
|
|
|
- attributes: {},
|
|
|
- formItemAttributes: { label: '接收邮箱,(雇主险专用),多邮箱以英文逗号隔开', prop: 'employerMailbox' }
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'el-input',
|
|
|
- md: 24,
|
|
|
- attributes: {},
|
|
|
- formItemAttributes: { label: '接收邮箱,(意外险专用),多邮箱以英文逗号隔开', prop: 'accidentMailbox' }
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'el-input',
|
|
|
- md: 24,
|
|
|
- attributes: {},
|
|
|
- formItemAttributes: { label: '接收邮箱,(雇主险专用),多邮箱以英文逗号隔开', prop: 'employerMailbox' }
|
|
|
- }
|
|
|
- ]
|
|
|
+ tableData: []
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- // 获取详情
|
|
|
- insureEmailDetail().then(res => {
|
|
|
- this.formData = { ...res.data, mailboxReceives: res?.data?.mailboxReceives || [] }
|
|
|
- })
|
|
|
- getDataDictionary({
|
|
|
- pageNum: 1,
|
|
|
- pageSize: -1,
|
|
|
- params: [
|
|
|
- { param: 'a.status', compare: '=', value: 'ON' },
|
|
|
- { param: 'a.dict_type', compare: '=', value: 'INSURE_STEAD_UNIT' }
|
|
|
- ]
|
|
|
- }).then(res => {
|
|
|
- this.INSURE_STEAD_UNIT = res.data.records.map(item => ({
|
|
|
- value: item.dictCode,
|
|
|
- label: item.dictValue
|
|
|
- }))
|
|
|
+ appraiseApplyConfigList().then(res => {
|
|
|
+ this.tableData = res.data.length
|
|
|
+ ? res.data
|
|
|
+ : [
|
|
|
+ {
|
|
|
+ title: '首次申诉:网点申诉截止时间',
|
|
|
+ val: '',
|
|
|
+ remark: '注:首次申诉时间,是从完工时间开始计算倒计时(师傅报完工或网点报完工时间)',
|
|
|
+ type: 'FIRST_A'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '二次申诉:网点申诉截止时间',
|
|
|
+ val: '',
|
|
|
+ remark: '注:二次申诉时间,是从中心审核驳回时间开始计算倒计时',
|
|
|
+ type: 'SECOND_A'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '首次申诉:中心审核截止时间',
|
|
|
+ val: '',
|
|
|
+ remark: '注:首次审核时间,是从网点提交申诉时间开始计算倒计时',
|
|
|
+ type: 'FIRST_C'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '二次申诉:中心审核截止时间',
|
|
|
+ val: '',
|
|
|
+ remark: '注:首次审核时间,是从网点提交申诉时间开始计算倒计时',
|
|
|
+ type: 'SECOND_C'
|
|
|
+ }
|
|
|
+ ]
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
- submit() {
|
|
|
- this.$refs['formRef'].validate(valid => {
|
|
|
- if (valid) {
|
|
|
- insureEmailConfig({
|
|
|
- ...this.formData
|
|
|
- }).then(res => {
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: `保存成功!`
|
|
|
- })
|
|
|
- })
|
|
|
- } else {
|
|
|
- console.log('error submit!!')
|
|
|
- return false
|
|
|
- }
|
|
|
+ queding() {
|
|
|
+ appraiseApplyConfigSave(this.tableData).then(res => {
|
|
|
+ this.$message({ type: 'success', message: `保存成功!` })
|
|
|
})
|
|
|
- },
|
|
|
- reset() {
|
|
|
- Object.assign(this.$data, this.$options.data())
|
|
|
}
|
|
|
}
|
|
|
}
|