|
@@ -1,65 +1,27 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <el-form
|
|
|
- :model="queryParams"
|
|
|
- ref="queryForm"
|
|
|
- size="small"
|
|
|
- :inline="true"
|
|
|
- v-show="showSearch"
|
|
|
- label-width="100px"
|
|
|
- >
|
|
|
+ <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
<el-form-item label="录单单位名称">
|
|
|
<el-input v-model="queryParams.lddwmc"></el-input>
|
|
|
</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-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="['business:BONDEDUPPLY:add']"
|
|
|
- >新增</el-button
|
|
|
- >
|
|
|
+ <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
|
|
+ v-hasPermi="['business:BONDEDUPPLY: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="['business:BONDEDUPPLY:edit']"
|
|
|
- >修改</el-button
|
|
|
- >
|
|
|
+ <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
|
|
|
+ v-hasPermi="['business:BONDEDUPPLY: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="['business:BONDEDUPPLY:remove']"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
+ <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
|
|
|
+ v-hasPermi="['business:BONDEDUPPLY:remove']">删除</el-button>
|
|
|
</el-col>
|
|
|
<!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -72,10 +34,7 @@
|
|
|
>导出</el-button
|
|
|
>
|
|
|
</el-col> -->
|
|
|
- <right-toolbar
|
|
|
- :showSearch.sync="showSearch"
|
|
|
- @queryTable="getList"
|
|
|
- ></right-toolbar>
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
<el-table :data="BONDEDUPPLYList" @selection-change="handleSelectionChange">
|
|
@@ -118,50 +77,21 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime">
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- fixed="right"
|
|
|
- label="操作"
|
|
|
- align="center"
|
|
|
- class-name="small-padding fixed-width"
|
|
|
- width="120px"
|
|
|
- >
|
|
|
+ <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="120px">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="handleUpdate(scope.row)"
|
|
|
- v-hasPermi="['business:BONDEDUPPLY:edit']"
|
|
|
- >修改</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
- @click="handleDelete(scope.row)"
|
|
|
- v-hasPermi="['business:BONDEDUPPLY:remove']"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
|
+ v-hasPermi="['business:BONDEDUPPLY:edit']">修改</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
|
|
+ v-hasPermi="['business:BONDEDUPPLY: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"
|
|
|
- />
|
|
|
+ <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
|
|
+ @pagination="getList" />
|
|
|
|
|
|
<!-- 添加或修改保税区供应链数据对话框 -->
|
|
|
- <el-dialog
|
|
|
- :title="title"
|
|
|
- :visible.sync="open"
|
|
|
- :close-on-click-modal="false"
|
|
|
- width="65%"
|
|
|
- append-to-body
|
|
|
- >
|
|
|
+ <el-dialog :title="title" :visible.sync="open" :close-on-click-modal="false" width="65%" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="140px">
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
@@ -179,13 +109,8 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="进出口日期" prop="jckrq">
|
|
|
<!-- <el-input v-model="form.jckrq"></el-input> -->
|
|
|
- <el-date-picker
|
|
|
- style="width: 100%"
|
|
|
- v-model="form.jckrq"
|
|
|
- type="date"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- placeholder="选择日期"
|
|
|
- >
|
|
|
+ <el-date-picker style="width: 100%" v-model="form.jckrq" type="date" value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -235,13 +160,8 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="卸毕日期 " prop="xbrq">
|
|
|
<!-- <el-input v-model="form.xbrq"></el-input>-->
|
|
|
- <el-date-picker
|
|
|
- style="width: 100%"
|
|
|
- v-model="form.xbrq"
|
|
|
- type="date"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- placeholder="选择日期"
|
|
|
- >
|
|
|
+ <el-date-picker style="width: 100%" v-model="form.xbrq" type="date" value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -249,13 +169,8 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="启运日期 " prop="qyrq">
|
|
|
<!-- <el-input v-model="form.qyrq"></el-input> -->
|
|
|
- <el-date-picker
|
|
|
- style="width: 100%"
|
|
|
- v-model="form.qyrq"
|
|
|
- type="date"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- placeholder="选择日期"
|
|
|
- >
|
|
|
+ <el-date-picker style="width: 100%" v-model="form.qyrq" type="date" value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -375,17 +290,41 @@ export default {
|
|
|
jckrq: [
|
|
|
{ required: true, message: "进出口日期 不能为空", trigger: "blur" },
|
|
|
],
|
|
|
- jz: [{ required: true, message: "净重 不能为空", trigger: "blur" }],
|
|
|
+ jz: [
|
|
|
+ { required: true, message: "净重 不能为空", trigger: "blur" },
|
|
|
+ {
|
|
|
+ pattern: /^[1-9]\d*$/,
|
|
|
+ message: "请输入正整数",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
jingzhi: [
|
|
|
{ required: true, message: "净值 不能为空", trigger: "blur" },
|
|
|
+ {
|
|
|
+ pattern: /^[1-9]\d*$/,
|
|
|
+ message: "请输入正整数",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ js: [
|
|
|
+ { required: true, message: "件数 不能为空", trigger: "blur" },
|
|
|
+ {
|
|
|
+ pattern: /^[1-9]\d*$/,
|
|
|
+ message: "请输入正整数",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
],
|
|
|
- js: [{ required: true, message: "件数 不能为空", trigger: "blur" }],
|
|
|
jnsfhrbh: [
|
|
|
{
|
|
|
required: true,
|
|
|
message: "境内收发货人编号 不能为空",
|
|
|
trigger: "blur",
|
|
|
},
|
|
|
+ {
|
|
|
+ pattern: /^[1-9]\d*$/,
|
|
|
+ message: "请输入正整数",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
],
|
|
|
jnsfhrmc: [
|
|
|
{
|
|
@@ -422,10 +361,10 @@ export default {
|
|
|
{ required: true, message: "卸毕日期 不能为空", trigger: "blur" },
|
|
|
],
|
|
|
id: [
|
|
|
- { required: true, message: "供应链主键不能为空", trigger: "blur" },
|
|
|
+ { required: true, message: "供应链不能为空", trigger: "blur" },
|
|
|
],
|
|
|
deptId: [
|
|
|
- { required: true, message: "保税区主键不能为空", trigger: "blur" },
|
|
|
+ { required: true, message: "保税区不能为空", trigger: "blur" },
|
|
|
],
|
|
|
bgdbztj: [
|
|
|
{
|
|
@@ -433,6 +372,11 @@ export default {
|
|
|
message: "报关单币种统计 不能为空",
|
|
|
trigger: "blur",
|
|
|
},
|
|
|
+ {
|
|
|
+ pattern: /^[1-9]\d*$/,
|
|
|
+ message: "不能为负数",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
],
|
|
|
sbdwmc: [
|
|
|
{ required: true, message: "申报单位名称 不能为空", trigger: "blur" },
|
|
@@ -572,7 +516,7 @@ export default {
|
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
})
|
|
|
- .catch(() => {});
|
|
|
+ .catch(() => { });
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|