部门,用户,同步修改

ywj_dev
anthonywj 2 years ago
parent c42d1b5b55
commit 65be7612a2

@ -87,11 +87,14 @@
基础信息
</template>
<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 v-model="configQuery.basicCorp" :disabled="configQuery.downstreamEnable">
</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>
<template slot="label">
@ -281,6 +284,9 @@ export default {
companyCert: null,
manufacturerCert: null,
productCert: null,
basicType: null,
basicDept: null,
},
checkedBusTypes: [],

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

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

Loading…
Cancel
Save