bug修改,同步设置联动控制按钮是否可用

fengcang
anthonyywj2 3 years ago
parent ac3485ed8b
commit d79154583f

@ -14,6 +14,7 @@
<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.entrustAction"
>新增 >新增
</el-button </el-button
> >
@ -37,6 +38,7 @@
type="text" type="text"
size="small" size="small"
@click.native.stop="handleModifyClick(scope.row)" @click.native.stop="handleModifyClick(scope.row)"
:disabled="!configParms.entrustAction"
>编辑 >编辑
</el-button </el-button
> >
@ -44,6 +46,7 @@
type="text" type="text"
size="small" size="small"
@click.native.stop="deleteDialog(scope.row)" @click.native.stop="deleteDialog(scope.row)"
:disabled="!configParms.entrustAction"
>删除 >删除
</el-button </el-button
> >
@ -111,6 +114,7 @@ import {
} from "../../api/basic/EntrustRece"; } from "../../api/basic/EntrustRece";
import modifyDialog from "./BasicEntrutsReceModify"; import modifyDialog from "./BasicEntrutsReceModify";
import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default { export default {
data() { data() {
@ -148,6 +152,7 @@ export default {
multipleSelection: [], multipleSelection: [],
uploadFileUrl: null, uploadFileUrl: null,
headers: {}, headers: {},
configParms: {},
}; };
}, },
@ -301,6 +306,16 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
}, },
components: { components: {
modifyDialog, modifyDialog,

@ -66,7 +66,7 @@
> >
<el-button <el-button
type="text" type="text"
size="small" size="small" :disabled="!configParms.typeBus"
@click.native.stop="deleteDialog(scope.row)" @click.native.stop="deleteDialog(scope.row)"
>删除 >删除
</el-button </el-button

@ -35,6 +35,7 @@
> >
<el-button type="primary" icon="search" @click="updateDownload" <el-button type="primary" icon="search" @click="updateDownload"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==3" v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==3"
:disabled="!configParms.typeThird"
>更新下载 >更新下载
</el-button> </el-button>
</el-button-group> </el-button-group>

@ -102,14 +102,14 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="scope.row.pid!=0" :disabled="scope.row.pid!=0 || !configParms.basicInv"
@click.native.stop="handleSubForm(scope.row, 'add')" @click.native.stop="handleSubForm(scope.row, 'add')"
>添加分库 >添加分库
</el-button </el-button
> >
<el-button <el-button
type="text" type="text"
size="small" size="small" :disabled="!configParms.basicInv"
@click.native.stop="handleForm( scope.row, 'edit')" @click.native.stop="handleForm( scope.row, 'edit')"
>编辑 >编辑
</el-button </el-button
@ -160,6 +160,7 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.basicInv"
@click.native.stop="addUser(scope.row)" @click.native.stop="addUser(scope.row)"
>添加用户 >添加用户
</el-button </el-button
@ -167,6 +168,7 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.basicInv"
@click.native.stop="addBussinessType(scope.row)" @click.native.stop="addBussinessType(scope.row)"
>添加单据类型 >添加单据类型
</el-button </el-button
@ -174,6 +176,7 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.basicInv"
@click.native.stop="handleSubForm( scope.row, 'edit')" @click.native.stop="handleSubForm( scope.row, 'edit')"
>编辑 >编辑
</el-button </el-button
@ -230,6 +233,7 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
!configParms.basicInv
@click.native="delWarehouseUser(scope.row.id)"> @click.native="delWarehouseUser(scope.row.id)">
移除 移除
</el-button> </el-button>
@ -267,6 +271,7 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
!configParms.basicInv
@click.native="delWarehouseBussinessType(scope.row.id)"> @click.native="delWarehouseBussinessType(scope.row.id)">
移除 移除
</el-button> </el-button>

@ -38,6 +38,7 @@
</el-button> </el-button>
<el-button type="primary" @click.native="downloadWarehouse()" <el-button type="primary" @click.native="downloadWarehouse()"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==3" v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==3"
:disabled="!configParms.basicThirdInv"
>下载仓库 >下载仓库
</el-button> </el-button>
</el-button-group> </el-button-group>
@ -81,6 +82,7 @@
type="text" type="text"
size="small" size="small"
@click.native.stop="handleSubForm( scope.row, 'add')" @click.native.stop="handleSubForm( scope.row, 'add')"
:disabled="!configParms.basicThirdInv"
>添加分库 >添加分库
</el-button </el-button
> >
@ -135,6 +137,7 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.basicThirdInv"
@click.native.stop="handleSubForm( scope.row, 'edit')" @click.native.stop="handleSubForm( scope.row, 'edit')"
>编辑 >编辑
</el-button </el-button
@ -142,7 +145,7 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.basicInv" :disabled="!configParms.basicThirdInv"
@click.native.stop="handleSubDel(scope.row)" @click.native.stop="handleSubDel(scope.row)"
>删除 >删除
</el-button </el-button

@ -272,7 +272,10 @@ export default {
}); });
}, },
editDialog(row) { editDialog(row) {
this.checkQuery = row;
this.checkQuery = JSON.parse(JSON.stringify(row));
// this.checkQuery = row;
this.editDialogVisible = true; this.editDialogVisible = true;
}, },
cancelDialog() { cancelDialog() {
@ -299,6 +302,7 @@ export default {
type: "success", type: "success",
message: "更新成功!", message: "更新成功!",
}); });
this.editDialogVisible = false;
} else { } else {
this.$message.warning("更新失败"); this.$message.warning("更新失败");
this.loading = false; this.loading = false;

Loading…
Cancel
Save