Commit f5dccc1d by 前端

Merge branch 'SAAS+V4.44-0902' of http://192.168.3.233:8090/saas_plus/dj-car-lif…

…e-system into SAAS+V4.44-0902
2 parents d7fcc8dd 612a9f81
...@@ -707,7 +707,10 @@ export default { ...@@ -707,7 +707,10 @@ export default {
`.el-select__tags > span>span:nth-child(1)` `.el-select__tags > span>span:nth-child(1)`
) )
setTimeout(() => { setTimeout(() => {
if (tagSpan) tagSpan.innerHTML = `+${item?.serviceItemArr?.length}` if (tagSpan) {
tagSpan.innerHTML = `+${item?.serviceItemArr?.length}`
tagSpan.style.display = "inline-block"
}
}, 60)// 延迟执行(否则获取不到dom) }, 60)// 延迟执行(否则获取不到dom)
} }
} }
...@@ -720,7 +723,7 @@ export default { ...@@ -720,7 +723,7 @@ export default {
}, },
handleRelateServiceConfirm(data) { handleRelateServiceConfirm(data) {
// 批量操作服务项目 // 批量操作服务项目
if (!this.serviceSelectIndex) { if (this.filterEmpty(this.serviceSelectIndex)) {
this.goodsInfoData?.goodsSpecificationList.map(v => { this.goodsInfoData?.goodsSpecificationList.map(v => {
v.serviceItemArr = data v.serviceItemArr = data
v.upgradePrice = data.reduce((v, i) => { v.upgradePrice = data.reduce((v, i) => {
......
...@@ -566,7 +566,7 @@ export default { ...@@ -566,7 +566,7 @@ export default {
}, },
handleRelateServiceConfirm(data) { handleRelateServiceConfirm(data) {
// 批量操作服务项目 // 批量操作服务项目
if (!this.serviceSelectIndex) { if (this.filterEmpty(this.serviceSelectIndex)) {
this.goodsInfoData?.goodsSpecificationSingleList.map(v => { this.goodsInfoData?.goodsSpecificationSingleList.map(v => {
v.serviceItemArr = data v.serviceItemArr = data
v.upgradePrice = data.reduce((v, i) => { v.upgradePrice = data.reduce((v, i) => {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
:dialog-config="dialogConfig.config" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose" @closeDialog="handleDetailClose"
> >
<div class="detail-content" v-loading="loading"> <div class="detail-content-1" v-loading="loading">
<div class="form_div"> <div class="form_div">
<el-form class="edit-sub-block" label-width="150px" :inline="true"> <el-form class="edit-sub-block" label-width="150px" :inline="true">
<el-form-item label="审批编号:"> <el-form-item label="审批编号:">
...@@ -428,7 +428,17 @@ export default { ...@@ -428,7 +428,17 @@ export default {
item.optRemarkShow = "驳回原因" item.optRemarkShow = "驳回原因"
} }
} else { } else {
item.isShow = false item.isShow = item.beforeStatus == item.afterStatus
if(item.beforeStatus == item.afterStatus) {
item.optShow = "修改信息"
item.optStautsShow = "明细"
item.optPerShow = "操作人"
item.optRemarkShow = "备注"
item.optTimeShow = "操作时间"
if(item.content) {
item.contentHtml = JSON.parse(item.content).map(k => '修改「' + k.propertyShowText + '」<br>').join('')
}
}
} }
return item return item
}) })
...@@ -479,6 +489,7 @@ export default { ...@@ -479,6 +489,7 @@ export default {
// 关闭驳回弹窗 // 关闭驳回弹窗
refundConfirm(obj) { refundConfirm(obj) {
this.loading = true this.loading = true
this.photoList = []
this.getDetail() this.getDetail()
}, },
...@@ -507,174 +518,187 @@ export default { ...@@ -507,174 +518,187 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.examine-record { .detail-content-1 {
box-sizing: border-box; .examine-record {
width: 1040px; box-sizing: border-box;
min-height: 157px; width: 1040px;
// border: 1px solid #e5e5e5; min-height: 157px;
border-radius: 4px; // border: 1px solid #e5e5e5;
background: #fafafa; border-radius: 4px;
padding: 16px 20px; background: #fafafa;
padding: 16px 20px;
.title {
// width: 64px; .title {
height: 23px; // width: 64px;
font-family: PingFangSC-Medium; height: 23px;
font-weight: 600; font-family: PingFangSC-Medium;
color: #333333; font-weight: 600;
font-size: 16px; color: #333333;
text-align: left; font-size: 16px;
} text-align: left;
}
.title .edit-btn {
color: #185efe;
font-size: 16px;
margin-left: 8px;
}
.txt-bold {
font-weight: bold;
}
.blueTxt {
color: #185EFE;
}
.redTxt {
color: #EB4E4E;
}
.orangedot {
width: 6px;
height: 6px;
background: #F47F13;
border-radius: 6px;
display: inline-block;
}
.greendot { .title .edit-btn {
width: 6px; color: #185efe;
height: 6px; font-size: 14px;
background: #4aca74; margin-left: 8px;
border-radius: 6px; font-weight: 400;
display: inline-block; }
}
.reddot { .txt-bold {
width: 6px; font-weight: bold;
height: 6px; }
background: #eb4e4e;
border-radius: 6px;
display: inline-block;
}
.record-div { .blueTxt {
margin: 16px 0; color: #185EFE;
font-family: PingFangSC-Regular; }
font-weight: 400;
font-size: 14px;
color: #666666;
letter-spacing: 0;
.record-div-d { .redTxt {
margin-top: 10px; color: #EB4E4E;
} }
.span-txt-one { .orangedot {
width: 6px;
height: 6px;
background: #F47F13;
border-radius: 6px;
display: inline-block; display: inline-block;
margin-left: 14px;
width: 90px;
height: 21px;
} }
.span-txt-two { .greendot {
margin-left: 40px; width: 6px;
height: 6px;
background: #4aca74;
border-radius: 6px;
display: inline-block;
} }
.greenSp { .reddot {
color: #4aca74; width: 6px;
height: 6px;
background: #eb4e4e;
border-radius: 6px;
display: inline-block;
} }
.redSp { .record-div {
color: #eb4e4e; margin: 16px 0;
} font-family: PingFangSC-Regular;
} font-weight: 400;
} font-size: 14px;
color: #666666;
letter-spacing: 0;
.form_div { .record-div-d {
color: #333333; margin-top: 10px;
// padding: 20px 30px; }
// border-bottom: 1px solid #eee;
// .edit-sub-title { .span-txt-one {
// font-weight: bold; display: inline-block;
// margin-bottom: 10px; margin-left: 14px;
// } width: 90px;
height: 21px;
}
.edit-sub-block { .span-txt-two {
// padding: 0 10px; margin-left: 40px;
}
.el-form-item { .greenSp {
width: 100%; color: #4aca74;
margin-bottom: 0px; }
}
.itemDiv { .redSp {
display: flex; color: #eb4e4e;
.halfItem {
width: 50%;
} }
} }
}
.form_div {
color: #333333;
// padding: 20px 30px;
// border-bottom: 1px solid #eee;
.detail-txt { // .edit-sub-title {
// font-weight: bold;
// margin-bottom: 10px;
// }
.el-form-item__content {
display: inline-block; display: inline-block;
width: 200px; width: calc(100% - 150px);
vertical-align: bottom; line-height: 24px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
::v-deep .el-form-item__content {
max-width: calc(100% - 110px);
word-break: break-all;
} }
}
.edit-sub-block-two {
.el-form-item__label { .el-form-item__label {
padding: 0; padding: 0;
} line-height: 24px;
.el-form-item { }
// width: 300px; .el-form-item {
margin: 0px; width: 100%;
} margin-bottom: 20px;
} }
.busi-info {
box-sizing: border-box; .edit-sub-block {
width: 890px; // padding: 0 10px;
border-radius: 4px; .itemDiv {
border: 1px solid #e5e5e5; display: flex;
padding: 12px 0; .halfItem {
color: #333333; width: 50%;
font-size: 14px; }
margin-bottom: 14px; }
.info-row {
height: 20px; .detail-txt {
line-height: 20px; display: inline-block;
margin-bottom: 16px; width: 200px;
vertical-align: bottom;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
::v-deep .el-form-item__content {
max-width: calc(100% - 110px);
word-break: break-all;
}
} }
.info-row:last-child {
margin-bottom: 0; .edit-sub-block-two {
.el-form-item__label {
padding: 0;
}
.el-form-item {
// width: 300px;
margin: 0px;
}
} }
.info-item { .busi-info {
display: inline-block; box-sizing: border-box;
width: 50%; width: 890px;
height: 20px; border-radius: 4px;
line-height: 20px; border: 1px solid #e5e5e5;
.item-label { padding: 6px 0;
color: #333333;
font-size: 14px;
margin-bottom: 14px;
.info-row {
height: 20px;
line-height: 20px;
margin-bottom: 16px;
}
.info-row:last-child {
margin-bottom: 0;
}
.info-item {
display: inline-block; display: inline-block;
width: 150px; width: 50%;
color: #666666; height: 20px;
text-align: right; line-height: 20px;
.item-label {
display: inline-block;
width: 150px;
color: #666666;
text-align: right;
}
} }
} }
} }
...@@ -715,11 +739,12 @@ export default { ...@@ -715,11 +739,12 @@ export default {
overflow: scroll; overflow: scroll;
} }
.carousel-img { .carousel-img {
width: 100%; max-width: 100%;
// height: 100%; height: 100%;
// overflow: scroll; // overflow: scroll;
// object-fit: fill; // object-fit: fill;
} }
</style> </style>
<style > <style >
......
<!-- 审核 --> <!-- 审核 -->
<template> <template>
<baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog" @handleClick="handleAddConfirm"> <baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog-1" @handleClick="handleAddConfirm">
<div class="refund-update-dialog"> <div class="refund-update-dialog">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="150px" default-width="370px" :form-ref="editChildRef" :form-obj="infoForm" :form-data="editFormData" :form-rules="formRules"> <glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="150px" default-width="370px" :form-ref="editChildRef" :form-obj="infoForm" :form-data="editFormData" :form-rules="formRules">
<template slot="attachmentListHtml" slot-scope="scope"> <template slot="attachmentListHtml" slot-scope="scope">
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
</template> </template>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
<el-image-viewer v-if="imgViewerVisible" :on-close="closeImgViewer" :url-list="imageFileArr" :initial-index="initialIndex" />
</baseDialog> </baseDialog>
</template> </template>
...@@ -41,6 +42,9 @@ import { uploadFile } from "@/api/sys.base" ...@@ -41,6 +42,9 @@ import { uploadFile } from "@/api/sys.base"
import { deepClone } from "@/common/util" import { deepClone } from "@/common/util"
export default { export default {
name: 'refundUpdateDialog', name: 'refundUpdateDialog',
components: {
'el-image-viewer': () => import('element-ui/packages/image/src/image-viewer')
},
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
...@@ -132,7 +136,7 @@ export default { ...@@ -132,7 +136,7 @@ export default {
} }
this.infoForm.bankAccountNo = this.infoForm.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ") this.infoForm.bankAccountNo = this.infoForm.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ")
let arr = this.infoForm.bankAccountNo.split('') let arr = this.infoForm.bankAccountNo.split('')
if(arr[arr.length - 1] == ' ') { if (arr[arr.length - 1] == ' ') {
arr.splice(arr.length - 1, 1) arr.splice(arr.length - 1, 1)
this.infoForm.bankAccountNo = arr.join('') this.infoForm.bankAccountNo = arr.join('')
} }
...@@ -156,6 +160,9 @@ export default { ...@@ -156,6 +160,9 @@ export default {
platformMerchantIdList: [] platformMerchantIdList: []
}, },
uploadFileList: [], uploadFileList: [],
imgViewerVisible: false,
imageFileArr: [],
initialIndex: 0,
} }
}, },
...@@ -173,6 +180,18 @@ export default { ...@@ -173,6 +180,18 @@ export default {
default: () => { } default: () => { }
} }
}, },
watch: {
'infoForm.attachmentList': {
handler(newVal) {
if (newVal) {
this.uploadFileList = newVal.filter(v => !this.filterEmpty(v.uploadProgress) || v.fileUrl) // 文件列表
const imageFileArr = newVal.filter(v => v.fileUrl && (v.fileUrl.includes('.png') || v.fileUrl.includes('jpg')))
this.imageFileArr = imageFileArr.map(item => { return item.fileUrl })
}
},
deep: true
}
},
computed: { computed: {
visible: { visible: {
get() { get() {
...@@ -189,7 +208,7 @@ export default { ...@@ -189,7 +208,7 @@ export default {
this.infoForm = deepClone(this.detailInfo) this.infoForm = deepClone(this.detailInfo)
this.getPlatformMerchant() this.getPlatformMerchant()
this.dealAttachment() this.dealAttachment()
if(this.infoForm.bankAccountNo) { if (this.infoForm.bankAccountNo) {
this.infoForm.bankAccountNo = this.infoForm.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ") this.infoForm.bankAccountNo = this.infoForm.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ")
} }
console.log(this.infoForm, 'infoForm--------') console.log(this.infoForm, 'infoForm--------')
...@@ -219,7 +238,7 @@ export default { ...@@ -219,7 +238,7 @@ export default {
{ confId: 5, confValue: "驳回" } { confId: 5, confValue: "驳回" }
*/ */
console.log(this.infoForm.status) console.log(this.infoForm.status)
this.infoForm.attachmentList = this.infoForm.status == 4 ? [] : (this.infoForm.attachmentList.filter(item => item.fileType == 2) || []) this.infoForm.attachmentList = this.infoForm.status != 4 ? [] : (this.infoForm.attachmentList.filter(item => item.fileType == 2) || [])
if (this.infoForm.status == 4) { if (this.infoForm.status == 4) {
let idx = this.editFormData.findIndex(item => item.label == '结算凭证') let idx = this.editFormData.findIndex(item => item.label == '结算凭证')
this.editFormData[idx].isHide = false this.editFormData[idx].isHide = false
...@@ -258,6 +277,19 @@ export default { ...@@ -258,6 +277,19 @@ export default {
}, },
// 预览文件 // 预览文件
handleFileView(item) { handleFileView(item) {
if (!item.fileUrl) return
if (item?.fileUrl.includes('.pdf')) { // pdf文件直接打开新窗口预览
window.open(item.fileUrl)
} else {
this.imgViewerVisible = true
this.imageFileArr.forEach((val, index) => {
if (val == item.fileUrl) this.initialIndex = index
})
console.log(this.imageFileArr)
}
},
closeImgViewer() {
this.imgViewerVisible = false
}, },
// 清空上传文件数组项内容 // 清空上传文件数组项内容
clearItem(targetItem, subIndex) { clearItem(targetItem, subIndex) {
...@@ -376,7 +408,7 @@ export default { ...@@ -376,7 +408,7 @@ export default {
} }
}) })
params.bankAccountNo = params.bankAccountNo.replace(/\s*/g, '') params.bankAccountNo = params.bankAccountNo.replace(/\s*/g, '')
// console.log(params, 'params-----------') console.log(params, 'params-----------')
update(params).then((res) => { update(params).then((res) => {
this.notice.okTips("操作成功") this.notice.okTips("操作成功")
this.$emit('refundConfirm') this.$emit('refundConfirm')
...@@ -388,114 +420,117 @@ export default { ...@@ -388,114 +420,117 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss">
.refund-update-dialog { .accountDailog-1 {
margin: 65px 0; .el-icon-circle-close {
color: #ffffff;
.reject-input {
::v-deep .el-textarea__inner {
height: 70px;
}
} }
.refund-update-dialog {
.reject-input {
::v-deep .el-textarea__inner {
height: 70px;
}
}
.el-textarea .el-input__count { .el-textarea .el-input__count {
right: 90px; right: 90px;
bottom: -10px; bottom: -10px;
font-size: 12px; font-size: 12px;
color: #999999; color: #999999;
} }
.tips { .tips {
color: #999999; color: #999999;
} }
.upload-file { .upload-file {
width: 110px; width: 110px;
height: 32px; height: 32px;
border-radius: 4px; border-radius: 4px;
opacity: 1; opacity: 1;
border: 1px solid #00000026; border: 1px solid #00000026;
background: #ffffff; background: #ffffff;
text-align: center; text-align: center;
.upload-txt { .upload-txt {
height: 22px; height: 22px;
color: #666666; color: #666666;
font-size: 14px;
text-align: left;
line-height: 22px;
}
}
.upload-tips {
height: 20px;
color: #999999;
font-size: 14px; font-size: 14px;
text-align: left; text-align: left;
line-height: 22px;
} }
}
.upload-tips {
height: 20px;
color: #999999;
font-size: 14px;
text-align: left;
}
.file-box {
width: 350px;
.file-item { .file-box {
margin-top: 6px; width: 350px;
position: relative;
box-sizing: border-box;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
::v-deep .el-progress-bar { .file-item {
width: 320px; margin-top: 6px;
background: #ffffff; position: relative;
border: 1px solid #f4f6fc; box-sizing: border-box;
border-radius: 4px; display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
.el-progress-bar__outer { ::v-deep .el-progress-bar {
background: transparent; width: 320px;
background: #ffffff;
border: 1px solid #f4f6fc;
border-radius: 4px; border-radius: 4px;
.el-progress-bar__inner { .el-progress-bar__outer {
background: #f5f7fa; background: transparent;
border-radius: 4px; border-radius: 4px;
.el-progress-bar__inner {
background: #f5f7fa;
border-radius: 4px;
}
} }
} }
}
::v-deep .el-image-viewer__wrapper { ::v-deep .el-image-viewer__wrapper {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
} }
.file-name { .file-name {
box-sizing: border-box; box-sizing: border-box;
width: 318px; width: 318px;
height: 26px; height: 26px;
line-height: 26px; line-height: 26px;
background: #f5f7fa; background: #f5f7fa;
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
transform: translateY(-50%); transform: translateY(-50%);
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
border-radius: 4px; border-radius: 4px;
padding: 0 8px; padding: 0 8px;
} }
.image-file { .image-file {
z-index: -1; z-index: -1;
}
} }
}
.file-item:first-child { .file-item:first-child {
margin-top: 8px; margin-top: 8px;
.file-name { .file-name {
position: absolute; position: absolute;
left: 0px; left: 0px;
top: 15px; top: 15px;
transform: translateY(-50%); transform: translateY(-50%);
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
}
} }
} }
} }
......
...@@ -154,11 +154,21 @@ export default { ...@@ -154,11 +154,21 @@ export default {
}, },
{ {
label: "当前积分", label: "当前积分",
prop: "finalTotalScore" prop: "finalTotalScore",
formatter: (cell) => {
return cell.finalTotalScore||cell.finalTotalScore==0
? cell.finalTotalScore
: "--"
}
}, },
{ {
label: "变化前积分", label: "变化前积分",
prop: "currentTotalScore" prop: "currentTotalScore",
formatter: (cell) => {
return cell.currentTotalScore||cell.currentTotalScore==0
? cell.currentTotalScore
: "--"
}
}, },
{ {
label: "积分变化时间", label: "积分变化时间",
...@@ -193,6 +203,7 @@ export default { ...@@ -193,6 +203,7 @@ export default {
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve) => { return new Promise((resolve) => {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = deepClone(this.searchForm)
this.searchFormSearch.staffId=this.detailObj.staffId
if (this.searchFormSearch.rewardTime&&this.searchFormSearch.rewardTime.length) { if (this.searchFormSearch.rewardTime&&this.searchFormSearch.rewardTime.length) {
this.searchFormSearch.rewardBeginTime = this.searchFormSearch.rewardBeginTime =
Util.dateFormate( Util.dateFormate(
......
...@@ -183,7 +183,7 @@ export default { ...@@ -183,7 +183,7 @@ export default {
maxlength: 20 maxlength: 20
}, },
{ {
label: '手机号', label: '保管人号码',
name: 'custodianPhone', name: 'custodianPhone',
type: 'input', type: 'input',
maxlength: 20 maxlength: 20
...@@ -226,7 +226,7 @@ export default { ...@@ -226,7 +226,7 @@ export default {
beginDateOptions: { beginDateOptions: {
disabledDate(time) { disabledDate(time) {
if (_this.searchForm.endDate) { if (_this.searchForm.endDate) {
return time.getTime() >= new Date(_this.searchForm.endDate).getTime()-24*60*60*1000 return time.getTime() > new Date(_this.searchForm.endDate).getTime()
} else { } else {
return false return false
} }
...@@ -235,7 +235,7 @@ export default { ...@@ -235,7 +235,7 @@ export default {
endDateOptions: { endDateOptions: {
disabledDate(time) { disabledDate(time) {
if (_this.searchForm.beginDate) { if (_this.searchForm.beginDate) {
return time.getTime() <= new Date(_this.searchForm.beginDate).getTime() return time.getTime() < new Date(_this.searchForm.beginDate).getTime() - 24 * 60 * 60 * 1000
} else { } else {
return false return false
} }
...@@ -272,7 +272,7 @@ export default { ...@@ -272,7 +272,7 @@ export default {
width: '160px' width: '160px'
}, },
{ {
label: '手机号', label: '保管人号码',
prop: 'custodianPhone', prop: 'custodianPhone',
width: '160px' width: '160px'
}, },
...@@ -385,6 +385,10 @@ export default { ...@@ -385,6 +385,10 @@ export default {
brandId: brandId ? Number(brandId) : null, brandId: brandId ? Number(brandId) : null,
directSalesFlag: directSalesFlag === null ? null : directSalesFlag.toString() directSalesFlag: directSalesFlag === null ? null : directSalesFlag.toString()
} }
} else {
this.dialogForm = {
business: []
}
} }
console.log(scope) console.log(scope)
this.dialogVisible = true this.dialogVisible = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!