Browse Source

完善欠款开票申请

master
yunuo970428 2 years ago
parent
commit
0fa58e1d82
  1. 14
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/arrearsbilling/arrearsbillingAdd.vue
  2. 14
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/qiankuankaipiaoFlow/arrearsbillingEdit.vue

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

@ -108,7 +108,7 @@
</el-table-column> </el-table-column>
<el-table-column label="开票名称" align="center"> <el-table-column label="开票名称" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.openTickName" placeholder="请选择" @change="changeOpenTickName($event, scope.row)" clearable> <el-select v-model="scope.row.openTickName" placeholder="请选择" @change="changeOpenTickName($event, scope.row)" filterable>
<el-option v-for="item in openTick_list" :key="item.sid" :label="item.name" :value="item.name"></el-option> <el-option v-for="item in openTick_list" :key="item.sid" :label="item.name" :value="item.name"></el-option>
</el-select> </el-select>
</template> </template>
@ -301,7 +301,7 @@ export default {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) { if (res.success) {
this.formobj.useOrgSid = res.data this.formobj.useOrgSid = res.data
selectAllDisList({ orgSid: res.data }).then((resp) => { selectAllDisList({ orgSid: res.data, staffSid: window.sessionStorage.getItem('staffSid') }).then((resp) => {
if (resp.success) { if (resp.success) {
this.openTick_list = resp.data this.openTick_list = resp.data
} }
@ -495,6 +495,16 @@ export default {
this.$message({ showClose: true, type: 'error', message: '请选择车辆' }) this.$message({ showClose: true, type: 'error', message: '请选择车辆' })
return return
} }
for (var i = 0; i < this.formobj.finBillVehicles.length; i++) {
if (this.formobj.finBillVehicles[i].openTickName === '') {
this.$message({ showClose: true, type: 'error', message: this.formobj.finBillVehicles[i].vinNo + '的开票名称不能为空' })
return
}
if (this.formobj.finBillVehicles[i].openTickRemarks === '') {
this.$message({ showClose: true, type: 'error', message: this.formobj.finBillVehicles[i].vinNo + '的开票信息为空,请完善经销商信息或客户信息' })
return
}
}
this.submitdisabled = true this.submitdisabled = true
submit(this.formobj).then((res) => { submit(this.formobj).then((res) => {
if (res.success) { if (res.success) {

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

@ -107,7 +107,7 @@
</el-table-column> </el-table-column>
<el-table-column label="开票名称" align="center"> <el-table-column label="开票名称" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.openTickName" placeholder="请选择" @change="changeOpenTickName($event, scope.row)" clearable> <el-select v-model="scope.row.openTickName" placeholder="请选择" @change="changeOpenTickName($event, scope.row)" filterable>
<el-option v-for="item in openTick_list" :key="item.sid" :label="item.name" :value="item.name"></el-option> <el-option v-for="item in openTick_list" :key="item.sid" :label="item.name" :value="item.name"></el-option>
</el-select> </el-select>
</template> </template>
@ -338,7 +338,7 @@ export default {
this.moneyEdit = res.data.isEdit this.moneyEdit = res.data.isEdit
} }
}) })
selectAllDisList({ orgSid: this.formobj.useOrgSid }).then((resp) => { selectAllDisList({ orgSid: this.formobj.useOrgSid, staffSid: this.formobj.staffSid }).then((resp) => {
if (resp.success) { if (resp.success) {
this.openTick_list = resp.data this.openTick_list = resp.data
} }
@ -469,6 +469,16 @@ export default {
this.$refs['form_obj'].validate((valid) => { this.$refs['form_obj'].validate((valid) => {
if (valid) { if (valid) {
this.getUrl() this.getUrl()
for (var i = 0; i < this.formobj.finBillVehicles.length; i++) {
if (this.formobj.finBillVehicles[i].openTickName === '') {
this.$message({ showClose: true, type: 'error', message: this.formobj.finBillVehicles[i].vinNo + '的开票名称不能为空' })
return
}
if (this.formobj.finBillVehicles[i].openTickRemarks === '') {
this.$message({ showClose: true, type: 'error', message: this.formobj.finBillVehicles[i].vinNo + '的开票信息为空,请完善经销商信息或客户信息' })
return
}
}
this.submitdisabled = true this.submitdisabled = true
submit(this.formobj).then((res) => { submit(this.formobj).then((res) => {
if (res.success) { if (res.success) {

Loading…
Cancel
Save