todo:开票,回款

This commit is contained in:
ryoeiken 2021-01-09 12:06:23 +08:00
parent 835e6dfcd0
commit 3e76d01f84
4 changed files with 47 additions and 24 deletions

View File

@ -142,6 +142,8 @@ public class FtSettleDaoController extends BaseController {
case 3: case 3:
ftSettleDao.setType("在线支付"); ftSettleDao.setType("在线支付");
break; break;
default:
} }

View File

@ -136,7 +136,7 @@ public class FtStaffInfoDaoController extends BaseController {
} }
// 判断密码是否为空 // 判断密码是否为空
if (ftStaffInfoDao.getPassword() == null || ftStaffInfoDao.getPassword().equals("")) { if (ftStaffInfoDao.getPassword() == null || "".equals(ftStaffInfoDao.getPassword())) {
ftStaffInfoDao.setPassword("123456"); ftStaffInfoDao.setPassword("123456");
} }

View File

@ -368,7 +368,8 @@
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['fantang:invoice:add']" v-hasPermi="['fantang:invoice:add']"
>新增</el-button> >新增
</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -378,7 +379,8 @@
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['fantang:invoice:edit']" v-hasPermi="['fantang:invoice:edit']"
>回款登记</el-button> >回款登记
</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -388,7 +390,8 @@
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['fantang:invoice:remove']" v-hasPermi="['fantang:invoice:remove']"
>删除</el-button> >删除
</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -397,18 +400,20 @@
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['fantang:invoice:export']" v-hasPermi="['fantang:invoice:export']"
>导出</el-button> >导出
</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="invoiceList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="invoiceList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center"/>
<el-table-column label="id" align="center" prop="id" v-if="false"/> <el-table-column label="id" align="center" prop="id" v-if="false"/>
<el-table-column label="发票名" align="center" prop="invoiceName"/> <el-table-column label="发票名" align="center" prop="invoiceName"/>
<el-table-column label="发票号" align="center" prop="invoiceNum"/> <el-table-column label="发票号" align="center" prop="invoiceNum"/>
<el-table-column label="税号" align="center" prop="taxId"/> <el-table-column label="税号" align="center" prop="taxId"/>
<el-table-column label="开票类型" align="center" prop="invoiceType"/> <el-table-column label="收款方式" align="center" prop="collectionType"/>
<el-table-column label="开票类型" align="center" prop="invoiceType" :formatter="formatInvoiceType"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -417,14 +422,16 @@
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['fantang:invoice:edit']" v-hasPermi="['fantang:invoice:edit']"
>回款登记</el-button> >回款登记
</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['fantang:invoice:remove']" v-hasPermi="['fantang:invoice:remove']"
>删除</el-button> >删除
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -454,8 +461,7 @@ import {addInvoice, delInvoice, exportInvoice, getInvoice, listInvoice, updateIn
export default { export default {
name: "Invoice", name: "Invoice",
components: { components: {},
},
data() { data() {
return { return {
// //
@ -480,19 +486,25 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
invoiceType:2, // invoiceType:2,
}, },
// //
form: {}, form: {},
// //
rules: { rules: {}
}
}; };
}, },
created() { created() {
this.getList(); this.getList();
}, },
methods: { methods: {
formatInvoiceType(row) {
if (row.invoiceType === 1 || row.invoiceType === "1") {
return "开票"
} else {
return "挂账"
}
},
/** 查询财务收费开票列表 */ /** 查询财务收费开票列表 */
getList() { getList() {
this.loading = true; this.loading = true;
@ -536,7 +548,7 @@ export default {
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map(item => item.id) this.ids = selection.map(item => item.id)
this.single = selection.length!==1 this.single = selection.length !== 1
this.multiple = !selection.length this.multiple = !selection.length
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
@ -582,7 +594,7 @@ export default {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(function() { }).then(function () {
return delInvoice(ids); return delInvoice(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
@ -596,7 +608,7 @@ export default {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(function() { }).then(function () {
return exportInvoice(queryParams); return exportInvoice(queryParams);
}).then(response => { }).then(response => {
this.download(response.msg); this.download(response.msg);

View File

@ -327,6 +327,10 @@ export default {
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
console.log(row)
if (row.type!=="预付款冲减"){
this.reset(); this.reset();
const settleId = row.settleId || this.ids const settleId = row.settleId || this.ids
console.log(row) console.log(row)
@ -335,6 +339,11 @@ export default {
this.open = true; this.open = true;
this.title = "开票"; this.title = "开票";
}); });
}else {
this.msgError("预付款冲减不能开票")
}
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {