Commit a008fa3c by 张立顺

Merge branch 'SAAS+V5.5.1' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into SAAS+V5.5.1
2 parents 6c60ad64 15c0601b
......@@ -13,6 +13,7 @@
>
<slot />
<div slot="footer" class="dialog-footer" v-if="config.isShowFooter">
<slot name="footerCustom" />
<el-button v-preventReClick @click="cancelBtn">
{{ config.cancel_name }}
</el-button>
......@@ -195,6 +196,7 @@ export default {
.dialog-footer {
border-top: 1px solid #e5e5e5;
padding-top: 14px;
position: relative;
}
}
</style>
......@@ -87,7 +87,7 @@
</el-button>
</el-tooltip>
</span>
<span class="span-txt-two" v-if="[4, 6, 7].includes(item.status)">驳回原因:
<span class="span-txt-two" v-if="[4, 6, 7, 9].includes(item.status)">驳回原因:
<el-tooltip class="item" popper-class="remark-popper-class" effect="dark" :content="item.rejectCause" placement="right">
<el-button type="text">
{{ item.rejectCause ? (item.rejectCause.length > 12 ? (item.rejectCause.slice(0, 12) + '...') : item.rejectCause) : '' }}
......
......@@ -3,22 +3,11 @@
<div class="entry-info">
<div class="header">
<div class="title">入职计划</div>
<el-button
type="primary"
plain
icon="el-icon-plus"
@click="handleEntry"
v-if="isBtn"
>新增入职</el-button
>
<el-button type="primary" plain icon="el-icon-plus" @click="handleEntry" v-if="isBtn">新增入职</el-button>
</div>
<div class="box">
<template v-if="onboardingPlans.length > 0">
<div
class="content"
v-for="(item, index) in onboardingPlans"
:key="index"
>
<div class="content" v-for="(item, index) in onboardingPlans" :key="index">
<div class="entry-item">
<img class="profile" src="@/assets/profile.png" alt="" />
<div class="info">
......@@ -40,11 +29,7 @@
</div>
</div>
<div class="comprehensive">
<div
class="item"
v-for="(ability, index) in abilitieList"
:key="index"
>
<div class="item" v-for="(ability, index) in abilitieList" :key="index">
<div class="label">
{{ ability.name }}{{ item[ability.value] }}
</div>
......@@ -53,12 +38,8 @@
</div>
<div class="btns">
<template v-if="isBtn">
<el-button type="text" @click="handleEdit(item, index)"
>编辑</el-button
>
<el-button type="text" @click="handleDelete(index)"
>删除</el-button
>
<el-button type="text" @click="handleEdit(item, index)">编辑</el-button>
<el-button type="text" @click="handleDelete(index)">删除</el-button>
</template>
</div>
</div>
......@@ -70,22 +51,7 @@
</div>
<!-- 新增入职 -->
<glsk-form-dialog
ref="addEntryDialog"
v-if="isEntryVisible"
:selectVisible="isEntryVisible"
:dialogConfig="isEntryDialogConfig"
label-width="150px"
defaultWidth="406px"
:formRules="isEntryRules"
:editData="isEntryForm"
:editFormData="isEntryFormData"
:baseData="baseData"
@handleClose="handleEntryClose"
@handleConfirm="handleEntryConfirm"
@handleAddSelectTypeConfirm="handleAddSelectTypeConfirm"
@handleEditSelectTypeConfirm="handleEditSelectTypeConfirm"
>
<glsk-form-dialog ref="addEntryDialog" v-if="isEntryVisible" :selectVisible="isEntryVisible" :dialogConfig="isEntryDialogConfig" label-width="150px" defaultWidth="406px" :formRules="isEntryRules" :editData="isEntryForm" :editFormData="isEntryFormData" :baseData="baseData" @handleClose="handleEntryClose" @handleConfirm="handleEntryConfirm" @handleAddSelectTypeConfirm="handleAddSelectTypeConfirm" @handleEditSelectTypeConfirm="handleEditSelectTypeConfirm">
</glsk-form-dialog>
</div>
</template>
......@@ -342,6 +308,7 @@ export default {
fields.forEach((field) => {
const { typeKey, dataKey } = field
const value = data[typeKey]
if (value) {
const isValid = this.filterAttribute(
dataKey,
"itemValue",
......@@ -349,6 +316,7 @@ export default {
value
)
data[typeKey] = isValid ? value : ""
}
})
},
updateParams(data) {
......@@ -497,10 +465,14 @@ export default {
this.isEntryVisible = !this.isEntryVisible
this.isEntryForm = {}
},
handleEntry() {
async handleEntry(isCheck = false) {
this.isAdd = true
await this.fetchOnboardingPlans()
this.isEntryVisible = !this.isEntryVisible
this.fetchOnboardingPlans()
if (isCheck) {
this.checkParams(this.isEntryForm)
this.updateParams(this.isEntryForm)
}
},
//新增入职
handleEntryConfirm(data) {
......
......@@ -52,10 +52,10 @@
{{ item.recommendedReason }}
</span>
<span class="one-line-ellipsis" style="width: 100%; margin-top: 8px;">
<span class="label">推荐理由:</span>{{ item.recommendedReason }}</span>
<span class="label tips">推荐理由:</span>{{ item.recommendedReason }}</span>
</el-tooltip>
<span v-else>
<span class="label">推荐理由:</span>-</span>
<span class="label tips">推荐理由:</span>-</span>
</div>
</div>
</template>
......@@ -804,11 +804,10 @@ export default {
position: absolute;
right: 20px;
}
}
.tips {
color: #666666;
font-size: 14px;
margin-right: 48px;
}
}
}
.emptyCom {
......
......@@ -3,31 +3,14 @@
<div class="look-recruitment" v-loading="loading">
<div class="layout">
<baseInfo :detailInfo="detailInfo"></baseInfo>
<recruitInfo
:resumes="detailInfo.resumes"
@handleAddConfirm="handleAddConfirm"
@handleWorking="handleWorking"
:isBtn="isBtn"
></recruitInfo>
<entryInfo
:onboardingPlans="detailInfo.onboardingPlans"
ref="entryInfo"
@handleEntryConfirm="handleEntryConfirm"
:isBtn="isBtn"
></entryInfo>
<recruitInfo :resumes="detailInfo.resumes" @handleAddConfirm="handleAddConfirm" @handleWorking="handleWorking" :isBtn="isBtn"></recruitInfo>
<entryInfo :onboardingPlans="detailInfo.onboardingPlans" ref="entryInfo" @handleEntryConfirm="handleEntryConfirm" :isBtn="isBtn"></entryInfo>
</div>
<div class="footer">
<el-button
size="small"
:loading="btnLoding"
class="save-btn"
@click="handleSave"
>
<el-button size="small" :loading="btnLoding" class="save-btn" @click="handleSave">
提交
</el-button>
<el-button class="cancel-btn" size="small" @click="handleCancel"
>取消</el-button
>
<el-button class="cancel-btn" size="small" @click="handleCancel">取消</el-button>
</div>
</div>
</template>
......@@ -49,9 +32,18 @@ export default {
this.btnLoding = true
let params = {
id: this.id,
resumes: this.detailInfo.resumes,
resumes: deepClone(this.detailInfo.resumes),
onboardingPlans: this.detailInfo.onboardingPlans
}
console.log(params.resumes)
const detAttr = ['channelType', 'channelName', 'recommendedReason']
params.resumes.forEach((item, index) => {
detAttr.forEach((attr) => {
if (!item[attr]) {
delete params.resumes[index][attr]
}
})
})
handleRecruitment(params)
.then((res) => {
if (res) {
......@@ -66,7 +58,7 @@ export default {
//转入职
handleWorking(data) {
delete data.id
this.$refs.entryInfo.handleEntry?.()
this.$refs.entryInfo.handleEntry?.(true)
this.$refs.entryInfo.isEntryForm = deepClone(data)
},
//转入职确认
......
......@@ -36,6 +36,13 @@
</div>
</div>
</div>
<template #footerCustom>
<template v-if="step == 2 && showAgree">
<div class="agree-box">
<el-checkbox v-model="agree">我确认以上已上传的凭证真实有效,并知晓系统将同步变更拍卖平台上的交付人信息。</el-checkbox>
</div>
</template>
</template>
</baseDialog>
</template>
......@@ -100,6 +107,13 @@ export default {
},
step2Ref () {
return this.$refs.step2
},
showAgree () {
const { tableData } = this
let flag = false
let len = tableData.findIndex(item => item.signCustodyStatus)
if (len != -1) flag = true
return flag
}
},
mounted () { },
......@@ -109,6 +123,7 @@ export default {
if (val) {
this.step = 1
this.loading = true
this.agree = false
this.$nextTick(() => {
this.step1Ref.init()
})
......@@ -128,13 +143,13 @@ export default {
dialogConfig: {
config: {
title: "发起业务交接",
width: "1080px"
width: "1200px"
}
},
loading: true,
tableData: [],
btnLoding: false,
viewKey: Date.now(),
agree: false
}
},
methods: {
......@@ -148,8 +163,6 @@ export default {
const { step } = this
if (step == 1) this.queryAssets()
if (step == 2) this.createStaffHandover()
// this.step = step + 1
// if (this.step == 2) this.$refs.step2.init()
},
async queryAssets () {
try {
......@@ -177,7 +190,8 @@ export default {
try {
this.btnLoding = true
const { formObj } = this.step1Ref,
{ showAgree, agree, filterArr } = this.step2Ref
{ filterArr } = this.step2Ref,
{ showAgree, agree } = this
let num = 0
const assets = filterArr()
let agreeFlag = false
......@@ -249,8 +263,10 @@ export default {
}
.content {
.step-img {
display: block;
width: 1040px;
height: 103px;
margin: 0 auto;
}
}
......@@ -300,5 +316,19 @@ export default {
.hide {
min-height: 0 !important;
}
.agree-box {
position: absolute;
top: 10px;
left: 0;
display: flex;
align-items: center;
height: 36px;
color: #666666;
font-size: 14px;
::v-deep.el-checkbox__label {
color: #666666;
}
}
}
</style>
......@@ -55,11 +55,7 @@
</template>
</template>
</d2-table>
<template v-if="showAgree">
<div class="agree-box">
<el-checkbox v-model="agree">我确认以上已上传的凭证真实有效,并知晓系统将同步变更拍卖平台上的交付人信息。</el-checkbox>
</div>
</template>
<div class="block"></div>
<el-image-viewer
v-if="imgViewerVisible"
:on-close="closeImgViewer"
......@@ -134,19 +130,9 @@ export default {
},
]
},
agree: false,
listData: [],
currentIndex: 0,
currentImgUrls:[]
}
},
computed: {
showAgree () {
const { tableData } = this
let flag = false
let len = tableData.findIndex(item => item.signCustodyStatus)
if (len != -1) flag = true
return flag
currentImgUrls: []
}
},
watch: {
......@@ -154,7 +140,6 @@ export default {
handler (val) {
this.imgViewerVisible = false
this.currentImgUrls = []
this.agree = false
this.listData = val || []
this.GlOssApi = new GlOssApi({
baseConfig
......@@ -251,16 +236,6 @@ export default {
font-weight: 500;
line-height: 50px;
}
.agree-box {
display: flex;
align-items: center;
height: 52px;
color: #666666;
font-size: 14px;
::v-deep.el-checkbox__label {
color: #666666;
}
}
.upload {
position: relative;
.import-input {
......@@ -291,4 +266,7 @@ export default {
color: #fff;
}
}
.block {
height: 24px;
}
</style>
\ No newline at end of file
......@@ -57,7 +57,10 @@
:visible.sync="detailVisible"
:params-obj="detailParams"
/>
<addHandover :visible.sync="addHandoverVisible" @refresh="refreshTable" />
<addHandover
:visible.sync="addHandoverVisible"
@refresh="refreshTable"
/>
</d2-container>
</template>
......@@ -127,12 +130,18 @@ export default {
{
label: "原责任人 (离职)",
prop: "originalUserName",
minWidth: 176
minWidth: 176,
formatter: (cellValue) => {
return `${cellValue.originalUserName || '-'}/${cellValue.originalMerchantName || '-'}`
}
},
{
label: "新接收人",
prop: "newUserName",
minWidth: 176
minWidth: 176,
formatter: (cellValue) => {
return `${cellValue.newUserName || '-'}/${cellValue.newMerchantName || '-'}`
}
},
{
label: "交接资产数/辆",
......@@ -187,10 +196,10 @@ export default {
this.detailVisible = true
this.detailParams = e
},
handleAddHandover(){
handleAddHandover () {
this.addHandoverVisible = true
},
refreshTable(){
refreshTable () {
this.$refs.quitAndHandoverTable.refreshTable(true, true)
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!