单据类型修改

master
anthonywj 3 years ago
parent ef5d2cbaa7
commit 94a95678f9

@ -378,7 +378,7 @@ export const asyncRouterMap = [
{ {
path: "invWarehouse", path: "invWarehouse",
component: invWarehouse, component: invWarehouse,
name: "仓库信息", name: "仓库字典",
icon: "", icon: "",
meta: { meta: {
authRule: ["basicProduct/invWarehouse"] authRule: ["basicProduct/invWarehouse"]
@ -388,7 +388,7 @@ export const asyncRouterMap = [
{ {
path: "/udiInfo", path: "/udiInfo",
redirect: "/udiInfo/manage", redirect: "/udiInfo/manage",
name: "医疗器械信息", name: "耗材字典",
component: Empty, component: Empty,
meta: { meta: {
authRule: ["udiInfo/manage"] authRule: ["udiInfo/manage"]
@ -397,7 +397,7 @@ export const asyncRouterMap = [
{ {
path: "UdiInfoManage", path: "UdiInfoManage",
name: "医疗器械信息维护", name: "耗材字典维护",
component: UdiInfoManage, component: UdiInfoManage,
meta: { meta: {
authRule: ["product/UdiInfoManage"] authRule: ["product/UdiInfoManage"]
@ -406,7 +406,7 @@ export const asyncRouterMap = [
{ {
path: "udiImport", path: "udiImport",
name: "医疗器械信息导入", name: "耗材字典导入",
component: UdiInfoImport, component: UdiInfoImport,
meta: { meta: {
authRule: ["product/udiImport"] authRule: ["product/udiImport"]
@ -414,7 +414,7 @@ export const asyncRouterMap = [
}, },
{ {
path: "udiinfoExport", path: "udiinfoExport",
name: "医疗器械信息导出", name: "耗材字典导出",
component: udiInfoExport, component: udiInfoExport,
meta: { meta: {
authRule: ["product/udiinfoExport"] authRule: ["product/udiinfoExport"]
@ -435,7 +435,7 @@ export const asyncRouterMap = [
{ {
path: "/basicCorp", path: "/basicCorp",
redirect: "/basicCorp/manage", redirect: "/basicCorp/manage",
name: "供应商信息", name: "往来单位字典",
component: Empty, component: Empty,
meta: { meta: {
authRule: ["basicCorp/manage"] authRule: ["basicCorp/manage"]
@ -443,7 +443,7 @@ export const asyncRouterMap = [
children: [ children: [
{ {
path: "basicUnitMaintain", path: "basicUnitMaintain",
name: "供应商信息维护", name: "往来单位信息维护",
component: basicUnitMaintain, component: basicUnitMaintain,
meta: { meta: {
authRule: ["basicCorp/basicUnitMaintain"] authRule: ["basicCorp/basicUnitMaintain"]
@ -451,7 +451,7 @@ export const asyncRouterMap = [
}, },
{ {
path: "corpImport", path: "corpImport",
name: "供应商信息导入", name: "往来单位信息导入",
component: corpImport, component: corpImport,
meta: { meta: {
authRule: ["basicCorp/corpImport"] authRule: ["basicCorp/corpImport"]
@ -460,7 +460,7 @@ export const asyncRouterMap = [
{ {
path: "corpExport", path: "corpExport",
name: "供应商信息导出", name: "往来单位信息导出",
component: corpExport, component: corpExport,
meta: { meta: {
authRule: ["basicCorp/corpExport"] authRule: ["basicCorp/corpExport"]

@ -1,125 +1,125 @@
<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.action"
placeholder="业务类型" placeholder="业务类型"
style="width: 400px" 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.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>
</el-select> </el-select>
</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"
>新增 >新增
</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 v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="业务单据类型代码" prop="action" fixed></el-table-column> <el-table-column label="序号" type="index" width="120" fixed></el-table-column>
<el-table-column label="第三方单据类型" prop="originAction" fixed></el-table-column>
<el-table-column label="单据是否启用" prop="enable" fixed>
<template slot-scope="scope">
<span>{{ enableMap[scope.row.enable] }}</span>
</template>
</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="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="业务单据类型名称" 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="enable" fixed>
<template slot-scope="scope">
<span>{{ enableMap[scope.row.enable] }}</span>
</template>
</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="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"
@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"
>提交 @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>
>提交
</el-button <el-dialog
> title="新增业务类型关联"
<el-button type="primary" size="small" icon="search" @click="cancelDialog" :visible.sync="addDialogVisible"
>取消 width="70%"
</el-button :close-on-click-modal="false"
> :close-on-press-escape="false"
</div> v-if="addDialogVisible"
</el-dialog> >
</el-card> <modifyDialog :inputQuery="inputQuery"></modifyDialog>
</div> <div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onAddSubmit"
>提交
</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"
>提交
</el-button
>
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消
</el-button
>
</div>
</el-dialog>
</el-card>
</div>
</template> </template>
<script> <script>
@ -127,178 +127,178 @@ import {getLocalBusType, addLocalBusType, updateLocalBusType, deleteLocalBusType
import modifyDialog from "./BussinessTypeLoclModify"; import modifyDialog from "./BussinessTypeLoclModify";
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,
}, },
enableMap: { enableMap: {
true: "是", true: "是",
false: "否", false: "否",
}, },
total: 0, total: 0,
multipleSelection: [], multipleSelection: [],
}; };
}, },
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;
this.cancelDialog(); this.cancelDialog();
this.getList(); this.getList();
}) })
.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,
}; };
}, },
handleAddClick() { handleAddClick() {
this.addDialogVisible = true; this.addDialogVisible = true;
this.inputQuery = { this.inputQuery = {
action: "", action: "",
name: "", name: "",
enable: "", enable: "",
remark: "", remark: "",
mainAction: "", mainAction: "",
thirdSysFk: "", thirdSysFk: "",
id: "", id: "",
advanceType: null, advanceType: null,
localAction: null, localAction: null,
changeEnable: null, changeEnable: 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(() => {
}); });
},
},
components: {
modifyDialog,
},
mounted() {
},
created() {
this.getList();
}, },
},
components: {
modifyDialog,
},
mounted() {
},
created() {
this.getList();
},
}; };
</script> </script>

@ -83,7 +83,10 @@
</el-col> </el-col>
<el-col :span="4" class="el-col"> <el-col :span="4" class="el-col">
<div class="text item"> <div class="text item">
<el-checkbox v-model="inputQuery.changeEnable" @change="isChangeOrder" :disabled="!changeEnable"></el-checkbox> <el-checkbox v-model="inputQuery.changeEnable" @change="isChangeOrder"
:disabled="!changeEnable || inputQuery.mainAction">
缺量自动补单
</el-checkbox>
</div> </div>
</el-col> </el-col>
<el-col :span="4" class="el-col"> <el-col :span="4" class="el-col">
@ -209,7 +212,7 @@
<script> <script>
import {getOriginBusType} from "../../api/basic/busOriginType"; import {getOriginBusType} from "../../api/basic/busOriginType";
import {getBussinessType} from "../../api/basic/bussinessType"; import {getBussinessType, getJoinBussinessType} from "../../api/basic/bussinessType";
import { import {
getChangeBusType, getChangeBusType,
addChangeBusType, addChangeBusType,
@ -263,7 +266,10 @@ export default {
if (this.inputQuery.changeEnable) { if (this.inputQuery.changeEnable) {
this.visibleChange = true; this.visibleChange = true;
} }
this.changeEnable = true; if (this.changeList.length == 0)
this.changeEnable = false;
else
this.changeEnable = true;
} else { } else {
// this.$message.error(response.message); // this.$message.error(response.message);
@ -283,17 +289,23 @@ export default {
}) })
.catch(() => { .catch(() => {
}); });
this.getBusTypes(null);
},
getBusTypes() {
let query = { let query = {
enabled: true, enabled: true,
filterAction: this.inputQuery.action,
}; };
getBussinessType(query) getJoinBussinessType(query)
.then((response) => { .then((response) => {
this.codeTypes = response.data.list || []; this.codeTypes = response.data.list || [];
}) })
.catch(() => { .catch(() => {
}); });
} },
,
addChangeType() { addChangeType() {
this.changeEdit = 0; this.changeEdit = 0;
@ -305,6 +317,7 @@ export default {
this.changeEdit = 1; this.changeEdit = 1;
this.editQuery = row; this.editQuery = row;
this.editChangeTypeVisible = true; this.editChangeTypeVisible = true;
this.getBusTypes();
} }
, ,
hideForm() { hideForm() {

@ -105,8 +105,9 @@
<div class="itemTag"> <div class="itemTag">
<span>当前仓库:&nbsp;</span> <span>当前仓库:&nbsp;</span>
</div> </div>
<el-select v-model="inputQuery.storageCode" placeholder="当前仓库信息"> <el-select clearable v-model="inputQuery.storageCode" placeholder="当前仓库信息">
<el-option <el-option
v-for="item in storageList" v-for="item in storageList"
:key="item.name" :key="item.name"
:label="item.name" :label="item.name"

@ -38,6 +38,7 @@
<el-button <el-button
type="primary" type="primary"
size="mini" size="mini"
:disabled="scope.row.templateType == 2"
@click.native.stop="moduleSelectTemplate(scope.row)" @click.native.stop="moduleSelectTemplate(scope.row)"
>选择模板 >选择模板
</el-button </el-button
@ -46,6 +47,7 @@
<p v-if="scope.row.templateName !== null"> <p v-if="scope.row.templateName !== null">
<el-button <el-button
type="primary" type="primary"
:disabled="scope.row.templateType == 2"
size="mini" size="mini"
@click.native.stop="moduleSelectTemplate(scope.row)" @click.native.stop="moduleSelectTemplate(scope.row)"
>{{ scope.row.templateName }} >{{ scope.row.templateName }}

@ -791,7 +791,7 @@ export default {
selectProductFunction(event) { selectProductFunction(event) {
if (event == null) { if (event == null) {
this.$refs.inputRef.focus(); // this.$refs.inputRef.focus();
} else { } else {
event.target.select(); event.target.select();
} }
@ -886,7 +886,7 @@ export default {
} }
} else { } else {
this.$message.warning(response.message); this.$message.warning(response.message);
this.focusNext('inputRef'); // this.focusNext('inputRef');
if (this.$isNotBlank(event)) { if (this.$isNotBlank(event)) {
event.target.select(); event.target.select();
} }

@ -674,7 +674,7 @@ export default {
}, },
selectProductFunction(event) { selectProductFunction(event) {
if (event == null) { if (event == null) {
this.$refs.inputRef.focus(); // this.$refs.inputRef.focus();
} else event.target.select(); } else event.target.select();
if (this.$isBlank(event)) { if (this.$isBlank(event)) {
this.code = ""; this.code = "";
@ -745,7 +745,7 @@ export default {
} }
} else { } else {
this.$message.warning(response.message); this.$message.warning(response.message);
this.focusNext('inputRef'); // this.focusNext('inputRef');
if (this.$isNotBlank(event)) { if (this.$isNotBlank(event)) {
event.target.select(); event.target.select();
} }

Loading…
Cancel
Save