You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
722 lines
28 KiB
722 lines
28 KiB
<template>
|
|
<div class="app-container">
|
|
<div v-show="viewState == 1">
|
|
<div class="tab-header webtop">
|
|
<div>{{ viewTitle }}</div>
|
|
<div>
|
|
<el-button type="primary" size="small" @click="openCountersign('加签')">加 签</el-button>
|
|
<el-button type="primary" size="small" @click="openAgree('同意')">同 意</el-button>
|
|
<el-button type="danger" size="small" @click="openReject('驳回')">驳 回</el-button>
|
|
<el-button type="danger" size="small" @click="openStop('终止')">终 止</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="">
|
|
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
|
|
<div style="font-size: 16px;text-align: right">金额单位:元</div>
|
|
<el-row style="border-top: 1px solid #e0e3eb">
|
|
<el-col :span="8">
|
|
<div class="span-sty">申请部门</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createDept }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">申请人</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createByName }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">申请日期</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createTime }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">车架号</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.vinNo }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">车牌号</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.vehMark }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-form-item>
|
|
<span style="margin-left: 10px;color: #20a0ff" @click="lookCSJL(formobj.csjlSid)">催收记录</span><span style="margin-left: 10px;color: #20a0ff" @click="lookJRFA(formobj.jrfaSid)">金融方案</span>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">客户名称</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">贷款人</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanName }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">贷款合同编号</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanContractNo }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资方</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.bankName }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资方合同编号</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.bankContractNo }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">结清日期</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.settingDate }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">公司当前逾期月还</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.overdueMonthPrice }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">公司当期未到期月还</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.currentNotDuePrice }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">公司未到期金额</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.notDuePrice }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty">备注</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row v-if="formobj.showHg">
|
|
<el-col :span="16">
|
|
<div class="span-sty">回购申请</div>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">预结清日期</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.settingDateBe }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<div class="title" style="display: flex;flex-direction: row;justify-content: space-between;align-items: center">
|
|
<div>资方结清费用</div>
|
|
<div>
|
|
<span style="margin-right: 10px">贷款保证金: {{ formobj.loanSettleBankCostVo.loanDeposit }}</span>
|
|
<span>是否抵顶: {{ formobj.loanSettleBankCostVo.topping ? '是' : !formobj.loanSettleBankCostVo.topping ? '否' : '' }}</span>
|
|
</div>
|
|
</div>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<el-form-item><span style="color: red;font-weight: bold">注:若客户结清款项需要直还资方的,必须在平台操作直还划扣审批流程后,才能发起结清申请。</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资方逾期月还</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleBankCostVo.price }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资方当期未到期月还</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleBankCostVo.currentNotDuePrice }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资方未到期金额</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleBankCostVo.notDuePrice }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资方逾期利息</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleBankCostVo.bankInterest }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资方名义价</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleBankCostVo.bankNominalPrice }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资方合同违约金</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleBankCostVo.bankContractLiquidated }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资方其他应收</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleBankCostVo.bankOtherReceivable }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="16">
|
|
<div class="span-sty">其他应收说明</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleBankCostVo.otherReceivableRemarks }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资方结清金额</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleBankCostVo.bankSettlePrice }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资方收款账号</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleBankCostVo.bankAccount }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资方收款账户</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleBankCostVo.accountName }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty">附件</div>
|
|
<el-form-item>
|
|
<el-image class="addinputInfo" style="width: 150px;height: 150px" v-for="(item, index) in formobj.loanSettleBankCostVo.filesList" :key="index" :src="item" :preview-src-list="formobj.loanSettleBankCostVo.filesList" />
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<div class="title" style="display: flex;flex-direction: row;justify-content: space-between;align-items: center">
|
|
<div>公司结清费用</div>
|
|
<div>贷款保证金:<span>{{ formobj.loanSettleCompanyCostVo.loanDeposit }}</span></div>
|
|
</div>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">公司逾期月还</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyCostVo.overduePrice }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">垫资方逾期利息</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyCostVo.putBankInterest }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资金占用费</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyCostVo.funfCost }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资方逾期利息</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyCostVo.bankOverInterest }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">公司当期未到期月还</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyCostVo.companyCurrentNotPrice }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">公司未到期金额</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyCostVo.bankNotPrice }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">贷款保证金扣罚金额</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyCostVo.deductionAmount }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">名义价</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyCostVo.companyNominalPrice }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">合同违约金</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyCostVo.contractLiquidated }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">公司其他费用</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyCostVo.companyOtherPrice }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="16">
|
|
<div class="span-sty">其他费用说明</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyCostVo.otherCostRemarks }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty">公司正常结清合计</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyCostVo.settleAll }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row v-if="formobj.showHg">
|
|
<el-col :span="24">
|
|
<div class="span-sty">截止当前资金占用费</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyCostVo.fundAll }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<div class="title">公司结清费用减免情况</div>
|
|
<div v-if="formobj.trueReduction">
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">资金占用费减免</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyReductionVo.fundPenalty }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">贷款保证金扣减减免</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyReductionVo.depositPenalty }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">其他费用减免</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyReductionVo.otherCost }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">公司未到期利息减免</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyReductionVo.notDuePriceRelief }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="16">
|
|
<div class="span-sty">减免依据(资方未到期利息减免)</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyReductionVo.reliefBasis }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty">公司减免后结清合计</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyReductionVo.amountTo }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
</div>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty">结清利润</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanSettleCompanyReductionVo.profit }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<!-- 查看催收记录 -->
|
|
<vehiclecollectionrecords v-show="viewState == 2" ref="divCollection" @doback="resetState"/>
|
|
<!-- 查看金融方案 -->
|
|
<financialschemeInfo v-show="viewState == 3" ref="divFinancial" @doback="resetState"/>
|
|
<!-- 选择待办人 的弹出框-->
|
|
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%">
|
|
<el-form class="formadd" >
|
|
<el-row v-show="countersignLink" style="border-top: 1px solid #e0e3eb">
|
|
<el-col :span="4" class="tleftb">
|
|
<span class="icon">*</span>加签人员:
|
|
</el-col>
|
|
<el-col :span="20">
|
|
<el-form-item>
|
|
<el-select v-model="countersign.assignee" placeholder="请选择" filterable>
|
|
<el-option v-for="item in options" :key="item.userSid" :label="item.staffName" :value="item.userSid">
|
|
</el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row v-show="currentLink" style="border-top: 1px solid #e0e3eb">
|
|
<el-col :span="4" class="tleftb">
|
|
<span>当前环节:</span>
|
|
</el-col>
|
|
<el-col :span="20">
|
|
<el-form-item><span>{{ current.taskName }}->{{ nextNode.name }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row :class="{rowClass:!currentLink}">
|
|
<el-col :span="4" class="tleftb">
|
|
<span>意见:</span>
|
|
</el-col>
|
|
<el-col :span="20">
|
|
<el-form-item><el-input size="small" v-model="dialogList.comment" placeholder="审批意见" class="addinputw" type="textarea" :autosize="{ minRows: 1, maxRows: 10}" clearable ></el-input></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<div style="text-align:center;margin-top: 20px;">
|
|
<el-button type="primary" size="mini" @click="reject">确 定</el-button>
|
|
<el-button type="info " size="mini" @click="nodeDialogVisible = false">取 消</el-button>
|
|
</div>
|
|
</el-form>
|
|
</el-dialog>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import req from '@/api/settle/settle'
|
|
import vehiclecollectionrecords from '../cuishoucuoshiFlow/relation/vehiclecollectionrecords'
|
|
import financialschemeInfo from '../publicPage/financialschemeInfo'
|
|
import { selectStaffListss } from '@/api/Common/dictcommons'
|
|
|
|
export default {
|
|
name: 'SettleDaiBan',
|
|
components: {
|
|
vehiclecollectionrecords,
|
|
financialschemeInfo
|
|
},
|
|
data() {
|
|
return {
|
|
viewTitle: '',
|
|
viewState: 1,
|
|
tableKey: 1,
|
|
index: 0,
|
|
formobj: {
|
|
bankContractNo: '',
|
|
bankName: '',
|
|
bankSid: '',
|
|
busSid: '',
|
|
busVinSid: '',
|
|
createByName: '',
|
|
createDept: '',
|
|
createDeptSid: '',
|
|
createTime: '',
|
|
currentNotDuePrice: '',
|
|
customerName: '',
|
|
customerSid: '',
|
|
loanContractNo: '',
|
|
loanName: '',
|
|
loanSettleBankCostVo: {
|
|
bankContractLiquidated: '',
|
|
bankInterest: '',
|
|
bankNominalPrice: '',
|
|
bankOtherReceivable: '',
|
|
bankSettlePrice: '',
|
|
currentNotDuePrice: '',
|
|
filesList: [],
|
|
notDuePrice: '',
|
|
otherReceivableRemarks: '',
|
|
price: '',
|
|
topping: '',
|
|
loanDeposit: '',
|
|
bankAccount: '',
|
|
accountName: ''
|
|
},
|
|
loanSettleCompanyCostVo: {
|
|
bankNotPrice: '',
|
|
bankOverInterest: '',
|
|
companyCurrentNotPrice: '',
|
|
companyNominalPrice: '',
|
|
companyOtherPrice: '',
|
|
contractLiquidated: '',
|
|
deductionAmount: '',
|
|
fundAll: '',
|
|
funfCost: '',
|
|
loanDeposit: '',
|
|
otherCostRemarks: '',
|
|
overduePrice: '',
|
|
putBankInterest: '',
|
|
settleAll: ''
|
|
},
|
|
loanSettleCompanyReductionVo: {
|
|
amountTo: '',
|
|
depositPenalty: '',
|
|
fundPenalty: '',
|
|
otherCost: '',
|
|
profit: '',
|
|
notDuePriceRelief: '',
|
|
reliefBasis: ''
|
|
},
|
|
loanSid: '',
|
|
notDuePrice: '',
|
|
orgPath: '',
|
|
overdueMonthPrice: '',
|
|
saleOrderSid: '',
|
|
showHg: false, // 是否展示回购字段
|
|
buyBackMoney: '', // 回购后的还款金额
|
|
settingDate: '',
|
|
settingDateBe: '',
|
|
sid: '',
|
|
trueReduction: false,
|
|
useOrgName: '',
|
|
useOrgSid: '',
|
|
userSid: '',
|
|
vehMark: '',
|
|
vinNo: '',
|
|
remarks: ''
|
|
},
|
|
rules: {},
|
|
options: [],
|
|
operation: '', // 点击操作按钮
|
|
dialogList: {
|
|
comment: ''
|
|
},
|
|
startTask: true,
|
|
current: {
|
|
taskDefKey: '',
|
|
taskName: '' // 当前环节名称
|
|
},
|
|
nextNode: {}, // 下一环节
|
|
nodeDialogVisible: false,
|
|
currentLink: true,
|
|
countersignLink: false,
|
|
// 环节所需参数
|
|
linkByParameter: {
|
|
businessSid: '',
|
|
comment: '',
|
|
instanceId: '',
|
|
taskId: '',
|
|
orgSidPath: '',
|
|
taskDefKey: '',
|
|
userSid: ''
|
|
},
|
|
// 加签按钮所需参数
|
|
countersign: {
|
|
taskId: '',
|
|
assignee: '',
|
|
userSid: '',
|
|
instanceId: '',
|
|
views: ''
|
|
}
|
|
}
|
|
},
|
|
created() {
|
|
console.log('url:' + window.location.href)
|
|
var one = window.location.href.indexOf('&data') + 6
|
|
const data = window.location.href.substr(one) // url解码unescape()已从web中移除,尽量不使用
|
|
const obj = JSON.parse(decodeURIComponent(data))
|
|
console.log('iframe页面获取的obj:', obj)
|
|
// 点击(同意、终止、驳回、驳回)操作时所需的参数
|
|
this.linkByParameter.businessSid = obj.businessSid
|
|
this.linkByParameter.instanceId = obj.instanceId
|
|
this.linkByParameter.taskId = obj.taskId
|
|
this.linkByParameter.taskDefKey = obj.taskDefKey
|
|
// this.linkByParameter.orgSidPath = window.sessionStorage.getItem('orgSidPath')
|
|
this.linkByParameter.userSid = window.sessionStorage.getItem('userSid')
|
|
this.current.taskDefKey = obj.taskDefKey
|
|
this.current.taskName = obj.taskName
|
|
// 加签参数
|
|
this.countersign.taskId = obj.taskId
|
|
this.countersign.userSid = window.sessionStorage.getItem('userSid')
|
|
this.countersign.instanceId = obj.instanceId
|
|
// 加载表单数据
|
|
this.showInfo(obj.businessSid)
|
|
},
|
|
mounted() {
|
|
window.parent.postMessage({
|
|
cmd: 'returnHeight',
|
|
params: {
|
|
// 告诉父级页面,子页面的弹框高度。
|
|
code: 2,
|
|
data: 500 + 'px'
|
|
}
|
|
}, '*')
|
|
},
|
|
methods: {
|
|
showInfo(sid) {
|
|
this.viewTitle = '结清申请详情'
|
|
this.$nextTick(() => {
|
|
this.$refs['form_obj'].clearValidate()
|
|
})
|
|
req.fetchBySid({ busVinSid: '', orgPath: '', sid: sid, userSid: '' }).then((res) => {
|
|
if (res.success) {
|
|
this.formobj = res.data
|
|
if (this.formobj.loanSettleBankCostVo.filesList.length > 0) {
|
|
const aa = []
|
|
this.formobj.loanSettleBankCostVo.filesList.forEach((e) => {
|
|
aa.push(e.url)
|
|
})
|
|
this.formobj.loanSettleBankCostVo.filesList = aa
|
|
}
|
|
}
|
|
})
|
|
selectStaffListss().then((res) => {
|
|
if (res.success) {
|
|
this.options = res.data
|
|
}
|
|
})
|
|
},
|
|
// 查看催收记录
|
|
lookCSJL(sid) {
|
|
if (sid !== '') {
|
|
this.viewState = 2
|
|
this.$refs['divCollection'].showInfo({ saleVehSid: this.formobj.busVinSid })
|
|
} else {
|
|
this.$message({ showClose: true, type: 'error', message: '暂无催收记录' })
|
|
}
|
|
},
|
|
lookJRFA(sid) {
|
|
if (sid !== '') {
|
|
req.selectDetailss({ businessSid: this.formobj.saleOrderSid }).then((res) => {
|
|
if (res.success) {
|
|
this.viewState = 3
|
|
this.$refs['divFinancial'].showInfo(res.data, '03')
|
|
}
|
|
})
|
|
} else {
|
|
this.$message({ showClose: true, type: 'error', message: '暂无金融方案' })
|
|
}
|
|
},
|
|
resetState() {
|
|
this.viewState = 1
|
|
},
|
|
// 加签
|
|
openCountersign(val) {
|
|
this.operation = val
|
|
this.currentLink = true
|
|
this.countersignLink = true
|
|
this.dialogList.comment = ''
|
|
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => {
|
|
if (resp.success) {
|
|
var arr = resp.data
|
|
this.nextNode = arr[0]
|
|
this.nodeDialogVisible = true
|
|
}
|
|
this.submitdisabled = false
|
|
})
|
|
},
|
|
// 同意
|
|
openAgree(val) {
|
|
this.operation = val
|
|
this.currentLink = true
|
|
this.countersignLink = false
|
|
this.dialogList.comment = '同意'
|
|
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => {
|
|
if (resp.success) {
|
|
var arr = resp.data
|
|
this.nextNode = arr[0]
|
|
this.nodeDialogVisible = true
|
|
}
|
|
this.submitdisabled = false
|
|
})
|
|
},
|
|
// 驳回
|
|
openReject(val) {
|
|
this.operation = val
|
|
this.currentLink = true
|
|
this.countersignLink = false
|
|
this.dialogList.comment = ''
|
|
req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => {
|
|
if (resp.success) {
|
|
var arr = resp.data
|
|
this.nextNode = arr[0]
|
|
this.nodeDialogVisible = true
|
|
}
|
|
this.submitdisabled = false
|
|
})
|
|
},
|
|
// 终止
|
|
openStop(val) {
|
|
this.operation = val
|
|
this.currentLink = false
|
|
this.countersignLink = false
|
|
this.dialogList.comment = ''
|
|
this.nodeDialogVisible = true
|
|
},
|
|
reject() {
|
|
if (this.operation === '同意') {
|
|
this.handleAgree()
|
|
} else if (this.operation === '驳回') {
|
|
if (this.dialogList.comment === '') {
|
|
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
|
|
} else {
|
|
this.handleReject()
|
|
}
|
|
} else if (this.operation === '终止') {
|
|
if (this.dialogList.comment === '') {
|
|
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
|
|
} else {
|
|
this.handleStop()
|
|
}
|
|
} else if (this.operation === '加签') {
|
|
this.handleCountersign()
|
|
}
|
|
},
|
|
/** 加签 */
|
|
handleCountersign() {
|
|
if (this.countersign.assignee === '') {
|
|
this.$message({ showClose: true, type: 'error', message: '请选择加签人员' })
|
|
return
|
|
}
|
|
if (this.dialogList.comment === '') {
|
|
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
|
|
return
|
|
}
|
|
this.countersign.views = this.dialogList.comment
|
|
req.delegate(this.countersign).then((response) => {
|
|
if (response.success) {
|
|
this.$notify({
|
|
title: '提示',
|
|
message: '执行成功',
|
|
type: 'success',
|
|
duration: 2000
|
|
})
|
|
this.nodeDialogVisible = false
|
|
// 子页面向父级页面传递值
|
|
window.parent.postMessage({
|
|
cmd: 'returnHeight',
|
|
params: {
|
|
// 操作成功,告诉父级页面关闭弹框
|
|
code: 1
|
|
}
|
|
}, '*')
|
|
}
|
|
})
|
|
},
|
|
/** 同意任务 */
|
|
handleAgree() {
|
|
this.linkByParameter.comment = this.dialogList.comment
|
|
req.complete(this.linkByParameter).then((response) => {
|
|
if (response.success) {
|
|
this.$notify({
|
|
title: '提示',
|
|
message: '执行成功',
|
|
type: 'success',
|
|
duration: 2000
|
|
})
|
|
this.nodeDialogVisible = false
|
|
// 子页面向父级页面传递值
|
|
window.parent.postMessage({
|
|
cmd: 'returnHeight',
|
|
params: {
|
|
// 操作成功,告诉父级页面关闭弹框
|
|
code: 1
|
|
}
|
|
}, '*')
|
|
}
|
|
})
|
|
},
|
|
/** 驳回任务 */
|
|
handleReject() {
|
|
this.linkByParameter.comment = this.dialogList.comment
|
|
req.reject(this.linkByParameter).then((response) => {
|
|
if (response.success) {
|
|
this.$notify({
|
|
title: '提示',
|
|
message: '执行成功',
|
|
type: 'success',
|
|
duration: 2000
|
|
})
|
|
this.nodeDialogVisible = false
|
|
// 子页面向父级页面传递值
|
|
window.parent.postMessage({
|
|
cmd: 'returnHeight',
|
|
params: {
|
|
// 操作成功,告诉父级页面关闭弹框
|
|
code: 1
|
|
}
|
|
}, '*')
|
|
}
|
|
})
|
|
},
|
|
/** 终止任务 */
|
|
handleStop() {
|
|
this.linkByParameter.comment = this.dialogList.comment
|
|
req.breakProcess(this.linkByParameter).then((response) => {
|
|
if (response.success) {
|
|
this.$notify({
|
|
title: '提示',
|
|
message: '执行成功',
|
|
type: 'success',
|
|
duration: 2000
|
|
})
|
|
this.nodeDialogVisible = false
|
|
// 子页面向父级页面传递值
|
|
window.parent.postMessage({
|
|
cmd: 'returnHeight',
|
|
params: {
|
|
// 操作成功,告诉父级页面关闭弹框
|
|
code: 1
|
|
}
|
|
}, '*')
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.span-sty {
|
|
width: 200px !important;
|
|
}
|
|
.addinputInfo {
|
|
margin-left: 190px !important;
|
|
}
|
|
.rowClass{
|
|
border-top: 1px solid #E0E3EB;
|
|
}
|
|
</style>
|
|
|