业务单据,扫码单据类型配置修改

fencang
anthonywj 3 years ago
parent 4eca66d3e2
commit 038ee5a59a

@ -211,8 +211,9 @@ export default {
scanPreIn: null, scanPreIn: null,
vailInv: null, vailInv: null,
codeFillCheck: null, codeFillCheck: null,
defaultInv:null, defaultInv: null,
defaultSubInv: null, defaultSubInv: null,
orderVisibleType: 0,
}, },
enableMap: { enableMap: {
true: "是", true: "是",
@ -359,8 +360,8 @@ export default {
codeFillCheck: row.codeFillCheck, codeFillCheck: row.codeFillCheck,
changeEnable: row.changeEnable, changeEnable: row.changeEnable,
defaultSubInv: row.defaultSubInv, defaultSubInv: row.defaultSubInv,
defaultInv:row.defaultInv, defaultInv: row.defaultInv,
orderVisibleType: row.orderVisibleType,
}; };
this.modifyDialogVisible = true; this.modifyDialogVisible = true;
}, },

@ -1,121 +1,121 @@
<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.name" v-model="filterQuery.name"
placeholder="业务类型" placeholder="业务类型"
style="width: 400px" style="width: 400px"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<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="getList"></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"
:disabled="!configParms.typeBus" :disabled="!configParms.typeBus"
>新增 >新增
</el-button </el-button
> >
</el-button-group> </el-button-group>
</el-form-item>
</el-form>
<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-column label="业务单据类型代码" prop="action" fixed></el-table-column>
<el-table-column label="第三方单据类型" prop="originAction" fixed></el-table-column>
<el-table-column label="是否寄售" prop="advanceType" fixed>
<template slot-scope="scope">
<span>{{ enableMap[scope.row.advanceType] }}</span>
</template>
</el-table-column>
<el-table-column label="预验收" prop="preIn" fixed>
<template slot-scope="scope">
<span>{{ enableMap[scope.row.preIn] }}</span>
</template>
</el-table-column>
<el-table-column label="缺量自动补单" prop="advanceType" fixed>
<template slot-scope="scope">
<span>{{ enableMap[scope.row.changeEnable] }}</span>
</template>
</el-table-column>
<el-table-column label="允许供应商使用" prop="spUse" fixed>
<template slot-scope="scope">
<span>{{ enableMap[scope.row.spUse] }}</span>
</template>
</el-table-column>
<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="业务单据类型名称" prop="name" fixed></el-table-column>
<el-table-column label="业务单据类型代码" prop="action" fixed></el-table-column>
<el-table-column label="第三方单据类型" prop="originAction" fixed></el-table-column>
<el-table-column label="是否寄售" prop="advanceType" fixed>
<template slot-scope="scope">
<span>{{ enableMap[scope.row.advanceType] }}</span>
</template>
</el-table-column>
<el-table-column label="预验收" prop="preIn" fixed>
<template slot-scope="scope">
<span>{{ enableMap[scope.row.preIn] }}</span>
</template>
</el-table-column>
<el-table-column label="缺量自动补单" prop="advanceType" fixed>
<template slot-scope="scope">
<span>{{ enableMap[scope.row.changeEnable] }}</span>
</template>
</el-table-column>
<el-table-column label="允许供应商使用" prop="spUse" fixed>
<template slot-scope="scope">
<span>{{ enableMap[scope.row.spUse] }}</span>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click.native.stop="handleModifyClick(scope.row)"
>编辑
</el-button
>
<el-button
type="text"
size="small"
:disabled="!configParms.typeBus"
@click.native.stop="deleteDialog(scope.row)"
>删除
</el-button
>
</template>
</el-table-column>
</el-table>
<el-dialog <el-table-column label="操作" fixed="right">
title="新增业务类型关联" <template slot-scope="scope">
:visible.sync="addDialogVisible" <el-button
width="70%" type="text"
:close-on-click-modal="false" size="small"
:close-on-press-escape="false" @click.native.stop="handleModifyClick(scope.row)"
v-if="addDialogVisible" >编辑
</el-button
> >
<modifyDialog :inputQuery="inputQuery"></modifyDialog> <el-button
<div style="text-align: center"> type="text"
<el-button type="primary" size="small" icon="search" @click="onAddSubmit" size="small"
:disabled="!configParms.typeBus" :disabled="!configParms.typeBus"
>提交 @click.native.stop="deleteDialog(scope.row)"
</el-button >删除
> </el-button
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消
</el-button
>
</div>
</el-dialog>
<el-dialog
title="编辑业务类型关联"
:visible.sync="modifyDialogVisible"
width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="modifyDialogVisible"
> >
<modifyDialog :inputQuery="inputQuery"></modifyDialog> </template>
<div style="text-align: center"> </el-table-column>
<el-button type="primary" size="small" icon="search" @click="onModifySubmit" </el-table>
:disabled="!configParms.typeBus"
>提交 <el-dialog
</el-button title="新增业务类型关联"
> :visible.sync="addDialogVisible"
<el-button type="primary" size="small" icon="search" @click="cancelDialog" width="70%"
>取消 :close-on-click-modal="false"
</el-button :close-on-press-escape="false"
> v-if="addDialogVisible"
</div> >
</el-dialog> <modifyDialog :inputQuery="inputQuery"></modifyDialog>
</el-card> <div style="text-align: center">
</div> <el-button type="primary" size="small" icon="search" @click="onAddSubmit"
:disabled="!configParms.typeBus"
>提交
</el-button
>
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消
</el-button
>
</div>
</el-dialog>
<el-dialog
title="编辑业务类型关联"
:visible.sync="modifyDialogVisible"
width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="modifyDialogVisible"
>
<modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onModifySubmit"
:disabled="!configParms.typeBus"
>提交
</el-button
>
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消
</el-button
>
</div>
</el-dialog>
</el-card>
</div>
</template> </template>
<script> <script>
@ -124,200 +124,202 @@ import modifyDialog from "./BussinessTypeLoclModify";
import {findConfig} from "@/api/thrsys/spsSyncStatus"; import {findConfig} from "@/api/thrsys/spsSyncStatus";
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: "",
remark: "", remark: "",
mainAction: "", mainAction: "",
thirdSysFk: "", thirdSysFk: "",
id: "", id: "",
originAction: null, originAction: null,
localAction: null, localAction: null,
advanceType: null, advanceType: null,
changeEnable: null, changeEnable: null,
spUse: null, spUse: null,
prefix: null, prefix: null,
preIn: null, preIn: null,
}, supplementAll: false,
enableMap: { },
true: "是", enableMap: {
false: "否", true: "是",
}, false: "否",
},
total: 0, total: 0,
multipleSelection: [], multipleSelection: [],
configParms: {}, configParms: {},
}; };
}, },
methods: { methods: {
onReset() { onReset() {
this.$router.push({ this.$router.push({
path: "", path: "",
}); });
this.filterQuery = { this.filterQuery = {
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;
}, },
getList() { getList() {
this.loading = true; this.loading = true;
getLocalBusType(this.filterQuery) getLocalBusType(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() {
addLocalBusType(this.inputQuery) addLocalBusType(this.inputQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
if (response.code == 20000) { if (response.code == 20000) {
this.cancelDialog(); this.cancelDialog();
this.getList(); this.getList();
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.cancelDialog(); this.cancelDialog();
}); });
}, },
onModifySubmit() { onModifySubmit() {
updateLocalBusType(this.inputQuery) updateLocalBusType(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();
}); });
}, },
handleModifyClick(row) { handleModifyClick(row) {
this.modifyDialogVisible = true; this.modifyDialogVisible = true;
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,
originAction: row.originAction, originAction: row.originAction,
advanceType: row.advanceType, advanceType: row.advanceType,
changeEnable: row.changeEnable, changeEnable: row.changeEnable,
spUse: row.spUse, spUse: row.spUse,
prefix: row.prefix, prefix: row.prefix,
preIn: row.preIn, preIn: row.preIn,
}; supplementAll: row.supplementAll,
}, };
},
handleAddClick() { handleAddClick() {
this.addDialogVisible = true; this.addDialogVisible = true;
this.inputQuery = { this.inputQuery = {
action: "", action: "",
name: "", name: "",
enable: "", enable: "",
remark: "", remark: "",
mainAction: null, mainAction: null,
thirdSysFk: "", thirdSysFk: "",
id: null, id: null,
advanceType: null, advanceType: null,
localAction: null, localAction: null,
changeEnable: null, changeEnable: null,
prefix: null, prefix: null,
preIn: null, preIn: null,
}; };
}, },
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 + "",
}; };
deleteLocalBusType(tquery) deleteLocalBusType(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(() => {
}); });
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
},
components: {
modifyDialog,
},
mounted() {
}, },
created() { getSyncConfig() {
this.getSyncConfig(); findConfig()
this.getList(); .then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
}, },
},
components: {
modifyDialog,
},
mounted() {
},
created() {
this.getSyncConfig();
this.getList();
},
}; };
</script> </script>

@ -134,6 +134,13 @@
</el-checkbox> </el-checkbox>
</div> </div>
</el-col> </el-col>
<el-col :span="4" class="el-col">
<div class="text item">
<el-checkbox v-model="inputQuery.supplementAll"
:disabled="!inputQuery.changeEnable">是否全量补单
</el-checkbox>
</div>
</el-col>
</el-row> </el-row>
@ -327,7 +334,7 @@ export default {
}, },
getTypes() { getTypes() {
let tQuery = { let tQuery = {
onlyMain:true, onlyMain: true,
} }
getOriginBusType(tQuery) getOriginBusType(tQuery)
.then((response) => { .then((response) => {

@ -197,20 +197,29 @@
</el-row> </el-row>
<el-divider></el-divider>
<el-row :gutter="20" class="el-row" type="flex"> <span>单据设置</span>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 10px">
<el-col :span="24" class="el-col"> <el-col :span="24" class="el-col">
<div class="text item" style="margin-top: 6px">
<div class="text item" style="margin-top: 6px">
<el-checkbox v-model="inputQuery.enable"></el-checkbox> <el-checkbox v-model="inputQuery.enable"></el-checkbox>
<el-checkbox v-model="inputQuery.genUnit" :disabled="inputQuery.corpType !=2"> <el-checkbox v-model="inputQuery.genUnit" :disabled="inputQuery.corpType !=2">
</el-checkbox> </el-checkbox>
<el-checkbox v-model="inputQuery.useDyCount" :disabled="true">使 <el-checkbox v-model="inputQuery.useDyCount" :disabled="true">使
</el-checkbox> </el-checkbox>
</div>
<span style="margin-left: 15px">单据详情展示方式:</span>
<el-select v-model="inputQuery.orderVisibleType" style="margin-left: 5px"
placeholder="单据详情展示方式"
size="mini">
<el-option label="批次号" :value=0></el-option>
<el-option label="条码清单" :value=1></el-option>
</el-select>
</div>
</el-col> </el-col>
</el-row> </el-row>

Loading…
Cancel
Save