部门,用户,同步修改

ywj_dev
anthonywj 2 years ago
parent c42d1b5b55
commit 65be7612a2

@ -87,11 +87,14 @@
基础信息 基础信息
</template> </template>
<el-checkbox v-model="configQuery.sysUser" :disabled="configQuery.downstreamEnable"></el-checkbox> <el-checkbox v-model="configQuery.sysUser" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.basicProducts" :disabled="configQuery.downstreamEnable"> <el-checkbox v-model="configQuery.basicProducts" :disabled="configQuery.downstreamEnable">
</el-checkbox>
<el-checkbox v-model="configQuery.basicType" :disabled="configQuery.downstreamEnable">
</el-checkbox> </el-checkbox>
<el-checkbox v-model="configQuery.basicCorp" :disabled="configQuery.downstreamEnable"> <el-checkbox v-model="configQuery.basicCorp" :disabled="configQuery.downstreamEnable">
</el-checkbox> </el-checkbox>
<el-checkbox v-model="configQuery.basicInv" :disabled="configQuery.downstreamEnable"></el-checkbox> <el-checkbox v-model="configQuery.basicDept" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.basicInv" :disabled="configQuery.downstreamEnable"></el-checkbox>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> <template slot="label">
@ -281,6 +284,9 @@ export default {
companyCert: null, companyCert: null,
manufacturerCert: null, manufacturerCert: null,
productCert: null, productCert: null,
basicType: null,
basicDept: null,
}, },
checkedBusTypes: [], checkedBusTypes: [],

@ -31,11 +31,11 @@
>查询 >查询
</el-button </el-button
> >
<el-button type="primary" @click="addDeptDialog" <!-- <el-button type="primary" @click="addDeptDialog"-->
icon="el-icon-plus" <!-- icon="el-icon-plus"-->
>新增 <!-- >新增-->
</el-button <!-- </el-button-->
> <!-- >-->
<el-button <el-button
type="primary" type="primary"
icon="el-icon-sort" icon="el-icon-sort"
@ -448,7 +448,7 @@ export default {
message: "添加成功!", message: "添加成功!",
}); });
} else { } else {
this.$message.warning("添加失败!"); this.$message.warning("添加失败," + response.message);
} }
}) })
.catch(() => { .catch(() => {

@ -258,7 +258,7 @@ import {findConfig} from "@/api/sync/spsSyncStatus";
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
import {listRole} from "@/api/system/role"; import {listRole} from "@/api/system/role";
import {selectSysParamByKey} from "@/api/system/systemParamConfig"; import {selectSysParamByKey} from "@/api/system/systemParamConfig";
import { filterList, selectInvById } from '@/api/system/invWarehouse' import {filterList, selectInvById} from '@/api/system/invWarehouse'
const formJson = { const formJson = {
id: "", id: "",
@ -315,7 +315,7 @@ export default {
formData: formJson, formData: formJson,
selectDeptList: [], selectDeptList: [],
fromDeptOptions: [], fromDeptOptions: [],
fromWarehouseOptions:[], fromWarehouseOptions: [],
configParms: {}, configParms: {},
formRules: {}, formRules: {},
addRules: { addRules: {
@ -378,13 +378,13 @@ export default {
this.query.page = 1; this.query.page = 1;
this.getList(); this.getList();
}, },
findInv(val){ findInv(val) {
// //
selectInvById(val) selectInvById(val)
.then((res) => { .then((res) => {
if(res.code == 20000){ if (res.code == 20000) {
this.fromWarehouseOptions = res.data || []; this.fromWarehouseOptions = res.data || [];
} }
}) })
}, },
@ -455,7 +455,7 @@ export default {
roles: row.roles, roles: row.roles,
depts: row.depts, depts: row.depts,
dept: row.dept, dept: row.dept,
warehouseName:row.warehouseName warehouseName: row.warehouseName
}; };
} }
this.formName = "add"; this.formName = "add";
@ -465,6 +465,11 @@ export default {
this.formName = "edit"; this.formName = "edit";
this.formRules = this.editRules; this.formRules = this.editRules;
} }
if (row.depts != null && row.depts.length > 0) {
this.findInv(row.depts);
}
}, },
formSubmit() { formSubmit() {
if (isBlank(this.formData.userName)) { if (isBlank(this.formData.userName)) {
@ -483,7 +488,7 @@ export default {
this.$refs["dataForm"].validate(valid => { this.$refs["dataForm"].validate(valid => {
if (valid) { if (valid) {
this.formLoading = true; this.formLoading = true;
this.formData.locInvCode = this.formData.warehouseName this.formData.locInvCode = this.formData.warehouseName
let data = Object.assign({}, this.formData); let data = Object.assign({}, this.formData);
authAdminSave(data, this.formName).then(response => { authAdminSave(data, this.formName).then(response => {
this.formLoading = false; this.formLoading = false;
@ -602,6 +607,7 @@ export default {
this.getSyncConfig(); this.getSyncConfig();
this.findDeptMethod(); this.findDeptMethod();
// //
selectSysParamByKey({paramKey: "muti_inv_mode"}).then((res) => { selectSysParamByKey({paramKey: "muti_inv_mode"}).then((res) => {
if (res.code === 20000) { if (res.code === 20000) {

Loading…
Cancel
Save