Commit b94e4381 by 前端

Merge branch 'SAAS+V4.56.0-0908' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.56.0-0908
2 parents 92d2565d 2954c7ec
...@@ -83,7 +83,8 @@ export function billDetailPage(data) { ...@@ -83,7 +83,8 @@ export function billDetailPage(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.detail.withOrderPage' data.method = 'dj.api.smartcarlife.reconciliationBill.detail.withOrderPage'
return request(data, "post") return request(data, "post")
} }
//根据服务商商户号分页获取4S店列表
// 根据服务商商户号分页获取4S店列表
export function getShopList(data) { export function getShopList(data) {
data.method = 'dj.api.scenemerchantref.queryShopRefByPartnerShopPage' data.method = 'dj.api.scenemerchantref.queryShopRefByPartnerShopPage'
return request(data) return request(data)
...@@ -118,3 +119,117 @@ export function tmplCheckField(data) { ...@@ -118,3 +119,117 @@ export function tmplCheckField(data) {
data.method = 'dj.api.reconciliation.template.checkField' data.method = 'dj.api.reconciliation.template.checkField'
return request(data, "post") return request(data, "post")
} }
// 生成应付单
export function createPaymentBill(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.jd.payment.bill'
return request(data, "post")
}
// 生成应付单
export function createReceiptBill(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.jd.receipt'
return request(data, "post")
}
// 查询应付转账信息
export function getBillTransferInfo(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.transfer.out.info'
return request(data, "post")
}
// 应付转账
export function editBillTransferOut(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.transfer.out'
return request(data, "post")
}
// 应付转账转账记录
export function getTransferRecord(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.get.transfer.out.record'
return request(data, "post")
}
// 应收应付列表
export function getJdBillList(data) {
data.method = 'dj.smartcarlife.api.jdbill.page'
return request(data)
}
// 应收应付单-详情分页列表查询
export function getJdDetailPage(data) {
data.method = 'dj.smartcarlife.api.jdbill.detail.page'
return request(data)
}
// 金蝶-客户分页查询
export function getJdCustPage(data) {
data.method = 'dj.smartcarlife.api.jdbill.kingdee.cust.page'
return request(data)
}
// 金蝶-发票类型分页列表查询
export function getJdInvoiceTypePage(data) {
data.method = 'dj.smartcarlife.api.jdbill.kingdee.invoice.type.page'
return request(data)
}
// 金蝶-组织分页查询
export function getJdOrgPage(data) {
data.method = 'dj.smartcarlife.api.jdbill.kingdee.org.page'
return request(data)
}
// 金蝶-供应商分页列表查询
export function getJdSupplierPage(data) {
data.method = 'dj.smartcarlife.api.jdbill.kingdee.supplier.page'
return request(data)
}
// 金蝶-物料分页查询
export function getJdMaterialPage(data) {
data.method = 'dj.smartcarlife.api.jdbill.kingdee.material.page'
return request(data)
}
// 金蝶-业务类型分页列表查询
export function getJdBusinessPage(data) {
data.method = 'dj.smartcarlife.api.jdbill.kingdee.business.type.page'
return request(data)
}
// 金蝶-税率分页查询
export function getJdTaxratePage(data) {
data.method = 'dj.smartcarlife.api.jdbill.kingdee.taxrate.page'
return request(data)
}
// 应收应付单-明细更新
export function updateJdDetail(data) {
data.method = 'dj.smartcarlife.api.jdbill.detail.update'
return request(data, 'post')
}
// 应收应付单 - 用户手动新增明细
export function addJdDetail(data) {
data.method = 'dj.smartcarlife.api.jdbill.detail.add'
return request(data, 'post')
}
// 应收应付单-删除明细-仅手动新增的明细可删
export function deleteJdDetail(data) {
data.method = 'dj.smartcarlife.api.jdbill.detail.delete'
return request(data, 'post')
}
// 应收应付单-删除明细-仅手动新增的明细可删
export function push2Jd(data) {
data.method = 'dj.smartcarlife.api.jdbill.push2kingdee'
return request(data, 'post')
}
// 日志列表查询
export function getJdBillLog(data) {
data.method = 'dj.smartcarlife.api.jdbill.log'
return request(data, 'post')
}
...@@ -1439,3 +1439,9 @@ export const actionOpt = [ ...@@ -1439,3 +1439,9 @@ export const actionOpt = [
{ confId: "enable", confValue: "生效" }, { confId: "enable", confValue: "生效" },
{ confId: "disable", confValue: "不生效" } { confId: "disable", confValue: "不生效" }
] ]
// 应收应付 - 推送金蝶状态
export const pushStatusOpt = [
{ confId: 0, confValue: "未推送" },
{ confId: 1, confValue: "成功" },
{ confId: 2, confValue: "失败" }
]
...@@ -485,6 +485,42 @@ export const routerName = { ...@@ -485,6 +485,42 @@ export const routerName = {
parentId: "90511", parentId: "90511",
label: "下载", label: "下载",
handle: "handleExport" handle: "handleExport"
},
{
authId: "9051108",
parentId: "90511",
label: "生成应收单",
handle: "handleCreateReceiveBill"
},
{
authId: "9051109",
parentId: "90511",
label: "生成应付单",
handle: "handleCreatePayBill"
},
{
authId: "9051110",
parentId: "90511",
label: "查看应收单",
handle: "handleReceiveDetailBill"
},
{
authId: "9051111",
parentId: "90511",
label: "查看应付单",
handle: "handlePayDetailBill"
},
{
authId: "9051112",
parentId: "90511",
label: "应付转账",
handle: "handleEditTransfer"
},
{
authId: "9051113",
parentId: "90511",
label: "转账记录",
handle: "handleTransferRecord"
} }
], ],
component: _import("financeManage/accountStateManage/index") component: _import("financeManage/accountStateManage/index")
...@@ -547,5 +583,38 @@ export const routerName = { ...@@ -547,5 +583,38 @@ export const routerName = {
activePath: "/accountTmplManage" activePath: "/accountTmplManage"
}, },
component: _import("financeManage/accountTmplManage/editTmpl") component: _import("financeManage/accountTmplManage/editTmpl")
},
90513: {
path: "/receivePayManage",
name: "receivePayManage",
meta: {
title: "应收/应付单管理",
authId: "90513",
parentId: "905",
cache: false
},
auth: [
{
authId: "9051301",
parentId: "90513",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9051302",
parentId: "90513",
label: "详情",
handle: "handleEdit"
},
{
authId: "9051303",
parentId: "90513",
label: "查看对账单",
handle: "handleDetail"
}
],
component: _import("financeManage/receivePayManage/index")
} }
} }
<template> <template>
<div class="dynamic-table-container"> <div class="dynamic-table-container">
员工标签:<el-button type="default" v-if="isEdit" @click="addRow"> {{configObj.title}}调整:<el-button type="default" v-if="isEdit" @click="addRow">
添加事由 添加事由
</el-button> </el-button>
...@@ -56,6 +56,14 @@ export default { ...@@ -56,6 +56,14 @@ export default {
isEdit: { isEdit: {
type: Boolean, type: Boolean,
default: true default: true
},
configObj: {
type: Object,
default: () => {
return {
title: '应付'
}
}
} }
}, },
data() { data() {
......
<template>
<d2-dialog title="提示" :is-visible="payReceiveVisible" class="privacyDailog" width="500px" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="250px" default-width="314px" :isBlock="isBlock" :form-ref="editChildRef" :form-obj="editData" :form-data="editFormData" :form-rules="formRules">
</glsx-combi-form>
</d2-dialog>
</template>
<script>
import { createPaymentBill } from '@api/accountManage'
import { Util, deepClone } from '@/common/util'
export default {
name: 'EditPayReceive',
data() {
return {
isBlock: true,
editChildRef: 'editChildRef',
formRules: {
splitExpense: [{ required: true, message: "请选择拆分成本与流量费" }]
},
editData: {
splitExpense: ''
},
editFormData: [
{
label: "请选择拆分成本与流量费",
name: "splitExpense",
type: "radio",
optionList: [],
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'optList'
}
],
baseData: {
optList: [{
confId: true,
confLabel: '拆分'
}, {
confId: false,
confLabel: '不拆分'
}]
}
}
},
props: {
payReceiveVisible: {
type: Boolean,
default: false
},
info: {
type: Object,
default: () => ({})
}
},
mounted() {
this.editFormData[0].optionList = deepClone(this.baseData.optList)
},
methods: {
handleConfirm() {
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) {
const params = {
id: this.info.id,
splitExpense: this.editData.splitExpense
}
this.loading = true
createPaymentBill(params).then(() => {
this.$message.success("操作成功")
this.$emit('handleConfirm')
}).finally(() => {
this.loading = false
})
}
})
},
handleClose() {
this.$emit('dialogClose')
}
}
}
</script>
<style>
.privacyDailog .el-dialog {
min-width: 700px;
}
</style>
<template>
<d2-dialog title="应付转账" :is-visible="editTransferVisible" class="privacyDailog" width="1080px" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="250px" default-width="450px" :isBlock="isBlock" :form-ref="editChildRef" :form-obj="editData" :form-data="editFormData" :form-rules="formRules">
<template slot="fileHtml" slot-scope="scope">
<el-upload action="" accept=".xlsx,.xls,.docx,.pdf,.png,.jpg,.jpeg" class="upload-file" drag :show-file-list="false" :file-list="uploadFileList" :limit="5" :auto-upload="false" :on-remove="importFileChange" :on-change="(file, fileList) => handleFileChange(file, fileList, scope.scope)" :on-exceed="hanldeOnExceed" multiple>
<i class="el-icon-upload"></i>
<div class="el-upload__text">点击或将文件拖拽到此区域上传</div>
<div class="item-tips text-tips">
支持格式.xlsx.xls.docx.pdf.png.jpg单个文件不能超过10M
</div>
<div class="item-tips">最多上传5个文件</div>
</el-upload>
<!-- 文件列表区域 -->
<div class="file-box">
<div v-for="(subItem, subIndex) in editData.fileUrlList" :key="subIndex">
<div class="file-item" v-if="!filterEmpty(subItem.uploadProgress) || subItem.fileUrl">
<div class="file-content" @click="handleFileView(subItem)">
<el-progress define-back-color="#F5F7FA" :text-inside="true" text-color="#333333" :show-text="false" :stroke-width="26" stroke-linecap="butt" :percentage="subItem.uploadProgress"></el-progress>
<div class="file-name">{{ subItem.fileName }}</div>
</div>
<i v-if="!subItem.fileUrl" class="el-icon-close del-icon" @click="doCancel(scope.scope, subIndex)"></i>
<i v-if="subItem.fileUrl" class="el-icon-delete" @click="handleFileDelete(scope.scope, subIndex)"></i>
</div>
</div>
</div>
</template>
</glsx-combi-form>
<div style="margin-left: 250px;">* 说明:发起应付转账后,请到企微“SaaS+商务付款”流程中查看审批状态。</div>
</d2-dialog>
</template>
<script>
import { editBillTransferOut } from '@api/accountManage'
import { deepClone } from '@/common/util'
import { limitPrice } from '@/common/format'
import GlOssApi from "glsk-oss-jssdk"
import { baseConfig } from "@/main"
export default {
name: 'EditTransfer',
data() {
return {
isBlock: true,
editChildRef: 'editChildRef',
formRules: {
amount: [
{ required: true, message: "请输入转账金额", trigger: 'change' },
{
required: true,
validator: (rule, value, callback) => {
if (value <= 0) {
callback(new Error("转账金额不能为0"))
} else {
callback()
}
},
trigger: 'change'
}
],
fileUrlList: [{ required: true, message: "请选择转账凭证", trigger: 'change' }],
remark: [{ required: true, message: "请输入备注", trigger: 'change' }],
invoiceRemark: [{ required: true, message: "请输入发票及其他说明", trigger: 'change' }]
},
editData: {
platformMerchantId: '',
platformMerchantName: '',
fileUrlList: [],
amount: '',
remark: '',
invoiceRemark: ''
},
oldValue: {},
editFormData: [
{
label: "所属平台方",
name: "platformMerchantName",
type: "showTxt"
},
{
label: "对账服务商",
name: "billMerchantName",
type: "showTxt"
},
{
label: "转账金额",
name: "amount",
type: "input",
inputFn: (newVal) => {
this.editData.amount = limitPrice(newVal, this.oldValue.amount, 12, 2)
this.oldValue.amount = this.editData.amount
}
},
{
label: "转账凭证",
name: "fileUrlList",
addHtml: "fileHtml"
},
{
label: "备注",
name: "remark",
type: "input",
maxlength: 50
},
{
label: "发票及其他说明",
name: "invoiceRemark",
type: "input",
maxlength: 100
}
],
baseData: {
},
uploadFileList: [],
imgViewerVisible: false,
loading: false
}
},
props: {
editTransferVisible: {
type: Boolean,
default: false
},
info: {
type: Object,
default: () => ({})
}
},
watch: {
"editData.fileUrlList": {
handler(newVal) {
if (newVal) {
console.log('newVal', newVal)
this.uploadFileList = newVal.filter(
(v) => !this.filterEmpty(v.uploadProgress) || v.fileUrl
) // 文件列表
}
},
deep: true
}
},
mounted() {
this.GlOssApi = new GlOssApi({
baseConfig
})
this.editData = {
...this.editData,
...this.info
}
// this.editData = deepClone(this.info)
// this.editData.fileUrlList = []
this.oldValue.amount = this.editData.amount
this.editFormData[this.findIdx('billMerchantName')].label = this.editData.billType == '1' ? '对账流量方' : '对账服务商'
console.log('editData', this.editData)
},
methods: {
findIdx(attr) {
return this.editFormData.findIndex(item => item.name === attr)
},
handleConfirm() {
// this.editData.fileUrlList = ['https://pics5.baidu.com/feed/03087bf40ad162d961034fabc0ed00e38b13cd5e.jpeg@f_auto?token=0aca42cd8d1f4381c9518431db657a5b']
// this.editData.fileUrlList = ['https://pics5.baidu.com/feed/03087bf40ad162d961034fabc0ed00e38b13cd5e.jpeg@f_auto?token=0aca42cd8d1f4381c9518431db657a5b']
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) {
const params = deepClone(this.editData)
params.fileUrlList = params.fileUrlList.map(item => item.fileUrl)
editBillTransferOut(params).then(() => {
this.$message.success("操作成功")
this.$emit('handleConfirm')
}).finally(() => {
this.loading = false
})
}
})
},
handleClose() {
this.$emit('dialogClose')
},
// 获取文件
importFileChange(file, fileList) {
this.uploadFileList = fileList
this.editData.fileUrlList = deepClone(fileList)
console.log(fileList, "fileList")
},
handleFileChange(file, fileList, targetItem) {
// setTimeout(() => {
// var reader = new FileReader()
var fileInfo = file.raw
const fileName = fileInfo.name
const allowedExtensions = [".xlsx", ".xls", ".docx", ".pdf", ".png", ".jpg", ".jpeg"]
const isValidType = allowedExtensions.some(ext => fileInfo.name.toLowerCase().includes(ext))
if (!isValidType) {
this.$message({
message: "文件格式不支持上传,支持格式:.xlsx .xls .docx .pdf .png .jpg",
type: "error"
})
return false
}
// 默认10MB
const limitSize = 10
const isLt = fileInfo.size / 1024 / 1024 < limitSize
if (!isLt) {
this.$message({
message: "上传文件大小不能超过" + limitSize + "MB!",
type: "error"
})
this.uploadFileList = this.uploadFileList.filter((item) => {
return item.size / 1024 / 1024 < 10
})
return false
}
const _formData = this.editData
_formData[targetItem.name].push({
fileUrl: "",
uploadProgress: 0,
fileName: fileInfo.name?.substring(0, 128),
fileSize: fileInfo.size,
cancelAxios: {}
})
const index = _formData[targetItem.name].length - 1
const success = (res) => {
_formData[targetItem.name][index].fileUrl = res.aliyunAddress // 文件地址
}
const fail = (err) => {
this.clearItem(targetItem, index) // 上传失败将内容清空 不删除数组 防止其它上传进度 找不到对应下标
}
this.handleOssUpload(fileInfo, fileName, success, fail)
},
handleOssUpload(file, fileName, success, fail) {
const bucketName = "jinrong-huidan-test" // 桶名
const fileType = fileName.substr(fileName.lastIndexOf(".") + 1)
this.GlOssApi.multipartUpload(file, success, fail, bucketName, fileType)
},
hanldeOnExceed(files, fileList) {
this.$message({
message: "最多可上传5个文件",
type: "error"
})
},
// 删除文件
handleFileDelete(targetItem, subIndex) {
// this.clearItem(targetItem, subIndex)
console.log(subIndex)
this.editData.fileUrlList.splice(subIndex, 1)
// this.editData.fileUrlList = []
},
// 预览文件
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
// })
// }
},
closeImgViewer() {
this.imgViewerVisible = false
},
// 取消上传
doCancel(targetItem, subIndex) {
const _formData = this.editData
const cancelUploadObj = _formData[targetItem.name][subIndex].cancelAxios
cancelUploadObj && cancelUploadObj.cancel && cancelUploadObj.cancel()
this.clearItem(targetItem, subIndex)
},
filterEmpty(data) {
return (data ?? "") === ""
},
// 清空上传文件数组项内容
clearItem(targetItem, subIndex) {
this.$set(this.editData[targetItem.name][subIndex], "fileUrl", "")
this.$set(this.editData[targetItem.name][subIndex], "uploadProgress", "")
}
}
}
</script>
<style>
.privacyDailog .el-dialog {
min-width: 700px;
}
</style>
<template>
<d2-dialog title="转账记录" :is-visible="recordTransferVisible" class="privacyDailog" width="800px" btnOkLabel="关闭" noCancel="true" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane v-for="(item, index) in tabPaneList" :label="item.label" :name="item.name" :key="index">
</el-tab-pane>
</el-tabs>
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="250px" default-width="314px" :isBlock="isBlock" :form-ref="editChildRef" :form-obj="editData" :form-data="editFormData" :form-rules="formRules">
<div class="file-box" slot="fileHtml" slot-scope="scope">
<div v-for="(subItem, subIndex) in editData.fileUrlList" :key="subIndex">
<div class="file-item">
<div class="file-content">
<div class="file-name">{{ subItem.split('/')[subItem.split('/').length - 1] }}</div>
<a @click="download(subItem)" href="#" style="padding-left: 8px; color: #185efe">下载</a>
</div>
</div>
</div>
</div>
</glsx-combi-form>
<div>操作日志</div>
<d2-table ref="logTable" :table-data="logList" :table-params="tableParams" :hasNum="false" :hasPage="false" :array-span-method="arraySpanMethod" :selectable-fn="selectableFn">
</d2-table>
</d2-dialog>
</template>
<script>
import { getTransferRecord } from '@api/accountManage'
import { Util, deepClone, downLoadFile } from '@/common/util'
export default {
name: 'RecordTransfer',
data() {
return {
activeName: "0",
tabPaneList: [],
transferList: [],
isBlock: true,
editChildRef: 'editChildRef',
formRules: {
amount: [{ required: true, message: "请输入转账金额", trigger: 'change' }],
fileUrlList: [{ required: true, message: "请选择转账凭证", trigger: 'change' }],
remark: [{ required: true, message: "请输入备注", trigger: 'change' }]
},
editData: {
platformMerchantId: '',
platformMerchantName: ''
},
editFormData: [
{
label: "所属平台方",
name: "platformMerchantName",
type: "showTxt"
},
{
label: "对账服务商",
name: "billMerchantName",
type: "showTxt"
},
{
label: "转账金额",
name: "amount",
type: "showTxt"
},
{
label: "转账凭证",
name: "fileUrlList",
addHtml: "fileHtml"
},
{
label: "备注",
name: "remark",
type: "showTxt"
},
{
label: "企微审批状态",
name: "oaApproveStatusTxt",
type: "showTxt"
},
{
label: "企微审批号",
name: "oaSpNo",
type: "showTxt"
}
],
logList: [],
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: "list",
tableOption: false,
tableColumns: [
{
label: "操作项",
prop: "oprType",
formatter: (cellValue) => {
return { 1: '新增应付转账', 2: '推送企微OA' }[cellValue.oprType] || ''
}
},
{
label: "操作时间",
prop: "createdDate"
},
{
label: "操作结果",
prop: "remark"
},
{
label: "操作人",
prop: "createdBy"
}
]
}
}
},
props: {
recordTransferVisible: {
type: Boolean,
default: false
},
info: {
type: Object,
default: () => ({})
}
},
mounted() {
this.editData = deepClone(this.info)
this.getTransferRecord()
},
methods: {
findIdx(attr) {
return this.editFormData.findIndex(item => item.name === attr)
},
getTransferRecord() {
getTransferRecord({ id: this.info.id }).then(res => {
this.transferList = res.transferList || []
this.dealTabList()
this.editData = deepClone(this.transferList[0]) || {}
console.log(this.editData, 'this.editData')
this.logList = this.editData.logList || []
})
},
dealTabList() {
const statusObj = {
1: '审批中',
2: '已通过',
3: '已驳回',
4: '已撤销'
}
this.transferList.forEach((item, idx) => {
this.transferList[idx].oaApproveStatusTxt = statusObj[item.oaApproveStatus] || ''
this.transferList[idx].fileUrlList = item.fileUrl.split(',') || []
this.tabPaneList.push({
label: '转账记录' + (idx + 1),
name: idx + ''
})
})
},
download(item) {
downLoadFile(item)
},
handleClick(tab, event) {
this.editData = deepClone(this.transferList[+tab.name]) || {}
this.logList = this.editData.logList || []
},
handleConfirm() {
this.$emit('dialogClose')
},
handleClose() {
this.$emit('dialogClose')
}
}
}
</script>
<style lang="scss" scoped>
.privacyDailog .el-dialog {
min-width: 700px;
}
.file-content {
display: flex;
align-items: center;
margin-bottom: 8px;
}
</style>
<template>
<d2-dialog title="选择平台方" :is-visible="merchantVisible" class="privacyDailog" width="1080px" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="250px" default-width="314px" :isBlock="isBlock" :form-ref="editChildRef" :form-obj="editData" :form-data="editFormData" :form-rules="formRules">
</glsx-combi-form>
</d2-dialog>
</template>
<script>
import { deepClone } from '@/common/util'
export default {
name: 'SelectMerDialog',
data() {
return {
isBlock: true,
editChildRef: 'editChildRef',
formRules: {
platformMerchantId: [{ required: true, message: "请选择平台方" }]
},
editData: {
platformMerchantId: '',
platformMerchantName: ''
},
editFormData: [
{
label: "平台方",
name: "platformMerchantId",
type: "select",
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
optionsName: 'merchantList',
changeAttr: (val, targerItem) => {
this.editData.platformMerchantName = targerItem.optionList.find(item => item.merchantId === val).merchantName
}
}
],
baseData: {
merchantList: []
}
}
},
props: {
merchantVisible: {
type: Boolean,
default: false
},
info: {
type: Object,
default: () => ({})
}
},
mounted() {
this.editFormData[0].optionList = deepClone(this.info.platformMerchantList || [])
},
methods: {
handleConfirm() {
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) {
this.$emit('handleConfirm', {
platformMerchantId: this.editData.platformMerchantId,
platformMerchantName: this.editData.platformMerchantName
})
}
})
},
handleClose() {
this.$emit('dialogClose')
}
}
}
</script>
<style>
.privacyDailog .el-dialog {
min-width: 700px;
}
</style>
...@@ -26,8 +26,13 @@ ...@@ -26,8 +26,13 @@
</el-table> </el-table>
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page.pageNum" :page-size="page.pageSize" :total="page.total" :page-sizes="[10, 20, 30, 40]" layout="sizes,total,->,prev,pager,next,jumper"> <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page.pageNum" :page-size="page.pageSize" :total="page.total" :page-sizes="[10, 20, 30, 40]" layout="sizes,total,->,prev,pager,next,jumper">
</el-pagination> </el-pagination>
<DynamicAddTable ref="dynamicAdd" :adjustments="adjustments" @handleInputBlur="billCompute" :isEdit="isEdit"></DynamicAddTable> <DynamicAddTable v-if="billTypeStr == 'traffic'" ref="dynamicReceiveAdd" :configObj="{'title': '应收'}" :receivableAdjustments="receivableAdjustments" @handleInputBlur="billCompute" :isEdit="isEdit"></DynamicAddTable>
<div>总金额:{{totalAmount}}元</div> <DynamicAddTable ref="dynamicAdd" :adjustments="payableAdjustments" @handleInputBlur="billCompute" :isEdit="isEdit"></DynamicAddTable>
<div class="total-box">
<div v-if="billTypeStr == 'traffic'">应收总额:{{ totalReceivable }}元</div>
<div>应付总额:{{ totalPayable }}元</div>
<div v-if="billTypeStr == 'traffic'">线下对账总额:{{ totalOfflineReconciliation }}元</div>
</div>
</d2-dialog> </d2-dialog>
</div> </div>
</template> </template>
...@@ -70,13 +75,14 @@ export default { ...@@ -70,13 +75,14 @@ export default {
// 用户删除的ordercodelist // 用户删除的ordercodelist
tableDeleteList: [], tableDeleteList: [],
validationErrors: {}, validationErrors: {},
adjustments: [], receivableAdjustments: [],
payableAdjustments: [],
multipleSelecList: [], multipleSelecList: [],
// 分页 // 分页
page: { page: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0
}, },
headObj: {}, headObj: {},
batchForm: {}, batchForm: {},
...@@ -236,7 +242,9 @@ export default { ...@@ -236,7 +242,9 @@ export default {
"coverReceiverType" "coverReceiverType"
], ],
serviceEditList: ["partnerFeeCalculateType,partnerFeeCalculateValue", "partnerFeeCalculateCoefficient", "coverReceiverType"], serviceEditList: ["partnerFeeCalculateType,partnerFeeCalculateValue", "partnerFeeCalculateCoefficient", "coverReceiverType"],
totalAmount: 0, totalReceivable: 0,
totalPayable: 0,
totalOfflineReconciliation: 0,
changeFieldCodeList: [{ changeFieldCodeList: [{
old: 'platformMerchantName', old: 'platformMerchantName',
new: 'platformMerchantId' new: 'platformMerchantId'
...@@ -358,11 +366,14 @@ export default { ...@@ -358,11 +366,14 @@ export default {
this.originalOrderList = this.billTmplInfo?.orderPage?.list || [] this.originalOrderList = this.billTmplInfo?.orderPage?.list || []
this.orderId = this.billTmplInfo.id this.orderId = this.billTmplInfo.id
this.sceneType = this.billTmplInfo.sceneType this.sceneType = this.billTmplInfo.sceneType
this.totalAmount = this.billTmplInfo.totalAmount this.totalReceivable = this.billTmplInfo.totalReceivable
this.totalPayable = this.billTmplInfo.totalPayable
this.totalOfflineReconciliation = this.billTmplInfo.totalOfflineReconciliation
this.page.pageNum = this.billTmplInfo?.orderPage?.pageNum || 1 this.page.pageNum = this.billTmplInfo?.orderPage?.pageNum || 1
this.page.pageSize = this.billTmplInfo?.orderPage?.pageSize || 10 this.page.pageSize = this.billTmplInfo?.orderPage?.pageSize || 10
this.page.total = this.billTmplInfo?.orderPage?.total || 0 this.page.total = this.billTmplInfo?.orderPage?.total || 0
this.adjustments = this.billTmplInfo?.adjustments || [] this.receivableAdjustments = this.billTmplInfo?.receivableAdjustments || []
this.payableAdjustments = this.billTmplInfo?.payableAdjustments || []
this.orderTotalStat = this.billTmplInfo.orderTotalStat this.orderTotalStat = this.billTmplInfo.orderTotalStat
this.getPlatformMerchantList() this.getPlatformMerchantList()
this.dealTable() this.dealTable()
...@@ -538,14 +549,17 @@ export default { ...@@ -538,14 +549,17 @@ export default {
id: this.orderId, id: this.orderId,
updatedOrders: [], updatedOrders: [],
excludeBillOrderCodes: [], excludeBillOrderCodes: [],
adjustments: this.billTmplInfo.adjustments, receivableAdjustments: this.billTmplInfo.receivableAdjustments,
payableAdjustments: this.$refs.dynamicAdd.dynamicForm.tableData,
orderCurrentPage: this.page.pageNum, orderCurrentPage: this.page.pageNum,
orderPageSize: this.page.pageSize orderPageSize: this.page.pageSize
} }
// console.log(dynamicForm, 'dynamicForm') // console.log(dynamicForm, 'dynamicForm')
billComputePage({ json: JSON.stringify(dynamicForm) }).then(res => { billComputePage({ json: JSON.stringify(dynamicForm) }).then(res => {
this.originalOrderList = res.orderPage?.list || [] this.originalOrderList = res.orderPage?.list || []
this.totalAmount = res.totalAmount this.totalReceivable = res.totalReceivable
this.totalPayable = res.totalPayable
this.totalOfflineReconciliation = res.totalOfflineReconciliation
this.orderTotalStat = res.orderTotalStat this.orderTotalStat = res.orderTotalStat
this.page.pageNum = res.orderPage?.pageNum || 1 this.page.pageNum = res.orderPage?.pageNum || 1
this.page.pageSize = res.orderPage?.pageSize || 10 this.page.pageSize = res.orderPage?.pageSize || 10
......
...@@ -74,8 +74,13 @@ ...@@ -74,8 +74,13 @@
</el-table> </el-table>
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page.pageNum" :page-size="page.pageSize" :total="page.total" :page-sizes="[10, 20, 30, 40]" layout="sizes,total,->,prev,pager,next,jumper"> <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page.pageNum" :page-size="page.pageSize" :total="page.total" :page-sizes="[10, 20, 30, 40]" layout="sizes,total,->,prev,pager,next,jumper">
</el-pagination> </el-pagination>
<DynamicAddTable ref="dynamicAdd" :adjustments="adjustments" @handleInputBlur="billCompute"></DynamicAddTable> <DynamicAddTable v-if="billTypeStr == 'traffic'" ref="dynamicReceiveAdd" :configObj="{'title': '应收'}" :adjustments="receivableAdjustments" @handleInputBlur="billCompute"></DynamicAddTable>
<div>总金额:{{totalAmount}}元</div> <DynamicAddTable ref="dynamicAdd" :adjustments="payableAdjustments" @handleInputBlur="billCompute"></DynamicAddTable>
<div class="total-box">
<div v-if="billTypeStr == 'traffic'">应收总额:{{ totalReceivable }}元</div>
<div>应付总额:{{ totalPayable }}元</div>
<div v-if="billTypeStr == 'traffic'">线下对账总额:{{ totalOfflineReconciliation }}元</div>
</div>
</d2-dialog> </d2-dialog>
<!-- 批量輸入 --> <!-- 批量輸入 -->
<d2-dialog :title="headObj.fieldCode == 'coverReceiverType' ? '备注' : ('批量设置' + headObj.fieldName)" :is-visible="batchVisible" class="privacyDailog" width="480px" @closeDialog="handleBatchClose" @confirmDialog="handleBatchConfirm"> <d2-dialog :title="headObj.fieldCode == 'coverReceiverType' ? '备注' : ('批量设置' + headObj.fieldName)" :is-visible="batchVisible" class="privacyDailog" width="480px" @closeDialog="handleBatchClose" @confirmDialog="handleBatchConfirm">
...@@ -156,13 +161,14 @@ export default { ...@@ -156,13 +161,14 @@ export default {
// 用户删除的ordercodelist // 用户删除的ordercodelist
tableDeleteList: [], tableDeleteList: [],
validationErrors: {}, validationErrors: {},
adjustments: [], receivableAdjustments: [],
payableAdjustments: [],
multipleSelecList: [], multipleSelecList: [],
// 分页 // 分页
page: { page: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0
}, },
headObj: {}, headObj: {},
batchForm: {}, batchForm: {},
...@@ -175,7 +181,7 @@ export default { ...@@ -175,7 +181,7 @@ export default {
type: 'select', type: 'select',
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'divisionTypeList', optionsName: 'divisionTypeList'
}, { }, {
name: '分账状态', name: '分账状态',
source: 'ORDER', source: 'ORDER',
...@@ -183,7 +189,7 @@ export default { ...@@ -183,7 +189,7 @@ export default {
type: 'select', type: 'select',
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'divisionStatusList', optionsName: 'divisionStatusList'
}, { }, {
name: '对账状态', name: '对账状态',
source: 'ORDER', source: 'ORDER',
...@@ -191,7 +197,7 @@ export default { ...@@ -191,7 +197,7 @@ export default {
type: 'select', type: 'select',
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'reconcileStatusList', optionsName: 'reconcileStatusList'
}, { }, {
name: '订单时间', name: '订单时间',
source: 'ORDER', source: 'ORDER',
...@@ -209,7 +215,7 @@ export default { ...@@ -209,7 +215,7 @@ export default {
type: 'select', type: 'select',
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'payTypeList', optionsName: 'payTypeList'
}, { }, {
name: '流量方套餐比例', name: '流量方套餐比例',
source: 'PACKAGE', source: 'PACKAGE',
...@@ -217,7 +223,7 @@ export default { ...@@ -217,7 +223,7 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'trafficFeeCalculateTypeTxtList', optionsName: 'trafficFeeCalculateTypeTxtList',
type: 'selectInput', type: 'selectInput'
}, { }, {
name: '流量方整单比例', name: '流量方整单比例',
source: 'ORDER', source: 'ORDER',
...@@ -225,7 +231,7 @@ export default { ...@@ -225,7 +231,7 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'trafficFeeCalculateTypeTxtList', optionsName: 'trafficFeeCalculateTypeTxtList',
type: 'selectInput', type: 'selectInput'
}], }],
serviceChangeTxtList: [{ serviceChangeTxtList: [{
name: '分账类型', name: '分账类型',
...@@ -234,7 +240,7 @@ export default { ...@@ -234,7 +240,7 @@ export default {
type: 'select', type: 'select',
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'divisionTypeList', optionsName: 'divisionTypeList'
}, { }, {
name: '分账状态', name: '分账状态',
source: 'ORDER', source: 'ORDER',
...@@ -242,7 +248,7 @@ export default { ...@@ -242,7 +248,7 @@ export default {
type: 'select', type: 'select',
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'divisionStatusList', optionsName: 'divisionStatusList'
}, { }, {
name: '对账状态', name: '对账状态',
source: 'ORDER', source: 'ORDER',
...@@ -250,7 +256,7 @@ export default { ...@@ -250,7 +256,7 @@ export default {
type: 'select', type: 'select',
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'reconcileStatusList', optionsName: 'reconcileStatusList'
}, { }, {
name: '支付方式', name: '支付方式',
source: 'ORDER', source: 'ORDER',
...@@ -258,7 +264,7 @@ export default { ...@@ -258,7 +264,7 @@ export default {
type: 'select', type: 'select',
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'payTypeList', optionsName: 'payTypeList'
}, { }, {
name: '订单时间', name: '订单时间',
source: 'ORDER', source: 'ORDER',
...@@ -287,7 +293,9 @@ export default { ...@@ -287,7 +293,9 @@ export default {
"coverReceiverType" "coverReceiverType"
], ],
serviceEditList: ["partnerFeeCalculateType,partnerFeeCalculateValue", "partnerFeeCalculateCoefficient", "coverReceiverType"], serviceEditList: ["partnerFeeCalculateType,partnerFeeCalculateValue", "partnerFeeCalculateCoefficient", "coverReceiverType"],
totalAmount: 0, totalReceivable: 0,
totalPayable: 0,
totalOfflineReconciliation: 0,
editObj: { editObj: {
select: { select: {
attrList: ['platformMerchantId', 'coverReceiverType'], attrList: ['platformMerchantId', 'coverReceiverType'],
...@@ -309,7 +317,7 @@ export default { ...@@ -309,7 +317,7 @@ export default {
optionsName: 'recvTypeList', optionsName: 'recvTypeList',
fn: (val, listIdx, obj) => { fn: (val, listIdx, obj) => {
} }
}, }
} }
}, },
input: { input: {
...@@ -369,7 +377,7 @@ export default { ...@@ -369,7 +377,7 @@ export default {
} }
return errorTxt return errorTxt
} }
}, }
} }
}, },
selectInput: { selectInput: {
...@@ -598,11 +606,14 @@ export default { ...@@ -598,11 +606,14 @@ export default {
this.originalOrderList = this.billTmplInfo?.orderPage?.list || [] this.originalOrderList = this.billTmplInfo?.orderPage?.list || []
this.orderId = this.billTmplInfo.id this.orderId = this.billTmplInfo.id
this.sceneType = this.billTmplInfo.sceneType this.sceneType = this.billTmplInfo.sceneType
this.totalAmount = this.billTmplInfo.totalAmount this.totalReceivable = this.billTmplInfo.totalReceivable
this.totalPayable = this.billTmplInfo.totalPayable
this.totalOfflineReconciliation = this.billTmplInfo.totalOfflineReconciliation
this.page.pageNum = this.billTmplInfo?.orderPage?.pageNum || 1 this.page.pageNum = this.billTmplInfo?.orderPage?.pageNum || 1
this.page.pageSize = this.billTmplInfo?.orderPage?.pageSize || 10 this.page.pageSize = this.billTmplInfo?.orderPage?.pageSize || 10
this.page.total = this.billTmplInfo?.orderPage?.total || 0 this.page.total = this.billTmplInfo?.orderPage?.total || 0
this.adjustments = this.billTmplInfo?.adjustments || [] this.receivableAdjustments = this.billTmplInfo?.receivableAdjustments || []
this.payableAdjustments = this.billTmplInfo?.payableAdjustments || []
this.orderTotalStat = this.billTmplInfo.orderTotalStat this.orderTotalStat = this.billTmplInfo.orderTotalStat
this.getPlatformMerchantList() this.getPlatformMerchantList()
this.dealTable() this.dealTable()
...@@ -694,13 +705,16 @@ export default { ...@@ -694,13 +705,16 @@ export default {
id: this.orderId, id: this.orderId,
updatedOrders: deepClone(this.tableModifyList), updatedOrders: deepClone(this.tableModifyList),
excludeBillOrderCodes: deepClone(this.tableDeleteList), excludeBillOrderCodes: deepClone(this.tableDeleteList),
adjustments: this.$refs.dynamicAdd.dynamicForm.tableData, receivableAdjustments: this.$refs.dynamicReceiveAdd?.dynamicForm.tableData || [],
payableAdjustments: this.$refs.dynamicAdd.dynamicForm.tableData,
orderCurrentPage: this.page.pageNum, orderCurrentPage: this.page.pageNum,
orderPageSize: this.page.pageSize orderPageSize: this.page.pageSize
} }
billComputePage({ json: JSON.stringify(dynamicForm) }).then(res => { billComputePage({ json: JSON.stringify(dynamicForm) }).then(res => {
this.originalOrderList = res.orderPage?.list || [] this.originalOrderList = res.orderPage?.list || []
this.totalAmount = res.totalAmount this.totalReceivable = res.totalReceivable
this.totalPayable = res.totalPayable
this.totalOfflineReconciliation = res.totalOfflineReconciliation
this.orderTotalStat = res.orderTotalStat this.orderTotalStat = res.orderTotalStat
this.page.pageNum = res.orderPage?.pageNum || 1 this.page.pageNum = res.orderPage?.pageNum || 1
this.page.pageSize = res.orderPage?.pageSize || 10 this.page.pageSize = res.orderPage?.pageSize || 10
...@@ -780,7 +794,7 @@ export default { ...@@ -780,7 +794,7 @@ export default {
return this.tmplFieldsList.find(item => return this.tmplFieldsList.find(item =>
(item.fieldCode === field || (item.fieldCode === field ||
(item.editType === 'selectInput' && (item.editType === 'selectInput' &&
(item.editObj.selectField === field || item.editObj.inputField === field))) && (item.editObj.selectField === field || item.editObj.inputField === field))) &&
(item.extInfo?.source || 'ORDER') === source (item.extInfo?.source || 'ORDER') === source
) )
}, },
...@@ -808,12 +822,14 @@ export default { ...@@ -808,12 +822,14 @@ export default {
}, },
handleConfirm() { handleConfirm() {
if (this.validateForm() && this.$refs.dynamicAdd.validateForm()) { const validFlag = this.billTypeStr == 'traffic' ? (this.$refs.dynamicReceiveAdd.validateForm() && this.$refs.dynamicAdd.validateForm()) : this.$refs.dynamicAdd.validateForm()
if (this.validateForm() && validFlag) {
const dynamicForm = { const dynamicForm = {
id: this.orderId, id: this.orderId,
updatedOrders: deepClone(this.tableModifyList), updatedOrders: deepClone(this.tableModifyList),
excludeBillOrderCodes: deepClone(this.tableDeleteList), excludeBillOrderCodes: deepClone(this.tableDeleteList),
adjustments: this.$refs.dynamicAdd.dynamicForm.tableData, receivableAdjustments: this.$refs.dynamicReceiveAdd?.dynamicForm.tableData || [],
payableAdjustments: this.$refs.dynamicAdd?.dynamicForm.tableData || [],
sceneType: this.sceneType sceneType: this.sceneType
} }
// console.log(dynamicForm, 'dynamicForm') // console.log(dynamicForm, 'dynamicForm')
...@@ -904,7 +920,6 @@ export default { ...@@ -904,7 +920,6 @@ export default {
}) })
this.dealTableData() this.dealTableData()
}, },
// 处理表格里面的数据,需结合表头这个字段的特有属性进行处理 // 处理表格里面的数据,需结合表头这个字段的特有属性进行处理
...@@ -1260,6 +1275,12 @@ export default { ...@@ -1260,6 +1275,12 @@ export default {
padding: 14px; padding: 14px;
text-align: center; text-align: center;
} }
.total-box {
display: flex;
div {
flex: 1;
}
}
.batch-box { .batch-box {
margin: 10px 36px; margin: 10px 36px;
} }
......
export const receiveTableColumns = [
{
label: "*(单据头)业务日期",
prop: "businessDate"
// formatter: (cellValue) => {
// return { 1: "新增应付转账", 2: "推送企微OA" }[cellValue.oprType] || ""
// }
},
{
label: "*(单据头)到期日",
prop: "expireDate"
},
{
label: "(单据头)客户#名称",
prop: "customerName",
labelName: "customerCode",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "number",
optionLabel: "name",
optionsName: "customerOpt",
apiName: "getJdCustPage",
isMarkRed: true
},
{
label: "(单据头)币别#名称",
prop: "coinName"
},
{
label: "(单据头)结算组织#名称",
prop: "settlementOrg",
labelName: "settlementOrgCode",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "number",
optionLabel: "name",
optionsName: "settlementOrgOpt",
apiName: "getJdOrgPage",
isMarkRed: true
},
{
label: "(单据头)收款组织#名称",
prop: "rcvOrgName",
labelName: "rcvOrgCode",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "number",
optionLabel: "name",
optionsName: "rcvOrgOpt",
apiName: "getJdOrgPage",
isMarkRed: true
},
{
label: "*(表头财务)到期日计算日期",
prop: "expireDateCalDate"
},
{
label: "(表头财务)汇率类型#名称",
prop: "exchangeRateName",
editType: "select"
},
{
label: "(明细)物料编码#名称",
prop: "materialCodeName",
labelName: "materialCode",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "number",
optionLabel: "name",
optionsName: "materialOpt",
apiName: "getJdMaterialPage",
isMarkRed: true
},
{
label: "(明细)物料名称",
prop: "materialName"
},
{
label: "(明细)计价单位#名称",
prop: "pricingUnitName"
},
{
label: "(明细)计价数量",
prop: "pricingNumber",
addHtml: "edit",
editType: "input"
},
{
label: "(明细)价税合计本位币",
prop: "priceTaxTotal",
addHtml: "edit",
editType: "input"
},
{
label: "(明细)含税单价",
prop: "taxUnitPrice"
},
{
label: "(明细)单价",
prop: "unitPrice"
},
{
label: "(明细)业务类型",
prop: "businessTypeName",
labelName: "businessTypeCode",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "number",
optionLabel: "name",
optionsName: "businessTypeOpt",
apiName: "getJdBusinessPage",
isMarkRed: true
},
{
label: "(明细)分摊期限",
prop: "allocationPeriod"
},
{
label: "(明细)税率(%)",
prop: "taxRate",
labelName: "taxRate",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "taxRate",
optionLabel: "taxRate",
optionsName: "taxRateOpt",
apiName: "getJdTaxratePage",
isMarkRed: true
},
{
label: "(明细)备注",
prop: "remark",
addHtml: "edit",
editType: "input"
},
{
label: "(明细)不含税金额",
prop: "priceWithoutTax"
},
{
label: "(明细)税额",
prop: "tax"
},
{
label: "(明细)4S门店",
prop: "shopMerchantName",
addHtml: "edit",
editType: "input"
}
]
export const payTableColumns = [
{
label: "*(单据头)业务日期",
prop: "businessDate"
// formatter: (cellValue) => {
// return { 1: "新增应付转账", 2: "推送企微OA" }[cellValue.oprType] || ""
// }
},
{
label: "*(单据头)到期日",
prop: "expireDate"
},
{
label: "(单据头)供应商#名称",
prop: "supplierIdName",
labelName: "supplierId",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "number",
optionLabel: "name",
optionsName: "supplierOpt",
apiName: "getJdSupplierPage",
isMarkRed: true
},
{
label: "(单据头)币别#名称",
prop: "coinName"
},
{
label: "(单据头)结算组织#名称",
prop: "settlementOrg",
labelName: "settlementOrgCode",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "number",
optionLabel: "name",
optionsName: "settlementOrgOpt",
apiName: "getJdOrgPage",
isMarkRed: true
},
{
label: "(单据头)付款组织#名称",
prop: "rcvOrgName",
labelName: "rcvOrgCode",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "number",
optionLabel: "name",
optionsName: "rcvOrgOpt",
apiName: "getJdOrgPage",
isMarkRed: true
},
{
label: "*(单据头)发票类型",
prop: "invoiceTypeName",
labelName: "invoiceTypeNumber",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "number",
optionLabel: "name",
optionsName: "invoiceTypeOpt",
apiName: "getJdInvoiceTypePage"
// isMarkRed: true
},
{
label: "*(表头财务)到期日计算日期",
prop: "expireDateCalDate"
},
{
label: "(表头财务)汇率类型#名称",
prop: "exchangeRateName"
},
{
label: "(明细)物料编码#名称",
prop: "materialCodeName",
labelName: "materialCode",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "number",
optionLabel: "name",
optionsName: "materialOpt",
apiName: "getJdMaterialPage",
isMarkRed: true
},
{
label: "(明细)物料名称",
prop: "materialName"
},
{
label: "(明细)计价单位#名称",
prop: "pricingUnitName"
},
{
label: "(明细)计价数量",
prop: "pricingNumber",
addHtml: "edit",
editType: "input"
},
{
label: "(明细)价税合计本位币",
prop: "priceTaxTotal",
addHtml: "edit",
editType: "input"
},
{
label: "(明细)含税单价",
prop: "taxUnitPrice"
},
{
label: "(明细)单价",
prop: "unitPrice"
},
{
label: "(明细)业务类型",
prop: "businessTypeName",
labelName: "businessTypeCode",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "number",
optionLabel: "name",
optionsName: "businessTypeOpt",
apiName: "getJdBusinessPage",
isMarkRed: true
},
{
label: "(明细)分摊期限",
prop: "allocationPeriod"
},
{
label: "(明细)税率(%)",
prop: "taxRate",
labelName: "taxRate",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "taxRate",
optionLabel: "taxRate",
optionsName: "taxRateOpt",
apiName: "getJdTaxratePage",
isMarkRed: true
},
{
label: "(明细)备注",
prop: "remark",
addHtml: "edit",
editType: "input"
},
{
label: "(明细)不含税金额",
prop: "priceWithoutTax"
},
{
label: "(明细)税额",
prop: "tax"
},
{
label: "(明细)4S门店",
prop: "shopMerchantName",
addHtml: "edit",
editType: "input"
}
]
<template>
<div class="receivePayManage">
<div class="invoice-header">
<el-tabs v-model="activeName"
@tab-click="handleClick">
<el-tab-pane v-for="(item, index) in tabPaneList"
:label="item.label"
:name="item.name"
:key="index">
</el-tab-pane>
</el-tabs>
<components :is="tabName" @handleChangeTab="handleChangeTab"></components>
</div>
</div>
</template>
<script>
import receiveList from "./receiveList.vue"
import payList from "./payList.vue"
export default {
name: "OrderList",
components: {
receiveList,
payList
},
data() {
return {
activeName: "1",
tabPaneList: [
{
label: "应收单管理",
name: "1"
},
{
label: "应付单管理",
name: "2"
}
],
tabName: "receiveList"
}
},
mounted() {
if (this.$route.params.tabPane) {
this.activeName = this.$route.params.tabPane
this.tabName = this.$route.params.tabLabel
}
},
watch: {},
methods: {
handleClick() {
const arr = {
1: "receiveList",
2: "payList"
}
this.tabName = arr[+this.activeName]
},
handleChangeTab(e) {
if(!e) {
return true
}
let { activeTab } = e
this.activeName = activeTab
this.handleClick()
},
}
}
</script>
<style lang="scss" scoped>
.receivePayManage {
padding: 0 20px;
.invoice-header {
::v-deep .el-tabs__header {
margin: 0;
padding: 0 20px;
}
}
}
</style>
<!-- 应收单管理 -->
<template>
<d2-container class="m-t-40">
<div class="header" slot="header" style="padding-bottom: 20px;">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" label-width="120px">
<div slot="totalAmountHtml">
<input-range start-placeholder="最小金额" end-placeholder="最大金额" :display-value="searchForm.totalAmount"></input-range>
</div>
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<span>
<auth-button category="Button" /></span>
</d2-table-header>
<d2-table ref="orderTable" :search-form="searchFormSearch" :table-params="tableParams" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
<ReceivePayEditDialog v-if="billVisible" :jdBillInfo="jdBillInfo" :billVisible="billVisible" @handleClose="handleBillVisible" @handleConfirm="handleBillVisible" />
<system-bill-detail-dialog v-if="billDetailVisible" :billVisible="billDetailVisible" :billTmplInfo="billTmplInfo" @handleClose="handleChangeDetailVisible"></system-bill-detail-dialog>
</d2-container>
</template>
<script>
import { mapActions, mapState } from "vuex"
import { Util, deepClone } from "@/common/util"
import inputRange from '../../invoiceManage/components/inputRange'
import ReceivePayEditDialog from '../components/ReceivePayEditDialog.vue'
import {
getJdBillList,
billDetailPage
} from "@api/accountManage"
import { pushStatusOpt } from "@/common/constants.js"
import SystemBillDetailDialog from "../components/SystemBillDetailDialog"
export default {
name: "InvoiceCodeList",
data() {
return {
searchForm: {
settlementOrg: '',
rcvOrgName: '',
materialNames: '',
createdDate: [],
totalAmount: [],
pushStatus: ''
},
searchFormSearch: {},
showFormData: [
{
label: '结算组织',
name: 'settlementOrg',
type: 'input',
maxlength: '50',
isClear: true
},
{
label: '收款组织',
name: 'rcvOrgName',
type: 'input',
maxlength: '50',
isClear: true
},
{
label: '物料名称',
name: 'materialNames',
type: 'input',
maxlength: '50',
isClear: true
},
{
label: '含税总额',
name: 'totalAmount',
addHtml: "totalAmountHtml"
},
{
label: '生成时间',
name: 'createdDate',
type: 'datePicker',
isClear: true,
pickerOptions: 'rangePickerOptions'
},
{
label: "推送金蝶状态",
name: "pushStatus",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "pushStatusOpt"
},
{
label: '客户',
name: 'customerName',
type: 'input',
maxlength: '50',
isClear: true
}
],
getListApi: getJdBillList,
// 表格参数
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
mutiSelectUniqueKey: 'id',
mutiSelectName: 'payId',
listName: "list",
tableOption: { width: "150px" },
tableColumns: [
{
label: "结算组织",
prop: "settlementOrg"
},
{
label: "收款组织",
prop: "rcvOrgName",
width: "200"
},
{
label: "物料名称",
prop: "materialNames",
width: "200"
},
{
label: "含税总额",
prop: "totalAmount",
width: "150"
},
{
label: "客户",
prop: "customerName",
width: "150"
},
{
label: "生成时间",
prop: "createdDate",
width: "200"
},
{
label: "推送金蝶状态",
prop: "pushStatus",
width: "150",
formatter: (cellValue) => {
return this.baseData.pushStatusOpt.find(item => item.confId === cellValue.pushStatus)?.confValue
},
className: (cellValue) => {
return {
0: 'ashSpot',
1: 'greenSpot',
2: 'redSpot'
}[cellValue.pushStatus]
}
}
]
},
baseData: {
pushStatusOpt: deepClone(pushStatusOpt)
},
jdBillInfo: {},
billVisible: false,
billDetailVisible: false,
billTmplInfo: []
}
},
components: {
inputRange,
ReceivePayEditDialog,
SystemBillDetailDialog
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList,
updateList: (state) => state.d2admin.user.updateList
})
},
mounted() {
this.getBaseData()
},
methods: {
...mapActions({
get: "d2admin/base/get",
close: "d2admin/page/close"
}),
...mapActions("d2admin/user", ["actionSetDownloadList"]),
async getBaseData() {
this.getOptionsList()
},
getParams() {
var params = deepClone(this.searchForm)
const dateFormatList = [{
attr: 'createdDate',
startAttr: 'startDate',
endAttr: 'endDate'
}]
dateFormatList.forEach(item => {
if (params[item.attr] && params[item.attr].length) {
params[item.startAttr] = Util.dateFormate(params[item.attr][0], 'YYYY-MM-DD')
params[item.endAttr] = Util.dateFormate(params[item.attr][1], 'YYYY-MM-DD')
delete params[item.attr]
}
})
if (params.totalAmount && params.totalAmount.length > 0) {
params.minTotalAmount = params.totalAmount[0]
params.maxTotalAmount = params.totalAmount[1]
}
delete params.totalAmount
params.billType = '3' // 应收单
return params
},
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = this.getParams()
resolve()
})
},
handleReset() {
this.searchForm = {
settlementOrg: '',
rcvOrgName: '',
materialNames: '',
createdDate: [],
totalAmount: [],
pushStatus: ''
}
this.$refs.orderTable.refreshTable()
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
if (this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部') {
const temp = {}
temp[this.showFormData[index].optionId] = ''
temp[this.showFormData[index].optionLabel] = '全部'
this.baseData[item.optionsName].unshift(temp)
}
this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
}
})
},
handleEdit(row) {
this.jdBillInfo = row
this.billVisible = true
},
handleChangeDetailVisible() {
this.billDetailVisible = !this.billDetailVisible
},
handleDetail(row) {
const params = {
id: row.reconciliationId,
orderCurrentPage: 1,
orderPageSize: 10
}
billDetailPage(params).then(res => {
this.billTmplInfo = deepClone(res)
this.handleChangeDetailVisible()
})
},
handleBillVisible() {
this.billVisible = !this.billVisible
this.$refs.orderTable.refreshTable(false, true)
},
handleExport() {
var params = this.getParams()
// 去除为null的值
for (const key in params) {
if (params[key] === null || params[key] === '' || params[key].length == 0) {
delete params[key]
}
}
params.method = 'dj.smartcarlife.api.jdbill.export'
const list = [
...this.dowloadList,
{
name: '应收单管理',
exportParam: JSON.stringify(params),
status: 'waiting',
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: 'dowloadList' })
}
}
}
</script>
<style lang="scss" scoped>
.m-t-40 {
margin-top: 40px;
}
@mixin typeBase {
width: 52px;
border-radius: 239px;
opacity: 1;
font-size: 14px;
text-align: center;
line-height: 24px;
display: inline-block;
}
.type-yellow {
@include typeBase();
background: #ff8d1a1a;
color: #ff8d1a;
}
.type-blue {
@include typeBase();
background: #5850ff1a;
color: #5850ff;
}
.type-green {
@include typeBase();
background: #43cf7c1a;
color: #43cf7c;
}
.m-l-md {
margin-left: 20px;
}
.import-btn {
position: relative;
}
.import-input {
opacity: 0;
position: absolute;
right: 0;
top: 0;
width: 98px;
height: 36px;
cursor: pointer;
font-size: 0;
}
.import-template {
position: absolute;
height: 20px;
top: 50px;
left: 0;
}
</style>
...@@ -238,7 +238,8 @@ export default { ...@@ -238,7 +238,8 @@ export default {
voucherList: [], voucherList: [],
rangeType: 1, // 对账方式 默认是按周期 rangeType: 1, // 对账方式 默认是按周期
orderCodeScope: [], // 订单范围 orderCodeScope: [], // 订单范围
approveType: '' approveType: '',
invoiceRemark: ''
}, },
oldVal: { oldVal: {
transferTotalAmount: "" transferTotalAmount: ""
...@@ -316,10 +317,12 @@ export default { ...@@ -316,10 +317,12 @@ export default {
this.showOrHideAttr('editFormData', '对账方式', true) this.showOrHideAttr('editFormData', '对账方式', true)
this.showOrHideAttr('editFormData', '订单范围', true) this.showOrHideAttr('editFormData', '订单范围', true)
this.showOrHideAttr('editFormData', '审批方式', true) this.showOrHideAttr('editFormData', '审批方式', true)
this.showOrHideAttr('editFormData', '发票及其他说明', true)
this.showOrHideAttr('editFormData', '对账周期', false) this.showOrHideAttr('editFormData', '对账周期', false)
// 清空已选订单范围 // 清空已选订单范围
this.infoForm.orderCodeScope = [] this.infoForm.orderCodeScope = []
this.infoForm.approveType = '' this.infoForm.approveType = ''
this.infoForm.invoiceRemark = ''
this.infoForm.rangeType = 1 this.infoForm.rangeType = 1
} else { } else {
this.showOrHideAttr_transferType('editFormData', 'expenseTypeHtml', true) this.showOrHideAttr_transferType('editFormData', 'expenseTypeHtml', true)
...@@ -396,6 +399,8 @@ export default { ...@@ -396,6 +399,8 @@ export default {
// 切换流量方将已选的订单清空 // 切换流量方将已选的订单清空
this.infoForm.orderCodeScope = [] this.infoForm.orderCodeScope = []
this.infoForm.approveType = '' this.infoForm.approveType = ''
this.infoForm.invoiceRemark = ''
this.showOrHideAttr('editFormData', '发票及其他说明', true)
} }
}, { }, {
label: '所属平台方', label: '所属平台方',
...@@ -421,7 +426,18 @@ export default { ...@@ -421,7 +426,18 @@ export default {
optionLabel: 'confValue', optionLabel: 'confValue',
optionsName: 'approveTypeList', optionsName: 'approveTypeList',
isHide: true, isHide: true,
rules: [{ required: true, message: '请选择审批方式', trigger: 'change' }] rules: [{ required: true, message: '请选择审批方式', trigger: 'change' }],
changeAttr: (value, targetItem) => {
this.showOrHideAttr('editFormData', '发票及其他说明', value != 2)
this.infoForm.invoiceRemark = ''
}
}, {
label: '发票及其他说明',
name: 'invoiceRemark',
type: 'input',
maxlength: 100,
isHide: true,
rules: [{ required: true, message: '请输入发票及其他说明', trigger: 'change' }]
}, { }, {
label: '对账周期', label: '对账周期',
name: 'reconciliationDate', name: 'reconciliationDate',
...@@ -566,6 +582,8 @@ export default { ...@@ -566,6 +582,8 @@ export default {
this.infoForm.reconciliationDate = '' this.infoForm.reconciliationDate = ''
this.infoForm.orderCodeScope = [] this.infoForm.orderCodeScope = []
this.infoForm.approveType = '' this.infoForm.approveType = ''
this.infoForm.invoiceRemark = ''
this.showOrHideAttr('editFormData', '发票及其他说明', true)
} }
} }
}, },
...@@ -670,6 +688,7 @@ export default { ...@@ -670,6 +688,7 @@ export default {
this.showOrHideAttr('editFormData', '对账周期', e != 1) this.showOrHideAttr('editFormData', '对账周期', e != 1)
this.showOrHideAttr('editFormData', '订单范围', e != 2) this.showOrHideAttr('editFormData', '订单范围', e != 2)
this.showOrHideAttr('editFormData', '审批方式', e != 2) this.showOrHideAttr('editFormData', '审批方式', e != 2)
// this.showOrHideAttr('editFormData', '发票及其他说明', e != 2)
}, },
formatSelected(data, all) { formatSelected(data, all) {
...@@ -1157,6 +1176,7 @@ export default { ...@@ -1157,6 +1176,7 @@ export default {
params.rangeType = infoForm?.rangeType params.rangeType = infoForm?.rangeType
if (infoForm?.rangeType == 2) { if (infoForm?.rangeType == 2) {
params.approveType = infoForm?.approveType params.approveType = infoForm?.approveType
params.invoiceRemark = infoForm?.invoiceRemark
params.orderRefList = infoForm?.orderCodeScope?.map(val => { params.orderRefList = infoForm?.orderCodeScope?.map(val => {
return { return {
orderCode: val.orderCode, orderCode: val.orderCode,
......
...@@ -581,6 +581,18 @@ export default { ...@@ -581,6 +581,18 @@ export default {
item.optStautsShow = "驳回" item.optStautsShow = "驳回"
item.optRemarkShow = "驳回原因" item.optRemarkShow = "驳回原因"
} }
if (item.afterStatus == 7) {
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("")
}
}
} else if (item.beforeStatus == 8) { } else if (item.beforeStatus == 8) {
item.optShow = "运营补充" item.optShow = "运营补充"
item.optStautsShow = "通过" item.optStautsShow = "通过"
...@@ -591,6 +603,18 @@ export default { ...@@ -591,6 +603,18 @@ export default {
item.optStautsShow = "驳回" item.optStautsShow = "驳回"
item.optRemarkShow = "驳回原因" item.optRemarkShow = "驳回原因"
} }
if (item.afterStatus == 8) {
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("")
}
}
} else { } else {
item.isShow = item.beforeStatus == item.afterStatus item.isShow = item.beforeStatus == item.afterStatus
if (item.beforeStatus == item.afterStatus) { if (item.beforeStatus == item.afterStatus) {
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</el-input> </el-input>
</div> </div>
<template slot="attachmentListHtml" slot-scope="scope"> <template slot="attachmentListHtml" slot-scope="scope">
<el-upload action="" accept=".xlsx,.xls,.doc,.pdf,.docx,.jpg,.png" class="upload-file" :show-file-list="false" :file-list="uploadFileList" :limit="5" :auto-upload="false" :on-remove="importFileChange" :on-change=" <el-upload ref="uploadRef" action="" accept=".xlsx,.xls,.doc,.pdf,.docx,.jpg,.png" class="upload-file" :show-file-list="false" :file-list="uploadFileList" :limit="5" :auto-upload="false" :on-remove="importFileChange" :on-change="
(file, fileList) => handleFileChange(file, fileList, scope.scope) (file, fileList) => handleFileChange(file, fileList, scope.scope)
" :on-exceed="hanldeOnExceed" multiple v-if="!detail || (detail && !detail.applyCode)"> " :on-exceed="hanldeOnExceed" multiple v-if="!detail || (detail && !detail.applyCode)">
<!-- <i class="el-icon-upload"></i> <!-- <i class="el-icon-upload"></i>
...@@ -381,7 +381,7 @@ export default { ...@@ -381,7 +381,7 @@ export default {
openAccBankName: [ openAccBankName: [
{ {
required: true, required: true,
message: "请输入开户行,最大不超过50个字", message: "请输入开户行,最大不超过100个字",
trigger: "blur" trigger: "blur"
} }
], ],
...@@ -448,7 +448,7 @@ export default { ...@@ -448,7 +448,7 @@ export default {
name: "openAccBankName", name: "openAccBankName",
type: "input", type: "input",
isClear: true, isClear: true,
maxlength: 50 maxlength: 100
}, },
{ {
label: "银行账号", label: "银行账号",
...@@ -838,10 +838,11 @@ export default { ...@@ -838,10 +838,11 @@ export default {
this.infoForm.deliveryEmployeeName = res.deliveryEmployeeName this.infoForm.deliveryEmployeeName = res.deliveryEmployeeName
console.log(res, '----') console.log(res, '----')
if(res.refundApplyRecordInfo) { if(res.refundApplyRecordInfo) {
this.infoForm.title = res.refundApplyRecordInfo.title || ''
this.infoForm.payee = res.refundApplyRecordInfo.payee || '' this.infoForm.payee = res.refundApplyRecordInfo.payee || ''
this.infoForm.openAccBankName = res.refundApplyRecordInfo.openAccBankName || '' this.infoForm.openAccBankName = (res.refundApplyRecordInfo.openAccBankName || '') + (res.refundApplyRecordInfo.openAccBranchBankName || '')
this.infoForm.bankAccountNo = res.refundApplyRecordInfo.bankAccountNo || '' this.infoForm.bankAccountNo = res.refundApplyRecordInfo.bankAccountNo || ''
this.infoForm.remark = res.refundApplyRecordInfo.payReason || '' this.infoForm.payReason = res.refundApplyRecordInfo.payReason || ''
this.infoForm.attachmentList = [] this.infoForm.attachmentList = []
res.refundApplyRecordInfo.attachmentList.forEach(item => { res.refundApplyRecordInfo.attachmentList.forEach(item => {
this.infoForm.attachmentList.push({ this.infoForm.attachmentList.push({
...@@ -958,6 +959,7 @@ export default { ...@@ -958,6 +959,7 @@ export default {
message: "文件格式不支持上传", message: "文件格式不支持上传",
type: "error" type: "error"
}) })
this.$refs.uploadRef.clearFiles()
return false return false
} }
// 默认10MB // 默认10MB
......
...@@ -111,6 +111,7 @@ export default { ...@@ -111,6 +111,7 @@ export default {
this.staffList = await this.getStaffInfoData() this.staffList = await this.getStaffInfoData()
this.handleTabClick(1) this.handleTabClick(1)
this.staffItem = this.staffList[0] this.staffItem = this.staffList[0]
this.findStoreEmployeePerformanceData()
}, },
//查询员工详情 //查询员工详情
findStoreEmployeePerformanceData() { findStoreEmployeePerformanceData() {
...@@ -122,6 +123,7 @@ export default { ...@@ -122,6 +123,7 @@ export default {
scene: queryData.scene scene: queryData.scene
}).then((res) => { }).then((res) => {
this.loading = false this.loading = false
// console.log(res.aiJy)
this.aiJy = res.aiJy this.aiJy = res.aiJy
}) })
}, },
......
...@@ -269,7 +269,9 @@ export default { ...@@ -269,7 +269,9 @@ export default {
count: 0 count: 0
} }
staffCourse({ staffCourse({
taskId: this.staffItem.taskId taskId: this.staffItem.taskId,
currentPage: 1,
pageSize: 99999
}).then((res) => { }).then((res) => {
this.staffTagCourseList = res.list this.staffTagCourseList = res.list
res.list.forEach((item) => { res.list.forEach((item) => {
...@@ -383,6 +385,7 @@ export default { ...@@ -383,6 +385,7 @@ export default {
insertOrUpdate(params).then((res) => { insertOrUpdate(params).then((res) => {
this.isFlag = true this.isFlag = true
this.notice.okTips("操作成功") this.notice.okTips("操作成功")
this.multipleVisible = false
this.$emit("handleConfigureCourse") this.$emit("handleConfigureCourse")
}) })
}, },
......
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
:config="config" :config="config"
@handleClick="handleConfirm" @handleClick="handleConfirm"
@closeDialog="handleClose" @closeDialog="handleClose"
v-loading="loading"
element-loading-text="学习任务生成中,请稍后……"
element-loading-spinner="el-icon-loading"
> >
<glsx-combi-form <glsx-combi-form
label-width="160px" label-width="160px"
...@@ -67,6 +70,7 @@ export default { ...@@ -67,6 +70,7 @@ export default {
computed: { computed: {
visible: { visible: {
get() { get() {
this.isFlag = true
return this.multipleVisible return this.multipleVisible
}, },
set(newVal) { set(newVal) {
...@@ -83,6 +87,8 @@ export default { ...@@ -83,6 +87,8 @@ export default {
title: "多人配置", title: "多人配置",
width: "720px" width: "720px"
}, },
loading: false,
isFlag: true,
config: { config: {
showClose: true, showClose: true,
appendToBody: false, // 是否将自身插入至 body 元素,有嵌套的弹窗时一定要设置 appendToBody: false, // 是否将自身插入至 body 元素,有嵌套的弹窗时一定要设置
...@@ -153,11 +159,14 @@ export default { ...@@ -153,11 +159,14 @@ export default {
this.visible = false this.visible = false
}, },
handleConfirm() { handleConfirm() {
// console.log("this.selectStaffList", this.selectStaffList, this.checkAll)/ this.loading = true
let arr = this.selectStaffList.filter((item) => item.active) if (this.isFlag) {
// console.log(arr) this.isFlag = false
this.$emit("handleMultiple", arr) let arr = this.selectStaffList.filter((item) => item.active)
this.visible = false // console.log(arr)
this.$emit("handleMultiple", arr)
// this.visible = false
}
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!