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,7 +518,8 @@ export default { ...@@ -507,7 +518,8 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.examine-record { .detail-content-1 {
.examine-record {
box-sizing: border-box; box-sizing: border-box;
width: 1040px; width: 1040px;
min-height: 157px; min-height: 157px;
...@@ -528,8 +540,9 @@ export default { ...@@ -528,8 +540,9 @@ export default {
.title .edit-btn { .title .edit-btn {
color: #185efe; color: #185efe;
font-size: 16px; font-size: 14px;
margin-left: 8px; margin-left: 8px;
font-weight: 400;
} }
.txt-bold { .txt-bold {
...@@ -599,9 +612,9 @@ export default { ...@@ -599,9 +612,9 @@ export default {
color: #eb4e4e; color: #eb4e4e;
} }
} }
} }
.form_div { .form_div {
color: #333333; color: #333333;
// padding: 20px 30px; // padding: 20px 30px;
// border-bottom: 1px solid #eee; // border-bottom: 1px solid #eee;
...@@ -611,13 +624,23 @@ export default { ...@@ -611,13 +624,23 @@ export default {
// margin-bottom: 10px; // margin-bottom: 10px;
// } // }
.edit-sub-block { .el-form-item__content {
// padding: 0 10px; display: inline-block;
width: calc(100% - 150px);
line-height: 24px;
}
.el-form-item__label {
padding: 0;
line-height: 24px;
}
.el-form-item { .el-form-item {
width: 100%; width: 100%;
margin-bottom: 0px; margin-bottom: 20px;
} }
.edit-sub-block {
// padding: 0 10px;
.itemDiv { .itemDiv {
display: flex; display: flex;
.halfItem { .halfItem {
...@@ -653,7 +676,7 @@ export default { ...@@ -653,7 +676,7 @@ export default {
width: 890px; width: 890px;
border-radius: 4px; border-radius: 4px;
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
padding: 12px 0; padding: 6px 0;
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
margin-bottom: 14px; margin-bottom: 14px;
...@@ -678,6 +701,7 @@ export default { ...@@ -678,6 +701,7 @@ export default {
} }
} }
} }
}
} }
.photoItem { .photoItem {
// display: flex; // display: flex;
...@@ -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" :btn-loding="btnLoding" class="accountDailog" @handleClick="handleAddConfirm"> <baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" :btn-loding="btnLoding" class="new-sign-refund-dialog" @handleClick="handleAddConfirm">
<div class="refund-dialog" v-loading="loading"> <div class="refund-dialog" v-loading="loading">
<p class="title">业务信息</p> <p class="title">业务信息</p>
<el-form class="edit-sub-block" label-width="150px" :inline="true"> <el-form class="edit-sub-block" label-width="150px" :inline="true">
...@@ -111,13 +111,13 @@ export default { ...@@ -111,13 +111,13 @@ export default {
editChildRef: "editChildRef", editChildRef: "editChildRef",
// 订单-新增字段 // 订单-新增字段
attrObj: { attrObj: {
sceneJpsj: [{ default: [{
label: "流量方退款", label: "流量方退款",
name: "shopRefundAmount", name: "shopRefundAmount",
type: "input", type: "input",
isClear: true isClear: true
}, }],
{ sceneJpsj: [{
label: "安装服务商", label: "安装服务商",
name: "installMerchantId", name: "installMerchantId",
type: "select", type: "select",
...@@ -326,7 +326,7 @@ export default { ...@@ -326,7 +326,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('')
} }
...@@ -450,7 +450,8 @@ export default { ...@@ -450,7 +450,8 @@ export default {
this.dealAttrRule() this.dealAttrRule()
this.getPlatformMerchant() this.getPlatformMerchant()
this.loading = true this.loading = true
this.apiList.forEach(item => { this.apiList.forEach((item, index) => {
console.log(index, new Date().toLocaleString())
this.setBaseData(item) this.setBaseData(item)
}) })
}, },
...@@ -471,10 +472,10 @@ export default { ...@@ -471,10 +472,10 @@ export default {
let yqIdTemp = this.orderList[0].yqMerchantId let yqIdTemp = this.orderList[0].yqMerchantId
let shopIdTemp = this.orderList[0].shopMerchantId let shopIdTemp = this.orderList[0].shopMerchantId
this.orderList.forEach((item) => { this.orderList.forEach((item) => {
if(yqIdTemp) { if (yqIdTemp) {
yqIdTemp = yqIdTemp == item.yqMerchantId ? yqIdTemp : '' yqIdTemp = yqIdTemp == item.yqMerchantId ? yqIdTemp : ''
} }
if(shopIdTemp) { if (shopIdTemp) {
shopIdTemp = shopIdTemp == item.shopMerchantId ? shopIdTemp : '' shopIdTemp = shopIdTemp == item.shopMerchantId ? shopIdTemp : ''
} }
this.orderInfoList.push({ this.orderInfoList.push({
...@@ -510,6 +511,7 @@ export default { ...@@ -510,6 +511,7 @@ export default {
console.log(this.orderType, 'orderType') console.log(this.orderType, 'orderType')
if (this.orderType == 1) { if (this.orderType == 1) {
this.infoRules.shopMerchantId[0].required = true this.infoRules.shopMerchantId[0].required = true
this.infoEditFormData.push(...deepClone(this.attrObj.default))
this.infoEditFormData.push(...deepClone(this.attrObj[this.scene == 'jpsj' ? 'sceneJpsj' : 'sceneOther'])) this.infoEditFormData.push(...deepClone(this.attrObj[this.scene == 'jpsj' ? 'sceneJpsj' : 'sceneOther']))
} }
}, },
...@@ -551,7 +553,7 @@ export default { ...@@ -551,7 +553,7 @@ export default {
this.baseApiIdx = this.baseApiIdx + 1 this.baseApiIdx = this.baseApiIdx + 1
this.getOptionsList('infoEditFormData') this.getOptionsList('infoEditFormData')
}).finally(() => { }).finally(() => {
if(this.baseApiIdx == this.apiList.length) { if (this.baseApiIdx == this.apiList.length) {
this.loading = false this.loading = false
} }
}) })
...@@ -772,7 +774,11 @@ export default { ...@@ -772,7 +774,11 @@ export default {
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.refund-dialog { .new-sign-refund-dialog {
.el-dialog__body {
padding: 0 20px !important;
}
.refund-dialog {
// margin: 20px 0; // margin: 20px 0;
.title { .title {
height: 50px; height: 50px;
...@@ -974,5 +980,6 @@ export default { ...@@ -974,5 +980,6 @@ export default {
} }
} }
} }
}
} }
</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,10 +420,12 @@ export default { ...@@ -388,10 +420,12 @@ 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;
}
.refund-update-dialog {
.reject-input { .reject-input {
::v-deep .el-textarea__inner { ::v-deep .el-textarea__inner {
height: 70px; height: 70px;
...@@ -499,5 +533,6 @@ export default { ...@@ -499,5 +533,6 @@ export default {
} }
} }
} }
}
} }
</style> </style>
...@@ -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!