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