Commit 7cba8ca3 by 前端

4.33.0需求相关代码提交

1 parent d440baf4
...@@ -153,3 +153,9 @@ export function refund(data) { ...@@ -153,3 +153,9 @@ export function refund(data) {
data.method = `${path2}configUpgradeOrder.refund` data.method = `${path2}configUpgradeOrder.refund`
return request(data, "post") return request(data, "post")
} }
// 订单管理excel导出表头字段模板
export function exportHeadTemplate(data) {
data.method = `${path2}ordermanage.export.head.template`
return request(data, "post")
}
<!-- 运营审核 -->
<template>
<baseDialog :dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm">
<div class="reject-dialog">
<glsx-combi-form class="edit-form-container"
ref="formRef"
label-width="150px"
default-width="350px"
:form-ref="examineRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules"></glsx-combi-form>
<span :style="{ 'margin-left': '150px' }">审核通过后,转账业务单据自动流转至财务确认。</span>
</div>
</baseDialog>
</template>
<script>
import { transferAccountsRecordUpdateStatus, batchOperatorAudit } from '@api/transferAccountsManage'
import { deepClone } from '@/common/util'
export default {
name: 'ExamineDialog',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
// txtObj: {
// procurementReview: '说明:订单审核后会自动流转至商务进行复审',
// procurementBusiness: '说明:订单审核后会自动流转至供应商进行确认并发货'
// },
infoForm: {
remark: ''
},
dialogConfig: {
title: '运营审核',
width: '600px'
},
examineRef: 'examineRef',
formRules: {
// sendOutMerchantId: [{ required: true, message: '请选择发货主体', trigger: 'change' }]
},
editFormData: [{
label: '备注',
name: 'remark',
type: 'input',
maxlength: '50'
}],
baseData: {
// shippingEntityList: []
}
}
},
props: {
// fromPage: {
// type: String,
// default: 'procurementReview'
// },
examineVisible: {
type: Boolean,
default: false
},
// paramsObj: {
// type: Object,
// default: {}
// }
infoList: {
type: Array,
default: () => { }
}
},
computed: {
visible: {
get() {
return this.examineVisible
},
set(newVal) {
this.$emit('dialogClose', { flag: newVal, attrName: 'examineVisible' })
}
}
},
mounted() {
},
methods: {
handleAddConfirm() {
var params = {}
params.remark = this.infoForm.remark
params.status = 2
if (this.infoList.length > 1) {
params.orderCodeList = this.infoList.map((item) => {
return item.orderCode
})
} else {
params.orderCode = this.infoList[0].orderCode
}
console.log(params);
const _api = this.infoList.length > 1 ? batchOperatorAudit : transferAccountsRecordUpdateStatus
_api(params).then(res => {
this.notice.okTips('操作成功')
this.visible = true
})
}
}
}
</script>
<style lang="scss" scoped>
.reject-dialog {
margin: 65px 0;
.reject-input {
::v-deep .el-textarea__inner {
height: 70px;
}
}
.el-textarea .el-input__count {
right: 90px;
bottom: -10px;
font-size: 12px;
color: #999999;
}
.tips {
color: #999999;
}
}
</style>
<!-- 财务确认弹窗 -->
<template>
<!-- <d2-dialog title="财务确认"
:is-visible.sync="financeConfirmVisible"
width="600px"
@confirmDialog="handleCashConfirm"
@closeDialog="handleCashClose"> -->
<baseDialog :dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleCashConfirm">
<!-- <span slot="sub-title">提现后不能撤回,确保资金安全,请谨慎操作!</span> -->
<el-form ref="formRef"
:model="cashForm"
:rules="cashRules"
label-width="120px">
<el-form-item label="财务管理员:"
prop="administrators">
<el-select v-model="cashForm.administrators"
filterable
style="width:310px">
<el-option v-for="(item,index) in baseData.administratorsList"
:key="index"
:label="item.name"
:value="item.phone" />
</el-select>
</el-form-item>
<el-form-item label="验证码:"
prop="smsCode">
<el-input v-model="cashForm.smsCode"
placeholder="请输入验证码"
style="width: 200px" />
<el-button type="primary"
size="small"
@click="handleSend"
:disabled="isSend"
class="cash-btn">
{{ isSend ? sendMsg + '秒后,重试' : '获取验证码' }}
</el-button>
<p v-show="showtips">
已向尾号为{{ cashForm.withdrawPhone ? cashForm.withdrawPhone.slice(-4) : '' }}的手机号发送验证码,验证码30分钟内有效
</p>
</el-form-item>
<el-form-item label="备注:"
prop="remark">
<el-input v-model="cashForm.remark"
placeholder="请输入备注"
style="width: 310px" />
<p>
财务确认后,转账业务单据自动流转至银盛完成正式转账。
</p>
</el-form-item>
</el-form>
<!-- </d2-dialog> -->
</baseDialog>
</template>
<script>
import { createWithdraw } from '@api/account'
import { sendToSmsCodeApi } from '@/api/sys.base'
import { getWithdrawTreasurerList, transferAccountsRecordUpdateStatus, batchTreasurerConfirm } from '@api/transferAccountsManage'
export default {
name: 'FinanceConfirmDialog',
data() {
return {
dialogConfig: {
title: '财务确认',
width: '600px'
},
cashForm: {
administrators: '',
smsCode: '',
remark: ''
},
cashRules: {
administrators: [{ required: true, message: '请选择财务管理员', trigger: 'change' }],
smsCode: [{ required: true, message: '请输入验证码', trigger: 'change' }]
},
// 验证码
showtips: false,
isSend: false,
sendMsg: '获取验证码',
time: '',
// 基本数据
baseData: {
administratorsList: []
},
}
},
props: {
financeConfirmVisible: {
type: Boolean,
default: false
},
// cashForm: {
// type: Object,
// default: () => { }
// }
infoList: {
type: Array,
default: () => { }
}
},
// watch: {
// financeConfirmVisible(newVal, val) {
// newVal ? this.reset() : this.closeReset()
// }
// },
computed: {
visible: {
get() {
return this.financeConfirmVisible
},
set(newVal) {
this.$emit('dialogClose', { flag: newVal, attrName: 'financeConfirmVisible' })
}
}
},
mounted() {
this.getAdminList()
},
methods: {
// reset() {
// this.$refs.formRef && this.$refs.formRef.resetFields()
// },
// closeReset() {
// this.isSend = false
// this.showtips = false
// this.time && clearTimeout(this.time)
// },
getAdminList() {
getWithdrawTreasurerList({}).then(res => {
this.baseData.administratorsList = res
})
},
handleCashConfirm() {
this.$refs.formRef.validate(valid => {
if (valid) {
var params = {}
params.remark = this.cashForm.remark
params.smsCode = this.cashForm.smsCode
params.phone = this.cashForm.administrators
params.status = 3
if (this.infoList.length > 1) {
params.orderCodeList = this.infoList.map((item) => {
return item.orderCode
})
} else {
params.orderCode = this.infoList[0].orderCode
}
console.log(params);
const _api = this.infoList.length > 1 ? batchTreasurerConfirm : transferAccountsRecordUpdateStatus
_api(params).then(res => {
this.notice.okTips('操作成功')
this.visible = true
})
// createWithdraw({ totalAmount: (+this.cashForm.balance - 2), smsCode: this.cashForm.smsCode }).then(res => {
// this.notice.okTips()
// this.$emit('handleCashConfirm')
// })
}
})
},
// handleCashClose() {
// this.$emit('dialogClose', true)
// },
handleSend() {
if (!this.cashForm.administrators) {
this.notice.warningTips('请选择管理员')
return
}
sendToSmsCodeApi({ phone: this.cashForm.administrators }).then((res) => {
this.notice.okTips('已发送,30分钟内有效')
this.isSend = true
this.showtips = true
this.sendMsg = 60
this.msgDown()
})
},
msgDown() {
this.time = setTimeout(() => {
clearTimeout(this.time)
if (this.sendMsg > 1) {
--this.sendMsg
this.msgDown()
} else {
this.isSend = false
}
}, 1000)
}
}
}
</script>
<style scoped>
p {
margin: 0 0;
}
.cash-btn {
margin-left: 20px;
}
</style>
<!-- 驳回 -->
<template>
<baseDialog :dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm">
<div class="reject-dialog">
<glsx-combi-form class="edit-form-container"
ref="formRef"
label-width="150px"
default-width="350px"
:form-ref="rejectRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules"></glsx-combi-form>
</div>
</baseDialog>
</template>
<script>
import { transferAccountsRecordUpdateStatus } from '@api/transferAccountsManage'
import { deepClone } from '@/common/util'
export default {
name: 'RejectDialog',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
statusObj: {
'1': '运营驳回',
'2': '财务驳回'
},
infoForm: {
remark: ''
},
dialogConfig: {
title: '',
width: '600px'
},
rejectRef: 'rejectRef',
formRules: {
remark: [{ required: true, message: '请输入驳回原因', trigger: 'blur' }]
},
editFormData: [{
label: '驳回原因',
name: 'remark',
type: 'input',
maxlength: '50'
}],
baseData: {
}
}
},
props: {
rejectVisible: {
type: Boolean,
default: false
},
paramsObj: {
type: Object,
default: {}
}
},
computed: {
visible: {
get() {
return this.rejectVisible
},
set(newVal) {
this.$emit('dialogClose', { flag: newVal, attrName: 'rejectVisible' })
}
}
},
mounted() {
console.log('paramsObj', this.paramsObj);
this.dialogConfig.title = this.statusObj[this.paramsObj.status]
},
methods: {
handleAddConfirm() {
this.$refs.formRef.$refs[this.rejectRef].validate(valid => {
if (valid) {
var params = {}
params.remark = this.infoForm.remark
params.orderCode = this.paramsObj.orderCode
params.status = 9
transferAccountsRecordUpdateStatus(params).then(res => {
this.notice.okTips('操作成功')
this.visible = true
})
}
})
}
}
}
</script>
<style lang="scss" scoped>
.reject-dialog {
margin: 65px 0;
.reject-input {
::v-deep .el-textarea__inner {
height: 70px;
}
}
.el-textarea .el-input__count {
right: 90px;
bottom: -10px;
font-size: 12px;
color: #999999;
}
.tips {
color: #999999;
}
}
</style>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</div> </div>
<div class="form_div"> <div class="form_div">
<el-form class="edit-sub-block" <el-form class="edit-sub-block"
label-width="90px" label-width="100px"
:inline="true"> :inline="true">
<el-form-item label="业务单号:"> <el-form-item label="业务单号:">
{{ detailInfo.orderCode }} {{ detailInfo.orderCode }}
...@@ -35,13 +35,21 @@ ...@@ -35,13 +35,21 @@
<el-form-item label="转账类型:"> <el-form-item label="转账类型:">
{{ transferTypeShow[detailInfo.transferType] }} {{ transferTypeShow[detailInfo.transferType] }}
</el-form-item> </el-form-item>
<el-form-item label="对账方:"> <el-form-item label="对账服务商:">
<span :title="detailInfo.merchantName" <span :title="detailInfo.partnerMerchantName"
class="detail-txt">{{ detailInfo.merchantName }}</span> class="detail-txt">{{ detailInfo.partnerMerchantName }}</span>
</el-form-item> </el-form-item>
<el-form-item label="商户号:"> <el-form-item label="对账园区店:">
{{ detailInfo.merchantId }} <span :title="detailInfo.yqMerchantName_show"
class="detail-txt">{{ detailInfo.yqMerchantName_show }}</span>
</el-form-item>
<el-form-item label="对账流量方:">
<span :title="detailInfo.shopMerchantName_show"
class="detail-txt">{{ detailInfo.shopMerchantName_show }}</span>
</el-form-item> </el-form-item>
<!-- <el-form-item label="商户号:">
{{ detailInfo.merchantId }}
</el-form-item> -->
<el-form-item label="对账周期:"> <el-form-item label="对账周期:">
{{ detailInfo.startTime }} - {{ detailInfo.endTime }} {{ detailInfo.startTime }} - {{ detailInfo.endTime }}
</el-form-item> </el-form-item>
...@@ -251,6 +259,17 @@ export default { ...@@ -251,6 +259,17 @@ export default {
} else { } else {
this.detailInfo.costTypeShow = '' this.detailInfo.costTypeShow = ''
} }
if (this.detailInfo.transferType == 1) {//服务商款项时,无值显示为“全部”
this.detailInfo.yqMerchantName_show = this.detailInfo.yqMerchantName ? this.detailInfo.yqMerchantName : '全部'
} else {
this.detailInfo.yqMerchantName_show = this.detailInfo.yqMerchantName ? this.detailInfo.yqMerchantName : ''
}
if (this.detailInfo.transferType == 1) {//服务商款项时,无值显示为“全部”
this.detailInfo.shopMerchantName_show = this.detailInfo.shopMerchantName ? this.detailInfo.shopMerchantName : '全部'
} else {
this.detailInfo.shopMerchantName_show = this.detailInfo.shopMerchantName ? this.detailInfo.shopMerchantName : ''
}
}) })
}, },
......
...@@ -230,10 +230,36 @@ export default { ...@@ -230,10 +230,36 @@ export default {
return this.baseData.transferTypeList.find(item => item.confId === cellValue.transferType)?.confValue return this.baseData.transferTypeList.find(item => item.confId === cellValue.transferType)?.confValue
} }
}, { }, {
label: '对账方', label: '对账服务商',
prop: 'merchantName', prop: 'partnerMerchantName',
width: '160px' width: '160px'
}, { }, {
label: '对账园区店',
prop: 'yqMerchantName',
width: '160px',
formatter: (cellValue) => {
let html = ''
if (cellValue.transferType == 1) {//服务商款项时,无值显示为“全部”
html = cellValue.yqMerchantName ? cellValue.yqMerchantName : '全部'
} else {
html = cellValue.yqMerchantName ? cellValue.yqMerchantName : '-'
}
return html
}
}, {
label: '对账流量方',
prop: 'shopMerchantName',
width: '160px',
formatter: (cellValue) => {
let html = ''
if (cellValue.transferType == 1) {//服务商款项时,无值显示为“全部”
html = cellValue.shopMerchantName ? cellValue.shopMerchantName : '全部'
} else {
html = cellValue.shopMerchantName ? cellValue.shopMerchantName : '-'
}
return html
}
}, {
label: '对账周期', label: '对账周期',
prop: 'cycle', prop: 'cycle',
width: '200px', width: '200px',
......
...@@ -3,36 +3,61 @@ ...@@ -3,36 +3,61 @@
<div class="tableBox"> <div class="tableBox">
<span> <span>
<!-- <el-tag>{{showData[sourcePage].title}}</el-tag> --> <!-- <el-tag>{{showData[sourcePage].title}}</el-tag> -->
<p class="edit-title" style="textAlign:center"> <p class="edit-title"
style="textAlign:center">
{{ showData[sourcePage].title }} {{ showData[sourcePage].title }}
<el-button type="text" style="paddingLeft:20px" v-if="sourcePage == 'serviceStore'" <el-button type="text"
@click="resetCheck">重新选择</el-button> style="paddingLeft:20px"
v-if="sourcePage == 'serviceStore'"
@click="resetCheck">重新选择</el-button>
</p> </p>
</span> </span>
<div class="checkSpan"> <div class="checkSpan">
<p v-for="item in selectedDataShow">已选:<span style="paddingRight:20px">{{ item.merchantName }}</span><span>{{ <p v-for="item in selectedDataShow">已选:<span
style="paddingRight:20px">{{ item.merchantName }}</span><span>{{
item.merchantId }}</span> item.merchantId }}</span>
</p> </p>
</div> </div>
<div style="padding: 10px 50px;"> <div style="padding: 10px 50px;">
<el-input v-model="merchantIdName" placeholder="搜索门店内容" maxlength="20" style="width:300px;paddingRight:20px" /> <el-input v-model="merchantIdName"
<el-button size="small" type="primary" @click="searchList"> placeholder="搜索门店内容"
maxlength="20"
style="width:300px;paddingRight:20px" />
<el-button size="small"
type="primary"
@click="searchList">
查询 查询
</el-button> </el-button>
</div> </div>
<el-table ref="seletingTable" :data="selectingData" height="464px" class="table" border @select="selectFn" <el-table ref="seletingTable"
@select-all="handleAll" :header-cell-class-name="cellClass"> :data="selectingData"
height="464px"
class="table"
border
@select="selectFn"
@select-all="handleAll"
:header-cell-class-name="cellClass">
<!-- :selectable="selectable" --> <!-- :selectable="selectable" -->
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection"
<el-table-column prop="merchantName" align="center"> width="55"
align="center" />
<el-table-column prop="merchantName"
align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="paddingRight:20px">{{ scope.row.merchantName }}</span><span>{{ scope.row.merchantNo }}</span> <span
style="paddingRight:20px">{{ scope.row.merchantName }}</span><span>{{ scope.row.merchantNo }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination v-if="sourcePage == '4sStore'" small background @current-change="handleCurrentChange" <el-pagination v-if="sourcePage == '4sStore'"
:current-page.sync="currentPage" :page-size="pageSize" layout="total, prev, pager, next" :total="total" /> small
background
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
:page-size="pageSize"
layout="total, prev, pager, next"
:total="total" />
</div> </div>
</template> </template>
...@@ -109,9 +134,10 @@ export default { ...@@ -109,9 +134,10 @@ export default {
// if (item.ruleFlag == 1) {//存在规则时增加禁用标识 // if (item.ruleFlag == 1) {//存在规则时增加禁用标识
// d.isDisable = true // d.isDisable = true
// } // }
if (item.ruleFlag == 1) { // 有规则时增加标识 // if (item.ruleFlag == 1) { // 有规则时增加标识
d.ruleFlag = 1 // d.ruleFlag = 1
} // }
d.ruleFlag = item.ruleFlag
this.selectedData.push(d) this.selectedData.push(d)
this.$refs.seletingTable.toggleRowSelection(d, true) this.$refs.seletingTable.toggleRowSelection(d, true)
} }
...@@ -195,13 +221,34 @@ export default { ...@@ -195,13 +221,34 @@ export default {
}, },
handleChange(selection, row) { handleChange(selection, row) {
console.log('row.ruleFlag', row.ruleFlag);
if (this.sourcePage == 'serviceStore') { // 服务商 if (this.sourcePage == 'serviceStore') { // 服务商
if (JSON.stringify(selection).indexOf(JSON.stringify(row)) == -1) { // 判断是否取消选中 if (JSON.stringify(selection).indexOf(JSON.stringify(row)) == -1) { // 判断是否取消选中
// 如果是取消,则判断是否存在财务规则 // 如果是取消,则判断是否存在财务规则
const showIndex = this.selectedDataShow.findIndex(item => (item.merchantId == row.merchantNo)) const showIndex = this.selectedDataShow.findIndex(item => (item.merchantId == row.merchantNo))
const dataIndex = this.selectedData.findIndex(item => (item.merchantNo == row.merchantNo)) const dataIndex = this.selectedData.findIndex(item => (item.merchantNo == row.merchantNo))
if (row.ruleFlag == 1) { let showHtml = ''
this.$confirm('该商户配置有财务规则,取消关联会重置财务配置', '提示', { // if (row.ruleFlag == 1) {
// showHtml = '该商户配置有财务规则,取消关联会重置财务配置;被修改的关联关系保存后,系统自动重置对应4s在对应场景的财务规则'
// } else {
// }
switch (row.ruleFlag) {
case 1:
showHtml = '该商户配置有财务规则,取消关联会重置财务配置;被修改的关联关系保存后,系统自动重置对应4s在对应场景的财务规则'
break
case 2:
showHtml = '该商户配置有对账规则,取消关联会重置对账配置;被修改的关联关系保存后,系统自动重置对应4s在对应场景的对账规则'
break
case 3:
showHtml = '该商户配置有财务规则和对账规则,取消关联会重置财务配置和对账配置;被修改的关联关系保存后,系统自动重置对应4s在对应场景的财务规则和对账规则'
break
default:
showHtml = ''
}
if (row.ruleFlag == 1 || row.ruleFlag == 2 || row.ruleFlag == 3) {
this.$confirm(showHtml, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
showCancelButton: true, showCancelButton: true,
type: 'warning' type: 'warning'
...@@ -250,10 +297,10 @@ export default { ...@@ -250,10 +297,10 @@ export default {
resetCheck() { resetCheck() {
const allCheck = this.$refs.seletingTable.selection const allCheck = this.$refs.seletingTable.selection
const flag = allCheck.some((item) => { const flag = allCheck.some((item) => {
return item.ruleFlag == 1 return item.ruleFlag == 1 || item.ruleFlag == 2 || item.ruleFlag == 3
}) })
if (flag) { if (flag) {
this.$confirm('选择的商户中配置有财务规则,取消关联会重置财务配置', '提示', { this.$confirm('选择的商户中配置有财务规则或对账规则,取消关联会重置财务配置或对账配置', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
showCancelButton: true, showCancelButton: true,
type: 'warning' type: 'warning'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!