Browse Source

Merge remote-tracking branch 'origin/master'

master
fanzongzhe 2 years ago
parent
commit
7c85af73d9
  1. 10
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xiaoshoudingdanFlow/relation/financialschemeEdit.vue
  2. 151
      anrui-buscenter/anrui-finmanage-ui/src/api/anruifinmanagement/arrearsbilling.js
  3. 8
      anrui-buscenter/anrui-finmanage-ui/src/api/anruifinmanagement/finwaitinvoiceapply.js
  4. 43
      anrui-buscenter/anrui-finmanage-ui/src/router/modules/codemenu.js
  5. 520
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/arrearsbilling/arrearsbilling.vue
  6. 681
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/arrearsbilling/arrearsbillingAdd.vue
  7. 290
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/arrearsbilling/arrearsbillingInfo.vue
  8. 184
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/arrearsbilling/relation/selectVehicle.vue
  9. 46
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/backups/finginvoiceapply.vue
  10. 85
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/backups/finginvoiceapplyAdd.vue
  11. 41
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/backups/finginvoiceapplyInfo.vue
  12. 31
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/kaipiaoguanliFlow/finginvoiceapplyDaiBanInfo.vue
  13. 79
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/kaipiaoguanliFlow/finginvoiceapplyEdit.vue
  14. 31
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/kaipiaoguanliFlow/finginvoiceapplyYiBanInfo.vue
  15. 483
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/arrearsbillingByDivisionDaiBanInfo.vue
  16. 483
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/arrearsbillingDaiBanInfo.vue
  17. 604
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/arrearsbillingEdit.vue
  18. 358
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/arrearsbillingYiBanInfo.vue
  19. 184
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/relation/selectVehicle.vue

10
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xiaoshoudingdanFlow/relation/financialschemeEdit.vue

@ -33,11 +33,11 @@
<el-form-item prop="mainVehicleAmount">
<div class="addinputInfo">
<span><span class="icon">*</span>主车发票价<el-input v-model="formobj.mainVehicleAmount" clearable style="width: 100px" placeholder="" @keyup.native="formobj.mainVehicleAmount = oninput(formobj.mainVehicleAmount, 2)"/></span>
<span style="padding-left: 5px"><el-checkbox v-model="formobj.accessoriesAmountCb" style="padding-right: 5px"/>融资票据<el-input v-model="formobj.accessoriesAmount" clearable style="width: 100px" placeholder="" @keyup.native="formobj.accessoriesAmount = oninput(formobj.accessoriesAmount, 2)"/></span>
<span style="padding-left: 5px"><el-checkbox v-model="formobj.trailerAmountCb" style="padding-right: 5px"/>挂车<el-input v-model="formobj.trailerAmount" clearable style="width: 100px" placeholder="" @keyup.native="formobj.trailerAmount = oninput(formobj.trailerAmount, 2)"/></span>
<span style="padding-left: 5px"><el-checkbox v-model="formobj.premiumCb" style="padding-right: 5px"/>保险<el-input v-model="formobj.premium" clearable style="width: 100px" placeholder="" @keyup.native="formobj.premium = oninput(formobj.premium, 2)"/></span>
<span style="padding-left: 5px"><el-checkbox v-model="formobj.purchaseTaxCb" style="padding-right: 5px"/>购置税<el-input v-model="formobj.purchaseTax" clearable style="width: 100px" placeholder="" @keyup.native="formobj.purchaseTax = oninput(formobj.purchaseTax, 2)"/></span>
<span style="padding-left: 5px"><el-checkbox v-model="formobj.vehDamageFloatCb" style="padding-right: 5px"/>车损上浮<el-input v-model="formobj.vehDamageFloat" clearable style="width: 100px" placeholder="" @keyup.native="formobj.vehDamageFloat = oninput(formobj.vehDamageFloat, 2)"/></span>
<span style="padding-left: 5px"><el-checkbox v-model="formobj.accessoriesAmountCb" style="padding-right: 5px"/>融资票据<el-input :disabled="formobj.accessoriesAmountCb" v-model="formobj.accessoriesAmount" clearable style="width: 100px" placeholder="" @keyup.native="formobj.accessoriesAmount = oninput(formobj.accessoriesAmount, 2)"/></span>
<span style="padding-left: 5px"><el-checkbox v-model="formobj.trailerAmountCb" style="padding-right: 5px"/>挂车<el-input :disabled="formobj.trailerAmountCb" v-model="formobj.trailerAmount" clearable style="width: 100px" placeholder="" @keyup.native="formobj.trailerAmount = oninput(formobj.trailerAmount, 2)"/></span>
<span style="padding-left: 5px"><el-checkbox v-model="formobj.premiumCb" style="padding-right: 5px"/>保险<el-input :disabled="formobj.premiumCb" v-model="formobj.premium" clearable style="width: 100px" placeholder="" @keyup.native="formobj.premium = oninput(formobj.premium, 2)"/></span>
<span style="padding-left: 5px"><el-checkbox v-model="formobj.purchaseTaxCb" style="padding-right: 5px"/>购置税<el-input :disabled="formobj.purchaseTaxCb" v-model="formobj.purchaseTax" clearable style="width: 100px" placeholder="" @keyup.native="formobj.purchaseTax = oninput(formobj.purchaseTax, 2)"/></span>
<span style="padding-left: 5px"><el-checkbox v-model="formobj.vehDamageFloatCb" style="padding-right: 5px"/>车损上浮<el-input :disabled="formobj.vehDamageFloatCb" v-model="formobj.vehDamageFloat" clearable style="width: 100px" placeholder="" @keyup.native="formobj.vehDamageFloat = oninput(formobj.vehDamageFloat, 2)"/></span>
</div>
</el-form-item>
</el-col>

151
anrui-buscenter/anrui-finmanage-ui/src/api/anruifinmanagement/arrearsbilling.js

@ -0,0 +1,151 @@
import request from '@/utils/request'
// 待开票车辆条件查询 (已改)
export function listPage(data) {
return request({
url: '/fin/v1/finbillapplication/listPageQK',
data: data,
method: 'post',
headers: {
'Content-Type': 'application/json'
}
})
}
// 选择合同
export function selectByStaffSid(data) {
return request({
url: '/base/v1/commoncontract/selectByStaffSid',
data: data,
method: 'post',
headers: {
'Content-Type': 'application/json'
}
})
}
// 选择车辆
export function vehicleQKKPList(data) {
return request({
url: '/base/v1/basevehicle/vehicleQKKPList',
data: data,
method: 'post',
headers: {
'Content-Type': 'application/json'
}
})
}
// 待开票车辆条件查询 (已改)
export function deleteBySid(data) {
return request({
url: '/fin/v1/finbillapplication/delBySids',
data: data,
method: 'DELETE',
headers: {
'Content-Type': 'application/json'
}
})
}
// 详情回显 获取一条记录
export function fetchDetailsBySid(data) {
return request({
url: '/fin/v1/finbillapplication/fetchDetailsBySid/' + data,
method: 'get'
})
}
// 判断申请中单台开票金额是否可以填写(只允许第一次填写)
export function fetchByContractNo(data) {
return request({
url: '/buscenter/v1/bussalesorder/fetchByContractNo/' + data,
method: 'get'
})
}
// 开票申请--保存
export function saveOrUpdate(data) {
return request({
url: '/fin/v1/finbillapplication/saveQK',
data: data,
method: 'post',
headers: {
'Content-Type': 'application/json'
}
})
}
// 开票申请--提交
export function submit(data) {
return request({
url: '/fin/v1/finbillapplication/submitFinBillApplicationQK',
data: data,
method: 'post',
headers: {
'Content-Type': 'application/json'
}
})
}
// 流程审批(同意)
export function complete(data) {
return request({
url: '/fin/v1/finbillapplication/completeQK',
data: data,
method: 'post'
})
}
// 流程审批(同意)
export function completeByDivision(data) {
return request({
url: 'fin/v1/finbillapplication/companyToDivisionOperateQK',
data: data,
method: 'post'
})
}
// 流程审批(驳回)
export function reject(data) {
return request({
url: '/fin/v1/finbillapplication/rejectQK',
data: data,
method: 'post'
})
}
// 流程审批(撤回)
export function revokeProcess(data) {
return request({
url: '/fin/v1/finbillapplication/revokeProcessQK',
data: data,
method: 'post'
})
}
// 流程审批(终止)
export function breakProcess(data) {
return request({
url: '/fin/v1/finbillapplication/breakProcessQK',
data: data,
method: 'post'
})
}
// 审批流程(同意)获取下一环节
export function getNextNodesForSubmit(data) {
return request({
url: '/fin/v1/finbillapplication/getNextNodesForSubmitQK',
method: 'get',
params: data
})
}
// 审批流程(驳回)获取上一环节
export function getPreviousNodesForReject(data) {
return request({
url: '/fin/v1/finbillapplication/getPreviousNodesForRejectQK',
method: 'get',
params: data
})
}

8
anrui-buscenter/anrui-finmanage-ui/src/api/anruifinmanagement/finwaitinvoiceapply.js

@ -12,6 +12,14 @@ export function listPage(data) {
})
}
// 判断申请中单台开票金额是否可以填写(只允许第一次填写)
export function fetchByContractNo(data) {
return request({
url: '/buscenter/v1/bussalesorder/fetchByContractNo/' + data,
method: 'get'
})
}
// 详情回显 获取一条记录
export function fetchDetailsBySid(data) {
return request({

43
anrui-buscenter/anrui-finmanage-ui/src/router/modules/codemenu.js

@ -186,6 +186,21 @@ const codemenu = [
meta: { title: '开票管理', noCache: true }
}]
},
// 开票信息管理
{
path: '/finginvoiceapply',
component: Layout,
redirect: '/finginvoiceapply',
meta: {
title: '欠款开票申请管理'
},
children: [{
path: '/anruifinmanagement/finginvoiceapply/arrearsbilling',
component: () => import('@/views/anruifinmanagement/finginvoiceapply/arrearsbilling/arrearsbilling.vue'),
name: 'ArrearsBilling',
meta: { title: '欠款开票申请管理', noCache: true }
}]
},
// 费用申请管理编辑
{
path: '/feiyongguanliFlow/feiyongguanli/feiyongEdit',
@ -248,6 +263,34 @@ const codemenu = [
component: () =>
import('@/views/workFlow/kaipiaoguanliFlow/finginvoiceapplyYiBanInfo.vue'),
name: 'finginvoiceapplyYiBanInfo'
},
// 欠款开票申请管理编辑
{
path: '/qiankuankaipiaoFlow/arrearsbillingEdit',
component: () =>
import('@/views/workFlow/qiankuankaipiaoFlow/arrearsbillingEdit.vue'),
name: 'arrearsbillingEdit'
},
// 欠款开票申请管理待办详情
{
path: '/qiankuankaipiaoFlow/arrearsbillingDaiBanInfo',
component: () =>
import('@/views/workFlow/qiankuankaipiaoFlow/arrearsbillingDaiBanInfo.vue'),
name: 'arrearsbillingDaiBanInfo'
},
// 欠款开票申请管理待办详情--跨事业部
{
path: '/qiankuankaipiaoFlow/arrearsbillingByDivisionDaiBanInfo',
component: () =>
import('@/views/workFlow/qiankuankaipiaoFlow/arrearsbillingByDivisionDaiBanInfo.vue'),
name: 'arrearsbillingByDivisionDaiBanInfo'
},
// 欠款开票申请管理已办详情
{
path: '/qiankuankaipiaoFlow/arrearsbillingYiBanInfo',
component: () =>
import('@/views/workFlow/qiankuankaipiaoFlow/arrearsbillingYiBanInfo.vue'),
name: 'arrearsbillingYiBanInfo'
}
]
export default codemenu

520
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/arrearsbilling/arrearsbilling.vue

@ -0,0 +1,520 @@
<template>
<div class="app-container">
<!--列表页面-->
<div v-show="viewState == 1">
<button-bar view-title="欠款开票申请管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<!--Start查询列表部分-->
<div class="main-content">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="110px" class="tab-header">
<el-form-item label="销售类型">
<el-select placeholder="请选择" v-model="listQuery.params.saleTypeKey">
<el-option v-for="item in payType" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="合同编号">
<el-input v-model="listQuery.params.contractNo" placeholder="" clearable/>
</el-form-item>
<el-form-item label="开票单位">
<el-input v-model="listQuery.params.openTickUnitName" placeholder="" clearable/>
</el-form-item>
<el-form-item label="客户名称">
<el-input v-model="listQuery.params.customerName" placeholder="" clearable/>
</el-form-item>
<el-form-item label="车型">
<el-input v-model="listQuery.params.modelName" placeholder="" clearable/>
</el-form-item>
<el-form-item label="发起日期">
<el-date-picker v-model="listQuery.params.applyStartDate" type="date" placeholder="选择日期"></el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.applyEndDate" type="date" placeholder="选择日期"></el-date-picker>
</el-form-item>
<el-form-item label="申请人">
<el-input v-model="listQuery.params.createByName" placeholder="" clearable/>
</el-form-item>
<el-form-item label="承诺回款日期">
<el-date-picker v-model="listQuery.params.returnedMoneyStartDate" type="date" placeholder="选择日期"></el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.returnedMoneyEndDate" type="date" placeholder="选择日期"></el-date-picker>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button>
</div>
</div>
</div>
<!--End查询列表部分-->
<div class="listtop">
<div class="tit">欠款开票申请列表</div>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<!--Start 主页面主要部分 -->
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50"/>
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center"/>
<el-table-column label="操作" width="180px" align="center">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="toEdit(scope.row)" :disabled="scope.row.nodeState =='发起申请' ? false : scope.row.nodeState == '待提交' ? false : true">办理</el-button>
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button>
</template>
</el-table-column>
<el-table-column label="状态" width="180px" header-align="center">
<template slot-scope="scope">
<span v-if="scope.row.nodeState=='待提交'" type="primary" size="mini">待提交</span>
<span v-else @click="flowRecord(scope.row)" class="bluezi">{{ scope.row.nodeState }}</span>
</template>
</el-table-column>
<el-table-column label="销售类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.saleTypeValue }}</span>
</template>
</el-table-column>
<el-table-column label="合同编号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.contractNo }}</span>
</template>
</el-table-column>
<el-table-column label="开票单位" align="center">
<template slot-scope="scope">
<span>{{ scope.row.openTickUnitName }}</span>
</template>
</el-table-column>
<el-table-column label="客户名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.customerName }}</span>
</template>
</el-table-column>
<el-table-column label="车型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.modelName }}</span>
</template>
</el-table-column>
<el-table-column label="台数" align="center">
<template slot-scope="scope">
<span>{{ scope.row.num }}</span>
</template>
</el-table-column>
<el-table-column label="欠款金额" align="center">
<template slot-scope="scope">
<span>{{ scope.row.arrearsMoney }}</span>
</template>
</el-table-column>
<el-table-column label="承诺回款日期" align="center" width="150">
<template slot-scope="scope">
<span>{{ scope.row.returnedMoneyDate }}</span>
</template>
</el-table-column>
<el-table-column label="原因" align="center">
<template slot-scope="scope">
<span>{{ scope.row.arrearsOpenYYValue }}</span>
</template>
</el-table-column>
<el-table-column label="申请人" align="center">
<template slot-scope="scope">
<span>{{ scope.row.createByName }}</span>
</template>
</el-table-column>
<el-table-column label="申请日期" align="center">
<template slot-scope="scope">
<span>{{ scope.row.applyDate }}</span>
</template>
</el-table-column>
</el-table>
</div>
<!--End 主页面主要部分-->
<div class="pages">
<div class="tit"/>
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<!--End查询列表部分-->
</div>
</div>
<!--开票申请新增及修改列表部分 -->
<arrearsbillingAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/>
<!--开票申请详情列表部分-->
<arrearsbillingInfo v-show="viewState == 4" ref="divInfo" @doback="resetState" />
<el-dialog title="选择合同" :visible.sync="dialogVisible" width="70%">
<div>
<el-form ref="multipleTable" :inline="true" :model="contractList" class="vinNoForm" label-width="100px">
<el-col :span="14">
<el-form-item label="客户名称:">
<el-input v-model="contractList.params.customerName" clearable class="addinputw" placeholder="车架号"/>
</el-form-item>
<el-form-item label="合同编号:">
<el-input v-model="contractList.params.contractNo" clearable class="addinputw" placeholder="车架号"/>
</el-form-item>
</el-col>
<el-col :span="10" class="dialogBtn">
<el-button type="primary" size="small" @click="handleSelect">查询</el-button>
</el-col>
</el-form>
</div>
<el-table :key="contractKey" v-loading="contractLoading" :data="listContract" border fit highlight-current-row style="width: 100%;">
<el-table-column :index="contractIndexMethod" fixed align="center" label="序号" type="index" width="80"/>
<el-table-column label="操作" fixed align="center" width="80">
<template slot-scope="scope">
<el-button size="mini" type="primary" @click="handleChoose(scope.row)">选择</el-button>
</template>
</el-table-column>
<el-table-column align="center" label="合同编号" prop="billNo">
<template slot-scope="scope">
<span>{{ scope.row.contractNo }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="客户名称">
<template slot-scope="scope">
<span>{{ scope.row.partyB }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="合同审核日期">
<template slot-scope="scope">
<span>{{ scope.row.createDate }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="车型">
<template slot-scope="scope">
<span>{{ scope.row.modelName }}</span>
</template>
</el-table-column>
</el-table>
<div class="pages">
<div class="tit"/>
<!-- 翻页 -->
<pagination v-show="listContract.length > 0" :limit.sync="contractList.size" :page.sync="contractList.current" :total="contractList.total" class="pagination" @pagination="getContractList"/>
</div>
</el-dialog>
<el-dialog title="" :visible.sync="centerDialogVisible" width="78%" height="1%" :before-close="closeIt" center>
<iframe frameborder="0" id="iframe" style="width:100%;" scrolling="no" :src="this.centerDialogVisible === true ? url :''"></iframe>
</el-dialog>
</div>
</template>
<script>
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import { listPage, deleteBySid, selectByStaffSid } from '@/api/anruifinmanagement/arrearsbilling'
import { typeValues, getOrgSidByPath, selectHaveMessage } from '@/api/jichuxinxi/dictcommons'
import { getStorage } from '@/utils/auth'
import arrearsbillingAdd from './arrearsbillingAdd'
import arrearsbillingInfo from './arrearsbillingInfo'
export default {
name: 'ArrearsBilling',
components: {
Pagination,
pageye,
ButtonBar,
arrearsbillingAdd,
arrearsbillingInfo
},
data() {
return {
url: '',
dialogHeight: '80%',
centerDialogVisible: false,
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
viewState: 1, // 1 2 3 4
tableKey: 0,
contractKey: 1,
index: 0,
list: [],
sids: [], // SIDs
FormLoading: false,
listLoading: false,
contractLoading: false,
dialogVisible: false,
payType: [],
//
listQuery: {
current: 1,
size: 10,
total: 0,
params: {
applyEndDate: '',
applyStartDate: '',
contractNo: '',
createByName: '',
createBySid: '',
customerName: '',
modelName: '',
openTickUnitName: '',
saleTypeKey: '',
useOrgSid: '',
returnedMoneyEndDate: '',
returnedMoneyStartDate: ''
}
},
listContract: [],
contractList: {
current: 1,
size: 10,
total: 0,
params: {
contractNo: '',
staffSid: '',
customerName: '',
deptSid: ''
}
}
}
},
created() {
//
this.init()
},
mounted() {
// vuewindowpostMessagehandleMessage
window.addEventListener('message', this.handleMessage)
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
async handleMessage(event) {
var code = ''
if (event.data.params !== null && event.data.params !== undefined) {
code = event.data.params.code
}
if (code === 1) {
this.init()
this.centerDialogVisible = false
} else if (code === 2) {
this.dialogHeight = event.data.params.data
this.setIframeHeight(document.getElementById('iframe'))
}
},
closeIt() {
this.url = ''
this.centerDialogVisible = false
},
setIframeHeight(iframe) {
iframe.height = this.dialogHeight
},
flowRecord(row) {
this.centerDialogVisible = true
var params = {
deployId: row.procDefId,
procInsId: row.procInstSid,
token: getStorage()
}
this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params)))
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'doDel':
this.doDel()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
init() {
typeValues({ type: 'purchaseType' }).then((res) => {
if (res.success) {
this.payType = res.data
}
})
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {
this.listQuery.params.useOrgSid = resp.data
this.getList()
}
})
},
// sid
handleSelectionChange(row) {
const aa = []
row.forEach(element => {
aa.push(element.sid)
})
this.sids = aa
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true
this.listQuery.params.createBySid = window.sessionStorage.getItem('userSid')
listPage(this.listQuery).then(response => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
//
handleReset() {
this.listQuery = {
current: 1,
size: 10,
total: 0,
params: {
applyEndDate: '',
applyStartDate: '',
contractNo: '',
createByName: '',
createBySid: '',
customerName: '',
modelName: '',
openTickUnitName: '',
saleTypeKey: '',
useOrgSid: '',
returnedMoneyEndDate: '',
returnedMoneyStartDate: ''
}
}
this.init()
},
getContractList() {
this.contractLoading = true
this.contractList.params.staffSid = window.sessionStorage.getItem('staffSid')
this.contractList.params.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1)
selectByStaffSid(this.contractList).then((response) => {
this.contractLoading = false
if (response.success) {
this.listContract = response.data.records
this.contractList.total = response.data.total
} else {
this.listContract = []
this.contractList.total = 0
}
})
},
handleSelect() {
this.listContract.current = 1
this.getContractList()
},
contractIndexMethod(index) {
var pagestart = (this.contractList.current - 1) * this.contractList.size
var pageindex = index + 1 + pagestart
return pageindex
},
handleChoose(row) {
this.dialogVisible = false
this.viewState = 2
this.$refs['divAdd'].showAdd(row)
},
toAdd() {
selectHaveMessage({ menuUrl: this.$route.path, orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {
this.contractList = {
current: 1,
size: 5,
total: 0,
params: {
contractNo: '',
staffSid: '',
customerName: '',
deptSid: ''
}
}
this.dialogVisible = true
this.getContractList()
}
})
},
toEdit(row) {
this.viewState = 3
this.$refs['divAdd'].showEdit(row)
},
toInfo(row) {
this.viewState = 4
this.$refs['divInfo'].showInfo(row)
},
doDel() {
if (this.sids.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
return
}
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
deleteBySid(this.sids).then(resp => {
if (resp.success) {
this.$message({ type: 'success', message: resp.msg, showClose: true })
}
this.getList()
loading.close()
}).catch(e => {
loading.close()
})
}).catch(() => {
})
},
//
resetState() {
this.viewState = 1
}
}
}
</script>
<style scoped>
</style>

681
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/arrearsbilling/arrearsbillingAdd.vue

@ -0,0 +1,681 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSave()">保存
</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit()">提交
</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<div class="titwu">欠款开票申请单</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<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.deptName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">发起日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyDate }}</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.staffName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">销售部门</div>
<el-form-item><span class="addinputInfo">{{ formobj.saleDeptName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty"><span class="icon">*</span>销售类型</div>
<el-form-item prop="saleTypeValue">
<el-select v-model="formobj.saleTypeValue" placeholder="请选择" @change="changeSaleType" clearable class="addinputInfo">
<el-option v-for="item in saleType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option>
</el-select>
</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.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开票单位</div>
<el-form-item><span class="addinputInfo">{{ formobj.openTickUnitName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">客户名称</div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
</el-row>
<div class="title titleOne">
<div>主车开票信息</div>
<div><el-button type="primary" size="mini" icon="el-icon-plus" class="btntopblueline" @click="addVehicle">选择车辆</el-button></div>
</div>
<el-row>
<el-col :span="8">
<div class="span-sty"><span class="icon">*</span>单台开票金额</div>
<el-form-item prop="oneBillMoney"><el-input v-model="formobj.oneBillMoney" :disabled="moneyEdit" @keyup.native="UpNumber" clearable placeholder="" class="addinputw"/></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty"><span class="icon">*</span>是否领取发票原件</div>
<el-form-item prop="isLQOrigInvoice">
<el-radio-group class="addinputw" style="font-size: 1px" v-model="formobj.isLQOrigInvoice">
<el-radio label="是"></el-radio>
<el-radio label="否"></el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开票名称默认</div>
<el-form-item>
<el-select v-model="formobj.openTickName" placeholder="请选择" @change="changeOpenTick" filterable clearable class="addinputInfo">
<el-option v-for="item in openTick_list" :key="item.sid" :label="item.name" :value="item.name"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-table :key="tableKey" :data="formobj.finBillVehicles" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="合格证状态" align="center">
<template slot-scope="scope">
<span>{{ scope.row.certificateStateValue }}</span>
</template>
</el-table-column>
<el-table-column label="开票类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.billTypeValue }}</span>
</template>
</el-table-column>
<el-table-column label="开票名称" align="center">
<template slot-scope="scope">
<el-select v-model="scope.row.openTickName" placeholder="请选择" @change="changeOpenTickName($event, scope.row)" clearable>
<el-option v-for="item in openTick_list" :key="item.sid" :label="item.name" :value="item.name"></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="开票信息" align="center">
<template slot-scope="scope">
<span>{{ scope.row.openTickRemarks }}</span>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="12">
<div class="span-sty">欠款金额合计</div>
<el-form-item><span class="addinputInfo">{{ arrearsMoney() }}</span></el-form-item>
</el-col>
<el-col :span="12">
<div class="span-sty"><span class="icon">*</span>承诺回款日期</div>
<el-form-item prop="returnedMoneyDate">
<el-date-picker v-model="formobj.returnedMoneyDate" type="date" class="addinputInfo" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span class="icon">*</span>欠款开票原因</div>
<el-form-item prop="arrearsOpenYYValue">
<el-select v-model="formobj.arrearsOpenYYValue" placeholder="请选择" @change="changeArrearsOpenYY" filterable clearable class="addinputInfo">
<el-option v-for="item in arrearsOpenYY_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item>
<el-input v-model="formobj.remarks" clearable placeholder="" class="addinputw" style="margin-left: 0px !important;"/>
</el-form-item>
</el-col>
</el-row>
<div class="title">挂车开票信息(挂车的开票类型开票名称与主车相同)</div>
<el-table :key="billingKey" :data="formobj.finBillTrailers" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="挂车车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.gcVinNo }}</span>
</template>
</el-table-column>
<el-table-column label="主车车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="开票金额" align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.oneBillMoney" @keyup.native="UpNumber" clearable placeholder=""/>
</template>
</el-table-column>
</el-table>
<div class="title"><span class="icon">*</span>证件(营业执照或身份证)</div>
<el-row>
<el-col :span="24">
<upload ref="uploadImg" v-model="image_list1" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-col>
</el-row>
<div class="title"><span class="icon">*</span>客户开票申请书</div>
<el-row>
<el-col :span="24">
<upload ref="uploadImg" v-model="image_list2" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-col>
</el-row>
<div class="title">款项确认书(贷款业务上传)</div>
<el-row>
<el-col :span="24">
<upload ref="uploadImg" v-model="image_list3" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-col>
</el-row>
<div class="title">车辆登记合同(开票名称与客户名称不一致时上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<upload ref="uploadImg" v-model="image_list4" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
<selectVehicle v-show="viewState == 2" ref="divSelect" @backData="backData" @doback="resetState"/>
</div>
</template>
<script>
import { fetchDetailsBySid, saveOrUpdate, submit, fetchByContractNo } from '@/api/anruifinmanagement/arrearsbilling'
import { selectAllDisList, typeValues, getOrgSidByPath } from '@/api/jichuxinxi/dictcommons'
import upload from '@/components/uploadFile/upload'
import selectVehicle from './relation/selectVehicle'
export default {
name: 'arrearsbillingAdd',
components: {
upload,
selectVehicle
},
data() {
return {
viewTitle: '',
viewState: 1,
submitdisabled: false,
diploma_list: [],
accept: '.jpg,.jpeg,.png,.JPG,.JPEG',
tableKey: 0,
billingKey: 1,
index: 0,
moneyEdit: false,
openTick_list: [],
saleType_list: [],
arrearsOpenYY_list: [],
image_list1: [],
image_list2: [],
image_list3: [],
image_list4: [],
formobj: {
applyDate: '',
arrearsMoney: '',
arrearsOpenYYKey: '',
arrearsOpenYYValue: '',
billNo: '',
billStateKey: '',
billStateValue: '',
cldjhtApplicationAppendxs: [],
contractNo: '',
contractSid: '',
createByName: '',
customerName: '',
customerSid: '',
deptName: '',
deptSid: '',
finBillTrailers: [],
finBillVehicles: [],
isDelayBill: '',
isHighAndLowOpen: '',
isLQOrigInvoice: '',
khkpsqsApplicationAppendxs: [],
kpxxqrsApplicationAppendxs: [],
modelName: '',
modelSid: '',
nodeSid: '',
nodeState: '',
oneBillMoney: '',
openTickName: '',
openTickSid: '',
openTickTypeKey: '',
openTickTypeValue: '',
openTickUnitName: '',
openTickUnitSid: '',
orgSidPath: '',
procDefId: '',
procInstSid: '',
remarks: '',
returnedMoneyDate: '',
saleDeptName: '',
saleDeptSid: '',
saleTypeKey: '',
saleTypeValue: '',
sid: '',
staffName: '',
staffSid: '',
useOrgSid: '',
createBySid: '',
zjApplicationAppendxs: []
},
rules: {
oneBillMoney: [{ required: true, message: '单台开票金额不能为空', trigger: 'blur' }],
saleTypeValue: [{ required: true, message: '销售类型不能为空', trigger: 'change' }],
isLQOrigInvoice: [{ required: true, message: '是否领取发票原件请选择是或否', trigger: 'change' }],
arrearsOpenYYValue: [{ required: true, message: '欠款开票原因不能为空', trigger: 'change' }],
returnedMoneyDate: [{ required: true, message: '承诺回款日期不能为空', trigger: 'blur' }]
}
}
},
methods: {
init() {
typeValues({ type: 'purchaseType' }).then((res) => {
if (res.success) {
this.saleType_list = res.data
}
})
typeValues({ type: 'qkCause' }).then((res) => {
if (res.success) {
this.arrearsOpenYY_list = res.data
}
})
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.formobj.useOrgSid = res.data
selectAllDisList({ orgSid: res.data }).then((resp) => {
if (resp.success) {
this.openTick_list = resp.data
}
})
}
})
},
UpNumber(e) {
e.target.value = e.target.value.replace(/[^\d]/g, '') // ."-"
e.target.value = e.target.value.replace(/^00/, '0') // 0
if (e.target.value.indexOf('.') < 0 && e.target.value !== '' && e.target.value !== '-') {
// 0102
console.log(e.target.value)
e.target.value = parseFloat(e.target.value)
}
},
showAdd(row) {
this.init()
this.viewTitle = '【新增】欠款开票申请'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
var newDate = new Date()
var date = {
year: newDate.getFullYear(),
month: newDate.getMonth() + 1,
day: newDate.getDate()
}
this.formobj.applyDate = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day)
this.formobj.createByName = window.sessionStorage.getItem('name')
this.formobj.createBySid = window.sessionStorage.getItem('userSid')
this.formobj.staffName = window.sessionStorage.getItem('name')
this.formobj.staffSid = window.sessionStorage.getItem('staffSid')
this.formobj.deptName = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1)
this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1)
this.formobj.saleDeptName = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1)
this.formobj.saleDeptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1)
this.formobj.contractNo = row.contractNo
this.formobj.contractSid = row.sid
this.formobj.customerName = row.partyB
this.formobj.customerSid = row.customerSid
this.formobj.openTickUnitName = row.partyA
this.formobj.modelName = row.modelName
this.formobj.modelSid = row.modelSid
this.formobj.orgSidPath = window.sessionStorage.getItem('defaultOrgPath')
fetchByContractNo(this.formobj.contractNo).then((res) => {
if (res.success) {
this.formobj.oneBillMoney = res.data.oneBillMoney
this.moneyEdit = res.data.isEdit
}
})
},
showEdit(row) {
this.init()
this.viewTitle = '【编辑】欠款开票申请'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
fetchDetailsBySid(row.sid).then((res) => {
if (res.success) {
this.formobj = res.data
fetchByContractNo(this.formobj.contractNo).then((res) => {
if (res.success) {
this.moneyEdit = res.data.isEdit
if (res.data.oneBillMoney !== '') {
this.formobj.oneBillMoney = res.data.oneBillMoney
}
}
})
this.formobj.orgSidPath = window.sessionStorage.getItem('defaultOrgPath')
this.formobj.instanceId = res.data.procInstSid
this.formobj.userSid = window.sessionStorage.getItem('userSid')
if (this.formobj.cldjhtApplicationAppendxs.length > 0) {
this.formobj.cldjhtApplicationAppendxs.forEach((e) => {
this.image_list3.push({
name: e.fileName,
url: e.fileUrl
})
})
}
if (this.formobj.kpxxqrsApplicationAppendxs.length > 0) {
this.formobj.kpxxqrsApplicationAppendxs.forEach((e) => {
this.image_list4.push({
name: e.fileName,
url: e.fileUrl
})
})
}
if (this.formobj.khkpsqsApplicationAppendxs.length > 0) {
this.formobj.khkpsqsApplicationAppendxs.forEach((e) => {
this.image_list2.push({
name: e.fileName,
url: e.fileUrl
})
})
}
if (this.formobj.zjApplicationAppendxs.length > 0) {
this.formobj.zjApplicationAppendxs.forEach((e) => {
this.image_list1.push({
name: e.fileName,
url: e.fileUrl
})
})
}
}
})
},
//
arrearsMoney() {
if (this.formobj.oneBillMoney !== '' && this.formobj.finBillVehicles.length > 0) {
this.formobj.arrearsMoney = parseFloat(this.formobj.oneBillMoney) * parseFloat(this.formobj.finBillVehicles.length)
}
return this.formobj.arrearsMoney
},
changeOpenTick(val) {
const choose = this.openTick_list.filter((item) => item.name === val)
this.formobj.openTickSid = choose[0].sid
if (this.formobj.finBillVehicles.length > 0) {
for (var i = 0; i < this.formobj.finBillVehicles.length; i++) {
this.formobj.finBillVehicles[i].openTickName = choose[0].name
this.formobj.finBillVehicles[i].openTickSid = choose[0].sid
this.formobj.finBillVehicles[i].openTickRemarks = choose[0].openTickRemarks
}
}
},
changeSaleType(val) {
const choose = this.saleType_list.filter((item) => item.dictValue === val)
this.formobj.saleTypeKey = choose[0].dictKey
},
changeOpenTickName(val, row) {
const choose = this.openTick_list.filter((item) => item.name === val)
row.openTickSid = choose[0].sid
row.openTickRemarks = choose[0].openTickRemarks
},
changeArrearsOpenYY(val) {
const choose = this.arrearsOpenYY_list.filter((item) => item.dictValue === val)
this.formobj.arrearsOpenYYKey = choose[0].dictKey
},
addVehicle() {
this.viewState = 2
this.$refs['divSelect'].showData(this.formobj.finBillVehicles, this.formobj.contractNo)
},
backData(value) {
this.viewState = 1
value.forEach((e) => {
this.formobj.finBillVehicles.push({
vinNo: e.vinNo,
vehSid: e.vehSid,
billAppSid: '',
billName: '',
billNameSid: '',
billTypeKey: '01',
billTypeValue: '机动车销售统一发票',
certificateStateKey: e.certificateState,
certificateStateValue: e.certificateStateValue,
createByName: window.sessionStorage.getItem('name'),
openTickName: '',
openTickRemarks: '',
openTickSid: '',
remarks: '',
sid: '',
useOrgSid: ''
})
})
},
handleSave() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.getUrl()
this.submitdisabled = true
saveOrUpdate(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
handleSubmit() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.getUrl()
if (this.formobj.finBillVehicles.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择车辆' })
return
}
if (this.formobj.zjApplicationAppendxs.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传证件(营业执照或身份证)' })
return
}
if (this.formobj.khkpsqsApplicationAppendxs.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传客户开票申请书' })
return
}
this.submitdisabled = true
submit(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '提交成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
getUrl() {
if (this.image_list1.length > 0) {
const aa = []
for (var i = 0; i < this.image_list1.length; i++) {
aa.push({
attachType: '',
billAppSid: '',
createByName: window.sessionStorage.getItem('name'),
fileSid: '',
fileName: this.image_list1[i].name,
fileType: this.image_list1[i].name.substr(this.image_list1[i].name.lastIndexOf('.')),
fileUrl: this.image_list1[i].url,
sid: ''
})
}
this.formobj.zjApplicationAppendxs = aa
} else {
this.formobj.zjApplicationAppendxs = []
}
if (this.image_list2.length > 0) {
const bb = []
for (var k = 0; k < this.image_list2.length; k++) {
bb.push({
attachType: '',
billAppSid: '',
createByName: window.sessionStorage.getItem('name'),
fileSid: '',
fileName: this.image_list2[k].name,
fileType: this.image_list2[k].name.substr(this.image_list2[k].name.lastIndexOf('.')),
fileUrl: this.image_list2[k].url,
sid: ''
})
}
this.formobj.khkpsqsApplicationAppendxs = bb
} else {
this.formobj.khkpsqsApplicationAppendxs = []
}
if (this.image_list3.length > 0) {
const cc = []
for (var m = 0; m < this.image_list3.length; m++) {
cc.push({
attachType: '',
billAppSid: '',
createByName: window.sessionStorage.getItem('name'),
fileSid: '',
fileName: this.image_list3[m].name,
fileType: this.image_list3[m].name.substr(this.image_list3[m].name.lastIndexOf('.')),
fileUrl: this.image_list3[m].url,
sid: ''
})
}
this.formobj.cldjhtApplicationAppendxs = cc
} else {
this.formobj.cldjhtApplicationAppendxs = []
}
if (this.image_list4.length > 0) {
const cc = []
for (var n = 0; n < this.image_list4.length; n++) {
cc.push({
attachType: '',
billAppSid: '',
createByName: window.sessionStorage.getItem('name'),
fileSid: '',
fileName: this.image_list4[n].name,
fileType: this.image_list4[n].name.substr(this.image_list4[n].name.lastIndexOf('.')),
fileUrl: this.image_list4[n].url,
sid: ''
})
}
this.formobj.kpxxqrsApplicationAppendxs = cc
} else {
this.formobj.kpxxqrsApplicationAppendxs = []
}
},
resetState() {
this.viewState = 1
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
applyDate: '',
arrearsMoney: '',
arrearsOpenYYKey: '',
arrearsOpenYYValue: '',
billNo: '',
billStateKey: '',
billStateValue: '',
cldjhtApplicationAppendxs: [],
contractNo: '',
contractSid: '',
createByName: '',
customerName: '',
customerSid: '',
deptName: '',
deptSid: '',
finBillTrailers: [],
finBillVehicles: [],
isDelayBill: '',
isHighAndLowOpen: '',
isLQOrigInvoice: '',
khkpsqsApplicationAppendxs: [],
kpxxqrsApplicationAppendxs: [],
modelName: '',
modelSid: '',
nodeSid: '',
nodeState: '',
oneBillMoney: '',
openTickName: '',
openTickSid: '',
openTickTypeKey: '',
openTickTypeValue: '',
openTickUnitName: '',
openTickUnitSid: '',
orgSidPath: '',
procDefId: '',
procInstSid: '',
remarks: '',
returnedMoneyDate: '',
saleDeptName: '',
saleDeptSid: '',
saleTypeKey: '',
saleTypeValue: '',
sid: '',
staffName: '',
staffSid: '',
useOrgSid: '',
userSid: '',
createBySid: '',
zjApplicationAppendxs: []
}
this.image_list1 = []
this.image_list2 = []
this.image_list3 = []
this.moneyEdit = false
this.submitdisabled = false
this.$refs['form_obj'].resetFields()
this.$emit('doback')
}
}
}
</script>
<style scoped>
.titleOne {
padding: 7px !important;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.span-sty {
width: 130px !important;
}
.addinputInfo {
margin-left: 120px !important;
}
.addinputw {
margin-left: 120px !important;
}
/deep/ .el-form-item__error {
margin-left: 120px;
}
</style>

290
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/arrearsbilling/arrearsbillingInfo.vue

@ -0,0 +1,290 @@
<template>
<div class="app-container">
<!--标题按钮部分开始-->
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 新增修改按钮-->
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
<!--end 添加修改按钮-->
</div>
<!--按钮部分结束-->
<div class="listconadd">
<div class="titwu">欠款开票申请单</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<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.deptName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">发起日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyDate }}</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.staffName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">销售部门</div>
<el-form-item><span class="addinputInfo">{{ formobj.saleDeptName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">销售类型</div>
<el-form-item><span class="addinputInfo">{{ formobj.saleTypeValue }}</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.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开票单位</div>
<el-form-item><span class="addinputInfo">{{ formobj.openTickUnitName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">客户名称</div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">主车开票信息</div>
<el-row>
<el-col :span="8">
<div class="span-sty">单台开票金额</div>
<el-form-item><span class="addinputInfo">{{ formobj.oneBillMoney }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">是否领取发票原件</div>
<el-form-item><span class="addinputInfo">{{ formobj.isLQOrigInvoice }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开票名称默认</div>
<el-form-item><span class="addinputInfo">{{ formobj.openTickName }}</span></el-form-item>
</el-col>
</el-row>
<el-table :key="tableKey" :data="formobj.finBillVehicles" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="合格证状态" align="center">
<template slot-scope="scope">
<span>{{ scope.row.certificateStateValue }}</span>
</template>
</el-table-column>
<el-table-column label="开票类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.billTypeValue }}</span>
</template>
</el-table-column>
<el-table-column label="开票名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.openTickName }}</span>
</template>
</el-table-column>
<el-table-column label="开票信息" align="center">
<template slot-scope="scope">
<span>{{ scope.row.openTickRemarks }}</span>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="12">
<div class="span-sty">欠款金额合计</div>
<el-form-item><span class="addinputInfo">{{ formobj.arrearsMoney }}</span></el-form-item>
</el-col>
<el-col :span="12">
<div class="span-sty">承诺回款日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.returnedMoneyDate }}</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.arrearsOpenYYValue }}</span></el-form-item>
</el-col>
<el-col :span="16">
<el-form-item><span class="addinputInfo" style="margin-left: 0px !important;">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">挂车开票信息(挂车的开票类型开票名称与主车相同)</div>
<el-table :key="billingKey" :data="formobj.finBillTrailers" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="挂车车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.gcVinNo }}</span>
</template>
</el-table-column>
<el-table-column label="主车车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="开票金额" align="center">
<template slot-scope="scope">
<span>{{ scope.row.oneBillMoney }}</span>
</template>
</el-table-column>
</el-table>
<div class="title">证件(营业执照或身份证)</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list1" :key="index" :src="item" :preview-src-list="image_list1"></el-image>
</el-col>
</el-row>
<div class="title">客户开票申请书</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list2" :key="index" :src="item" :preview-src-list="image_list2"></el-image>
</el-col>
</el-row>
<div class="title">款项确认书(贷款业务上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list3" :key="index" :src="item" :preview-src-list="image_list3"></el-image>
</el-form-item>
</el-col>
</el-row>
<div class="title">车辆登记合同(开票名称与客户名称不一致时上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list4" :key="index" :src="item" :preview-src-list="image_list3"></el-image>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</template>
<script>
import { fetchDetailsBySid } from '@/api/anruifinmanagement/arrearsbilling'
export default {
name: 'arrearsbillingInfo',
data() {
return {
viewTitle: '',
tableKey: 0,
billingKey: 1,
index: 0,
image_list1: [],
image_list2: [],
image_list3: [],
image_list4: [],
formobj: {
applyDate: '',
arrearsMoney: '',
arrearsOpenYYKey: '',
arrearsOpenYYValue: '',
billNo: '',
billStateKey: '',
billStateValue: '',
cldjhtApplicationAppendxs: [],
contractNo: '',
contractSid: '',
createByName: '',
customerName: '',
customerSid: '',
deptName: '',
deptSid: '',
finBillTrailers: [],
finBillVehicles: [],
isDelayBill: '',
isHighAndLowOpen: '',
isLQOrigInvoice: '',
khkpsqsApplicationAppendxs: [],
kpxxqrsApplicationAppendxs: [],
modelName: '',
modelSid: '',
nodeSid: '',
nodeState: '',
oneBillMoney: '',
openTickName: '',
openTickSid: '',
openTickTypeKey: '',
openTickTypeValue: '',
openTickUnitName: '',
openTickUnitSid: '',
orgSidPath: '',
procDefId: '',
procInstSid: '',
remarks: '',
returnedMoneyDate: '',
saleDeptName: '',
saleDeptSid: '',
saleTypeKey: '',
saleTypeValue: '',
sid: '',
staffName: '',
staffSid: '',
totalBillMoney: '',
useOrgSid: '',
createBySid: '',
zjApplicationAppendxs: []
},
rules: {}
}
},
methods: {
showInfo(row) {
this.viewTitle = '欠款开票详情'
fetchDetailsBySid(row.sid).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.zjApplicationAppendxs.length > 0) {
this.formobj.zjApplicationAppendxs.forEach((e) => {
this.image_list1.push(e.fileUrl)
})
}
if (this.formobj.khkpsqsApplicationAppendxs.length > 0) {
this.formobj.khkpsqsApplicationAppendxs.forEach((e) => {
this.image_list2.push(e.fileUrl)
})
}
if (this.formobj.kpxxqrsApplicationAppendxs.length > 0) {
this.formobj.kpxxqrsApplicationAppendxs.forEach((e) => {
this.image_list3.push(e.fileUrl)
})
}
if (this.formobj.cldjhtApplicationAppendxs.length > 0) {
this.formobj.cldjhtApplicationAppendxs.forEach((e) => {
this.image_list4.push(e.fileUrl)
})
}
}
})
},
//
handleReturn() {
this.image_list1 = []
this.image_list2 = []
this.image_list3 = []
this.image_list4 = []
this.$emit('doback')
}
}
}
</script>
<style scoped>
.span-sty {
width: 100px !important;
}
.addinputInfo {
margin-left: 90px !important;
}
</style>

184
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/arrearsbilling/relation/selectVehicle.vue

@ -0,0 +1,184 @@
<template>
<div class="app-container">
<div>
<div class="tab-header webtop">
<div>车辆查询</div>
<div>
<el-button type="primary" size="small" @click="AddUpdateReturn">确定</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="main-content">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-form-item label="车架号">
<el-input v-model="listQuery.params.vinNo" clearable class="addinputw" placeholder=""/>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">现车列表</div>
</div>
<div class="">
<el-table :key="tableKey" ref="multipleTable" v-loading="listLoading" :data="list" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column width="50px" type="selection" align="center"/>
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="合同编号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.contractNo }}</span>
</template>
</el-table-column>
<el-table-column label="客户名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.customerName }}</span>
</template>
</el-table-column>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
</el-table>
</div>
<div class="pages">
<div class="tit"/>
<!-- 翻页 -->
<Pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
</div>
</template>
<script>
import Pagination from '@/components/pagination'
import { vehicleQKKPList } from '@/api/anruifinmanagement/arrearsbilling'
export default {
name: 'xianchechaxun',
components: {
Pagination
},
data() {
return {
carbrand_list: [], //
carColor_list: [], //
location_list: [], //
isSearchShow: false,
searchxianshitit: '隐藏查询条件',
tableKey: 0,
sids: [],
list: [],
listLoading: false,
listQuery: {
current: 1,
size: 5,
params: {
contractNo: '',
vinNo: '',
vinSids: []
},
total: 0
}
}
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
handleReturn() {
this.$emit('doback')
},
//
getList() {
this.listLoading = true
vehicleQKKPList(this.listQuery).then((response) => {
this.listLoading = false
if (response.success) {
this.listQuery.total = response.data.total
this.list = response.data.records
} else {
this.listQuery.total = 0
this.list = []
}
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
//
handleReset() {
this.listQuery.current = 1
this.listQuery.size = 5
this.listQuery.total = 0
this.listQuery.params.vinNo = ''
this.getList()
},
handleSelectionChange(row) {
this.sids = []
const aa = []
row.forEach((element) => {
aa.push({
vinNo: element.vinNo,
vehSid: element.vehSid,
certificateStateValue: element.certificateStateValue,
certificateState: element.certificateState
})
})
this.sids = aa
},
showData(value, contractNo) {
const aa = []
if (value.length > 0) {
for (var i = 0; i < value.length; i++) {
aa.push(value[i].vehSid)
}
this.listQuery.params.vinSids = aa
} else {
this.listQuery.params.vinSids = []
}
this.listQuery.current = 1
this.listQuery.total = 0
this.listQuery.size = 5
this.listQuery.params.contractNo = contractNo
this.getList()
},
//
AddUpdateReturn() {
if (this.sids.length > 0) {
this.$emit('backData', this.sids)
} else {
this.$notify({
title: '提示',
message: '请选择至少一条车型记录!',
type: 'error',
duration: 2000
})
}
}
}
}
</script>
<style scoped>
</style>

46
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/backups/finginvoiceapply.vue

@ -64,9 +64,10 @@
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button>
</template>
</el-table-column>
<el-table-column label="状态" align="center">
<el-table-column label="状态" width="180px" header-align="center">
<template slot-scope="scope">
<span>{{ scope.row.nodeState }}</span>
<span v-if="scope.row.nodeState=='待提交'" type="primary" size="mini">待提交</span>
<span v-else @click="flowRecord(scope.row)" class="bluezi">{{ scope.row.nodeState }}</span>
</template>
</el-table-column>
<el-table-column label="销售类型" align="center">
@ -129,7 +130,9 @@
<finginvoiceapply-add v-show="viewState == 2" ref="divAdd" @doback="resetState" @reloadlist="getList"/>
<!--开票申请详情列表部分-->
<finginvoiceapply-info v-show="viewState == 3" ref="divInfo" @doback="resetState" />
<el-dialog title="" :visible.sync="centerDialogVisible" width="78%" height="1%" :before-close="closeIt" center>
<iframe frameborder="0" id="iframe" style="width:100%;" scrolling="no" :src="this.centerDialogVisible === true ? url :''"></iframe>
</el-dialog>
</div>
</template>
@ -138,7 +141,8 @@ import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import { listPage } from '@/api/anruifinmanagement/finwaitinvoiceapply'
import { typeValues, getOrgSidByPath, getTypeValueList } from '@/api/jichuxinxi/dictcommons'
import { typeValues, getOrgSidByPath } from '@/api/jichuxinxi/dictcommons'
import { getStorage } from '@/utils/auth'
import finginvoiceapplyAdd from './finginvoiceapplyAdd'
import finginvoiceapplyInfo from './finginvoiceapplyInfo'
@ -153,6 +157,9 @@ export default {
},
data() {
return {
url: '',
dialogHeight: '80%',
centerDialogVisible: false,
btndisabled: false,
btnList: [
{
@ -225,9 +232,40 @@ export default {
this.init()
},
mounted() {
// vuewindowpostMessagehandleMessage
window.addEventListener('message', this.handleMessage)
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
async handleMessage(event) {
var code = ''
if (event.data.params !== null && event.data.params !== undefined) {
code = event.data.params.code
}
if (code === 1) {
this.init()
this.centerDialogVisible = false
} else if (code === 2) {
this.dialogHeight = event.data.params.data
this.setIframeHeight(document.getElementById('iframe'))
}
},
closeIt() {
this.url = ''
this.centerDialogVisible = false
},
setIframeHeight(iframe) {
iframe.height = this.dialogHeight
},
flowRecord(row) {
this.centerDialogVisible = true
var params = {
deployId: row.procDefId,
procInsId: row.procInstSid,
token: getStorage()
}
this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params)))
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow

85
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/backups/finginvoiceapplyAdd.vue

@ -61,7 +61,7 @@
<el-row>
<el-col :span="8">
<div class="span-sty"><span class="icon">*</span>单台开票金额</div>
<el-form-item><el-input v-model="formobj.oneBillMoney" @keyup.native="UpNumber" clearable placeholder="" class="addinputw"/></el-form-item>
<el-form-item><el-input :disabled="isEdit" v-model="formobj.oneBillMoney" @keyup.native="UpNumber" clearable placeholder="" class="addinputw"/></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开票类型默认</div>
@ -130,7 +130,7 @@
<el-form-item><span class="addinputInfo">{{ formobj.billStateValue }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">挂车开票信息</div>
<div class="title">挂车开票信息(挂车的开票类型开票名称与主车相同)</div>
<el-table :key="billingKey" :data="formobj.finBillTrailers" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="挂车车架号" align="center">
@ -149,23 +149,29 @@
</template>
</el-table-column>
</el-table>
<div class="title">客户开票申请书</div>
<div class="title"><span class="icon">*</span>证件(营业执照或身份证)</div>
<el-row>
<el-col :span="24">
<upload ref="uploadImg" v-model="image_list1" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-col>
</el-row>
<div class="title">开票信息确认</div>
<div class="title"><span class="icon">*</span>客户开票申请</div>
<el-row>
<el-col :span="24">
<upload ref="uploadImg" v-model="image_list2" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-col>
</el-row>
<div class="title">车辆登记合同</div>
<div class="title">款项确认书(贷款业务上传)</div>
<el-row>
<el-col :span="24">
<upload ref="uploadImg" v-model="image_list3" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-col>
</el-row>
<div class="title">车辆登记合同(开票名称与客户名称不一致时上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<upload ref="uploadImg" v-model="image_list3" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
<upload ref="uploadImg" v-model="image_list4" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
@ -175,7 +181,7 @@
</template>
<script>
import { fetchDetailsBySid, saveOrUpdate, submit } from '@/api/anruifinmanagement/finwaitinvoiceapply'
import { fetchDetailsBySid, saveOrUpdate, submit, fetchByContractNo } from '@/api/anruifinmanagement/finwaitinvoiceapply'
import { selectAllDisList, typeValues } from '@/api/jichuxinxi/dictcommons'
import upload from '@/components/uploadFile/upload'
@ -188,6 +194,7 @@ export default {
return {
viewTitle: '',
submitdisabled: false,
isEdit: false,
diploma_list: [],
accept: '.jpg,.jpeg,.png,.JPG,.JPEG',
tableKey: 0,
@ -198,6 +205,7 @@ export default {
image_list1: [],
image_list2: [],
image_list3: [],
image_list4: [],
formobj: {
applyDate: '',
arrearsMoney: '',
@ -246,7 +254,8 @@ export default {
staffSid: '',
totalBillMoney: '',
useOrgSid: '',
createBySid: ''
createBySid: '',
zjApplicationAppendxs: []
},
rules: {}
}
@ -277,6 +286,14 @@ export default {
fetchDetailsBySid(row.sid).then((res) => {
if (res.success) {
this.formobj = res.data
fetchByContractNo(this.formobj.contractNo).then((res) => {
if (res.success) {
this.isEdit = res.data.isEdit
if (res.data.oneBillMoney !== '') {
this.formobj.oneBillMoney = res.data.oneBillMoney
}
}
})
this.formobj.orgSidPath = window.sessionStorage.getItem('defaultOrgPath')
this.formobj.instanceId = res.data.procInstSid
this.formobj.userSid = window.sessionStorage.getItem('userSid')
@ -295,7 +312,7 @@ export default {
}
if (this.formobj.kpxxqrsApplicationAppendxs.length > 0) {
this.formobj.kpxxqrsApplicationAppendxs.forEach((e) => {
this.image_list2.push({
this.image_list4.push({
name: e.fileName,
url: e.fileUrl
})
@ -303,6 +320,14 @@ export default {
}
if (this.formobj.khkpsqsApplicationAppendxs.length > 0) {
this.formobj.khkpsqsApplicationAppendxs.forEach((e) => {
this.image_list2.push({
name: e.fileName,
url: e.fileUrl
})
})
}
if (this.formobj.zjApplicationAppendxs.length > 0) {
this.formobj.zjApplicationAppendxs.forEach((e) => {
this.image_list1.push({
name: e.fileName,
url: e.fileUrl
@ -379,6 +404,14 @@ export default {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.getUrl()
if (this.formobj.zjApplicationAppendxs.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传证件(营业执照或身份证)' })
return
}
if (this.formobj.khkpsqsApplicationAppendxs.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传客户开票申请书' })
return
}
this.submitdisabled = true
submit(this.formobj).then((res) => {
if (res.success) {
@ -408,7 +441,9 @@ export default {
sid: ''
})
}
this.formobj.khkpsqsApplicationAppendxs = aa
this.formobj.zjApplicationAppendxs = aa
} else {
this.formobj.zjApplicationAppendxs = []
}
if (this.image_list2.length > 0) {
const bb = []
@ -424,7 +459,9 @@ export default {
sid: ''
})
}
this.formobj.kpxxqrsApplicationAppendxs = bb
this.formobj.khkpsqsApplicationAppendxs = bb
} else {
this.formobj.khkpsqsApplicationAppendxs = []
}
if (this.image_list3.length > 0) {
const cc = []
@ -441,6 +478,26 @@ export default {
})
}
this.formobj.cldjhtApplicationAppendxs = cc
} else {
this.formobj.cldjhtApplicationAppendxs = []
}
if (this.image_list4.length > 0) {
const cc = []
for (var n = 0; n < this.image_list4.length; n++) {
cc.push({
attachType: '',
billAppSid: '',
createByName: window.sessionStorage.getItem('name'),
fileSid: '',
fileName: this.image_list4[n].name,
fileType: this.image_list4[n].name.substr(this.image_list4[n].name.lastIndexOf('.')),
fileUrl: this.image_list4[n].url,
sid: ''
})
}
this.formobj.kpxxqrsApplicationAppendxs = cc
} else {
this.formobj.kpxxqrsApplicationAppendxs = []
}
},
handleReturn(isreload) {
@ -493,11 +550,15 @@ export default {
staffSid: '',
totalBillMoney: '',
useOrgSid: '',
userSid: ''
userSid: '',
createBySid: '',
zjApplicationAppendxs: []
}
this.image_list1 = []
this.image_list2 = []
this.image_list3 = []
this.image_list4 = []
this.isEdit = false
this.submitdisabled = false
this.$refs['form_obj'].resetFields()
this.$emit('doback')

41
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/backups/finginvoiceapplyInfo.vue

@ -102,7 +102,7 @@
<el-row>
<el-col :span="24">
<div class="span-sty">开票金额合计</div>
<el-form-item><span class="addinputInfo">{{ totalBillMoney() }}</span></el-form-item>
<el-form-item><span class="addinputInfo">{{ formobj.totalBillMoney }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
@ -117,7 +117,7 @@
<el-form-item><span class="addinputInfo">{{ formobj.billStateValue }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">挂车开票信息</div>
<div class="title">挂车开票信息(挂车的开票类型开票名称与主车相同)</div>
<el-table :key="billingKey" :data="formobj.finBillTrailers" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="挂车车架号" align="center">
@ -136,19 +136,19 @@
</template>
</el-table-column>
</el-table>
<div class="title">客户开票申请书</div>
<div class="title">证件(营业执照或身份证)</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list1" :key="index" :src="item" :preview-src-list="image_list1"></el-image>
</el-col>
</el-row>
<div class="title">开票信息确认</div>
<div class="title">客户开票申请</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list2" :key="index" :src="item" :preview-src-list="image_list2"></el-image>
</el-col>
</el-row>
<div class="title">车辆登记合同</div>
<div class="title">款项确认书(贷款业务上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
@ -156,6 +156,14 @@
</el-form-item>
</el-col>
</el-row>
<div class="title">车辆登记合同(开票名称与客户名称不一致时上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list4" :key="index" :src="item" :preview-src-list="image_list3"></el-image>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
@ -174,6 +182,7 @@ export default {
image_list1: [],
image_list2: [],
image_list3: [],
image_list4: [],
formobj: {
applyDate: '',
arrearsMoney: '',
@ -222,7 +231,8 @@ export default {
staffSid: '',
totalBillMoney: '',
useOrgSid: '',
createBySid: ''
createBySid: '',
zjApplicationAppendxs: []
},
rules: {}
}
@ -234,36 +244,35 @@ export default {
fetchDetailsBySid(row.sid).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.zjApplicationAppendxs.length > 0) {
this.formobj.zjApplicationAppendxs.forEach((e) => {
this.image_list1.push(e.fileUrl)
})
}
if (this.formobj.khkpsqsApplicationAppendxs.length > 0) {
this.formobj.khkpsqsApplicationAppendxs.forEach((e) => {
this.image_list1.push(e.fileUrl)
this.image_list2.push(e.fileUrl)
})
}
if (this.formobj.kpxxqrsApplicationAppendxs.length > 0) {
this.formobj.kpxxqrsApplicationAppendxs.forEach((e) => {
this.image_list2.push(e.fileUrl)
this.image_list3.push(e.fileUrl)
})
}
if (this.formobj.cldjhtApplicationAppendxs.length > 0) {
this.formobj.cldjhtApplicationAppendxs.forEach((e) => {
this.image_list3.push(e.fileUrl)
this.image_list4.push(e.fileUrl)
})
}
}
})
},
//
totalBillMoney() {
if (this.formobj.oneBillMoney !== '' && this.formobj.finBillVehicles.length > 0) {
this.formobj.totalBillMoney = parseFloat(this.formobj.oneBillMoney) * parseFloat(this.formobj.finBillVehicles.length)
}
return this.formobj.totalBillMoney
},
//
handleReturn() {
this.image_list1 = []
this.image_list2 = []
this.image_list3 = []
this.image_list4 = []
this.$emit('doback')
}
}

31
anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/kaipiaoguanliFlow/finginvoiceapplyDaiBanInfo.vue

@ -119,7 +119,7 @@
<el-form-item><span class="addinputInfo">{{ formobj.billStateValue }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">挂车开票信息</div>
<div class="title">挂车开票信息(挂车的开票类型开票名称与主车相同)</div>
<el-table :key="billingKey" :data="formobj.finBillTrailers" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="挂车车架号" align="center">
@ -138,19 +138,19 @@
</template>
</el-table-column>
</el-table>
<div class="title">客户开票申请书</div>
<div class="title">证件(营业执照或身份证)</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list1" :key="index" :src="item" :preview-src-list="image_list1"></el-image>
</el-col>
</el-row>
<div class="title">开票信息确认</div>
<div class="title">客户开票申请</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list2" :key="index" :src="item" :preview-src-list="image_list2"></el-image>
</el-col>
</el-row>
<div class="title">车辆登记合同</div>
<div class="title">款项确认书(贷款业务上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
@ -158,6 +158,14 @@
</el-form-item>
</el-col>
</el-row>
<div class="title">车辆登记合同(开票名称与客户名称不一致时上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list4" :key="index" :src="item" :preview-src-list="image_list3"></el-image>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 选择待办人 的弹出框-->
@ -202,6 +210,7 @@ export default {
image_list1: [],
image_list2: [],
image_list3: [],
image_list4: [],
formobj: {
applyDate: '',
arrearsMoney: '',
@ -250,7 +259,8 @@ export default {
staffSid: '',
totalBillMoney: '',
useOrgSid: '',
createBySid: ''
createBySid: '',
zjApplicationAppendxs: []
},
rules: {},
operation: '', //
@ -310,19 +320,24 @@ export default {
fetchDetailsBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.zjApplicationAppendxs.length > 0) {
this.formobj.zjApplicationAppendxs.forEach((e) => {
this.image_list1.push(e.fileUrl)
})
}
if (this.formobj.khkpsqsApplicationAppendxs.length > 0) {
this.formobj.khkpsqsApplicationAppendxs.forEach((e) => {
this.image_list1.push(e.fileUrl)
this.image_list2.push(e.fileUrl)
})
}
if (this.formobj.kpxxqrsApplicationAppendxs.length > 0) {
this.formobj.kpxxqrsApplicationAppendxs.forEach((e) => {
this.image_list2.push(e.fileUrl)
this.image_list3.push(e.fileUrl)
})
}
if (this.formobj.cldjhtApplicationAppendxs.length > 0) {
this.formobj.cldjhtApplicationAppendxs.forEach((e) => {
this.image_list3.push(e.fileUrl)
this.image_list4.push(e.fileUrl)
})
}
}

79
anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/kaipiaoguanliFlow/finginvoiceapplyEdit.vue

@ -60,7 +60,7 @@
<el-row>
<el-col :span="8">
<div class="span-sty"><span class="icon">*</span>单台开票金额</div>
<el-form-item><el-input v-model="formobj.oneBillMoney" @keyup.native="UpNumber" clearable placeholder="" class="addinputw"/></el-form-item>
<el-form-item><el-input :disabled="isEdit" v-model="formobj.oneBillMoney" @keyup.native="UpNumber" clearable placeholder="" class="addinputw"/></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开票类型默认</div>
@ -129,7 +129,7 @@
<el-form-item><span class="addinputInfo">{{ formobj.billStateValue }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">挂车开票信息</div>
<div class="title">挂车开票信息(挂车的开票类型开票名称与主车相同)</div>
<el-table :key="billingKey" :data="formobj.finBillTrailers" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="挂车车架号" align="center">
@ -148,23 +148,29 @@
</template>
</el-table-column>
</el-table>
<div class="title">客户开票申请书</div>
<div class="title"><span class="icon">*</span>证件(营业执照或身份证)</div>
<el-row>
<el-col :span="24">
<upload ref="uploadImg" v-model="image_list1" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-col>
</el-row>
<div class="title">开票信息确认</div>
<div class="title"><span class="icon">*</span>客户开票申请</div>
<el-row>
<el-col :span="24">
<upload ref="uploadImg" v-model="image_list2" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-col>
</el-row>
<div class="title">车辆登记合同</div>
<div class="title">款项确认书(贷款业务上传)</div>
<el-row>
<el-col :span="24">
<upload ref="uploadImg" v-model="image_list3" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-col>
</el-row>
<div class="title">车辆登记合同(开票名称与客户名称不一致时上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<upload ref="uploadImg" v-model="image_list3" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
<upload ref="uploadImg" v-model="image_list4" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
@ -174,7 +180,7 @@
</template>
<script>
import { fetchDetailsBySid, saveOrUpdate, submit } from '@/api/anruifinmanagement/finwaitinvoiceapply'
import { fetchDetailsBySid, saveOrUpdate, submit, fetchByContractNo } from '@/api/anruifinmanagement/finwaitinvoiceapply'
import { selectAllDisList, typeValues } from '@/api/jichuxinxi/dictcommons'
import upload from '@/components/uploadFile/upload'
@ -187,6 +193,7 @@ export default {
return {
viewTitle: '',
submitdisabled: false,
isEdit: false,
diploma_list: [],
accept: '.jpg,.jpeg,.png,.JPG,.JPEG',
tableKey: 0,
@ -197,6 +204,7 @@ export default {
image_list1: [],
image_list2: [],
image_list3: [],
image_list4: [],
formobj: {
applyDate: '',
arrearsMoney: '',
@ -245,7 +253,8 @@ export default {
staffSid: '',
totalBillMoney: '',
useOrgSid: '',
createBySid: ''
createBySid: '',
zjApplicationAppendxs: []
},
rules: {}
}
@ -293,6 +302,14 @@ export default {
fetchDetailsBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
fetchByContractNo(this.formobj.contractNo).then((res) => {
if (res.success) {
this.isEdit = res.data.isEdit
if (res.data.oneBillMoney !== '') {
this.formobj.oneBillMoney = res.data.oneBillMoney
}
}
})
this.formobj.orgSidPath = window.sessionStorage.getItem('defaultOrgPath')
this.formobj.instanceId = res.data.procInstSid
this.formobj.userSid = window.sessionStorage.getItem('userSid')
@ -311,7 +328,7 @@ export default {
}
if (this.formobj.kpxxqrsApplicationAppendxs.length > 0) {
this.formobj.kpxxqrsApplicationAppendxs.forEach((e) => {
this.image_list2.push({
this.image_list4.push({
name: e.fileName,
url: e.fileUrl
})
@ -319,6 +336,14 @@ export default {
}
if (this.formobj.khkpsqsApplicationAppendxs.length > 0) {
this.formobj.khkpsqsApplicationAppendxs.forEach((e) => {
this.image_list2.push({
name: e.fileName,
url: e.fileUrl
})
})
}
if (this.formobj.zjApplicationAppendxs.length > 0) {
this.formobj.zjApplicationAppendxs.forEach((e) => {
this.image_list1.push({
name: e.fileName,
url: e.fileUrl
@ -402,6 +427,14 @@ export default {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.getUrl()
if (this.formobj.zjApplicationAppendxs.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传证件(营业执照或身份证)' })
return
}
if (this.formobj.khkpsqsApplicationAppendxs.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传客户开票申请书' })
return
}
this.submitdisabled = true
submit(this.formobj).then((res) => {
if (res.success) {
@ -438,7 +471,9 @@ export default {
sid: ''
})
}
this.formobj.khkpsqsApplicationAppendxs = aa
this.formobj.zjApplicationAppendxs = aa
} else {
this.formobj.zjApplicationAppendxs = []
}
if (this.image_list2.length > 0) {
const bb = []
@ -454,7 +489,9 @@ export default {
sid: ''
})
}
this.formobj.kpxxqrsApplicationAppendxs = bb
this.formobj.khkpsqsApplicationAppendxs = bb
} else {
this.formobj.khkpsqsApplicationAppendxs = []
}
if (this.image_list3.length > 0) {
const cc = []
@ -471,6 +508,26 @@ export default {
})
}
this.formobj.cldjhtApplicationAppendxs = cc
} else {
this.formobj.cldjhtApplicationAppendxs = []
}
if (this.image_list4.length > 0) {
const cc = []
for (var n = 0; n < this.image_list4.length; n++) {
cc.push({
attachType: '',
billAppSid: '',
createByName: window.sessionStorage.getItem('name'),
fileSid: '',
fileName: this.image_list4[n].name,
fileType: this.image_list4[n].name.substr(this.image_list4[n].name.lastIndexOf('.')),
fileUrl: this.image_list4[n].url,
sid: ''
})
}
this.formobj.kpxxqrsApplicationAppendxs = cc
} else {
this.formobj.kpxxqrsApplicationAppendxs = []
}
}
}

31
anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/kaipiaoguanliFlow/finginvoiceapplyYiBanInfo.vue

@ -117,7 +117,7 @@
<el-form-item><span class="addinputInfo">{{ formobj.billStateValue }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">挂车开票信息</div>
<div class="title">挂车开票信息(挂车的开票类型开票名称与主车相同)</div>
<el-table :key="billingKey" :data="formobj.finBillTrailers" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="挂车车架号" align="center">
@ -136,19 +136,19 @@
</template>
</el-table-column>
</el-table>
<div class="title">客户开票申请书</div>
<div class="title">证件(营业执照或身份证)</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list1" :key="index" :src="item" :preview-src-list="image_list1"></el-image>
</el-col>
</el-row>
<div class="title">开票信息确认</div>
<div class="title">客户开票申请</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list2" :key="index" :src="item" :preview-src-list="image_list2"></el-image>
</el-col>
</el-row>
<div class="title">车辆登记合同</div>
<div class="title">款项确认书(贷款业务上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
@ -156,6 +156,14 @@
</el-form-item>
</el-col>
</el-row>
<div class="title">车辆登记合同(开票名称与客户名称不一致时上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list4" :key="index" :src="item" :preview-src-list="image_list3"></el-image>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
@ -174,6 +182,7 @@ export default {
image_list1: [],
image_list2: [],
image_list3: [],
image_list4: [],
formobj: {
applyDate: '',
arrearsMoney: '',
@ -222,7 +231,8 @@ export default {
staffSid: '',
totalBillMoney: '',
useOrgSid: '',
createBySid: ''
createBySid: '',
zjApplicationAppendxs: []
},
rules: {},
linkByParameter: {
@ -268,19 +278,24 @@ export default {
fetchDetailsBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.zjApplicationAppendxs.length > 0) {
this.formobj.zjApplicationAppendxs.forEach((e) => {
this.image_list1.push(e.fileUrl)
})
}
if (this.formobj.khkpsqsApplicationAppendxs.length > 0) {
this.formobj.khkpsqsApplicationAppendxs.forEach((e) => {
this.image_list1.push(e.fileUrl)
this.image_list2.push(e.fileUrl)
})
}
if (this.formobj.kpxxqrsApplicationAppendxs.length > 0) {
this.formobj.kpxxqrsApplicationAppendxs.forEach((e) => {
this.image_list2.push(e.fileUrl)
this.image_list3.push(e.fileUrl)
})
}
if (this.formobj.cldjhtApplicationAppendxs.length > 0) {
this.formobj.cldjhtApplicationAppendxs.forEach((e) => {
this.image_list3.push(e.fileUrl)
this.image_list4.push(e.fileUrl)
})
}
}

483
anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/arrearsbillingByDivisionDaiBanInfo.vue

@ -0,0 +1,483 @@
<template>
<div class="app-container">
<!--标题按钮部分开始-->
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 新增修改按钮-->
<div>
<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>
<!--end 添加修改按钮-->
</div>
<!--按钮部分结束-->
<div class="">
<div class="titwu">欠款开票申请单</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<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.deptName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">发起日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyDate }}</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.staffName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">销售部门</div>
<el-form-item><span class="addinputInfo">{{ formobj.saleDeptName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">销售类型</div>
<el-form-item><span class="addinputInfo">{{ formobj.saleTypeValue }}</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.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开票单位</div>
<el-form-item><span class="addinputInfo">{{ formobj.openTickUnitName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">客户名称</div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">主车开票信息</div>
<el-row>
<el-col :span="8">
<div class="span-sty">单台开票金额</div>
<el-form-item><span class="addinputInfo">{{ formobj.oneBillMoney }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">是否领取发票原件</div>
<el-form-item><span class="addinputInfo">{{ formobj.isLQOrigInvoice }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开票名称默认</div>
<el-form-item><span class="addinputInfo">{{ formobj.openTickName }}</span></el-form-item>
</el-col>
</el-row>
<el-table :key="tableKey" :data="formobj.finBillVehicles" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="合格证状态" align="center">
<template slot-scope="scope">
<span>{{ scope.row.certificateStateValue }}</span>
</template>
</el-table-column>
<el-table-column label="开票类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.billTypeValue }}</span>
</template>
</el-table-column>
<el-table-column label="开票名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.openTickName }}</span>
</template>
</el-table-column>
<el-table-column label="开票信息" align="center">
<template slot-scope="scope">
<span>{{ scope.row.openTickRemarks }}</span>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="12">
<div class="span-sty">欠款金额合计</div>
<el-form-item><span class="addinputInfo">{{ formobj.arrearsMoney }}</span></el-form-item>
</el-col>
<el-col :span="12">
<div class="span-sty">承诺回款日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.returnedMoneyDate }}</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.arrearsOpenYYValue }}</span></el-form-item>
</el-col>
<el-col :span="16">
<el-form-item><span class="addinputInfo" style="margin-left: 0px !important;">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">挂车开票信息(挂车的开票类型开票名称与主车相同)</div>
<el-table :key="billingKey" :data="formobj.finBillTrailers" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="挂车车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.gcVinNo }}</span>
</template>
</el-table-column>
<el-table-column label="主车车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="开票金额" align="center">
<template slot-scope="scope">
<span>{{ scope.row.oneBillMoney }}</span>
</template>
</el-table-column>
</el-table>
<div class="title">证件(营业执照或身份证)</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list1" :key="index" :src="item" :preview-src-list="image_list1"></el-image>
</el-col>
</el-row>
<div class="title">客户开票申请书</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list2" :key="index" :src="item" :preview-src-list="image_list2"></el-image>
</el-col>
</el-row>
<div class="title">款项确认书(贷款业务上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list3" :key="index" :src="item" :preview-src-list="image_list3"></el-image>
</el-form-item>
</el-col>
</el-row>
<div class="title">车辆登记合同(开票名称与客户名称不一致时上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list4" :key="index" :src="item" :preview-src-list="image_list3"></el-image>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 选择待办人 的弹出框-->
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%">
<el-form class="formadd" >
<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 { fetchDetailsBySid, completeByDivision, breakProcess, reject, getNextNodesForSubmit, getPreviousNodesForReject } from '@/api/anruifinmanagement/arrearsbilling'
export default {
name: 'arrearsbillingByDivisionDaiBanInfo',
data() {
return {
viewTitle: '',
tableKey: 0,
billingKey: 1,
index: 0,
image_list1: [],
image_list2: [],
image_list3: [],
image_list4: [],
formobj: {
applyDate: '',
arrearsMoney: '',
arrearsOpenYYKey: '',
arrearsOpenYYValue: '',
billNo: '',
billStateKey: '',
billStateValue: '',
cldjhtApplicationAppendxs: [],
contractNo: '',
contractSid: '',
createByName: '',
customerName: '',
customerSid: '',
deptName: '',
deptSid: '',
finBillTrailers: [],
finBillVehicles: [],
isDelayBill: '',
isHighAndLowOpen: '',
isLQOrigInvoice: '',
khkpsqsApplicationAppendxs: [],
kpxxqrsApplicationAppendxs: [],
modelName: '',
modelSid: '',
nodeSid: '',
nodeState: '',
oneBillMoney: '',
openTickName: '',
openTickSid: '',
openTickTypeKey: '',
openTickTypeValue: '',
openTickUnitName: '',
openTickUnitSid: '',
orgSidPath: '',
procDefId: '',
procInstSid: '',
remarks: '',
returnedMoneyDate: '',
saleDeptName: '',
saleDeptSid: '',
saleTypeKey: '',
saleTypeValue: '',
sid: '',
staffName: '',
staffSid: '',
totalBillMoney: '',
useOrgSid: '',
createBySid: '',
zjApplicationAppendxs: []
},
rules: {},
operation: '', //
dialogList: {
comment: ''
},
startTask: true,
current: {
taskDefKey: '',
taskName: '' //
},
nextNode: {}, //
nodeDialogVisible: false,
currentLink: true,
linkByParameter: {
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
orgSidPath: '',
taskDefKey: '',
userSid: ''
}
}
},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()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.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 550 + 'px'
}
}, '*')
},
methods: {
showInfo(sid) {
this.viewTitle = '欠款开票详情'
fetchDetailsBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.zjApplicationAppendxs.length > 0) {
this.formobj.zjApplicationAppendxs.forEach((e) => {
this.image_list1.push(e.fileUrl)
})
}
if (this.formobj.khkpsqsApplicationAppendxs.length > 0) {
this.formobj.khkpsqsApplicationAppendxs.forEach((e) => {
this.image_list2.push(e.fileUrl)
})
}
if (this.formobj.kpxxqrsApplicationAppendxs.length > 0) {
this.formobj.kpxxqrsApplicationAppendxs.forEach((e) => {
this.image_list3.push(e.fileUrl)
})
}
if (this.formobj.cldjhtApplicationAppendxs.length > 0) {
this.formobj.cldjhtApplicationAppendxs.forEach((e) => {
this.image_list4.push(e.fileUrl)
})
}
}
})
},
//
openAgree(val) {
this.operation = val
this.currentLink = true
this.dialogList.comment = '同意'
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.dialogList.comment = ''
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.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()
}
}
},
/** 同意任务 */
handleAgree() {
this.linkByParameter.comment = this.dialogList.comment
completeByDivision(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
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
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>
.titwu {
font-size: 28px;
text-align: center;
padding: 30px 0 20px 0;
}
.span-sty {
width: 100px !important;
}
.addinputInfo {
margin-left: 90px !important;
}
</style>

483
anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/arrearsbillingDaiBanInfo.vue

@ -0,0 +1,483 @@
<template>
<div class="app-container">
<!--标题按钮部分开始-->
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 新增修改按钮-->
<div>
<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>
<!--end 添加修改按钮-->
</div>
<!--按钮部分结束-->
<div class="">
<div class="titwu">欠款开票申请单</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<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.deptName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">发起日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyDate }}</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.staffName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">销售部门</div>
<el-form-item><span class="addinputInfo">{{ formobj.saleDeptName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">销售类型</div>
<el-form-item><span class="addinputInfo">{{ formobj.saleTypeValue }}</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.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开票单位</div>
<el-form-item><span class="addinputInfo">{{ formobj.openTickUnitName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">客户名称</div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">主车开票信息</div>
<el-row>
<el-col :span="8">
<div class="span-sty">单台开票金额</div>
<el-form-item><span class="addinputInfo">{{ formobj.oneBillMoney }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">是否领取发票原件</div>
<el-form-item><span class="addinputInfo">{{ formobj.isLQOrigInvoice }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开票名称默认</div>
<el-form-item><span class="addinputInfo">{{ formobj.openTickName }}</span></el-form-item>
</el-col>
</el-row>
<el-table :key="tableKey" :data="formobj.finBillVehicles" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="合格证状态" align="center">
<template slot-scope="scope">
<span>{{ scope.row.certificateStateValue }}</span>
</template>
</el-table-column>
<el-table-column label="开票类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.billTypeValue }}</span>
</template>
</el-table-column>
<el-table-column label="开票名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.openTickName }}</span>
</template>
</el-table-column>
<el-table-column label="开票信息" align="center">
<template slot-scope="scope">
<span>{{ scope.row.openTickRemarks }}</span>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="12">
<div class="span-sty">欠款金额合计</div>
<el-form-item><span class="addinputInfo">{{ formobj.arrearsMoney }}</span></el-form-item>
</el-col>
<el-col :span="12">
<div class="span-sty">承诺回款日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.returnedMoneyDate }}</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.arrearsOpenYYValue }}</span></el-form-item>
</el-col>
<el-col :span="16">
<el-form-item><span class="addinputInfo" style="margin-left: 0px !important;">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">挂车开票信息(挂车的开票类型开票名称与主车相同)</div>
<el-table :key="billingKey" :data="formobj.finBillTrailers" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="挂车车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.gcVinNo }}</span>
</template>
</el-table-column>
<el-table-column label="主车车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="开票金额" align="center">
<template slot-scope="scope">
<span>{{ scope.row.oneBillMoney }}</span>
</template>
</el-table-column>
</el-table>
<div class="title">证件(营业执照或身份证)</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list1" :key="index" :src="item" :preview-src-list="image_list1"></el-image>
</el-col>
</el-row>
<div class="title">客户开票申请书</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list2" :key="index" :src="item" :preview-src-list="image_list2"></el-image>
</el-col>
</el-row>
<div class="title">款项确认书(贷款业务上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list3" :key="index" :src="item" :preview-src-list="image_list3"></el-image>
</el-form-item>
</el-col>
</el-row>
<div class="title">车辆登记合同(开票名称与客户名称不一致时上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list4" :key="index" :src="item" :preview-src-list="image_list3"></el-image>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 选择待办人 的弹出框-->
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%">
<el-form class="formadd" >
<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 { fetchDetailsBySid, complete, breakProcess, reject, getNextNodesForSubmit, getPreviousNodesForReject } from '@/api/anruifinmanagement/arrearsbilling'
export default {
name: 'arrearsbillingDaiBanInfo',
data() {
return {
viewTitle: '',
tableKey: 0,
billingKey: 1,
index: 0,
image_list1: [],
image_list2: [],
image_list3: [],
image_list4: [],
formobj: {
applyDate: '',
arrearsMoney: '',
arrearsOpenYYKey: '',
arrearsOpenYYValue: '',
billNo: '',
billStateKey: '',
billStateValue: '',
cldjhtApplicationAppendxs: [],
contractNo: '',
contractSid: '',
createByName: '',
customerName: '',
customerSid: '',
deptName: '',
deptSid: '',
finBillTrailers: [],
finBillVehicles: [],
isDelayBill: '',
isHighAndLowOpen: '',
isLQOrigInvoice: '',
khkpsqsApplicationAppendxs: [],
kpxxqrsApplicationAppendxs: [],
modelName: '',
modelSid: '',
nodeSid: '',
nodeState: '',
oneBillMoney: '',
openTickName: '',
openTickSid: '',
openTickTypeKey: '',
openTickTypeValue: '',
openTickUnitName: '',
openTickUnitSid: '',
orgSidPath: '',
procDefId: '',
procInstSid: '',
remarks: '',
returnedMoneyDate: '',
saleDeptName: '',
saleDeptSid: '',
saleTypeKey: '',
saleTypeValue: '',
sid: '',
staffName: '',
staffSid: '',
totalBillMoney: '',
useOrgSid: '',
createBySid: '',
zjApplicationAppendxs: []
},
rules: {},
operation: '', //
dialogList: {
comment: ''
},
startTask: true,
current: {
taskDefKey: '',
taskName: '' //
},
nextNode: {}, //
nodeDialogVisible: false,
currentLink: true,
linkByParameter: {
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
orgSidPath: '',
taskDefKey: '',
userSid: ''
}
}
},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()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.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 550 + 'px'
}
}, '*')
},
methods: {
showInfo(sid) {
this.viewTitle = '欠款开票详情'
fetchDetailsBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.zjApplicationAppendxs.length > 0) {
this.formobj.zjApplicationAppendxs.forEach((e) => {
this.image_list1.push(e.fileUrl)
})
}
if (this.formobj.khkpsqsApplicationAppendxs.length > 0) {
this.formobj.khkpsqsApplicationAppendxs.forEach((e) => {
this.image_list2.push(e.fileUrl)
})
}
if (this.formobj.kpxxqrsApplicationAppendxs.length > 0) {
this.formobj.kpxxqrsApplicationAppendxs.forEach((e) => {
this.image_list3.push(e.fileUrl)
})
}
if (this.formobj.cldjhtApplicationAppendxs.length > 0) {
this.formobj.cldjhtApplicationAppendxs.forEach((e) => {
this.image_list4.push(e.fileUrl)
})
}
}
})
},
//
openAgree(val) {
this.operation = val
this.currentLink = true
this.dialogList.comment = '同意'
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.dialogList.comment = ''
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.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()
}
}
},
/** 同意任务 */
handleAgree() {
this.linkByParameter.comment = this.dialogList.comment
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
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
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>
.titwu {
font-size: 28px;
text-align: center;
padding: 30px 0 20px 0;
}
.span-sty {
width: 100px !important;
}
.addinputInfo {
margin-left: 90px !important;
}
</style>

604
anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/arrearsbillingEdit.vue

@ -0,0 +1,604 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSave()">保存
</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit()">提交
</el-button>
</div>
</div>
<div class="">
<div class="titwu">欠款开票申请单</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<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.deptName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">发起日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyDate }}</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.staffName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">销售部门</div>
<el-form-item><span class="addinputInfo">{{ formobj.saleDeptName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty"><span class="icon">*</span>销售类型</div>
<el-form-item prop="saleTypeValue">
<el-select v-model="formobj.saleTypeValue" placeholder="请选择" @change="changeSaleType" clearable class="addinputInfo">
<el-option v-for="item in saleType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option>
</el-select>
</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.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开票单位</div>
<el-form-item><span class="addinputInfo">{{ formobj.openTickUnitName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">客户名称</div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
</el-row>
<div class="title titleOne">
<div>主车开票信息</div>
<div><el-button type="primary" size="mini" icon="el-icon-plus" class="btntopblueline" @click="addVehicle">选择车辆</el-button></div>
</div>
<el-row>
<el-col :span="8">
<div class="span-sty"><span class="icon">*</span>单台开票金额</div>
<el-form-item prop="oneBillMoney"><el-input v-model="formobj.oneBillMoney" :disabled="moneyEdit" @keyup.native="UpNumber" clearable placeholder="" class="addinputw"/></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty"><span class="icon">*</span>是否领取发票原件</div>
<el-form-item prop="isLQOrigInvoice">
<el-radio-group class="addinputw" style="font-size: 1px" v-model="formobj.isLQOrigInvoice">
<el-radio label="是"></el-radio>
<el-radio label="否"></el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开票名称默认</div>
<el-form-item>
<el-select v-model="formobj.openTickName" placeholder="请选择" @change="changeOpenTick" filterable clearable class="addinputInfo">
<el-option v-for="item in openTick_list" :key="item.sid" :label="item.name" :value="item.name"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-table :key="tableKey" :data="formobj.finBillVehicles" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="合格证状态" align="center">
<template slot-scope="scope">
<span>{{ scope.row.certificateStateValue }}</span>
</template>
</el-table-column>
<el-table-column label="开票类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.billTypeValue }}</span>
</template>
</el-table-column>
<el-table-column label="开票名称" align="center">
<template slot-scope="scope">
<el-select v-model="scope.row.openTickName" placeholder="请选择" @change="changeOpenTickName($event, scope.row)" clearable>
<el-option v-for="item in openTick_list" :key="item.sid" :label="item.name" :value="item.name"></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="开票信息" align="center">
<template slot-scope="scope">
<span>{{ scope.row.openTickRemarks }}</span>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="12">
<div class="span-sty">欠款金额合计</div>
<el-form-item><span class="addinputInfo">{{ arrearsMoney() }}</span></el-form-item>
</el-col>
<el-col :span="12">
<div class="span-sty">承诺回款日期</div>
<el-form-item>
<el-date-picker v-model="formobj.returnedMoneyDate" type="date" class="addinputInfo" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span class="icon">*</span>欠款开票原因</div>
<el-form-item prop="arrearsOpenYYValue">
<el-select v-model="formobj.arrearsOpenYYValue" placeholder="请选择" @change="changeArrearsOpenYY" filterable clearable class="addinputInfo">
<el-option v-for="item in arrearsOpenYY_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item>
<el-input v-model="formobj.remarks" clearable placeholder="" class="addinputw" style="margin-left: 0px !important;"/>
</el-form-item>
</el-col>
</el-row>
<div class="title">挂车开票信息(挂车的开票类型开票名称与主车相同)</div>
<el-table :key="billingKey" :data="formobj.finBillTrailers" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="挂车车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.gcVinNo }}</span>
</template>
</el-table-column>
<el-table-column label="主车车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="开票金额" align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.oneBillMoney" @keyup.native="UpNumber" clearable placeholder=""/>
</template>
</el-table-column>
</el-table>
<div class="title"><span class="icon">*</span>证件(营业执照或身份证)</div>
<el-row>
<el-col :span="24">
<upload ref="uploadImg" v-model="image_list1" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-col>
</el-row>
<div class="title"><span class="icon">*</span>客户开票申请书</div>
<el-row>
<el-col :span="24">
<upload ref="uploadImg" v-model="image_list2" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-col>
</el-row>
<div class="title">款项确认书(贷款业务上传)</div>
<el-row>
<el-col :span="24">
<upload ref="uploadImg" v-model="image_list3" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-col>
</el-row>
<div class="title">车辆登记合同(开票名称与客户名称不一致时上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<upload ref="uploadImg" v-model="image_list4" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
<selectVehicle v-show="viewState == 2" ref="divSelect" @backData="backData" @doback="resetState"/>
</div>
</template>
<script>
import { fetchDetailsBySid, saveOrUpdate, submit, fetchByContractNo } from '@/api/anruifinmanagement/arrearsbilling'
import { selectAllDisList, typeValues, getOrgSidByPath } from '@/api/jichuxinxi/dictcommons'
import upload from '@/components/uploadFile/upload'
import selectVehicle from './relation/selectVehicle'
export default {
name: 'arrearsbillingEdit',
components: {
upload,
selectVehicle
},
data() {
return {
viewTitle: '',
viewState: 1,
submitdisabled: false,
diploma_list: [],
accept: '.jpg,.jpeg,.png,.JPG,.JPEG',
tableKey: 0,
billingKey: 1,
index: 0,
moneyEdit: false,
openTick_list: [],
saleType_list: [],
arrearsOpenYY_list: [],
image_list1: [],
image_list2: [],
image_list3: [],
image_list4: [],
formobj: {
applyDate: '',
arrearsMoney: '',
arrearsOpenYYKey: '',
arrearsOpenYYValue: '',
billNo: '',
billStateKey: '',
billStateValue: '',
cldjhtApplicationAppendxs: [],
contractNo: '',
contractSid: '',
createByName: '',
customerName: '',
customerSid: '',
deptName: '',
deptSid: '',
finBillTrailers: [],
finBillVehicles: [],
isDelayBill: '',
isHighAndLowOpen: '',
isLQOrigInvoice: '',
khkpsqsApplicationAppendxs: [],
kpxxqrsApplicationAppendxs: [],
modelName: '',
modelSid: '',
nodeSid: '',
nodeState: '',
oneBillMoney: '',
openTickName: '',
openTickSid: '',
openTickTypeKey: '',
openTickTypeValue: '',
openTickUnitName: '',
openTickUnitSid: '',
orgSidPath: '',
procDefId: '',
procInstSid: '',
remarks: '',
returnedMoneyDate: '',
saleDeptName: '',
saleDeptSid: '',
saleTypeKey: '',
saleTypeValue: '',
sid: '',
staffName: '',
staffSid: '',
useOrgSid: '',
createBySid: '',
zjApplicationAppendxs: []
},
rules: {
oneBillMoney: [{ required: true, message: '单台开票金额不能为空', trigger: 'blur' }],
saleTypeValue: [{ required: true, message: '销售类型不能为空', trigger: 'change' }],
isLQOrigInvoice: [{ required: true, message: '是否领取发票原件请选择是或否', trigger: 'change' }],
arrearsOpenYYValue: [{ required: true, message: '欠款开票原因不能为空', trigger: 'change' }]
}
}
},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
this.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 550 + 'px'
}
}, '*')
},
methods: {
init() {
typeValues({ type: 'purchaseType' }).then((res) => {
if (res.success) {
this.saleType_list = res.data
}
})
typeValues({ type: 'qkCause' }).then((res) => {
if (res.success) {
this.arrearsOpenYY_list = res.data
}
})
},
UpNumber(e) {
e.target.value = e.target.value.replace(/[^\d]/g, '') // ."-"
e.target.value = e.target.value.replace(/^00/, '0') // 0
if (e.target.value.indexOf('.') < 0 && e.target.value !== '' && e.target.value !== '-') {
// 0102
console.log(e.target.value)
e.target.value = parseFloat(e.target.value)
}
},
showInfo(sid) {
this.init()
this.viewTitle = '【编辑】欠款开票申请'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
fetchDetailsBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
fetchByContractNo(this.formobj.contractNo).then((res) => {
if (res.success) {
this.moneyEdit = res.data.isEdit
}
})
selectAllDisList({ orgSid: this.formobj.useOrgSid }).then((resp) => {
if (resp.success) {
this.openTick_list = resp.data
}
})
this.formobj.orgSidPath = window.sessionStorage.getItem('defaultOrgPath')
this.formobj.instanceId = res.data.procInstSid
this.formobj.userSid = window.sessionStorage.getItem('userSid')
if (this.formobj.cldjhtApplicationAppendxs.length > 0) {
this.formobj.cldjhtApplicationAppendxs.forEach((e) => {
this.image_list3.push({
name: e.fileName,
url: e.fileUrl
})
})
}
if (this.formobj.kpxxqrsApplicationAppendxs.length > 0) {
this.formobj.kpxxqrsApplicationAppendxs.forEach((e) => {
this.image_list4.push({
name: e.fileName,
url: e.fileUrl
})
})
}
if (this.formobj.khkpsqsApplicationAppendxs.length > 0) {
this.formobj.khkpsqsApplicationAppendxs.forEach((e) => {
this.image_list2.push({
name: e.fileName,
url: e.fileUrl
})
})
}
if (this.formobj.zjApplicationAppendxs.length > 0) {
this.formobj.zjApplicationAppendxs.forEach((e) => {
this.image_list1.push({
name: e.fileName,
url: e.fileUrl
})
})
}
}
})
},
//
arrearsMoney() {
if (this.formobj.oneBillMoney !== '' && this.formobj.finBillVehicles.length > 0) {
this.formobj.arrearsMoney = parseFloat(this.formobj.oneBillMoney) * parseFloat(this.formobj.finBillVehicles.length)
}
return this.formobj.arrearsMoney
},
changeOpenTick(val) {
const choose = this.openTick_list.filter((item) => item.name === val)
this.formobj.openTickSid = choose[0].sid
if (this.formobj.finBillVehicles.length > 0) {
for (var i = 0; i < this.formobj.finBillVehicles.length; i++) {
this.formobj.finBillVehicles[i].openTickName = choose[0].name
this.formobj.finBillVehicles[i].openTickSid = choose[0].sid
this.formobj.finBillVehicles[i].openTickRemarks = choose[0].openTickRemarks
}
}
},
changeSaleType(val) {
const choose = this.saleType_list.filter((item) => item.dictValue === val)
this.formobj.saleTypeKey = choose[0].dictKey
},
changeOpenTickName(val, row) {
const choose = this.openTick_list.filter((item) => item.name === val)
row.openTickSid = choose[0].sid
row.openTickRemarks = choose[0].openTickRemarks
},
changeArrearsOpenYY(val) {
const choose = this.arrearsOpenYY_list.filter((item) => item.dictValue === val)
this.formobj.arrearsOpenYYKey = choose[0].dictKey
},
addVehicle() {
this.viewState = 2
this.$refs['divSelect'].showData(this.formobj.finBillVehicles, this.formobj.contractNo)
},
backData(value) {
this.viewState = 1
value.forEach((e) => {
this.formobj.finBillVehicles.push({
vinNo: e.vinNo,
vehSid: e.vehSid,
billAppSid: '',
billName: '',
billNameSid: '',
billTypeKey: '01',
billTypeValue: '机动车销售统一发票',
certificateStateKey: e.certificateState,
certificateStateValue: e.certificateStateValue,
createByName: window.sessionStorage.getItem('name'),
openTickName: '',
openTickRemarks: '',
openTickSid: '',
remarks: '',
sid: '',
useOrgSid: ''
})
})
},
handleSave() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.getUrl()
this.submitdisabled = true
saveOrUpdate(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
handleSubmit() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.getUrl()
if (this.formobj.zjApplicationAppendxs.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传证件(营业执照或身份证)' })
return
}
if (this.formobj.khkpsqsApplicationAppendxs.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传客户开票申请书' })
return
}
this.submitdisabled = true
submit(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '提交成功' })
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
getUrl() {
if (this.image_list1.length > 0) {
const aa = []
for (var i = 0; i < this.image_list1.length; i++) {
aa.push({
attachType: '',
billAppSid: '',
createByName: window.sessionStorage.getItem('name'),
fileSid: '',
fileName: this.image_list1[i].name,
fileType: this.image_list1[i].name.substr(this.image_list1[i].name.lastIndexOf('.')),
fileUrl: this.image_list1[i].url,
sid: ''
})
}
this.formobj.zjApplicationAppendxs = aa
} else {
this.formobj.zjApplicationAppendxs = []
}
if (this.image_list2.length > 0) {
const bb = []
for (var k = 0; k < this.image_list2.length; k++) {
bb.push({
attachType: '',
billAppSid: '',
createByName: window.sessionStorage.getItem('name'),
fileSid: '',
fileName: this.image_list2[k].name,
fileType: this.image_list2[k].name.substr(this.image_list2[k].name.lastIndexOf('.')),
fileUrl: this.image_list2[k].url,
sid: ''
})
}
this.formobj.khkpsqsApplicationAppendxs = bb
} else {
this.formobj.khkpsqsApplicationAppendxs = []
}
if (this.image_list3.length > 0) {
const cc = []
for (var m = 0; m < this.image_list3.length; m++) {
cc.push({
attachType: '',
billAppSid: '',
createByName: window.sessionStorage.getItem('name'),
fileSid: '',
fileName: this.image_list3[m].name,
fileType: this.image_list3[m].name.substr(this.image_list3[m].name.lastIndexOf('.')),
fileUrl: this.image_list3[m].url,
sid: ''
})
}
this.formobj.cldjhtApplicationAppendxs = cc
} else {
this.formobj.cldjhtApplicationAppendxs = []
}
if (this.image_list4.length > 0) {
const cc = []
for (var n = 0; n < this.image_list3.length; n++) {
cc.push({
attachType: '',
billAppSid: '',
createByName: window.sessionStorage.getItem('name'),
fileSid: '',
fileName: this.image_list3[n].name,
fileType: this.image_list3[n].name.substr(this.image_list3[n].name.lastIndexOf('.')),
fileUrl: this.image_list3[n].url,
sid: ''
})
}
this.formobj.kpxxqrsApplicationAppendxs = cc
} else {
this.formobj.kpxxqrsApplicationAppendxs = []
}
},
resetState() {
this.viewState = 1
}
}
}
</script>
<style scoped>
.titwu {
font-size: 28px;
text-align: center;
padding: 30px 0 20px 0;
}
.titleOne {
padding: 7px !important;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.span-sty {
width: 130px !important;
}
.addinputInfo {
margin-left: 120px !important;
}
.addinputw {
margin-left: 120px !important;
}
/deep/ .el-form-item__error {
margin-left: 120px;
}
</style>

358
anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/arrearsbillingYiBanInfo.vue

@ -0,0 +1,358 @@
<template>
<div class="app-container">
<!--标题按钮部分开始-->
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 新增修改按钮-->
<div>
<el-button type="danger" size="small" @click="openRevoke()">撤回</el-button>
</div>
<!--end 添加修改按钮-->
</div>
<!--按钮部分结束-->
<div class="">
<div class="titwu">欠款开票申请单</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<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.deptName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">发起日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyDate }}</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.staffName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">销售部门</div>
<el-form-item><span class="addinputInfo">{{ formobj.saleDeptName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">销售类型</div>
<el-form-item><span class="addinputInfo">{{ formobj.saleTypeValue }}</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.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开票单位</div>
<el-form-item><span class="addinputInfo">{{ formobj.openTickUnitName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">客户名称</div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">主车开票信息</div>
<el-row>
<el-col :span="8">
<div class="span-sty">单台开票金额</div>
<el-form-item><span class="addinputInfo">{{ formobj.oneBillMoney }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">是否领取发票原件</div>
<el-form-item><span class="addinputInfo">{{ formobj.isLQOrigInvoice }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开票名称默认</div>
<el-form-item><span class="addinputInfo">{{ formobj.openTickName }}</span></el-form-item>
</el-col>
</el-row>
<el-table :key="tableKey" :data="formobj.finBillVehicles" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="合格证状态" align="center">
<template slot-scope="scope">
<span>{{ scope.row.certificateStateValue }}</span>
</template>
</el-table-column>
<el-table-column label="开票类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.billTypeValue }}</span>
</template>
</el-table-column>
<el-table-column label="开票名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.openTickName }}</span>
</template>
</el-table-column>
<el-table-column label="开票信息" align="center">
<template slot-scope="scope">
<span>{{ scope.row.openTickRemarks }}</span>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="12">
<div class="span-sty">欠款金额合计</div>
<el-form-item><span class="addinputInfo">{{ formobj.arrearsMoney }}</span></el-form-item>
</el-col>
<el-col :span="12">
<div class="span-sty">承诺回款日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.returnedMoneyDate }}</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.arrearsOpenYYValue }}</span></el-form-item>
</el-col>
<el-col :span="16">
<el-form-item><span class="addinputInfo" style="margin-left: 0px !important;">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">挂车开票信息(挂车的开票类型开票名称与主车相同)</div>
<el-table :key="billingKey" :data="formobj.finBillTrailers" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="挂车车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.gcVinNo }}</span>
</template>
</el-table-column>
<el-table-column label="主车车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="开票金额" align="center">
<template slot-scope="scope">
<span>{{ scope.row.oneBillMoney }}</span>
</template>
</el-table-column>
</el-table>
<div class="title">证件(营业执照或身份证)</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list1" :key="index" :src="item" :preview-src-list="image_list1"></el-image>
</el-col>
</el-row>
<div class="title">客户开票申请书</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list2" :key="index" :src="item" :preview-src-list="image_list2"></el-image>
</el-col>
</el-row>
<div class="title">款项确认书(贷款业务上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list3" :key="index" :src="item" :preview-src-list="image_list3"></el-image>
</el-form-item>
</el-col>
</el-row>
<div class="title">车辆登记合同(开票名称与客户名称不一致时上传)</div>
<el-row>
<el-col :span="24">
<el-form-item>
<el-image style="width: 178px;height: 178px;padding-left: 5px" v-for="(item,index) in image_list4" :key="index" :src="item" :preview-src-list="image_list3"></el-image>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</template>
<script>
import { fetchDetailsBySid, revokeProcess } from '@/api/anruifinmanagement/arrearsbilling'
export default {
name: 'arrearsbillingYiBanInfo',
data() {
return {
viewTitle: '',
tableKey: 0,
billingKey: 1,
index: 0,
image_list1: [],
image_list2: [],
image_list3: [],
image_list4: [],
formobj: {
applyDate: '',
arrearsMoney: '',
arrearsOpenYYKey: '',
arrearsOpenYYValue: '',
billNo: '',
billStateKey: '',
billStateValue: '',
cldjhtApplicationAppendxs: [],
contractNo: '',
contractSid: '',
createByName: '',
customerName: '',
customerSid: '',
deptName: '',
deptSid: '',
finBillTrailers: [],
finBillVehicles: [],
isDelayBill: '',
isHighAndLowOpen: '',
isLQOrigInvoice: '',
khkpsqsApplicationAppendxs: [],
kpxxqrsApplicationAppendxs: [],
modelName: '',
modelSid: '',
nodeSid: '',
nodeState: '',
oneBillMoney: '',
openTickName: '',
openTickSid: '',
openTickTypeKey: '',
openTickTypeValue: '',
openTickUnitName: '',
openTickUnitSid: '',
orgSidPath: '',
procDefId: '',
procInstSid: '',
remarks: '',
returnedMoneyDate: '',
saleDeptName: '',
saleDeptSid: '',
saleTypeKey: '',
saleTypeValue: '',
sid: '',
staffName: '',
staffSid: '',
totalBillMoney: '',
useOrgSid: '',
createBySid: '',
zjApplicationAppendxs: []
},
rules: {},
linkByParameter: {
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
orgSidPath: '',
taskDefKey: '',
userSid: ''
}
}
},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()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.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 550 + 'px'
}
}, '*')
},
methods: {
showInfo(sid) {
this.viewTitle = '欠款开票详情'
fetchDetailsBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.zjApplicationAppendxs.length > 0) {
this.formobj.zjApplicationAppendxs.forEach((e) => {
this.image_list1.push(e.fileUrl)
})
}
if (this.formobj.khkpsqsApplicationAppendxs.length > 0) {
this.formobj.khkpsqsApplicationAppendxs.forEach((e) => {
this.image_list2.push(e.fileUrl)
})
}
if (this.formobj.kpxxqrsApplicationAppendxs.length > 0) {
this.formobj.kpxxqrsApplicationAppendxs.forEach((e) => {
this.image_list3.push(e.fileUrl)
})
}
if (this.formobj.cldjhtApplicationAppendxs.length > 0) {
this.formobj.cldjhtApplicationAppendxs.forEach((e) => {
this.image_list4.push(e.fileUrl)
})
}
}
})
},
/** 确认撤回任务 */
openRevoke() {
this.$confirm('是否确认执行撤回操作', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.handleRevoke()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消撤回'
})
})
},
/** 撤回任务 */
handleRevoke() {
revokeProcess(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>
.titwu {
font-size: 28px;
text-align: center;
padding: 30px 0 20px 0;
}
.span-sty {
width: 100px !important;
}
.addinputInfo {
margin-left: 90px !important;
}
</style>

184
anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/relation/selectVehicle.vue

@ -0,0 +1,184 @@
<template>
<div class="app-container">
<div>
<div class="tab-header webtop">
<div>车辆查询</div>
<div>
<el-button type="primary" size="small" @click="AddUpdateReturn">确定</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-form-item label="车架号">
<el-input v-model="listQuery.params.vinNo" clearable class="addinputw" placeholder=""/>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">现车列表</div>
</div>
<div class="">
<el-table :key="tableKey" ref="multipleTable" v-loading="listLoading" :data="list" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column width="50px" type="selection" align="center"/>
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="合同编号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.contractNo }}</span>
</template>
</el-table-column>
<el-table-column label="客户名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.customerName }}</span>
</template>
</el-table-column>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
</el-table>
</div>
<div class="pages">
<div class="tit"/>
<!-- 翻页 -->
<Pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
</div>
</template>
<script>
import Pagination from '@/components/pagination'
import { vehicleQKKPList } from '@/api/anruifinmanagement/arrearsbilling'
export default {
name: 'xianchechaxun',
components: {
Pagination
},
data() {
return {
carbrand_list: [], //
carColor_list: [], //
location_list: [], //
isSearchShow: false,
searchxianshitit: '隐藏查询条件',
tableKey: 0,
sids: [],
list: [],
listLoading: false,
listQuery: {
current: 1,
size: 5,
params: {
contractNo: '',
vinNo: '',
vinSids: []
},
total: 0
}
}
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
handleReturn() {
this.$emit('doback')
},
//
getList() {
this.listLoading = true
vehicleQKKPList(this.listQuery).then((response) => {
this.listLoading = false
if (response.success) {
this.listQuery.total = response.data.total
this.list = response.data.records
} else {
this.listQuery.total = 0
this.list = []
}
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
//
handleReset() {
this.listQuery.current = 1
this.listQuery.size = 5
this.listQuery.total = 0
this.listQuery.params.vinNo = ''
this.getList()
},
handleSelectionChange(row) {
this.sids = []
const aa = []
row.forEach((element) => {
aa.push({
vinNo: element.vinNo,
vehSid: element.vehSid,
certificateStateValue: element.certificateStateValue,
certificateState: element.certificateState
})
})
this.sids = aa
},
showData(value, contractNo) {
const aa = []
if (value.length > 0) {
for (var i = 0; i < value.length; i++) {
aa.push(value[i].vehSid)
}
this.listQuery.params.vinSids = aa
} else {
this.listQuery.params.vinSids = []
}
this.listQuery.current = 1
this.listQuery.total = 0
this.listQuery.size = 5
this.listQuery.params.contractNo = contractNo
this.getList()
},
//
AddUpdateReturn() {
if (this.sids.length > 0) {
this.$emit('backData', this.sids)
} else {
this.$notify({
title: '提示',
message: '请选择至少一条车型记录!',
type: 'error',
duration: 2000
})
}
}
}
}
</script>
<style scoped>
</style>
Loading…
Cancel
Save