添加收票记录
This commit is contained in:
parent
caf295164b
commit
49e00cf1b3
399
god-ui/src/views/qfusionCommand/invoice/index.vue
Normal file
399
god-ui/src/views/qfusionCommand/invoice/index.vue
Normal file
@ -0,0 +1,399 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="88px">
|
||||
<el-form-item label="收票登记人" prop="productName">
|
||||
<el-input
|
||||
v-model="queryParams.productName"
|
||||
placeholder="请输入收票登记人"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核人" prop="category">
|
||||
<el-input
|
||||
v-model="queryParams.category"
|
||||
placeholder="请输入审核人"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核状态" prop="productBatch">
|
||||
<el-input
|
||||
v-model="queryParams.productBatch"
|
||||
placeholder="请输入审核状态"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="响应时间">-->
|
||||
<!-- <el-date-picker-->
|
||||
<!-- v-model="daterangeDetectTime"-->
|
||||
<!-- style="width: 240px"-->
|
||||
<!-- value-format="yyyy-MM-dd"-->
|
||||
<!-- type="daterange"-->
|
||||
<!-- range-separator="-"-->
|
||||
<!-- start-placeholder="开始日期"-->
|
||||
<!-- end-placeholder="结束日期"-->
|
||||
<!-- ></el-date-picker>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="纳税人识别号" prop="detectResult" label-width="180px">
|
||||
<el-input
|
||||
v-model="queryParams.detectResult"
|
||||
placeholder="请输入纳税人识别号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['qcfgjManage:batch:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['qcfgjManage:batch:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['qcfgjManage:batch:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="batchList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="收票登记人" align="center" prop="productName" />
|
||||
<el-table-column label="登记时间" align="center" prop="productDate" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.productDate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审核人" align="center" prop="category" />
|
||||
<el-table-column label="审核状态" align="center" prop="productBatch" >
|
||||
<template slot-scope="scope">
|
||||
<el-tag type="warning" v-if="scope.row.productBatch === '未审核'">{{scope.row.productBatch}}</el-tag>
|
||||
<el-tag type="success" v-else-if="scope.row.productBatch === '已审核'">{{scope.row.productBatch}}</el-tag>
|
||||
<el-tag type="info" v-else>{{scope.row.productBatch}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="发票抬头" align="center" prop="capacity" />
|
||||
|
||||
<!-- <el-table-column label="响应时间" align="center" prop="detectTime" width="180">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span>{{ parseTime(scope.row.detectTime, '{y}-{m}-{d}') }}</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="算法文件" align="center" prop="quality" />-->
|
||||
<el-table-column label="纳税人识别号" align="center" prop="detectResult" >
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column label="发票编号" align="center" prop="chargePerson" />
|
||||
<el-table-column label="发票金额" align="center" prop="remark" />
|
||||
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['qcfgjManage:batch:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['qcfgjManage:batch:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改产品批次信息对接对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="88px">
|
||||
<el-form-item label="收票登记人" prop="productName">
|
||||
<el-input v-model="form.productName" placeholder="请输入收票登记人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="登记时间" prop="productDate">
|
||||
<el-date-picker clearable
|
||||
v-model="form.productDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择登记时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核人" prop="category">
|
||||
<el-input v-model="form.category" placeholder="请输入审核人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="审核状态" prop="productBatch">
|
||||
<el-input v-model="form.productBatch" placeholder="请输入审核状态" />
|
||||
<el-select v-model="form.productBatch" clearable placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="发票抬头" prop="capacity">
|
||||
<el-input v-model="form.capacity" placeholder="请输入响应目标" />
|
||||
</el-form-item>
|
||||
|
||||
<!-- <el-form-item label="响应时间" prop="detectTime">-->
|
||||
<!-- <el-date-picker clearable-->
|
||||
<!-- v-model="form.detectTime"-->
|
||||
<!-- type="date"-->
|
||||
<!-- value-format="yyyy-MM-dd"-->
|
||||
<!-- placeholder="请选择响应时间">-->
|
||||
<!-- </el-date-picker>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="发票抬头" prop="quality">-->
|
||||
<!-- <el-input v-model="form.quality" placeholder="请输入发票抬头" />-->
|
||||
<!--<!– <file-upload v-model="form.quality"/>–>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="纳税人识别号" prop="detectResult">
|
||||
<el-input v-model="form.detectResult" placeholder="请输入应急预案" />
|
||||
</el-form-item>
|
||||
<el-form-item label="发票编号" prop="chargePerson">
|
||||
<el-input v-model="form.chargePerson" placeholder="请输入负责人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="发票金额" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="数据类型" prop="dataType">-->
|
||||
<!-- <el-input v-model="form.dataType" placeholder="请输入数据类型" />-->
|
||||
<!-- </el-form-item>-->
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listBatch, getBatch, delBatch, addBatch, updateBatch } from "@/api/qcfgjManage/batch";
|
||||
|
||||
export default {
|
||||
//融合通信项目:启动应急响应
|
||||
name: "Emergency",
|
||||
data() {
|
||||
return {
|
||||
options: [{
|
||||
value: '未审核',
|
||||
label: '未审核'
|
||||
}, {
|
||||
value: '已审核',
|
||||
label: '已审核'
|
||||
}],
|
||||
optionsStatus: [{
|
||||
value: '自然灾害',
|
||||
label: '自然灾害'
|
||||
}, {
|
||||
value: '治安管理',
|
||||
label: '治安管理'
|
||||
}, {
|
||||
value: '突发灾害',
|
||||
label: '突发灾害'
|
||||
}],
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 产品批次信息对接表格数据
|
||||
batchList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 数据类型时间范围
|
||||
daterangeProductDate: [],
|
||||
// 数据类型时间范围
|
||||
daterangeDetectTime: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
productName: null,
|
||||
category: null,
|
||||
productBatch: null,
|
||||
capacity: null,
|
||||
productDate: null,
|
||||
detectTime: null,
|
||||
quality: null,
|
||||
detectResult: null,
|
||||
chargePerson: null,
|
||||
dataType: "收票记录数据"
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询产品批次信息对接列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.queryParams.params = {};
|
||||
if (null != this.daterangeProductDate && '' != this.daterangeProductDate) {
|
||||
this.queryParams.params["beginProductDate"] = this.daterangeProductDate[0];
|
||||
this.queryParams.params["endProductDate"] = this.daterangeProductDate[1];
|
||||
}
|
||||
if (null != this.daterangeDetectTime && '' != this.daterangeDetectTime) {
|
||||
this.queryParams.params["beginDetectTime"] = this.daterangeDetectTime[0];
|
||||
this.queryParams.params["endDetectTime"] = this.daterangeDetectTime[1];
|
||||
}
|
||||
listBatch(this.queryParams).then(response => {
|
||||
this.batchList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
productName: null,
|
||||
category: null,
|
||||
productBatch: null,
|
||||
capacity: null,
|
||||
productDate: null,
|
||||
detectTime: null,
|
||||
quality: null,
|
||||
detectResult: null,
|
||||
chargePerson: null,
|
||||
remark: null,
|
||||
dataType: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.daterangeProductDate = [];
|
||||
this.daterangeDetectTime = [];
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加收票记录数据";
|
||||
this.form.dataType = "收票记录数据";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getBatch(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改收票记录数据";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateBatch(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addBatch(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除收票记录数据编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delBatch(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('qcfgjManage/batch/export', {
|
||||
...this.queryParams
|
||||
}, `batch_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user