Browse Source

完善出库开票申请

master
yunuo970428 12 months ago
parent
commit
f22d9457cb
  1. 11
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue
  2. 1
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingInfo.vue
  3. 43
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/daichukucheliang.vue
  4. 1
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuDaiBanInfo.vue
  5. 10
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuEdit.vue
  6. 1
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuYiBanInfo.vue
  7. 43
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/daichuku.vue

11
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue

@ -296,6 +296,7 @@ export default {
price: '', price: '',
procInstId: '', procInstId: '',
remarks: '', remarks: '',
isKp: '',
sid: '', sid: '',
staffDeptName: '', staffDeptName: '',
staffDeptSid: '', staffDeptSid: '',
@ -394,8 +395,13 @@ export default {
getRetrievalApplyInfo(this.arguments).then((resp) => { getRetrievalApplyInfo(this.arguments).then((resp) => {
if (resp.success) { if (resp.success) {
this.formobj = resp.data this.formobj = resp.data
// //
if (this.formobj.paymentMethodKey === '2') { if (this.formobj.paymentMethodKey === '2' && this.formobj.isKp === 0) {
// isKp0
this.formobj.hasInvoice = '是'
this.formobj.hasInvoiceKey = '1'
} else if (this.formobj.paymentMethodKey === '2' && this.formobj.isKp === 1) {
// isKp1
this.formobj.hasInvoice = '否' this.formobj.hasInvoice = '否'
this.formobj.hasInvoiceKey = '0' this.formobj.hasInvoiceKey = '0'
} }
@ -736,6 +742,7 @@ export default {
price: '', price: '',
procInstId: '', procInstId: '',
remarks: '', remarks: '',
isKp: '',
sid: '', sid: '',
staffDeptName: '', staffDeptName: '',
staffDeptSid: '', staffDeptSid: '',

1
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingInfo.vue

@ -239,6 +239,7 @@ export default {
price: '', price: '',
procInstId: '', procInstId: '',
remarks: '', remarks: '',
isKp: '',
sid: '', sid: '',
staffDeptName: '', staffDeptName: '',
staffDeptSid: '', staffDeptSid: '',

43
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/daichukucheliang.vue

@ -30,34 +30,15 @@
<el-table ref="multipleTable" :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange"> <el-table ref="multipleTable" :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" align="center" width="50"/> <el-table-column fixed type="selection" align="center" width="50"/>
<el-table-column fixed label="序号" type="index" width="60" :index="indexMethod" align="center"/> <el-table-column fixed label="序号" type="index" width="60" :index="indexMethod" align="center"/>
<el-table-column label="业务状态" align="center"> <el-table-column prop="subscription" label="业务状态" align="center" />
<el-table-column prop="paymentMethod" label="销售类型" align="center" />
<el-table-column prop="contractNo" label="合同编号" align="center" />
<el-table-column prop="loanName" label="贷款人" align="center" />
<el-table-column prop="name" label="客户名称" align="center" />
<el-table-column prop="vinNo" label="车架号" align="center" />
<el-table-column label="是否已开票" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.subscription }}</span> <span>{{ scope.row.isKp == '1' ? '是' : '否' }}</span>
</template>
</el-table-column>
<el-table-column label="销售类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.paymentMethod }}</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.loanName }}</span>
</template>
</el-table-column>
<el-table-column label="客户名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -237,6 +218,14 @@ export default {
}) })
return return
} }
if (this.multipleSelection[i].paymentMethodKey === '2' && this.multipleSelection[i].isKp !== this.multipleSelection[this.multipleSelection.length - 1].isKp) {
this.$message({
showClose: true,
message: '贷款业务,不能同时选择已开票和未开票的车辆!',
type: 'error'
})
return
}
} }
console.log(this.sids, 9999) console.log(this.sids, 9999)
this.$emit('backData', this.sids) this.$emit('backData', this.sids)

1
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuDaiBanInfo.vue

@ -281,6 +281,7 @@ export default {
price: '', price: '',
procInstId: '', procInstId: '',
remarks: '', remarks: '',
isKp: '',
sid: '', sid: '',
staffDeptName: '', staffDeptName: '',
staffDeptSid: '', staffDeptSid: '',

10
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuEdit.vue

@ -288,6 +288,7 @@ export default {
price: '', price: '',
procInstId: '', procInstId: '',
remarks: '', remarks: '',
isKp: '',
sid: '', sid: '',
staffDeptName: '', staffDeptName: '',
staffDeptSid: '', staffDeptSid: '',
@ -397,8 +398,13 @@ export default {
if (resp.success) { if (resp.success) {
this.formobj = resp.data this.formobj = resp.data
this.formobj.userSid = window.sessionStorage.getItem('userSid') this.formobj.userSid = window.sessionStorage.getItem('userSid')
// //
if (this.formobj.paymentMethodKey === '2') { if (this.formobj.paymentMethodKey === '2' && this.formobj.isKp === 0) {
// isKp0
this.formobj.hasInvoice = '是'
this.formobj.hasInvoiceKey = '1'
} else if (this.formobj.paymentMethodKey === '2' && this.formobj.isKp === 1) {
// isKp1
this.formobj.hasInvoice = '否' this.formobj.hasInvoice = '否'
this.formobj.hasInvoiceKey = '0' this.formobj.hasInvoiceKey = '0'
} }

1
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/chukuYiBanInfo.vue

@ -253,6 +253,7 @@ export default {
price: '', price: '',
procInstId: '', procInstId: '',
remarks: '', remarks: '',
isKp: '',
sid: '', sid: '',
staffDeptName: '', staffDeptName: '',
staffDeptSid: '', staffDeptSid: '',

43
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/chukuguanliFlow/chukuguanli/daichuku.vue

@ -30,34 +30,15 @@
<el-table ref="multipleTable" :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange"> <el-table ref="multipleTable" :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" align="center" width="50"/> <el-table-column fixed type="selection" align="center" width="50"/>
<el-table-column fixed label="序号" type="index" width="60" :index="indexMethod" align="center"/> <el-table-column fixed label="序号" type="index" width="60" :index="indexMethod" align="center"/>
<el-table-column label="业务状态" align="center"> <el-table-column prop="subscription" label="业务状态" align="center" />
<el-table-column prop="paymentMethod" label="销售类型" align="center" />
<el-table-column prop="contractNo" label="合同编号" align="center" />
<el-table-column prop="loanName" label="贷款人" align="center" />
<el-table-column prop="name" label="客户名称" align="center" />
<el-table-column prop="vinNo" label="车架号" align="center" />
<el-table-column label="是否已开票" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.subscription }}</span> <span>{{ scope.row.isKp == '1' ? '是' : '否' }}</span>
</template>
</el-table-column>
<el-table-column label="销售类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.paymentMethod }}</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.loanName }}</span>
</template>
</el-table-column>
<el-table-column label="客户名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -236,6 +217,14 @@ export default {
}) })
return return
} }
if (this.multipleSelection[i].paymentMethodKey === '2' && this.multipleSelection[i].isKp !== this.multipleSelection[this.multipleSelection.length - 1].isKp) {
this.$message({
showClose: true,
message: '贷款业务,不能同时选择已开票和未开票的车辆!',
type: 'error'
})
return
}
} }
this.$emit('backData', this.sids) this.$emit('backData', this.sids)
} }

Loading…
Cancel
Save