parent
fb44e1b479
commit
7a586109e9
@ -0,0 +1,105 @@ |
|||||||
|
package com.jianshui.web.controller.system; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
import javax.servlet.http.HttpServletResponse; |
||||||
|
|
||||||
|
import com.jianshui.system.domain.InvoiceAllYhdj; |
||||||
|
import org.springframework.security.access.prepost.PreAuthorize; |
||||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||||
|
import org.springframework.web.bind.annotation.PutMapping; |
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping; |
||||||
|
import org.springframework.web.bind.annotation.PathVariable; |
||||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
import com.jianshui.common.annotation.Log; |
||||||
|
import com.jianshui.common.core.controller.BaseController; |
||||||
|
import com.jianshui.common.core.domain.AjaxResult; |
||||||
|
import com.jianshui.common.enums.BusinessType; |
||||||
|
import com.jianshui.common.utils.poi.ExcelUtil; |
||||||
|
import com.jianshui.common.core.page.TableDataInfo; |
||||||
|
import com.jianshui.system.service.IInvoiceAllYhdjService; |
||||||
|
|
||||||
|
/** |
||||||
|
* 金四-用户登记Controller |
||||||
|
* |
||||||
|
* @author jianshui |
||||||
|
* @date 2024-02-28 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@RequestMapping("/invoiceall/invoiceallyhdj") |
||||||
|
public class InvoiceAllYhdjController extends BaseController |
||||||
|
{ |
||||||
|
@Autowired |
||||||
|
private IInvoiceAllYhdjService invoiceAllYhdjService; |
||||||
|
|
||||||
|
/** |
||||||
|
* 查询金四-用户登记列表 |
||||||
|
*/ |
||||||
|
@PreAuthorize("@ss.hasPermi('invoiceall:invoiceallyhdj:list')") |
||||||
|
@GetMapping("/list") |
||||||
|
public TableDataInfo list(InvoiceAllYhdj invoiceAllYhdj) |
||||||
|
{ |
||||||
|
startPage(); |
||||||
|
List<InvoiceAllYhdj> list = invoiceAllYhdjService.selectInvoiceAllYhdjList(invoiceAllYhdj); |
||||||
|
return getDataTable(list); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 导出金四-用户登记列表 |
||||||
|
*/ |
||||||
|
@PreAuthorize("@ss.hasPermi('invoiceall:invoiceallyhdj:export')") |
||||||
|
@Log(title = "金四-用户登记", businessType = BusinessType.EXPORT) |
||||||
|
@PostMapping("/export") |
||||||
|
public void export(HttpServletResponse response, InvoiceAllYhdj invoiceAllYhdj) |
||||||
|
{ |
||||||
|
List<InvoiceAllYhdj> list = invoiceAllYhdjService.selectInvoiceAllYhdjList(invoiceAllYhdj); |
||||||
|
ExcelUtil<InvoiceAllYhdj> util = new ExcelUtil<InvoiceAllYhdj>(InvoiceAllYhdj.class); |
||||||
|
util.exportExcel(response, list, "金四-用户登记数据"); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 获取金四-用户登记详细信息 |
||||||
|
*/ |
||||||
|
@PreAuthorize("@ss.hasPermi('invoiceall:invoiceallyhdj:query')") |
||||||
|
@GetMapping(value = "/{id}") |
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id) |
||||||
|
{ |
||||||
|
return AjaxResult.success(invoiceAllYhdjService.selectInvoiceAllYhdjById(id)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 新增金四-用户登记 |
||||||
|
*/ |
||||||
|
@PreAuthorize("@ss.hasPermi('invoiceall:invoiceallyhdj:add')") |
||||||
|
@Log(title = "金四-用户登记", businessType = BusinessType.INSERT) |
||||||
|
@PostMapping |
||||||
|
public AjaxResult add(@RequestBody InvoiceAllYhdj invoiceAllYhdj) |
||||||
|
{ |
||||||
|
return toAjax(invoiceAllYhdjService.insertInvoiceAllYhdj(invoiceAllYhdj)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 修改金四-用户登记 |
||||||
|
*/ |
||||||
|
@PreAuthorize("@ss.hasPermi('invoiceall:invoiceallyhdj:edit')") |
||||||
|
@Log(title = "金四-用户登记", businessType = BusinessType.UPDATE) |
||||||
|
@PutMapping |
||||||
|
public AjaxResult edit(@RequestBody InvoiceAllYhdj invoiceAllYhdj) |
||||||
|
{ |
||||||
|
return toAjax(invoiceAllYhdjService.updateInvoiceAllYhdj(invoiceAllYhdj)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 删除金四-用户登记 |
||||||
|
*/ |
||||||
|
@PreAuthorize("@ss.hasPermi('invoiceall:invoiceallyhdj:remove')") |
||||||
|
@Log(title = "金四-用户登记", businessType = BusinessType.DELETE) |
||||||
|
@DeleteMapping("/{ids}") |
||||||
|
public AjaxResult remove(@PathVariable Long[] ids) |
||||||
|
{ |
||||||
|
return toAjax(invoiceAllYhdjService.deleteInvoiceAllYhdjByIds(ids)); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,44 @@ |
|||||||
|
import request from '@/utils/request' |
||||||
|
|
||||||
|
// 查询金四-用户登记列表
|
||||||
|
export function listInvoiceallyhdj(query) { |
||||||
|
return request({ |
||||||
|
url: '/invoiceall/invoiceallyhdj/list', |
||||||
|
method: 'get', |
||||||
|
params: query |
||||||
|
}) |
||||||
|
} |
||||||
|
|
||||||
|
// 查询金四-用户登记详细
|
||||||
|
export function getInvoiceallyhdj(id) { |
||||||
|
return request({ |
||||||
|
url: '/invoiceall/invoiceallyhdj/' + id, |
||||||
|
method: 'get' |
||||||
|
}) |
||||||
|
} |
||||||
|
|
||||||
|
// 新增金四-用户登记
|
||||||
|
export function addInvoiceallyhdj(data) { |
||||||
|
return request({ |
||||||
|
url: '/invoiceall/invoiceallyhdj', |
||||||
|
method: 'post', |
||||||
|
data: data |
||||||
|
}) |
||||||
|
} |
||||||
|
|
||||||
|
// 修改金四-用户登记
|
||||||
|
export function updateInvoiceallyhdj(data) { |
||||||
|
return request({ |
||||||
|
url: '/invoiceall/invoiceallyhdj', |
||||||
|
method: 'put', |
||||||
|
data: data |
||||||
|
}) |
||||||
|
} |
||||||
|
|
||||||
|
// 删除金四-用户登记
|
||||||
|
export function delInvoiceallyhdj(id) { |
||||||
|
return request({ |
||||||
|
url: '/invoiceall/invoiceallyhdj/' + id, |
||||||
|
method: 'delete' |
||||||
|
}) |
||||||
|
} |
@ -0,0 +1,411 @@ |
|||||||
|
<template> |
||||||
|
<div class="app-container"> |
||||||
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px"> |
||||||
|
<el-form-item label="办税人员姓名(税局实名认证的人员)" prop="bsryxm"> |
||||||
|
<el-input |
||||||
|
v-model="queryParams.bsryxm" |
||||||
|
placeholder="请输入办税人员姓名(税局实名认证的人员)" |
||||||
|
clearable |
||||||
|
size="small" |
||||||
|
@keyup.enter.native="handleQuery" |
||||||
|
/> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="登录身份(1:财务负责人,2:法定代表人,3:办税人,4:购票员,5:普通管理员,99:其他) 备注:如果选择99|其他,则办税人员名称、手机号码、身份证件号码.可以不传" prop="dlsf"> |
||||||
|
<el-input |
||||||
|
v-model="queryParams.dlsf" |
||||||
|
placeholder="请输入登录身份(1:财务负责人,2:法定代表人,3:办税人,4:购票员,5:普通管理员,99:其他) 备注:如果选择99|其他,则办税人员名称、手机号码、身份证件号码.可以不传" |
||||||
|
clearable |
||||||
|
size="small" |
||||||
|
@keyup.enter.native="handleQuery" |
||||||
|
/> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="办税人员登录密码" prop="dlsfmm"> |
||||||
|
<el-input |
||||||
|
v-model="queryParams.dlsfmm" |
||||||
|
placeholder="请输入办税人员登录密码" |
||||||
|
clearable |
||||||
|
size="small" |
||||||
|
@keyup.enter.native="handleQuery" |
||||||
|
/> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="登录方式(参考码表)" prop="dlfs"> |
||||||
|
<el-input |
||||||
|
v-model="queryParams.dlfs" |
||||||
|
placeholder="请输入登录方式(参考码表)" |
||||||
|
clearable |
||||||
|
size="small" |
||||||
|
@keyup.enter.native="handleQuery" |
||||||
|
/> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="登录密码" prop="dlmm"> |
||||||
|
<el-input |
||||||
|
v-model="queryParams.dlmm" |
||||||
|
placeholder="请输入登录密码" |
||||||
|
clearable |
||||||
|
size="small" |
||||||
|
@keyup.enter.native="handleQuery" |
||||||
|
/> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="登录账号" prop="dlzh"> |
||||||
|
<el-input |
||||||
|
v-model="queryParams.dlzh" |
||||||
|
placeholder="请输入登录账号" |
||||||
|
clearable |
||||||
|
size="small" |
||||||
|
@keyup.enter.native="handleQuery" |
||||||
|
/> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="纳税人名称" prop="nsrmc"> |
||||||
|
<el-input |
||||||
|
v-model="queryParams.nsrmc" |
||||||
|
placeholder="请输入纳税人名称" |
||||||
|
clearable |
||||||
|
size="small" |
||||||
|
@keyup.enter.native="handleQuery" |
||||||
|
/> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="纳税人识别号" prop="nsrsbh"> |
||||||
|
<el-input |
||||||
|
v-model="queryParams.nsrsbh" |
||||||
|
placeholder="请输入纳税人识别号" |
||||||
|
clearable |
||||||
|
size="small" |
||||||
|
@keyup.enter.native="handleQuery" |
||||||
|
/> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="办税人员身份证件号码(税局实名认证的人员)" prop="bsrysfzjhm"> |
||||||
|
<el-input |
||||||
|
v-model="queryParams.bsrysfzjhm" |
||||||
|
placeholder="请输入办税人员身份证件号码(税局实名认证的人员)" |
||||||
|
clearable |
||||||
|
size="small" |
||||||
|
@keyup.enter.native="handleQuery" |
||||||
|
/> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="办税人员手机号码(税局实名认证的人员)" prop="bsrysjhm"> |
||||||
|
<el-input |
||||||
|
v-model="queryParams.bsrysjhm" |
||||||
|
placeholder="请输入办税人员手机号码(税局实名认证的人员)" |
||||||
|
clearable |
||||||
|
size="small" |
||||||
|
@keyup.enter.native="handleQuery" |
||||||
|
/> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="中间号码" prop="zjh"> |
||||||
|
<el-input |
||||||
|
v-model="queryParams.zjh" |
||||||
|
placeholder="请输入中间号码" |
||||||
|
clearable |
||||||
|
size="small" |
||||||
|
@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="['invoiceall:invoiceallyhdj: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="['invoiceall:invoiceallyhdj: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="['invoiceall:invoiceallyhdj:remove']" |
||||||
|
>删除</el-button> |
||||||
|
</el-col> |
||||||
|
<el-col :span="1.5"> |
||||||
|
<el-button |
||||||
|
type="warning" |
||||||
|
plain |
||||||
|
icon="el-icon-download" |
||||||
|
size="mini" |
||||||
|
@click="handleExport" |
||||||
|
v-hasPermi="['invoiceall:invoiceallyhdj:export']" |
||||||
|
>导出</el-button> |
||||||
|
</el-col> |
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
||||||
|
</el-row> |
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="invoiceallyhdjList" @selection-change="handleSelectionChange"> |
||||||
|
<el-table-column type="selection" width="55" align="center" /> |
||||||
|
<el-table-column label="主键" align="center" prop="id" /> |
||||||
|
<el-table-column label="办税人员姓名(税局实名认证的人员)" align="center" prop="bsryxm" /> |
||||||
|
<el-table-column label="登录身份(1:财务负责人,2:法定代表人,3:办税人,4:购票员,5:普通管理员,99:其他) 备注:如果选择99|其他,则办税人员名称、手机号码、身份证件号码.可以不传" align="center" prop="dlsf" /> |
||||||
|
<el-table-column label="办税人员登录密码" align="center" prop="dlsfmm" /> |
||||||
|
<el-table-column label="登录方式(参考码表)" align="center" prop="dlfs" /> |
||||||
|
<el-table-column label="登录密码" align="center" prop="dlmm" /> |
||||||
|
<el-table-column label="登录账号" align="center" prop="dlzh" /> |
||||||
|
<el-table-column label="纳税人名称" align="center" prop="nsrmc" /> |
||||||
|
<el-table-column label="纳税人识别号" align="center" prop="nsrsbh" /> |
||||||
|
<el-table-column label="办税人员身份证件号码(税局实名认证的人员)" align="center" prop="bsrysfzjhm" /> |
||||||
|
<el-table-column label="办税人员手机号码(税局实名认证的人员)" align="center" prop="bsrysjhm" /> |
||||||
|
<el-table-column label="中间号码" align="center" prop="zjh" /> |
||||||
|
<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="['invoiceall:invoiceallyhdj:edit']" |
||||||
|
>修改</el-button> |
||||||
|
<el-button |
||||||
|
size="mini" |
||||||
|
type="text" |
||||||
|
icon="el-icon-delete" |
||||||
|
@click="handleDelete(scope.row)" |
||||||
|
v-hasPermi="['invoiceall:invoiceallyhdj: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="80px"> |
||||||
|
<el-form-item label="办税人员姓名(税局实名认证的人员)" prop="bsryxm"> |
||||||
|
<el-input v-model="form.bsryxm" placeholder="请输入办税人员姓名(税局实名认证的人员)" /> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="登录身份(1:财务负责人,2:法定代表人,3:办税人,4:购票员,5:普通管理员,99:其他) 备注:如果选择99|其他,则办税人员名称、手机号码、身份证件号码.可以不传" prop="dlsf"> |
||||||
|
<el-input v-model="form.dlsf" placeholder="请输入登录身份(1:财务负责人,2:法定代表人,3:办税人,4:购票员,5:普通管理员,99:其他) 备注:如果选择99|其他,则办税人员名称、手机号码、身份证件号码.可以不传" /> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="办税人员登录密码" prop="dlsfmm"> |
||||||
|
<el-input v-model="form.dlsfmm" placeholder="请输入办税人员登录密码" /> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="登录方式(参考码表)" prop="dlfs"> |
||||||
|
<el-input v-model="form.dlfs" placeholder="请输入登录方式(参考码表)" /> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="登录密码" prop="dlmm"> |
||||||
|
<el-input v-model="form.dlmm" placeholder="请输入登录密码" /> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="登录账号" prop="dlzh"> |
||||||
|
<el-input v-model="form.dlzh" placeholder="请输入登录账号" /> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="纳税人名称" prop="nsrmc"> |
||||||
|
<el-input v-model="form.nsrmc" placeholder="请输入纳税人名称" /> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="纳税人识别号" prop="nsrsbh"> |
||||||
|
<el-input v-model="form.nsrsbh" placeholder="请输入纳税人识别号" /> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="办税人员身份证件号码(税局实名认证的人员)" prop="bsrysfzjhm"> |
||||||
|
<el-input v-model="form.bsrysfzjhm" placeholder="请输入办税人员身份证件号码(税局实名认证的人员)" /> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="办税人员手机号码(税局实名认证的人员)" prop="bsrysjhm"> |
||||||
|
<el-input v-model="form.bsrysjhm" placeholder="请输入办税人员手机号码(税局实名认证的人员)" /> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="中间号码" prop="zjh"> |
||||||
|
<el-input v-model="form.zjh" placeholder="请输入中间号码" /> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="备注" prop="remark"> |
||||||
|
<el-input v-model="form.remark" 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 { |
||||||
|
listInvoiceallyhdj, |
||||||
|
getInvoiceallyhdj, |
||||||
|
delInvoiceallyhdj, |
||||||
|
addInvoiceallyhdj, |
||||||
|
updateInvoiceallyhdj |
||||||
|
} from "@/api/digital/registered"; |
||||||
|
|
||||||
|
export default { |
||||||
|
name: "Invoiceallyhdj", |
||||||
|
data() { |
||||||
|
return { |
||||||
|
// 遮罩层 |
||||||
|
loading: true, |
||||||
|
// 选中数组 |
||||||
|
ids: [], |
||||||
|
// 非单个禁用 |
||||||
|
single: true, |
||||||
|
// 非多个禁用 |
||||||
|
multiple: true, |
||||||
|
// 显示搜索条件 |
||||||
|
showSearch: true, |
||||||
|
// 总条数 |
||||||
|
total: 0, |
||||||
|
// 金四-用户登记表格数据 |
||||||
|
invoiceallyhdjList: [], |
||||||
|
// 弹出层标题 |
||||||
|
title: "", |
||||||
|
// 是否显示弹出层 |
||||||
|
open: false, |
||||||
|
// 查询参数 |
||||||
|
queryParams: { |
||||||
|
pageNum: 1, |
||||||
|
pageSize: 10, |
||||||
|
bsryxm: null, |
||||||
|
dlsf: null, |
||||||
|
dlsfmm: null, |
||||||
|
dlfs: null, |
||||||
|
dlmm: null, |
||||||
|
dlzh: null, |
||||||
|
nsrmc: null, |
||||||
|
nsrsbh: null, |
||||||
|
bsrysfzjhm: null, |
||||||
|
bsrysjhm: null, |
||||||
|
zjh: null, |
||||||
|
}, |
||||||
|
// 表单参数 |
||||||
|
form: {}, |
||||||
|
// 表单校验 |
||||||
|
rules: { |
||||||
|
} |
||||||
|
}; |
||||||
|
}, |
||||||
|
created() { |
||||||
|
this.getList(); |
||||||
|
}, |
||||||
|
methods: { |
||||||
|
/** 查询金四-用户登记列表 */ |
||||||
|
getList() { |
||||||
|
this.loading = true; |
||||||
|
listInvoiceallyhdj(this.queryParams).then(response => { |
||||||
|
this.invoiceallyhdjList = response.rows; |
||||||
|
this.total = response.total; |
||||||
|
this.loading = false; |
||||||
|
}); |
||||||
|
}, |
||||||
|
// 取消按钮 |
||||||
|
cancel() { |
||||||
|
this.open = false; |
||||||
|
this.reset(); |
||||||
|
}, |
||||||
|
// 表单重置 |
||||||
|
reset() { |
||||||
|
this.form = { |
||||||
|
id: null, |
||||||
|
bsryxm: null, |
||||||
|
dlsf: null, |
||||||
|
dlsfmm: null, |
||||||
|
dlfs: null, |
||||||
|
dlmm: null, |
||||||
|
dlzh: null, |
||||||
|
nsrmc: null, |
||||||
|
nsrsbh: null, |
||||||
|
bsrysfzjhm: null, |
||||||
|
bsrysjhm: null, |
||||||
|
zjh: null, |
||||||
|
createBy: null, |
||||||
|
createTime: null, |
||||||
|
updateBy: null, |
||||||
|
updateTime: null, |
||||||
|
remark: null |
||||||
|
}; |
||||||
|
this.resetForm("form"); |
||||||
|
}, |
||||||
|
/** 搜索按钮操作 */ |
||||||
|
handleQuery() { |
||||||
|
this.queryParams.pageNum = 1; |
||||||
|
this.getList(); |
||||||
|
}, |
||||||
|
/** 重置按钮操作 */ |
||||||
|
resetQuery() { |
||||||
|
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 = "添加金四-用户登记"; |
||||||
|
}, |
||||||
|
/** 修改按钮操作 */ |
||||||
|
handleUpdate(row) { |
||||||
|
this.reset(); |
||||||
|
const id = row.id || this.ids |
||||||
|
getInvoiceallyhdj(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) { |
||||||
|
updateInvoiceallyhdj(this.form).then(response => { |
||||||
|
this.$modal.msgSuccess("修改成功"); |
||||||
|
this.open = false; |
||||||
|
this.getList(); |
||||||
|
}); |
||||||
|
} else { |
||||||
|
addInvoiceallyhdj(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 delInvoiceallyhdj(ids); |
||||||
|
}).then(() => { |
||||||
|
this.getList(); |
||||||
|
this.$modal.msgSuccess("删除成功"); |
||||||
|
}).catch(() => {}); |
||||||
|
}, |
||||||
|
/** 导出按钮操作 */ |
||||||
|
handleExport() { |
||||||
|
this.download('invoiceall/invoiceallyhdj/export', { |
||||||
|
...this.queryParams |
||||||
|
}, `invoiceallyhdj_${new Date().getTime()}.xlsx`) |
||||||
|
} |
||||||
|
} |
||||||
|
}; |
||||||
|
</script> |
Loading…
Reference in new issue