|
|
@ -1,147 +1,156 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-card>
|
|
|
|
<el-card>
|
|
|
|
<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.mainAction" placeholder="出入库类型">
|
|
|
|
<el-select v-model="filterQuery.enabled" placeholder="状态">
|
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
|
<el-option label="入库" value="WareHouseIn"></el-option>
|
|
|
|
<el-option label="已启用" value=1></el-option>
|
|
|
|
<el-option label="出库" value="WareHouseOut"></el-option>
|
|
|
|
<el-option label="未启用" value=0></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
<el-form-item>
|
|
|
|
<el-select v-model="filterQuery.enabled" placeholder="是否启用">
|
|
|
|
<el-button-group style="margin-left: 10px;display:flex;">
|
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
|
|
|
<el-option label="已启用" value=1></el-option>
|
|
|
|
<el-button type="primary" icon="search" @click="getList">查询</el-button>
|
|
|
|
<el-option label="未启用" value=0></el-option>
|
|
|
|
<el-button type="primary" icon="search" @click="handleAddClick"
|
|
|
|
</el-select>
|
|
|
|
>新增
|
|
|
|
</el-form-item>
|
|
|
|
</el-button
|
|
|
|
<el-form-item>
|
|
|
|
>
|
|
|
|
<el-button-group style="margin-left: 10px;display:flex;">
|
|
|
|
<el-upload
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
|
|
|
:action="uploadFileUrl"
|
|
|
|
<el-button type="primary" icon="search" @click="getList">查询</el-button>
|
|
|
|
multiple
|
|
|
|
<el-button type="primary" icon="search" @click="handleAddClick"
|
|
|
|
:limit="3"
|
|
|
|
>新增
|
|
|
|
:headers="headers"
|
|
|
|
</el-button
|
|
|
|
:show-file-list="false"
|
|
|
|
>
|
|
|
|
:on-success="handleChange"
|
|
|
|
<el-upload
|
|
|
|
:file-list="fileList"
|
|
|
|
:action="uploadFileUrl"
|
|
|
|
>
|
|
|
|
multiple
|
|
|
|
<el-button size="mini" type="primary">导入单据类型</el-button>
|
|
|
|
:limit="3"
|
|
|
|
</el-upload>
|
|
|
|
:headers="headers"
|
|
|
|
</el-button-group>
|
|
|
|
:show-file-list="false"
|
|
|
|
|
|
|
|
:on-success="handleChange"
|
|
|
|
</el-form-item>
|
|
|
|
:file-list="fileList"
|
|
|
|
</el-form>
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button size="mini" type="primary">导入单据类型</el-button>
|
|
|
|
|
|
|
|
</el-upload>
|
|
|
|
|
|
|
|
</el-button-group>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%">
|
|
|
|
</el-form-item>
|
|
|
|
<el-table-column label="序号" type="index" width="120" fixed></el-table-column>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="扫码单据类型" prop="name" fixed></el-table-column>
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%">
|
|
|
|
<!-- <el-table-column label="出入库类型代码" prop="mainAction" fixed></el-table-column>-->
|
|
|
|
<el-table-column label="序号" type="index" width="60" fixed></el-table-column>
|
|
|
|
<el-table-column label="扫码单据类型代码" prop="action" fixed></el-table-column>
|
|
|
|
<el-table-column label="扫码单据类型" prop="name" fixed></el-table-column>
|
|
|
|
<el-table-column label="是否启用" prop="enable" fixed>
|
|
|
|
<el-table-column label="出入库类型" prop="mainAction" fixed>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ enableMap[scope.row.enable] }}</span>
|
|
|
|
<span>{{ mainActionMap[scope.row.mainAction] }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="必须选择业务单据校验" prop="checkEnable" fixed>
|
|
|
|
<!-- <el-table-column label="扫码单据类型代码" prop="action" fixed></el-table-column>-->
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-table-column label="是否启用" prop="enable" fixed>
|
|
|
|
<span>{{ enableMap[scope.row.checkEnable] }}</span>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
</template>
|
|
|
|
<span>{{ enableMap[scope.row.enable] }}</span>
|
|
|
|
</el-table-column>
|
|
|
|
</template>
|
|
|
|
<el-table-column label="二次核对" prop="secCheckEnable" fixed>
|
|
|
|
</el-table-column>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-table-column label="必须选择业务单据校验" prop="checkEnable" fixed>
|
|
|
|
<span>{{ enableMap[scope.row.secCheckEnable] }}</span>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
</template>
|
|
|
|
<span>{{ enableMap[scope.row.checkEnable] }}</span>
|
|
|
|
</el-table-column>
|
|
|
|
</template>
|
|
|
|
<el-table-column label="关联业务单据" prop="localName" fixed></el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="二次核对" prop="secCheckEnable" fixed>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span>{{ enableMap[scope.row.secCheckEnable] }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="关联业务单据" prop="localName" fixed></el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-table-column label="第三方系统" prop="thirdName" fixed></el-table-column>-->
|
|
|
|
<!-- <el-table-column label="第三方系统" prop="thirdName" fixed></el-table-column>-->
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" fixed="right">
|
|
|
|
<el-table-column label="操作" fixed="right">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
@click.native.stop="handleModifyClick(scope.row)"
|
|
|
|
@click.native.stop="handleModifyClick(scope.row)"
|
|
|
|
>编辑
|
|
|
|
>编辑
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
@click.native.stop="deleteDialog(scope.row)"
|
|
|
|
@click.native.stop="deleteDialog(scope.row)"
|
|
|
|
>删除
|
|
|
|
>删除
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
title="新增扫码单据类型"
|
|
|
|
title="新增扫码单据类型"
|
|
|
|
:visible.sync="addDialogVisible"
|
|
|
|
:visible.sync="addDialogVisible"
|
|
|
|
width="70%"
|
|
|
|
width="70%"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
v-if="addDialogVisible"
|
|
|
|
v-if="addDialogVisible"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<modifyDialog :inputQuery="inputQuery"></modifyDialog>
|
|
|
|
<modifyDialog :inputQuery="inputQuery"></modifyDialog>
|
|
|
|
<div style="text-align: center">
|
|
|
|
<div style="text-align: center">
|
|
|
|
<el-button type="primary" size="small" icon="search" @click="onAddSubmit"
|
|
|
|
<el-button type="primary" size="small" icon="search" @click="onAddSubmit"
|
|
|
|
>提交
|
|
|
|
>提交
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
|
|
|
|
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
|
|
|
|
>取消
|
|
|
|
>取消
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
title="编辑扫码单据类型"
|
|
|
|
title="编辑扫码单据类型"
|
|
|
|
:visible.sync="modifyDialogVisible"
|
|
|
|
:visible.sync="modifyDialogVisible"
|
|
|
|
width="70%"
|
|
|
|
width="70%"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
v-if="modifyDialogVisible"
|
|
|
|
v-if="modifyDialogVisible"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<modifyDialog :inputQuery="inputQuery"></modifyDialog>
|
|
|
|
<modifyDialog :inputQuery="inputQuery"></modifyDialog>
|
|
|
|
<div style="text-align: center">
|
|
|
|
<div style="text-align: center">
|
|
|
|
<el-button type="primary" size="small" icon="search" @click="onModifySubmit"
|
|
|
|
<el-button type="primary" size="small" icon="search" @click="onModifySubmit"
|
|
|
|
>提交
|
|
|
|
>提交
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
|
|
|
|
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
|
|
|
|
>取消
|
|
|
|
>取消
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
<el-pagination
|
|
|
|
<el-pagination
|
|
|
|
:page-size="filterQuery.limit"
|
|
|
|
:page-size="filterQuery.limit"
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
layout="prev, pager, next"
|
|
|
|
layout="prev, pager, next"
|
|
|
|
:total="total"
|
|
|
|
:total="total"
|
|
|
|
></el-pagination>
|
|
|
|
></el-pagination>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
getJoinBussinessType,
|
|
|
|
getJoinBussinessType,
|
|
|
|
deleteBussinessType,
|
|
|
|
deleteBussinessType,
|
|
|
|
updateBussinessType,
|
|
|
|
updateBussinessType,
|
|
|
|
insertBussinessType,
|
|
|
|
insertBussinessType,
|
|
|
|
} from "../../api/basic/bussinessType";
|
|
|
|
} from "../../api/basic/bussinessType";
|
|
|
|
|
|
|
|
|
|
|
|
import modifyDialog from "./BussinessTypeModify";
|
|
|
|
import modifyDialog from "./BussinessTypeModify";
|
|
|
@ -149,239 +158,243 @@ import axios from "axios";
|
|
|
|
import store from "@/store";
|
|
|
|
import store from "@/store";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
filterQuery: {
|
|
|
|
filterQuery: {
|
|
|
|
enabled: "1",
|
|
|
|
enabled: "1",
|
|
|
|
udiwmsType: "",
|
|
|
|
udiwmsType: "",
|
|
|
|
thirdType: "",
|
|
|
|
thirdType: "",
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 20,
|
|
|
|
limit: 20,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
addDialogVisible: false,
|
|
|
|
addDialogVisible: false,
|
|
|
|
modifyDialogVisible: false,
|
|
|
|
modifyDialogVisible: false,
|
|
|
|
list: [],
|
|
|
|
list: [],
|
|
|
|
inputQuery: {
|
|
|
|
inputQuery: {
|
|
|
|
action: "",
|
|
|
|
action: "",
|
|
|
|
name: "",
|
|
|
|
name: "",
|
|
|
|
enable: "",
|
|
|
|
enable: true,
|
|
|
|
remark: "",
|
|
|
|
remark: "",
|
|
|
|
mainAction: "",
|
|
|
|
mainAction: "",
|
|
|
|
thirdSysFk: "",
|
|
|
|
thirdSysFk: "",
|
|
|
|
id: "",
|
|
|
|
id: "",
|
|
|
|
localAction: null,
|
|
|
|
localAction: null,
|
|
|
|
checkEnable: false,
|
|
|
|
checkEnable: false,
|
|
|
|
genUnit: false,
|
|
|
|
genUnit: false,
|
|
|
|
innerOrder: false,
|
|
|
|
innerOrder: false,
|
|
|
|
spUse: null,
|
|
|
|
spUse: null,
|
|
|
|
secCheckEnable: null,
|
|
|
|
secCheckEnable: null,
|
|
|
|
checkUdims: null,
|
|
|
|
checkUdims: null,
|
|
|
|
checkPdaEd: null,
|
|
|
|
checkPdaEd: null,
|
|
|
|
checkPdaUn: null,
|
|
|
|
checkPdaUn: null,
|
|
|
|
checkPc: null,
|
|
|
|
checkPc: null,
|
|
|
|
checkWebNew: null,
|
|
|
|
checkWebNew: null,
|
|
|
|
checkChange: null,
|
|
|
|
checkChange: null,
|
|
|
|
secCheckUdims: null,
|
|
|
|
secCheckUdims: null,
|
|
|
|
secCheckPdaEd: null,
|
|
|
|
secCheckPdaEd: null,
|
|
|
|
secCheckPdaUn: null,
|
|
|
|
secCheckPdaUn: null,
|
|
|
|
secCheckPc: null,
|
|
|
|
secCheckPc: null,
|
|
|
|
secCheckWebNew: null,
|
|
|
|
secCheckWebNew: null,
|
|
|
|
secCheckChange: null,
|
|
|
|
secCheckChange: null,
|
|
|
|
checkBalacne: null,
|
|
|
|
checkBalacne: null,
|
|
|
|
secCheckBalacne: null,
|
|
|
|
secCheckBalacne: null,
|
|
|
|
corpType: null,
|
|
|
|
corpType: null,
|
|
|
|
storageCode: null,
|
|
|
|
storageCode: null,
|
|
|
|
supplementOrderType: null,
|
|
|
|
supplementOrderType: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
enableMap: {
|
|
|
|
enableMap: {
|
|
|
|
true: "是",
|
|
|
|
true: "是",
|
|
|
|
false: "否",
|
|
|
|
false: "否",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fileList: [],
|
|
|
|
mainActionMap: {
|
|
|
|
total: 0,
|
|
|
|
WareHouseIn: "入库",
|
|
|
|
multipleSelection: [],
|
|
|
|
WareHouseOut: "出库"
|
|
|
|
uploadFileUrl: null,
|
|
|
|
},
|
|
|
|
headers: {},
|
|
|
|
fileList: [],
|
|
|
|
|
|
|
|
total: 0,
|
|
|
|
|
|
|
|
multipleSelection: [],
|
|
|
|
|
|
|
|
uploadFileUrl: null,
|
|
|
|
|
|
|
|
headers: {},
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
onReset() {
|
|
|
|
onReset() {
|
|
|
|
this.$router.push({
|
|
|
|
this.$router.push({
|
|
|
|
path: "",
|
|
|
|
path: "",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.filterQuery = {
|
|
|
|
this.filterQuery = {
|
|
|
|
enable: null,
|
|
|
|
enable: null,
|
|
|
|
udiwmsType: "",
|
|
|
|
udiwmsType: "",
|
|
|
|
thirdType: "",
|
|
|
|
thirdType: "",
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 20,
|
|
|
|
limit: 20,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cancelDialog() {
|
|
|
|
cancelDialog() {
|
|
|
|
this.modifyDialogVisible = false;
|
|
|
|
this.modifyDialogVisible = false;
|
|
|
|
this.addDialogVisible = false;
|
|
|
|
this.addDialogVisible = false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleChange() {
|
|
|
|
handleChange() {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
getJoinBussinessType(this.filterQuery)
|
|
|
|
getJoinBussinessType(this.filterQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
this.list = response.data.list || [];
|
|
|
|
this.list = response.data.list || [];
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
this.list = [];
|
|
|
|
this.list = [];
|
|
|
|
this.total = 0;
|
|
|
|
this.total = 0;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onAddSubmit() {
|
|
|
|
onAddSubmit() {
|
|
|
|
if (this.inputQuery.enable && this.inputQuery.localAction == "") {
|
|
|
|
if (this.inputQuery.enable && this.inputQuery.localAction == "") {
|
|
|
|
this.$message.error("本地单据不能为空!");
|
|
|
|
this.$message.error("本地单据不能为空!");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.inputQuery.mainAction == "" || this.inputQuery.mainAction == null) {
|
|
|
|
if (this.inputQuery.mainAction == "" || this.inputQuery.mainAction == null) {
|
|
|
|
this.$message.error("出入库类型不能为空!");
|
|
|
|
this.$message.error("出入库类型不能为空!");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
insertBussinessType(this.inputQuery)
|
|
|
|
insertBussinessType(this.inputQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
this.cancelDialog();
|
|
|
|
this.cancelDialog();
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
this.cancelDialog();
|
|
|
|
this.cancelDialog();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
onModifySubmit() {
|
|
|
|
onModifySubmit() {
|
|
|
|
if (this.inputQuery.enable && this.inputQuery.localAction == "") {
|
|
|
|
if (this.inputQuery.enable && this.inputQuery.localAction == "") {
|
|
|
|
this.$message.error("本地单据不能为空!");
|
|
|
|
this.$message.error("本地单据不能为空!");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (this.inputQuery.mainAction == "" || this.inputQuery.mainAction == null) {
|
|
|
|
if (this.inputQuery.mainAction == "" || this.inputQuery.mainAction == null) {
|
|
|
|
this.$message.error("出入库类型不能为空!");
|
|
|
|
this.$message.error("出入库类型不能为空!");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
updateBussinessType(this.inputQuery)
|
|
|
|
updateBussinessType(this.inputQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
this.cancelDialog();
|
|
|
|
this.cancelDialog();
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
this.cancelDialog();
|
|
|
|
this.cancelDialog();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
handleAddClick() {
|
|
|
|
handleAddClick() {
|
|
|
|
this.inputQuery = {};
|
|
|
|
this.inputQuery = {enable: true};
|
|
|
|
this.addDialogVisible = true;
|
|
|
|
this.addDialogVisible = true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
handleModifyClick(row) {
|
|
|
|
handleModifyClick(row) {
|
|
|
|
this.inputQuery = {
|
|
|
|
this.inputQuery = {
|
|
|
|
id: row.id,
|
|
|
|
id: row.id,
|
|
|
|
remark: row.remark,
|
|
|
|
remark: row.remark,
|
|
|
|
action: row.action,
|
|
|
|
action: row.action,
|
|
|
|
name: row.name,
|
|
|
|
name: row.name,
|
|
|
|
enable: row.enable,
|
|
|
|
enable: row.enable,
|
|
|
|
mainAction: row.mainAction,
|
|
|
|
mainAction: row.mainAction,
|
|
|
|
localAction: row.localAction,
|
|
|
|
localAction: row.localAction,
|
|
|
|
thirdSysFk: row.thirdSysFk,
|
|
|
|
thirdSysFk: row.thirdSysFk,
|
|
|
|
checkEnable: row.checkEnable,
|
|
|
|
checkEnable: row.checkEnable,
|
|
|
|
genUnit: row.genUnit,
|
|
|
|
genUnit: row.genUnit,
|
|
|
|
innerOrder: row.innerOrder,
|
|
|
|
innerOrder: row.innerOrder,
|
|
|
|
spUse: row.spUse,
|
|
|
|
spUse: row.spUse,
|
|
|
|
secCheckEnable: row.secCheckEnable,
|
|
|
|
secCheckEnable: row.secCheckEnable,
|
|
|
|
checkUdims: row.checkUdims,
|
|
|
|
checkUdims: row.checkUdims,
|
|
|
|
checkPdaEd: row.checkPdaEd,
|
|
|
|
checkPdaEd: row.checkPdaEd,
|
|
|
|
checkPdaUn: row.checkPdaUn,
|
|
|
|
checkPdaUn: row.checkPdaUn,
|
|
|
|
checkPc: row.checkPc,
|
|
|
|
checkPc: row.checkPc,
|
|
|
|
checkWebNew: row.checkWebNew,
|
|
|
|
checkWebNew: row.checkWebNew,
|
|
|
|
checkChange: row.checkChange,
|
|
|
|
checkChange: row.checkChange,
|
|
|
|
secCheckUdims: row.secCheckUdims,
|
|
|
|
secCheckUdims: row.secCheckUdims,
|
|
|
|
secCheckPdaEd: row.secCheckPdaEd,
|
|
|
|
secCheckPdaEd: row.secCheckPdaEd,
|
|
|
|
secCheckPdaUn: row.secCheckPdaUn,
|
|
|
|
secCheckPdaUn: row.secCheckPdaUn,
|
|
|
|
secCheckPc: row.secCheckPc,
|
|
|
|
secCheckPc: row.secCheckPc,
|
|
|
|
secCheckWebNew: row.secCheckWebNew,
|
|
|
|
secCheckWebNew: row.secCheckWebNew,
|
|
|
|
secCheckChange: row.secCheckChange,
|
|
|
|
secCheckChange: row.secCheckChange,
|
|
|
|
corpType: row.corpType + "",
|
|
|
|
corpType: row.corpType + "",
|
|
|
|
storageCode: row.storageCode,
|
|
|
|
storageCode: row.storageCode,
|
|
|
|
supplementOrderType: row.supplementOrderType,
|
|
|
|
supplementOrderType: row.supplementOrderType,
|
|
|
|
checkBalacne: row.checkBalacne,
|
|
|
|
checkBalacne: row.checkBalacne,
|
|
|
|
secCheckBalacne: row.secCheckBalacne,
|
|
|
|
secCheckBalacne: row.secCheckBalacne,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.modifyDialogVisible = true;
|
|
|
|
this.modifyDialogVisible = true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
deleteDialog(rowId) {
|
|
|
|
deleteDialog(rowId) {
|
|
|
|
this.$confirm("此操作将永久删除该扫码类型信息, 是否继续?", "提示", {
|
|
|
|
this.$confirm("此操作将永久删除该扫码类型信息, 是否继续?", "提示", {
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
type: "warning",
|
|
|
|
type: "warning",
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(() => {
|
|
|
|
.then(() => {
|
|
|
|
this.deleteOrders(rowId);
|
|
|
|
this.deleteOrders(rowId);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
deleteOrders(data) {
|
|
|
|
deleteOrders(data) {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
let tquery = {
|
|
|
|
let tquery = {
|
|
|
|
id: data.id + "",
|
|
|
|
id: data.id + "",
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
deleteBussinessType(tquery)
|
|
|
|
deleteBussinessType(tquery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: "success",
|
|
|
|
type: "success",
|
|
|
|
message: "删除成功!",
|
|
|
|
message: "删除成功!",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
init() {
|
|
|
|
|
|
|
|
axios.get("./config.json").then(res => {
|
|
|
|
|
|
|
|
// 基础地址
|
|
|
|
|
|
|
|
let response = res.data.BASE_URL;
|
|
|
|
|
|
|
|
this.uploadFileUrl = response + "/udiwms/busstiness/file/upload";
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.headers = {
|
|
|
|
|
|
|
|
ADMIN_ID: store.getters.adminId,
|
|
|
|
|
|
|
|
ADMIN_TOKEN: store.getters.token,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
components: {
|
|
|
|
|
|
|
|
modifyDialog,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
init() {
|
|
|
|
this.init();
|
|
|
|
axios.get("./config.json").then(res => {
|
|
|
|
this.getList();
|
|
|
|
// 基础地址
|
|
|
|
|
|
|
|
let response = res.data.BASE_URL;
|
|
|
|
|
|
|
|
this.uploadFileUrl = response + "/udiwms/busstiness/file/upload";
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.headers = {
|
|
|
|
|
|
|
|
ADMIN_ID: store.getters.adminId,
|
|
|
|
|
|
|
|
ADMIN_TOKEN: store.getters.token,
|
|
|
|
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
components: {
|
|
|
|
|
|
|
|
modifyDialog,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
created() {
|
|
|
|
|
|
|
|
this.init();
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|