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