todo:开票,回款
This commit is contained in:
parent
835e6dfcd0
commit
3e76d01f84
@ -142,6 +142,8 @@ public class FtSettleDaoController extends BaseController {
|
|||||||
case 3:
|
case 3:
|
||||||
ftSettleDao.setType("在线支付");
|
ftSettleDao.setType("在线支付");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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,7 +400,8 @@
|
|||||||
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>
|
||||||
@ -408,7 +412,8 @@
|
|||||||
<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;
|
||||||
|
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user