|
|
@ -4,13 +4,19 @@
|
|
|
|
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
|
|
|
|
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="filterQuery.action"
|
|
|
|
v-model="filterQuery.name"
|
|
|
|
placeholder="业务类型"
|
|
|
|
placeholder="业务类型"
|
|
|
|
style="width: 400px"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
<el-select v-model="filterQuery.enabled" placeholder="状态">
|
|
|
|
<el-select v-model="filterQuery.mainAction" placeholder="出入库类型">
|
|
|
|
|
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
|
|
|
|
|
<el-option label="入库" value="WareHouseIn"></el-option>
|
|
|
|
|
|
|
|
<el-option label="出库" value="WareHouseOut"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
|
|
|
<el-select v-model="filterQuery.enabled" placeholder="是否启用">
|
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
|
<el-option label="已启用" value=1></el-option>
|
|
|
|
<el-option label="已启用" value=1></el-option>
|
|
|
|
<el-option label="未启用" value=0></el-option>
|
|
|
|
<el-option label="未启用" value=0></el-option>
|
|
|
@ -19,34 +25,37 @@
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-button-group style="margin-left: 10px;display:flex;">
|
|
|
|
<el-button-group style="margin-left: 10px;display:flex;">
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
|
|
|
<el-button type="primary" icon="search" @click="getListhandleAddClick">查询</el-button>
|
|
|
|
<el-button type="primary" icon="search" @click="getList">查询</el-button>
|
|
|
|
<el-button type="primary" icon="search" @click="handleAddClick"
|
|
|
|
<el-button type="primary" icon="search" @click="handleAddClick"
|
|
|
|
>新增
|
|
|
|
>新增
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button type="primary" icon="search" @click="exportJsonFile">导出单据类型</el-button>
|
|
|
|
<el-button type="primary" icon="search" @click="exportJsonFile">导出单据类型</el-button>
|
|
|
|
<!-- <el-upload-->
|
|
|
|
<!-- <el-upload-->
|
|
|
|
<!-- :action="uploadFileUrl"-->
|
|
|
|
<!-- :action="uploadFileUrl"-->
|
|
|
|
<!-- multiple-->
|
|
|
|
<!-- multiple-->
|
|
|
|
<!-- :limit="3"-->
|
|
|
|
<!-- :limit="3"-->
|
|
|
|
<!-- :headers="headers"-->
|
|
|
|
<!-- :headers="headers"-->
|
|
|
|
<!-- :show-file-list="false"-->
|
|
|
|
<!-- :show-file-list="false"-->
|
|
|
|
<!-- :on-success="handleChange"-->
|
|
|
|
<!-- :on-success="handleChange"-->
|
|
|
|
<!-- :file-list="fileList"-->
|
|
|
|
<!-- :file-list="fileList"-->
|
|
|
|
<!-- >-->
|
|
|
|
<!-- >-->
|
|
|
|
<!-- <el-button size="mini" type="primary">导入单据类型</el-button>-->
|
|
|
|
<!-- <el-button size="mini" type="primary">导入单据类型</el-button>-->
|
|
|
|
<!-- </el-upload>-->
|
|
|
|
<!-- </el-upload>-->
|
|
|
|
</el-button-group>
|
|
|
|
</el-button-group>
|
|
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%">
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%">
|
|
|
|
<el-table-column label="序号" type="index" width="120" fixed></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index" width="60" fixed></el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="扫码单据类型" prop="name" fixed></el-table-column>
|
|
|
|
<el-table-column label="扫码单据类型" prop="name" fixed></el-table-column>
|
|
|
|
<!-- <el-table-column label="出入库类型代码" prop="mainAction" fixed></el-table-column>-->
|
|
|
|
<el-table-column label="出入库类型" prop="mainAction" fixed>
|
|
|
|
<el-table-column label="扫码单据类型代码" prop="action" fixed></el-table-column>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span>{{ mainActionMap[scope.row.mainAction] }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<!-- <el-table-column label="扫码单据类型代码" prop="action" fixed></el-table-column>-->
|
|
|
|
<el-table-column label="是否启用" prop="enable" fixed>
|
|
|
|
<el-table-column label="是否启用" prop="enable" fixed>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ enableMap[scope.row.enable] }}</span>
|
|
|
|
<span>{{ enableMap[scope.row.enable] }}</span>
|
|
|
@ -208,9 +217,9 @@ export default {
|
|
|
|
true: "是",
|
|
|
|
true: "是",
|
|
|
|
false: "否",
|
|
|
|
false: "否",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
formMap: {
|
|
|
|
mainActionMap: {
|
|
|
|
WareHouseIn: "入库",
|
|
|
|
WareHouseIn: "入库",
|
|
|
|
WareHouseOut: "出库",
|
|
|
|
WareHouseOut: "出库"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fileList: [],
|
|
|
|
fileList: [],
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
@ -326,7 +335,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleAddClick() {
|
|
|
|
handleAddClick() {
|
|
|
|
this.inputQuery = {};
|
|
|
|
this.inputQuery = {enable: true};
|
|
|
|
this.addDialogVisible = true;
|
|
|
|
this.addDialogVisible = true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|