Commit cef73fdc by 李伟康

Merge branch 'SAAS+V5.3.0-1117' of http://192.168.3.233:8090/saas_plus/dj-car-li…

…fe-system into SAAS+V5.3.0-1117
2 parents 2af485f8 5499f46d
...@@ -539,7 +539,8 @@ ...@@ -539,7 +539,8 @@
<i <i
v-show=" v-show="
item.optionList.length > 1 && item.optionList.length > 1 &&
getEditOptionIndex(item.name) == subIndex getEditOptionIndex(item.name) == subIndex &&
getEditOptionValue(item.name)
" "
class="el-icon-check option_icon add_icon" class="el-icon-check option_icon add_icon"
@click.stop=" @click.stop="
...@@ -778,6 +779,7 @@ export default { ...@@ -778,6 +779,7 @@ export default {
// 设置新增选项值 // 设置新增选项值
setAddOptionValue(name, value) { setAddOptionValue(name, value) {
value = value.replace(/\s/g, "")
this.initSelectState(name) this.initSelectState(name)
this.$set(this.selectStates[name], "addOptionValue", value) this.$set(this.selectStates[name], "addOptionValue", value)
}, },
...@@ -790,6 +792,7 @@ export default { ...@@ -790,6 +792,7 @@ export default {
// 设置编辑选项值 // 设置编辑选项值
setEditOptionValue(name, value) { setEditOptionValue(name, value) {
value = value.replace(/\s/g, "")
this.initSelectState(name) this.initSelectState(name)
this.$set(this.selectStates[name], "editOptionValue", value) this.$set(this.selectStates[name], "editOptionValue", value)
}, },
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
:style="{ width: '432px' }" :style="{ width: '432px' }"
v-model="formData.dateTime" v-model="formData.dateTime"
type="datetimerange" type="datetimerange"
range-separator="-" range-separator="至"
format="yyyy-MM-dd HH:mm" format="yyyy-MM-dd HH:mm"
value-format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm"
start-placeholder="开始时间" start-placeholder="开始时间"
......
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
type="primary" type="primary"
@click="exportTemplate" @click="exportTemplate"
v-if="formData.activityCycleResponses" v-if="formData.activityCycleResponses"
data-event-code="activity_management_export"
> >
导出名单 导出名单
</el-button> </el-button>
...@@ -243,6 +244,7 @@ export default { ...@@ -243,6 +244,7 @@ export default {
}, },
handleTextBoxFocus() { handleTextBoxFocus() {
this.$refs.TextBox.setEdit(this.formData.selectionRule) this.$refs.TextBox.setEdit(this.formData.selectionRule)
this.$refs.TextBox.forbidEdit()
} }
} }
} }
...@@ -359,7 +361,6 @@ export default { ...@@ -359,7 +361,6 @@ export default {
} }
.editList { .editList {
width: 580px; width: 580px;
height: 240px;
border-radius: 4px; border-radius: 4px;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -86,8 +86,7 @@ ...@@ -86,8 +86,7 @@
<el-button <el-button
type="text" type="text"
@click="handleAccountConfirm(scope.scope)" @click="handleAccountConfirm(scope.scope)"
v-if="scope.scope.status != 1 && scope.scope.status != 2" v-if="scope.scope.status != 2"
data-event-code="activity_management_import"
> >
导入名单 导入名单
</el-button> </el-button>
...@@ -230,14 +229,15 @@ ...@@ -230,14 +229,15 @@
/> />
</div> </div>
</div> </div>
<div style="display: flex; align-items: center"> <div
style="display: flex; align-items: center"
@click.stop="addNew"
>
<i <i
class="el-icon-circle-plus-outline" class="el-icon-circle-plus-outline"
style="color: #2a58ad; font-size: 20px; margin-right: 3px" style="color: #2a58ad; font-size: 20px; margin-right: 3px"
/> />
<el-button type="text" @click.stop="addNew" <el-button type="text">新增一项</el-button>
>新增一项</el-button
>
</div> </div>
</div> </div>
</el-select> </el-select>
...@@ -460,6 +460,7 @@ export default { ...@@ -460,6 +460,7 @@ export default {
}) })
}, },
mounted() { mounted() {
this.onPageShow()
// this.getServiceStore() // this.getServiceStore()
}, },
methods: { methods: {
...@@ -547,10 +548,12 @@ export default { ...@@ -547,10 +548,12 @@ export default {
}, },
// 上传文件,转码为base64 // 上传文件,转码为base64
importFile(e) { importFile(e) {
console.log(e.target.files[0], "上传文件,转码为base64")
this.fileForm.errorFileUrl = "" this.fileForm.errorFileUrl = ""
const size = e.target.files[0].size / 1024 / 1024 const size = e.target.files[0].size / 1024 / 1024
if (size < 5) { if (size < 5) {
this.$set(this.fileForm, "fileName", e.target.files[0].name) this.$set(this.fileForm, "fileName", e.target.files[0].name)
console.log(this.fileForm, "this.fileForm")
// // 转码base64 // // 转码base64
const reader = new FileReader() const reader = new FileReader()
reader.readAsDataURL(e.target.files[0]) reader.readAsDataURL(e.target.files[0])
...@@ -564,6 +567,7 @@ export default { ...@@ -564,6 +567,7 @@ export default {
"@" + "@" +
arrBase64[1] arrBase64[1]
document.getElementById("fileUpload").value = "" document.getElementById("fileUpload").value = ""
console.log(this.fileInfo, "this.fileInfo")
this.$refs.fileRuleForm.validateField("fileName") this.$refs.fileRuleForm.validateField("fileName")
} }
} else { } else {
...@@ -608,7 +612,7 @@ export default { ...@@ -608,7 +612,7 @@ export default {
getActivityCyclePage({ activityId: this.currentRow.id }).then((res) => { getActivityCyclePage({ activityId: this.currentRow.id }).then((res) => {
console.log(res) console.log(res)
this.periodList = res || [] this.periodList = res.length > 0 ? res : [{}]
}) })
}, },
handleNameBlur(index) {}, handleNameBlur(index) {},
...@@ -624,7 +628,10 @@ export default { ...@@ -624,7 +628,10 @@ export default {
this.fileForm = { ...this.fileForm, ...res } this.fileForm = { ...this.fileForm, ...res }
} else { } else {
this.fileVisible = false this.fileVisible = false
this.fileForm = {} this.fileForm = {
fileName: "",
currentPeriod: ""
}
this.$refs.table.refreshTable() this.$refs.table.refreshTable()
} }
}) })
...@@ -632,7 +639,8 @@ export default { ...@@ -632,7 +639,8 @@ export default {
}) })
}, },
removeFile() { removeFile() {
this.fileForm = {} this.fileForm.fileName = null
this.fileInfo = null
}, },
exportError(errorFileUrl) { exportError(errorFileUrl) {
errorFileUrl && window.open(errorFileUrl) errorFileUrl && window.open(errorFileUrl)
......
...@@ -15,23 +15,23 @@ ...@@ -15,23 +15,23 @@
<div class="dialog-title-box"> <div class="dialog-title-box">
<div class="dialog-name">{{ info.staffName }}</div> <div class="dialog-name">{{ info.staffName }}</div>
<div class="dialog-title1"> <div class="dialog-title1">
<div style="width: 160px"> <div class="flex">
<span class="title-text">手机号:</span> <span class="title-text">手机号:</span>
<span class="title-text">{{ info.staffPhone }}</span> <span class="title-text1 flex-1">{{ info.staffPhone }}</span>
</div> </div>
<div> <div class="flex">
<span class="title-text">所属门店:</span> <span class="title-text">所属门店:</span>
<span class="title-text">{{ info.merchantName }}</span> <span class="title-text1">{{ info.merchantName }}</span>
</div> </div>
</div> </div>
<div class="dialog-title1"> <div class="dialog-title1">
<div style="width: 160px"> <div class="flex">
<span class="title-text">客户姓名:</span> <span class="title-text">客户姓名:</span>
<span class="title-text">{{ info.customerName }}</span> <span class="title-text1">{{ info.customerName }}</span>
</div> </div>
<div> <div class="flex-1 flex">
<span class="title-text">缺失原因:</span> <span class="title-text">缺失原因:</span>
<span class="title-text">{{ info.reason }}</span> <span class="title-text1 flex-1">{{ info.reason }}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -189,6 +189,22 @@ export default { ...@@ -189,6 +189,22 @@ export default {
margin-bottom: 8px; margin-bottom: 8px;
} }
} }
.title-text {
width: 80px;
}
.title-text1 {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100px;
display: block;
}
.flex {
display: flex;
}
.flex-1 {
flex: 1;
}
.reject-input { .reject-input {
::v-deep .el-textarea__inner { ::v-deep .el-textarea__inner {
......
...@@ -17,23 +17,23 @@ ...@@ -17,23 +17,23 @@
<div class="dialog-title-box"> <div class="dialog-title-box">
<div class="dialog-name">{{ info.staffName }}</div> <div class="dialog-name">{{ info.staffName }}</div>
<div class="dialog-title1"> <div class="dialog-title1">
<div style="width: 160px"> <div class="flex">
<span class="title-text">手机号:</span> <span class="title-text">手机号:</span>
<span class="title-text">{{ info.mobile }}</span> <span class="title-text1">{{ info.staffPhone }}</span>
</div> </div>
<div> <div class="flex">
<span class="title-text">所属门店:</span> <span class="title-text">所属门店:</span>
<span class="title-text">{{ info.merchantName }}</span> <span class="title-text1">{{ info.merchantName }}</span>
</div> </div>
</div> </div>
<div class="dialog-title1"> <div class="dialog-title1">
<div style="width: 160px"> <div class="flex">
<span class="title-text">客户姓名:</span> <span class="title-text">客户姓名:</span>
<span class="title-text">{{ info.customerName }}</span> <span class="title-text1">{{ info.customerName }}</span>
</div> </div>
<div> <div class="flex-1 flex">
<span class="title-text">缺失原因:</span> <span class="title-text">缺失原因:</span>
<span class="title-text">{{ info.reason }}</span> <span class="title-text1">{{ info.reason }}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -56,16 +56,18 @@ ...@@ -56,16 +56,18 @@
:color="index == 0 ? '#2a58ad' : ''" :color="index == 0 ? '#2a58ad' : ''"
> >
<div class="status-box"> <div class="status-box">
<span class="status-box-text">{{ <span class="status-box-text w100">{{
activity.auditStatus == "1" ? "【已通过】" : "【已驳回】" activity.auditStatus == "1" ? "【已通过】" : "【已驳回】"
}}</span> }}</span>
<span class="status-box-text">{{ <span class="status-box-text flex-1">{{
activity.auditOpinion || "-" activity.auditOpinion || "-"
}}</span> }}</span>
</div> </div>
<div class="time-box"> <div class="time-box">
<span class="time-box-text">{{ activity.auditUser }}</span> <span class="time-box-text w100">{{ activity.auditUser }}</span>
<span class="time-box-text">{{ activity.auditTime }}</span> <span class="time-box-text">{{
Util.dateFormate(activity.auditTime, "YYYY-MM-DD HH:mm:ss")
}}</span>
</div> </div>
</el-timeline-item> </el-timeline-item>
</el-timeline> </el-timeline>
...@@ -92,10 +94,12 @@ ...@@ -92,10 +94,12 @@
<script> <script>
import { reportApproval, reportDetail } from "@/api/earlyWarningManager" import { reportApproval, reportDetail } from "@/api/earlyWarningManager"
import { color } from "echarts" import { color } from "echarts"
import { Util, deepClone } from "@/common/util"
export default { export default {
name: "ExamineDialog", name: "ExamineDialog",
data() { data() {
return { return {
Util,
loading: true, loading: true,
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
// txtObj: { // txtObj: {
...@@ -272,7 +276,16 @@ export default { ...@@ -272,7 +276,16 @@ export default {
align-items: center; align-items: center;
.status-box-text { .status-box-text {
margin-right: 8px; margin-right: 8px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.flex-1 {
flex: 1;
} }
.w100 {
width: 100px;
} }
.time-box { .time-box {
display: flex; display: flex;
...@@ -302,4 +315,20 @@ export default { ...@@ -302,4 +315,20 @@ export default {
::v-deep .el-dialog__header { ::v-deep .el-dialog__header {
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
} }
.title-text {
width: 80px;
}
.title-text1 {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100px;
display: block;
}
.flex {
display: flex;
}
.flex-1 {
flex: 1;
}
</style> </style>
...@@ -67,6 +67,7 @@ export default { ...@@ -67,6 +67,7 @@ export default {
name: "merchantId", name: "merchantId",
type: "select", type: "select",
isClear: true, isClear: true,
noDataText: "加载中...",
optionList: [], optionList: [],
optionId: "merchantId", optionId: "merchantId",
optionLabel: "merchantName", optionLabel: "merchantName",
......
...@@ -175,6 +175,7 @@ export default { ...@@ -175,6 +175,7 @@ export default {
type: "special-select", type: "special-select",
isClear: true, isClear: true,
typeCode: "character", typeCode: "character",
typeName: "personalityName",
optionId: "itemValue", optionId: "itemValue",
optionLabel: "itemName", optionLabel: "itemName",
optionsName: "characterData", optionsName: "characterData",
...@@ -194,6 +195,7 @@ export default { ...@@ -194,6 +195,7 @@ export default {
type: "special-select", type: "special-select",
isClear: true, isClear: true,
typeCode: "ability_performance", typeCode: "ability_performance",
typeName: "abilityPerformanceName",
optionId: "itemValue", optionId: "itemValue",
optionLabel: "itemName", optionLabel: "itemName",
optionsName: "abilityData", optionsName: "abilityData",
...@@ -213,6 +215,7 @@ export default { ...@@ -213,6 +215,7 @@ export default {
type: "special-select", type: "special-select",
isClear: true, isClear: true,
typeCode: "education_level", typeCode: "education_level",
typeName: "educationLevelName",
optionId: "itemValue", optionId: "itemValue",
optionLabel: "itemName", optionLabel: "itemName",
optionsName: "educationData", optionsName: "educationData",
...@@ -232,6 +235,7 @@ export default { ...@@ -232,6 +235,7 @@ export default {
type: "special-select", type: "special-select",
isClear: true, isClear: true,
typeCode: "appearance", typeCode: "appearance",
typeName: "appearanceName",
optionId: "itemValue", optionId: "itemValue",
optionLabel: "itemName", optionLabel: "itemName",
optionsName: "appearanceData", optionsName: "appearanceData",
...@@ -251,6 +255,7 @@ export default { ...@@ -251,6 +255,7 @@ export default {
type: "special-select", type: "special-select",
isClear: true, isClear: true,
typeCode: "position_match_degree", typeCode: "position_match_degree",
typeName: "positionMatchDegreeName",
optionId: "itemValue", optionId: "itemValue",
optionLabel: "itemName", optionLabel: "itemName",
optionsName: "matchdegreeData", optionsName: "matchdegreeData",
...@@ -283,13 +288,51 @@ export default { ...@@ -283,13 +288,51 @@ export default {
methods: { methods: {
//编辑 //编辑
handleEdit(data, index) { async handleEdit(data, index) {
this.isAdd = false this.isAdd = false
this.index = index this.index = index
this.isEntryDialogConfig.title = "编辑入职" this.isEntryDialogConfig.title = "编辑入职"
this.fetchOnboardingPlans() await this.fetchOnboardingPlans()
this.isEntryVisible = !this.isEntryVisible this.isEntryVisible = !this.isEntryVisible
this.isEntryForm = deepClone(data) this.isEntryForm = deepClone(data)
this.updateParams(this.isEntryForm)
},
updateParams(data) {
data.appearanceName =
this.filterAttribute(
"appearanceData",
"itemValue",
"itemName",
data.appearanceType
) || data.appearanceName
data.positionMatchDegreeName =
this.filterAttribute(
"matchdegreeData",
"itemValue",
"itemName",
data.positionMatchDegreeType
) || data.positionMatchDegreeName
data.educationLevelName =
this.filterAttribute(
"educationData",
"itemValue",
"itemName",
data.educationLevelType
) || data.educationLevelName
data.abilityPerformanceName =
this.filterAttribute(
"abilityData",
"itemValue",
"itemName",
data.abilityPerformanceType
) || data.abilityPerformanceName
data.personalityName =
this.filterAttribute(
"characterData",
"itemValue",
"itemName",
data.personalityType
) || data.personalityName
}, },
//删除简历 //删除简历
handleDelete(index) { handleDelete(index) {
...@@ -408,8 +451,7 @@ export default { ...@@ -408,8 +451,7 @@ export default {
this.handleEntry() this.handleEntry()
}, },
async handleAddSelectTypeConfirm(data) { async handleAddSelectTypeConfirm(data) {
let { typeCode, optionsName, label, value, name } = data let { typeCode, optionsName, label, value, name, typeName } = data
console.log(data)
let res = await addDict({ let res = await addDict({
businessCode: "recruitment", businessCode: "recruitment",
typeCode, typeCode,
...@@ -417,16 +459,21 @@ export default { ...@@ -417,16 +459,21 @@ export default {
itemName: value itemName: value
}) })
if (res) { if (res) {
this.getDictListType(optionsName, typeCode, name) this.getDictListType(optionsName, typeCode, name, typeName)
} }
}, },
async getDictListType(optionsName, typeCode, name) { async getDictListType(optionsName, typeCode, name, typeName) {
let distData = await getDictList({ let distData = await getDictList({
businessCode: "recruitment", businessCode: "recruitment",
typeCode typeCode
}) })
this.baseData[optionsName] = distData.list this.baseData[optionsName] = distData.list
this.getOptionsList(this, "isEntryFormData", false, name) this.getOptionsList(this, "isEntryFormData", false, name)
this.isEntryForm[typeName] =
this.baseData[optionsName].find((item) => {
return item.itemValue == this.isEntryForm[name]
}).itemName || ""
}, },
async handleEditSelectTypeConfirm(data) { async handleEditSelectTypeConfirm(data) {
let { let {
...@@ -437,7 +484,8 @@ export default { ...@@ -437,7 +484,8 @@ export default {
value, value,
id, id,
name, name,
deletedFlag deletedFlag,
typeName
} = data, } = data,
res res
let idKey = this.filterAttribute(optionsName, optionId, "id", id) let idKey = this.filterAttribute(optionsName, optionId, "id", id)
...@@ -452,7 +500,7 @@ export default { ...@@ -452,7 +500,7 @@ export default {
}) })
} }
if (res) { if (res) {
this.getDictListType(optionsName, typeCode, name) this.getDictListType(optionsName, typeCode, name, typeName)
} }
}, },
findFormAttrId(formData, name) { findFormAttrId(formData, name) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!