单据类型修改

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"]

@ -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,6 +266,9 @@ export default {
if (this.inputQuery.changeEnable) { if (this.inputQuery.changeEnable) {
this.visibleChange = true; this.visibleChange = true;
} }
if (this.changeList.length == 0)
this.changeEnable = false;
else
this.changeEnable = true; this.changeEnable = true;
} else { } else {
@ -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