Commit 6cdcbf54 by cen

feat: 添加内部主体和微信类型选项

- 在常量文件中新增微信类型和合同企业主体选项
- 更新付款管理和合同管理视图以支持新选项
- 优化相关组件以显示和处理内部主体信息
1 parent 2759316e
...@@ -1828,3 +1828,17 @@ export const signerTypeOpt = [ ...@@ -1828,3 +1828,17 @@ export const signerTypeOpt = [
{ confId: 1, confValue: "企业委托" }, { confId: 1, confValue: "企业委托" },
{ confId: 2, confValue: "企业" } { confId: 2, confValue: "企业" }
] ]
// 企微主体
// 1-惠州广联 3-优加
export const wechatTypeOpt = [
{ confId: 1, confValue: "惠州广联" },
{ confId: 3, confValue: "优加" }
]
// 合同企业主体(内部主体)
// contractOrg: hzglsk-惠州广联、szyjzh-优加
export const contractOrgOpt = [
{ confId: "hzglsk", confValue: "惠州广联" },
{ confId: "szyjzh", confValue: "优加" }
]
...@@ -59,6 +59,19 @@ const PAY_MENTMETHOD_OPTIONS = Object.keys(PAY_MENTMETHOD_MAP).map((key) => { ...@@ -59,6 +59,19 @@ const PAY_MENTMETHOD_OPTIONS = Object.keys(PAY_MENTMETHOD_MAP).map((key) => {
value: key value: key
} }
}) })
// 合同企业主体(内部主体)
// wechatType: 1-惠州广联、3-优加
const wechatType_MAP = {
1: "惠州广联",
3: "优加"
}
const wechatType_OPTIONS = Object.keys(wechatType_MAP).map((key) => {
return {
label: wechatType_MAP[key],
value: key
}
})
module.exports = { module.exports = {
RECEIPT_STATUS, RECEIPT_STATUS,
PUSH_STATUS, PUSH_STATUS,
...@@ -70,5 +83,7 @@ module.exports = { ...@@ -70,5 +83,7 @@ module.exports = {
RECEIPT_STATUS_OPTIONS, RECEIPT_STATUS_OPTIONS,
NB_TRANSFER_STATUS_OPTIONS, NB_TRANSFER_STATUS_OPTIONS,
PAY_MENTMETHOD_OPTIONS, PAY_MENTMETHOD_OPTIONS,
PAY_MENTMETHOD_MAP PAY_MENTMETHOD_MAP,
wechatType_OPTIONS,
wechatType_MAP
} }
...@@ -7,16 +7,14 @@ ...@@ -7,16 +7,14 @@
class="show-search" class="show-search"
:search-form="searchForm" :search-form="searchForm"
:form-data="showFormData" :form-data="showFormData"
label-width="130px" label-width="130px">
>
<template #inputRangeHtml> <template #inputRangeHtml>
<input-range <input-range
start-placeholder="最小金额" start-placeholder="最小金额"
end-placeholder="最大金额" end-placeholder="最大金额"
:display-value="searchForm.amtList" :display-value="searchForm.amtList"
max-length="15" max-length="15"
input-max-length="15" input-max-length="15"></input-range>
></input-range>
</template> </template>
<template #selectDatePickerHtml> <template #selectDatePickerHtml>
<div class="select-date-picker"> <div class="select-date-picker">
...@@ -24,14 +22,12 @@ ...@@ -24,14 +22,12 @@
v-model="searchForm.dateType" v-model="searchForm.dateType"
placeholder="请选择" placeholder="请选择"
@change="searchForm.dateValue = ''" @change="searchForm.dateValue = ''"
class="select" class="select">
>
<el-option <el-option
v-for="(subItem, subIndex) in selectOption" v-for="(subItem, subIndex) in selectOption"
:key="subIndex" :key="subIndex"
:label="subItem.label" :label="subItem.label"
:value="subItem.value" :value="subItem.value" />
/>
</el-select> </el-select>
<el-date-picker <el-date-picker
class="date-picker" class="date-picker"
...@@ -42,8 +38,7 @@ ...@@ -42,8 +38,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:picker-options="rangePickerOptions" :picker-options="rangePickerOptions"
:default-time="['00:00:00', '23:59:59']" :default-time="['00:00:00', '23:59:59']" />
/>
</div> </div>
</template> </template>
</d2-search> </d2-search>
...@@ -58,13 +53,11 @@ ...@@ -58,13 +53,11 @@
<d2-table-header> <d2-table-header>
<span <span
data-event-code="usedcar_payment_push_list" data-event-code="usedcar_payment_push_list"
style="margin-right: 10px" style="margin-right: 10px">
>
<auth-button <auth-button
category="Button" category="Button"
:show-btn-ids="['9051401']" :show-btn-ids="['9051401']"
:loading="pushPayBillLoading" :loading="pushPayBillLoading" />
/>
</span> </span>
<span data-event-code="usedcar_payment_management_list_export"> <span data-event-code="usedcar_payment_management_list_export">
<auth-button category="Button" :show-btn-ids="['9051402']" /> <auth-button category="Button" :show-btn-ids="['9051402']" />
...@@ -75,16 +68,14 @@ ...@@ -75,16 +68,14 @@
:search-form="searchFormSearch" :search-form="searchFormSearch"
:table-params="tableParams" :table-params="tableParams"
:get-list-api="getListApi" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn" :before-search-fn="beforeSearchFn">
>
<div slot="statusHtml" slot-scope="scope"> <div slot="statusHtml" slot-scope="scope">
<span <span
class="circle" class="circle"
:style="{ :style="{
background: background:
baseData[scope.columnsObj.colorKey][scope.scope[scope.prop]] baseData[scope.columnsObj.colorKey][scope.scope[scope.prop]]
}" }"></span>
></span>
{{ {{
baseData[scope.columnsObj.enumKey][scope.scope[scope.prop]] || "-" baseData[scope.columnsObj.enumKey][scope.scope[scope.prop]] || "-"
}} }}
...@@ -98,8 +89,7 @@ ...@@ -98,8 +89,7 @@
id: scope.scope.id id: scope.scope.id
}) })
" "
data-event-code="usedcar_payment_detail" data-event-code="usedcar_payment_detail">
>
<auth-button :data="scope.scope" :show-btn-ids="['9051403']" /> <auth-button :data="scope.scope" :show-btn-ids="['9051403']" />
</span> </span>
<!-- 回单 --> <!-- 回单 -->
...@@ -112,8 +102,7 @@ ...@@ -112,8 +102,7 @@
<detailDialog <detailDialog
:visible="detailDialogVisible" :visible="detailDialogVisible"
:params-obj="detailDialogParams" :params-obj="detailDialogParams"
@dialogClose="closeDetailDialog" @dialogClose="closeDetailDialog" />
/>
</d2-container> </d2-container>
</template> </template>
...@@ -135,7 +124,9 @@ import { ...@@ -135,7 +124,9 @@ import {
RECEIPT_STATUS_OPTIONS, RECEIPT_STATUS_OPTIONS,
NB_TRANSFER_STATUS_OPTIONS, NB_TRANSFER_STATUS_OPTIONS,
PAY_MENTMETHOD_OPTIONS, PAY_MENTMETHOD_OPTIONS,
PAY_MENTMETHOD_MAP PAY_MENTMETHOD_MAP,
wechatType_OPTIONS,
wechatType_MAP
} from "./contant" } from "./contant"
import detailDialog from "./components/detailDialog.vue" import detailDialog from "./components/detailDialog.vue"
import { todayEndPickerOptions } from "@/common/format" import { todayEndPickerOptions } from "@/common/format"
...@@ -179,7 +170,8 @@ export default { ...@@ -179,7 +170,8 @@ export default {
amtList: [], amtList: [],
dateType: "payment", dateType: "payment",
dateValue: "", dateValue: "",
paymentMethod: "全部" paymentMethod: "全部",
wechatType: ""
}, },
showFormData: [ showFormData: [
{ {
...@@ -298,6 +290,16 @@ export default { ...@@ -298,6 +290,16 @@ export default {
optionId: "label", optionId: "label",
optionLabel: "label", optionLabel: "label",
optionsName: "PAY_MENTMETHOD_OPTIONS" optionsName: "PAY_MENTMETHOD_OPTIONS"
},
{
label: "内部主体",
name: "wechatType",
type: "select",
isClear: true,
optionList: [],
optionId: "value",
optionLabel: "label",
optionsName: "wechatType_OPTIONS"
} }
], ],
// 基本数据 // 基本数据
...@@ -311,7 +313,9 @@ export default { ...@@ -311,7 +313,9 @@ export default {
pushStatus: deepClone(PUSH_STATUS), pushStatus: deepClone(PUSH_STATUS),
nbTransferStatus: deepClone(NB_TRANSFER_STATUS), nbTransferStatus: deepClone(NB_TRANSFER_STATUS),
PAY_MENTMETHOD_OPTIONS: deepClone(PAY_MENTMETHOD_OPTIONS), PAY_MENTMETHOD_OPTIONS: deepClone(PAY_MENTMETHOD_OPTIONS),
PAY_MENTMETHOD_MAP: deepClone(PAY_MENTMETHOD_MAP) PAY_MENTMETHOD_MAP: deepClone(PAY_MENTMETHOD_MAP),
wechatType_OPTIONS: deepClone(wechatType_OPTIONS),
wechatType_MAP: deepClone(wechatType_MAP)
}, },
getListApi: getUsedCarPaymentList, getListApi: getUsedCarPaymentList,
searchFormSearch: {}, searchFormSearch: {},
...@@ -422,6 +426,14 @@ export default { ...@@ -422,6 +426,14 @@ export default {
label: "付款方式", label: "付款方式",
prop: "paymentMethod", prop: "paymentMethod",
minWidth: 120 minWidth: 120
},
{
label: "内部主体",
prop: "wechatType",
minWidth: 120,
formatter: (cellValue) => {
return this.baseData.wechatType_MAP[cellValue.wechatType] || "-"
}
} }
] ]
}, },
......
...@@ -7,14 +7,12 @@ ...@@ -7,14 +7,12 @@
class="show-search" class="show-search"
:search-form="searchForm" :search-form="searchForm"
:label-width="'120px'" :label-width="'120px'"
:form-data="showFormData" :form-data="showFormData">
>
<div slot="contractPriceHtml"> <div slot="contractPriceHtml">
<input-range <input-range
start-placeholder="最小价格" start-placeholder="最小价格"
end-placeholder="最大价格" end-placeholder="最大价格"
:display-value="searchForm.contractPrice" :display-value="searchForm.contractPrice"></input-range>
></input-range>
</div> </div>
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
...@@ -28,8 +26,7 @@ ...@@ -28,8 +26,7 @@
<d2-table-header> <d2-table-header>
<span <span
data-event-code="contract_management_list_export" data-event-code="contract_management_list_export"
style="margin-right: 10px" style="margin-right: 10px">
>
<auth-button category="Button" :show-btn-ids="['9200309']" /> <auth-button category="Button" :show-btn-ids="['9200309']" />
</span> </span>
<span data-event-code="contract_management_list_export"> <span data-event-code="contract_management_list_export">
...@@ -41,13 +38,11 @@ ...@@ -41,13 +38,11 @@
:get-list-api="getListApi" :get-list-api="getListApi"
:search-form="searchFormSearch" :search-form="searchFormSearch"
:table-params="tableParams" :table-params="tableParams"
:before-search-fn="beforeSearchFn" :before-search-fn="beforeSearchFn">
>
<div <div
slot="vehicleImgUrl" slot="vehicleImgUrl"
slot-scope="scope" slot-scope="scope"
class="vehicleImgUrl-preview" class="vehicleImgUrl-preview">
>
<glsx-preview <glsx-preview
:image-url-arr=" :image-url-arr="
scope.scope.vehicleImgUrl scope.scope.vehicleImgUrl
...@@ -55,8 +50,7 @@ ...@@ -55,8 +50,7 @@
: [noDataUrl] : [noDataUrl]
" "
:pic-options="picOptions" :pic-options="picOptions"
limit="1" limit="1"></glsx-preview>
></glsx-preview>
</div> </div>
<!-- 付款状态 --> <!-- 付款状态 -->
<div slot="oaFlowPaymentStatusHtml" slot-scope="scope"> <div slot="oaFlowPaymentStatusHtml" slot-scope="scope">
...@@ -69,8 +63,7 @@ ...@@ -69,8 +63,7 @@
(item) => item.confId == scope.scope.oaFlowPaymentStatus (item) => item.confId == scope.scope.oaFlowPaymentStatus
).color ).color
: '' : ''
}" }"></span>
></span>
{{ {{
scope.scope.oaFlowPaymentStatus scope.scope.oaFlowPaymentStatus
? baseData.oaFlowPaymentStatusOpt.find( ? baseData.oaFlowPaymentStatusOpt.find(
...@@ -91,8 +84,7 @@ ...@@ -91,8 +84,7 @@
(item) => item.confId == scope.scope.oaFlowStatus (item) => item.confId == scope.scope.oaFlowStatus
).color ).color
: '' : ''
}" }"></span>
></span>
{{ {{
scope.scope.oaFlowStatus scope.scope.oaFlowStatus
? baseData.oaFlowStatusOpt.find( ? baseData.oaFlowStatusOpt.find(
...@@ -147,6 +139,25 @@ ...@@ -147,6 +139,25 @@
}} }}
</div> </div>
</div> </div>
<!-- 内部主体 -->
<div slot="contractOrgHtml" slot-scope="scope">
<div class="online-status">
{{
scope.scope.contractOrg !== null &&
scope.scope.contractOrg !== undefined &&
scope.scope.contractOrg !== ""
? (
baseData.contractOrgOpt.find(
(item) =>
item.confId != null &&
item.confId !== "" &&
String(item.confId) === String(scope.scope.contractOrg)
) || {}
).confValue || "-"
: "-"
}}
</div>
</div>
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
<span style="margin-right: 10px"> <span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9200301']" /> <auth-button :data="scope.scope" :show-btn-ids="['9200301']" />
...@@ -159,16 +170,14 @@ ...@@ -159,16 +170,14 @@
" "
data-event-code="contract_management_download" data-event-code="contract_management_download"
style="margin-right: 10px" style="margin-right: 10px"
v-if="scope.scope.electronicContractStatus == 2" v-if="scope.scope.electronicContractStatus == 2">
>
<auth-button :data="scope.scope" :show-btn-ids="['9200302']" /> <auth-button :data="scope.scope" :show-btn-ids="['9200302']" />
</span> </span>
<el-button <el-button
v-if="scope.scope.contractProcessNode" v-if="scope.scope.contractProcessNode"
type="text" type="text"
size="mini" size="mini"
@click="jumpDetail(scope.scope)" @click="jumpDetail(scope.scope)">
>
合同编辑 合同编辑
</el-button> </el-button>
</div> </div>
...@@ -178,15 +187,13 @@ ...@@ -178,15 +187,13 @@
title="合同导入" title="合同导入"
:visible.sync="fileVisible" :visible.sync="fileVisible"
width="480px" width="480px"
:close-on-click-modal="false" :close-on-click-modal="false">
>
<div class="activity-info-container"> <div class="activity-info-container">
<el-form <el-form
:model="fileForm" :model="fileForm"
ref="fileRuleForm" ref="fileRuleForm"
:rules="fileRules" :rules="fileRules"
label-width="120px" label-width="120px">
>
<el-form-item label="合同信息表:" prop="fileName"> <el-form-item label="合同信息表:" prop="fileName">
<div> <div>
<el-button class="import-btn1"> <el-button class="import-btn1">
...@@ -196,15 +203,13 @@ ...@@ -196,15 +203,13 @@
id="fileUpload" id="fileUpload"
class="import-input" class="import-input"
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
@change="importFile($event)" @change="importFile($event)" />
/>
</el-button> </el-button>
<el-link <el-link
type="primary" type="primary"
class="import-template" class="import-template"
icon="el-icon-link" icon="el-icon-link"
@click="exportTemplate" @click="exportTemplate">
>
下载模板 下载模板
</el-link> </el-link>
</div> </div>
...@@ -220,28 +225,22 @@ ...@@ -220,28 +225,22 @@
<div <div
style="margin-top: 10px" style="margin-top: 10px"
class="result-box" class="result-box"
v-if="fileInfo && !uploadFlag" v-if="fileInfo && !uploadFlag">
>
<div> <div>
<span style="color: #666666">操作结果:</span> <span style="color: #666666">操作结果:</span>
<span style="margin-right: 10px" <span style="margin-right: 10px">成功记录
>成功记录
<span style="color: #2cca74; margin-left: 10px">{{ <span style="color: #2cca74; margin-left: 10px">{{
fileForm.succ fileForm.succ
}}</span></span }}</span></span>
> <span style="margin-right: 10px">失败记录
<span style="margin-right: 10px"
>失败记录
<span style="color: #eb4e4e; margin-left: 10px">{{ <span style="color: #eb4e4e; margin-left: 10px">{{
fileForm.fail fileForm.fail
}}</span></span }}</span></span>
>
</div> </div>
<el-button <el-button
v-if="fileForm.failDownloadUrl" v-if="fileForm.failDownloadUrl"
type="text" type="text"
@click.stop="exportError(fileForm.failDownloadUrl)" @click.stop="exportError(fileForm.failDownloadUrl)">
>
导出失败记录 导出失败记录
</el-button> </el-button>
</div> </div>
...@@ -253,8 +252,7 @@ ...@@ -253,8 +252,7 @@
<el-button <el-button
type="primary" type="primary"
@click="fileVisible = false" @click="fileVisible = false"
:loading="uploadFlag" :loading="uploadFlag">
>
确定 确定
</el-button> </el-button>
</div> </div>
...@@ -285,7 +283,9 @@ import { ...@@ -285,7 +283,9 @@ import {
oaFlowPaymentStatusOpt, oaFlowPaymentStatusOpt,
paymentMethodOpt, paymentMethodOpt,
electronicContractOpt, electronicContractOpt,
signerTypeOpt signerTypeOpt,
wechatTypeOpt,
contractOrgOpt
} from "@/common/constants.js" } from "@/common/constants.js"
import { Util, deepClone } from "@/common/util" import { Util, deepClone } from "@/common/util"
import { mapActions, mapState } from "vuex" import { mapActions, mapState } from "vuex"
...@@ -456,6 +456,12 @@ export default { ...@@ -456,6 +456,12 @@ export default {
prop: "signerType", prop: "signerType",
minWidth: 120, minWidth: 120,
addHtml: "signerTypeHtml" addHtml: "signerTypeHtml"
},
{
label: "内部主体",
prop: "contractOrg",
minWidth: 120,
addHtml: "contractOrgHtml"
} }
] ]
}, },
...@@ -479,7 +485,8 @@ export default { ...@@ -479,7 +485,8 @@ export default {
paymentType: "", paymentType: "",
source: "", source: "",
paymentMethod: "", paymentMethod: "",
signerType: "" signerType: "",
contractOrg: ""
}, },
showFormData: [ showFormData: [
{ {
...@@ -643,6 +650,16 @@ export default { ...@@ -643,6 +650,16 @@ export default {
optionId: "confId", optionId: "confId",
optionLabel: "confValue", optionLabel: "confValue",
optionsName: "signerTypeOpt" optionsName: "signerTypeOpt"
},
{
label: "内部主体",
name: "contractOrg",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "contractOrgOpt"
} }
], ],
baseData: { baseData: {
...@@ -656,7 +673,9 @@ export default { ...@@ -656,7 +673,9 @@ export default {
oaFlowPaymentStatusOpt: deepClone(oaFlowPaymentStatusOpt), oaFlowPaymentStatusOpt: deepClone(oaFlowPaymentStatusOpt),
electronicContractOpt: deepClone(electronicContractOpt), electronicContractOpt: deepClone(electronicContractOpt),
paymentMethodOpt: deepClone(paymentMethodOpt), paymentMethodOpt: deepClone(paymentMethodOpt),
signerTypeOpt: deepClone(signerTypeOpt) signerTypeOpt: deepClone(signerTypeOpt),
wechatTypeOpt: deepClone(wechatTypeOpt),
contractOrgOpt: deepClone(contractOrgOpt)
}, },
fileInfo: null, fileInfo: null,
fileVisible: false, fileVisible: false,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!