Commit 84bc78fa authored by 黄奎's avatar 黄奎

新增验证

parent 5e8ae1e1
......@@ -316,7 +316,6 @@
},
//保存部门
saveDepart(){
let Msg = [];
if (this.departId == -2) {
this.$q.notify({
type: 'negative',
......
<template>
<div class="EmployeeFinace" style="margin:0 20px;">
<q-btn-toggle style="width:50%;margin:0 auto;" v-model="msg.Conditon" spread no-caps toggle-color="primary"
color="white" text-color="black" class="my-custom-toggle" :options="[
{label: '交接人发起的', value: 1},
{label: '待交接人审批的', value: 2}
]" @input="queryChange" />
<br />
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关单据信息" flat
class="sticky-right-column-table sticky-column-table" separator="none" :data="DataList" :columns="columns">
<template v-slot:body-cell-CostTypeList="props">
......@@ -49,37 +55,11 @@
return {
loading: false,
msg: {
rowsPerPage: 6,
rowsPerPage: 5,
pageIndex: 1,
pageSize: 6,
FrID: '',
sDate: '',
eDate: '',
Status: '-1',
TemplateId: '0',
RB_Branch_Id: '',
RB_Depart_Id: '',
sTradeDate: '',
eTradeDate: '',
ClientType: '',
RemitterName: '',
ClientID: '',
sMoney: '',
eMoney: '',
CurrencyId: '',
CostTypeID: '',
Conditon: '',
TCID: '',
TradeWay: '',
Type: '0',
AccountType: '',
QEndDate: '',
QStartDate: '',
UpdateBy: '',
Sort: '2',
IsSpecial: 0,
Remark: '',
IsSellOrderForm: 1,
pageSize: 5,
CreateBy: 0,
Conditon: 1
},
columns: [{
name: '单号',
......@@ -130,22 +110,28 @@
pageCount: 0,
}
},
created() {
},
created() {},
mounted() {
this.getPageList();
},
methods: {
queryChange() {
this.msg.pageIndex = 1;
this.getPageList();
},
//分页
changePage(val) {
this.msg.pageIndex = val;
this.getPageList();
},
getPageList() { // 获取列表数据
// 获取列表数据
getPageList() {
this.DataList = [];
this.pageCount = 0;
if (this.saveObj.EmAccountId && this.saveObj.EmAccountId > 0) {
this.msg.UpdateBy = this.saveObj.EmAccountId;
this.msg.CreateBy = this.saveObj.EmAccountId;
} else {
this.msg.UpdateBy = 99999999;
this.msg.CreateBy = 99999999;
}
if (!this.msg.ClientID) this.msg.ClientID = 0;
if (!this.msg.ClientType) this.msg.ClientType = 0;
......@@ -154,7 +140,7 @@
if (!this.msg.TemplateId) this.msg.TemplateId = 0;
if (!this.msg.RB_Branch_Id) this.msg.RB_Branch_Id = -1;
if (!this.msg.RB_Depart_Id) this.msg.RB_Depart_Id = 0;
if (!this.msg.UpdateBy) this.msg.UpdateBy = 0;
if (!this.msg.CreateBy) this.msg.CreateBy = 0;
if (!this.msg.TCID) this.msg.TCID = 0;
if (!this.msg.OrderID) this.msg.OrderID = 0;
if (!this.msg.Status) this.msg.Status = 0;
......@@ -162,10 +148,10 @@
if (!this.msg.Conditon) this.msg.Conditon = 1;
if (!this.msg.TradeWay) this.msg.TradeWay = 0;
if (!this.msg.AccountType) this.msg.AccountType = 0;
this.apipost('Financial_post_GetALLPageList', this.msg, res => {
this.apipost('Financial_post_GetWOrkTransferPageList', this.msg, res => {
if (res.data.resultCode == 1) {
this.total = res.data.data.count;
this.DataList = res.data.data.pageData.list;
this.DataList = res.data.data.pageData;
this.pageCount = res.data.data.pageCount;
} else {
this.$message.error(res.data.message);
......@@ -185,3 +171,9 @@
}
</script>
<style scoped>
.EmployeeFinace .my-custom-toggle {
border: 1px solid #027be3
}
</style>
......@@ -475,6 +475,14 @@
},
//保存菜单
saveRole() {
if (this.objOption.RoleName == "") {
this.$q.notify({
type: 'negative',
position: "top",
message: `请填写角色名称!`
})
return;
}
this.saveLoading = true;
//角色菜单权限
var rolePermissionList = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment