Browse Source

完善欠款开票

master
yunuo970428 2 years ago
parent
commit
9bde0d2a5e
  1. 26
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/arrearsbilling/arrearsbilling.vue
  2. 10
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/arrearsbilling/arrearsbillingAdd.vue
  3. 3
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/arrearsbilling/relation/selectVehicle.vue
  4. 62
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/arrearsbillingByDivisionDaiBanInfo.vue
  5. 31
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/arrearsbillingByFileDaiBanInfo.vue
  6. 9
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/arrearsbillingEdit.vue
  7. 3
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/relation/selectVehicle.vue

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

@ -139,6 +139,9 @@
<arrearsbillingAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/>
<!--开票申请详情列表部分-->
<arrearsbillingInfo v-show="viewState == 4" ref="divInfo" @doback="resetState" />
<!-- 欠款领票申请 -->
<arrearscollectionAdd v-show="viewState == 5" ref="divArrearScollection" @doback="resetState"/>
<!-- 选择合同 -->
<el-dialog title="选择合同" :visible.sync="dialogVisible" width="70%">
<div>
<el-form ref="multipleTable" :inline="true" :model="contractList" class="vinNoForm" label-width="100px">
@ -204,6 +207,7 @@ import { typeValues, getOrgSidByPath, selectHaveMessage } from '@/api/jichuxinxi
import { getStorage } from '@/utils/auth'
import arrearsbillingAdd from './arrearsbillingAdd'
import arrearsbillingInfo from './arrearsbillingInfo'
import arrearscollectionAdd from '../arrearscollection/arrearscollectionAdd'
export default {
name: 'ArrearsBilling',
@ -212,7 +216,8 @@ export default {
pageye,
ButtonBar,
arrearsbillingAdd,
arrearsbillingInfo
arrearsbillingInfo,
arrearscollectionAdd
},
data() {
return {
@ -221,6 +226,13 @@ export default {
centerDialogVisible: false,
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: '',
btnKey: 'toArrear',
btnLabel: '欠款领票申请'
},
{
type: 'primary',
size: 'small',
@ -341,6 +353,9 @@ export default {
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toArrear':
this.toArrear()
break
case 'toAdd':
this.toAdd()
break
@ -453,6 +468,15 @@ export default {
this.viewState = 2
this.$refs['divAdd'].showAdd(row)
},
toArrear() {
if (this.sids.length === 1) {
this.viewState = 5
this.$refs['divArrearScollection'].showAdd(this.sids[0])
} else {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行欠款领票操作' })
return
}
},
toAdd() {
selectHaveMessage({ menuUrl: this.$route.path, orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {

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

@ -215,7 +215,6 @@ export default {
viewTitle: '',
viewState: 1,
submitdisabled: false,
diploma_list: [],
accept: '.jpg,.jpeg,.png,.JPG,.JPEG',
tableKey: 0,
billingKey: 1,
@ -466,6 +465,15 @@ export default {
sid: '',
useOrgSid: ''
})
if (e.trailers.length > 0) {
e.trailers.forEach((k) => {
this.formobj.finBillTrailers.push({
gcVinNo: k.gcVinNo,
vinNo: k.vinNo,
oneBillMoney: ''
})
})
}
})
},
handleSave() {

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

@ -143,7 +143,8 @@ export default {
vinNo: element.vinNo,
vehSid: element.vehSid,
certificateStateValue: element.certificateStateValue,
certificateState: element.certificateState
certificateState: element.certificateState,
trailers: element.trailers
})
})
this.sids = aa

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

@ -198,7 +198,7 @@
</template>
<script>
import { fetchDetailsBySid, completeByDivision, breakProcess, reject, getNextNodesForSubmit, getPreviousNodesForReject } from '@/api/anruifinmanagement/arrearsbilling'
import { fetchDetailsBySid, completeByDivision, complete, breakProcess, reject, getNextNodesForSubmit, getPreviousNodesForReject } from '@/api/anruifinmanagement/arrearsbilling'
export default {
name: 'arrearsbillingByDivisionDaiBanInfo',
data() {
@ -398,25 +398,47 @@ export default {
/** 同意任务 */
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
}
}, '*')
}
})
if (this.formobj.isLQOrigInvoice === '否') {
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
}
}, '*')
}
})
} else {
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() {

31
anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/arrearsbillingByFileDaiBanInfo.vue

@ -210,6 +210,7 @@ export default {
tableKey: 0,
billingKey: 1,
index: 0,
accept: '.jpg,.jpeg,.png,.JPG,.JPEG',
image_list1: [],
image_list2: [],
image_list3: [],
@ -286,10 +287,10 @@ export default {
orgSidPath: '',
taskDefKey: '',
userSid: '',
idCardImages: [],
customerInvoiceApplyImages: [],
registerContractImages: [],
invoiceApplyConfirmImages: []
cldjhtApplicationAppendxs: [],
khkpsqsApplicationAppendxs: [],
kpxxqrsApplicationAppendxs: [],
zjApplicationAppendxs: []
}
}
},
@ -365,9 +366,9 @@ export default {
sid: ''
})
}
this.linkByParameter.idCardImages = aa
this.linkByParameter.zjApplicationAppendxs = aa
} else {
this.linkByParameter.idCardImages = []
this.linkByParameter.zjApplicationAppendxs = []
}
if (this.image_list2.length > 0) {
const bb = []
@ -383,9 +384,9 @@ export default {
sid: ''
})
}
this.linkByParameter.customerInvoiceApplyImages = bb
this.linkByParameter.khkpsqsApplicationAppendxs = bb
} else {
this.linkByParameter.customerInvoiceApplyImages = []
this.linkByParameter.khkpsqsApplicationAppendxs = []
}
if (this.image_list3.length > 0) {
const cc = []
@ -401,9 +402,9 @@ export default {
sid: ''
})
}
this.linkByParameter.registerContractImages = cc
this.linkByParameter.kpxxqrsApplicationAppendxs = cc
} else {
this.linkByParameter.registerContractImages = []
this.linkByParameter.kpxxqrsApplicationAppendxs = []
}
if (this.image_list4.length > 0) {
const cc = []
@ -419,18 +420,19 @@ export default {
sid: ''
})
}
this.linkByParameter.invoiceApplyConfirmImages = cc
this.linkByParameter.cldjhtApplicationAppendxs = cc
} else {
this.linkByParameter.invoiceApplyConfirmImages = []
this.linkByParameter.cldjhtApplicationAppendxs = []
}
},
//
openAgree(val) {
if (this.formobj.zjApplicationAppendxs.length === 0) {
this.getUrl()
if (this.linkByParameter.zjApplicationAppendxs.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传证件(营业执照或身份证)' })
return
}
if (this.formobj.khkpsqsApplicationAppendxs.length === 0) {
if (this.linkByParameter.khkpsqsApplicationAppendxs.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传客户开票申请书' })
return
}
@ -487,7 +489,6 @@ export default {
/** 同意任务 */
handleAgree() {
this.linkByParameter.comment = this.dialogList.comment
this.getUrl()
completeBy(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({

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

@ -437,6 +437,15 @@ export default {
sid: '',
useOrgSid: ''
})
if (e.trailers.length > 0) {
e.trailers.forEach((k) => {
this.formobj.finBillTrailers.push({
gcVinNo: k.gcVinNo,
vinNo: k.vinNo,
oneBillMoney: ''
})
})
}
})
},
handleSave() {

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

@ -143,7 +143,8 @@ export default {
vinNo: element.vinNo,
vehSid: element.vehSid,
certificateStateValue: element.certificateStateValue,
certificateState: element.certificateState
certificateState: element.certificateState,
trailers: element.trailers
})
})
this.sids = aa

Loading…
Cancel
Save