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