Commit b11fcfa0 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 61c7cd70 56854740
...@@ -348,6 +348,12 @@ export function getStaffList(data) { ...@@ -348,6 +348,12 @@ export function getStaffList(data) {
return request(data, "post") return request(data, "post")
} }
// 轻改 - 员工列表
export function getQGStaffList(data) {
data.method = "dj.api.smartcarlife.digital.management.staff.list"
return request(data, "post")
}
// 分页查询日报列表,表格数据 // 分页查询日报列表,表格数据
export function getRecordPage(data) { export function getRecordPage(data) {
data.method = "dj.api.smartcarlife.digital.management.record.page" data.method = "dj.api.smartcarlife.digital.management.record.page"
......
...@@ -63,7 +63,8 @@ ...@@ -63,7 +63,8 @@
<div class="record-div"> <div class="record-div">
<div class="record-div-d" v-for="(item, index) in detailInfo.auditDetaiList" :key="index"> <div class="record-div-d" v-for="(item, index) in detailInfo.auditDetaiList" :key="index">
<span class="dot"></span> <span class="dot"></span>
<span class="span-txt-one">{{ item.status ? $$(statusForShow, [item.status], 'text') : '' }}</span><span class="span-txt-two"> <span class="span-txt-one">{{ item.status ? $$(statusForShow, [item.status], 'text') : '' }}</span>
<span class="span-txt-two" style="display: inline-block; width: 116px;">
<span :class="item.status ? examineStatusClass[item.status] : ''"> <span :class="item.status ? examineStatusClass[item.status] : ''">
{{ item.status ? $$(statusForShow, [item.status], 'status') : '' }}</span> {{ item.status ? $$(statusForShow, [item.status], 'status') : '' }}</span>
<span v-if="item.rejectedStatus"> <span v-if="item.rejectedStatus">
......
...@@ -310,9 +310,11 @@ export default { ...@@ -310,9 +310,11 @@ export default {
// 处理查询条件时间 // 处理查询条件时间
for (const key in params) { for (const key in params) {
if (key == 'orderTimeStr' || key == 'statuses') { if (key == 'orderTimeStr' || key == 'statuses') {
if (params[key]) {
params[key].forEach((v, index) => { params[key].forEach((v, index) => {
params[`${key}[${index}]`] = v params[`${key}[${index}]`] = v
}) })
}
delete params[key] delete params[key]
} }
} }
......
...@@ -328,9 +328,11 @@ export default { ...@@ -328,9 +328,11 @@ export default {
// 处理查询条件时间 // 处理查询条件时间
for (const key in params) { for (const key in params) {
if (key == 'orderTimeStr' || key == 'statuses') { if (key == 'orderTimeStr' || key == 'statuses') {
if (params[key]) {
params[key].forEach((v, index) => { params[key].forEach((v, index) => {
params[`${key}[${index}]`] = v params[`${key}[${index}]`] = v
}) })
}
delete params[key] delete params[key]
} }
} }
......
...@@ -338,9 +338,11 @@ export default { ...@@ -338,9 +338,11 @@ export default {
// 处理查询条件时间 // 处理查询条件时间
for (const key in params) { for (const key in params) {
if (key == 'orderTimeStr' || key == 'statuses') { if (key == 'orderTimeStr' || key == 'statuses') {
if (params[key]) {
params[key].forEach((v, index) => { params[key].forEach((v, index) => {
params[`${key}[${index}]`] = v params[`${key}[${index}]`] = v
}) })
}
delete params[key] delete params[key]
} }
} }
......
...@@ -377,8 +377,8 @@ export default { ...@@ -377,8 +377,8 @@ export default {
if (this.tableSearchForm.placeOrderTimeStr) { if (this.tableSearchForm.placeOrderTimeStr) {
this.tableSearchForm.orderTimeStr[0] = new Date(this.tableSearchForm.placeOrderTimeStr[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00' this.tableSearchForm.orderTimeStr[0] = new Date(this.tableSearchForm.placeOrderTimeStr[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
this.tableSearchForm.orderTimeStr[1] = new Date(this.tableSearchForm.placeOrderTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59' this.tableSearchForm.orderTimeStr[1] = new Date(this.tableSearchForm.placeOrderTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
delete this.tableSearchForm.placeOrderTimeStr
} }
delete this.tableSearchForm.placeOrderTimeStr
if (this.tableSearchForm.statuses) { if (this.tableSearchForm.statuses) {
if (this.tableSearchForm.statuses == 4) { if (this.tableSearchForm.statuses == 4) {
this.tableSearchForm.statuses = [4, 6, 7, 9] this.tableSearchForm.statuses = [4, 6, 7, 9]
...@@ -409,9 +409,11 @@ export default { ...@@ -409,9 +409,11 @@ export default {
// 处理查询条件时间 // 处理查询条件时间
for (const key in params) { for (const key in params) {
if (key == 'orderTimeStr' || key == 'putTimeStr' || key == 'statuses') { if (key == 'orderTimeStr' || key == 'putTimeStr' || key == 'statuses') {
if (params[key]) {
params[key].forEach((v, index) => { params[key].forEach((v, index) => {
params[`${key}[${index}]`] = v params[`${key}[${index}]`] = v
}) })
}
delete params[key] delete params[key]
} }
} }
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,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) : '' }}
...@@ -159,7 +159,10 @@ export default { ...@@ -159,7 +159,10 @@ export default {
}, },
{ {
label: '单价', label: '单价',
prop: '' prop: 'upgradePurchasePrice',
formatter: (row) => {
return '¥' + row.upgradePurchasePrice
}
}, },
{ {
label: '总价', label: '总价',
......
<!-- 关联门店弹窗 -->
<template>
<d2-dialog :title="title" :is-visible.sync="relateStoreVisible" width="70%" btn-ok-label="确定" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore">
<slot />
<el-row class="tableCon">
<div class="tableBox">
<el-table ref="seletingTable" :data="selectingData" height="464px" class="table" border @select="handleChange" @select-all="handleAll">
<el-table-column type="selection" width="55" align="center" />
<el-table-column prop="staffName" label="员工姓名" align="center">
</el-table-column>
<el-table-column prop="staffPhone" label="手机号" align="center">
</el-table-column>
<el-table-column prop="merchantName" label="所属商户" align="center">
</el-table-column>
<!-- <el-table-column prop="yqMerchantName" label="商户类型" align="center">
<template slot-scope="scope">
<span>{{merchantClassifyList.find(item => item.confId == scope.row.merchantType).confLabel}}</span>
</template>
</el-table-column> -->
</el-table>
<el-pagination small background @current-change="handleCurrentChange" :current-page.sync="currentPage" :page-size="pageSize" layout="total, prev, pager, next" :total="total" />
</div>
<el-table class="tableBox table" :data="selectedData" border height="464px">
<el-table-column prop="staffName" label="员工姓名" align="center">
<template slot-scope="scope">
<span>{{ scope.row.staffName }}</span>
</template>
</el-table-column>
<el-table-column prop="staffPhone" label="手机号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.staffPhone }}</span>
</template>
</el-table-column>
<el-table-column prop="merchantName" label="所属商户" align="center">
<template slot-scope="scope">
<span>{{ scope.row.merchantName }}</span>
</template>
</el-table-column>
<el-table-column label="删除" align="center" width="50px">
<template slot-scope="scope">
<el-button class="el-icon-delete" @click="handleDelete(scope.row)" type="text" />
</template>
</el-table-column>
</el-table>
</el-row>
</d2-dialog>
</template>
<script>
// import { merchantClassifyList } from '@/common/constants.js'
export default {
name: "SelectStaffDialog",
data() {
return {
// merchantClassifyList,
selectedData: [],
selectingData: [],
// 分页
total: 0,
currentPage: 1,
pageSize: 15
}
},
props: {
title: {
type: String,
default: "修改名单"
},
relateStoreVisible: {
type: Boolean,
default: false
},
storeApi: {
type: Function,
default: () => { }
},
storeSelected: {
type: Array,
default: () => []
},
storeSearchForm: {
type: Object,
default: () => { }
}
},
mounted() {
this.selectedData = this.storeSelected
this.getSelectingList()
},
methods: {
recoverySelection() {
var exitIds = this.selectedData.map((item) => item.staffUuid)
this.selectingData.forEach((item) => {
exitIds.includes(item.staffUuid) &&
this.$refs.seletingTable.toggleRowSelection(item, true)
})
},
getSelectingList() {
const _storeSearchForm = this.storeSearchForm
this.storeApi({
...this.storeSearchForm,
currentPage: this.currentPage,
pageSize: this.pageSize
}).then((res) => {
this.selectingData = res.list
this.total = res.total
this.$nextTick(() => {
this.recoverySelection()
})
})
},
handleChange(selection, row) {
var addOrDelete = !!selection.find(
(item) => item.staffUuid === row.staffUuid
)
addOrDelete
? this.selectedData.push(row)
: (this.selectedData = this.selectedData.filter(
(item) => item.staffUuid !== row.staffUuid
))
},
handleAll(selection) {
this.selectingData.forEach((item) => {
var isExit = this.selectedData.findIndex(
(subItem) => subItem.staffUuid === item.staffUuid
)
if (selection.length && isExit === -1) {
this.selectedData.push(item)
} else if (!selection.length && isExit !== -1) {
this.selectedData.splice(isExit, 1)
}
})
},
handleDelete(row) {
this.selectedData = this.selectedData.filter(
(item) => item.staffUuid !== row.staffUuid
)
const obj = this.selectingData.find((v) => v.staffUuid == row.staffUuid)
this.$refs.seletingTable.toggleRowSelection(obj)
},
handleCurrentChange(val) {
this.currentPage = val
this.getSelectingList()
},
handleRelateStoreConfirm() {
this.$emit("handleRelateStoreConfirm", this.selectedData)
},
handleRelateStoreClose() {
this.$emit("handleRelateStoreClose")
}
}
}
</script>
<style lang="scss">
.relateStore .table {
margin: 0 auto 20px !important;
width: 98%;
}
.relateStore .tableCon {
margin-top: 20px;
display: flex;
.tableBox {
flex: 1;
}
}
.service-store .relateStore .el-table .cell,
.d2-form .relateStore .el-table .cell {
line-height: 26px !important;
}
.service-store .relateStore .el-table--medium td,
.d2-form .relateStore .el-table--medium td {
padding: 6px 8px !important;
}
.relateStore .red {
color: red;
}
.relateStore .tip-icon {
position: absolute;
display: inline-block;
height: 10px;
width: 10px;
line-height: 10px;
color: #ffffff;
background-color: red;
border: 1px solid red;
border-radius: 50%;
cursor: pointer;
font-size: 6px;
margin-left: 2px;
}
</style>
...@@ -173,11 +173,6 @@ export default { ...@@ -173,11 +173,6 @@ export default {
label: "创建人", label: "创建人",
prop: "createdBy", prop: "createdBy",
width: 120 width: 120
},
{
label: "招聘负责人",
prop: "recruiterName",
width: 160
} }
] ]
}, },
......
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
<img <img
class="video-poster" class="video-poster"
:src=" :src="
videoImg videoImg && isAliyunOssUrl(item)
? item + videoStr ? item + videoStr
: '../../../../assets/video-default.png' : 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/usedCar/video_default.png'
" "
/> />
<div class="mask"> <div class="mask">
...@@ -250,6 +250,19 @@ export default { ...@@ -250,6 +250,19 @@ export default {
}) })
}, },
methods: { methods: {
// 判断是否是阿里云OSS链接
isAliyunOssUrl(url) {
if (!url || typeof url !== "string") {
return false
}
// 检查是否包含阿里云OSS的特征域名
// 常见的OSS域名格式:oss-cn-xxx.aliyuncs.com 或包含 oss- 的域名
return (
url.includes("aliyuncs.com") ||
url.includes("oss-") ||
/oss-cn-[a-z0-9-]+\.aliyuncs\.com/.test(url)
)
},
dragEnd(e) { dragEnd(e) {
if (e.oldIndex != e.newIndex) { if (e.oldIndex != e.newIndex) {
const url = this.imageUrlArr[e.newIndex] const url = this.imageUrlArr[e.newIndex]
...@@ -266,9 +279,9 @@ export default { ...@@ -266,9 +279,9 @@ export default {
handleUpload(e) { handleUpload(e) {
console.log(e.srcElement.files[0].type, this.picOptions.noLimitType) console.log(e.srcElement.files[0].type, this.picOptions.noLimitType)
if (this.picOptions.noLimitType) { if (this.picOptions.noLimitType) {
if (e.srcElement.files[0].type.indexOf("mp4") > -1) if (e.srcElement.files[0].type.indexOf("mp4") > -1) {
this.$set(this.picOptions, "type", "video") this.$set(this.picOptions, "type", "video")
else { } else {
this.$set(this.picOptions, "type", "jpg") this.$set(this.picOptions, "type", "jpg")
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!