90ebad3c by lihua

添加bizApproveState

1 parent a335bd10
......@@ -444,7 +444,7 @@ export const tagType = (row, type) => {
state = 'warning';
break;
}
} else if (type == 'approveState') {
} else if (type == 'approveState' || type == 'bizApproveState') {
switch (row[type]) {
case "N":
state = 'info';
......@@ -455,6 +455,7 @@ export const tagType = (row, type) => {
case "Y":
state = 'success'
break;
case 'E':
case "R":
state = 'danger'
break;
......@@ -754,7 +755,7 @@ export const tagMethod = (row, type) => {
tag = '待受理'
break;
}
} else if (type == 'approveState') {
} else if (type == 'approveState' || type == 'bizApproveState') {
switch (row[type]) {
case "N":
tag = '草稿中'
......@@ -771,6 +772,9 @@ export const tagMethod = (row, type) => {
case "C":
tag = '已撤销'
break;
case 'E':
tag = '发起失败'
break;
default:
tag = '--'
break;
......
......@@ -187,7 +187,7 @@ const tableInfo = ref({
const getTableBtns = (row, includeDetail = true) => {
let btnsArr: any[] = [];
const currentStaffGuid = userData.userGuid
const approveState = row.approveState;
const approveState = row.bizApproveState;
const staffGuid = row.createUserId || '';
let flowState;
if (approveState == 'N' && staffGuid == currentStaffGuid) {
......
......@@ -36,7 +36,7 @@ const searchItemList = ref([
{
type: 'select',
label: '',
field: 'approveState',
field: 'bizApproveState',
default: '',
placeholder: '审核状态',
options: [
......@@ -130,7 +130,7 @@ const page = ref({
{ label: "200", value: 200 },
],
connectorName: '',
approveState: ''
bizApproveState: ''
});
const currTableData: any = ref({});
const tableInfo = ref({
......@@ -197,10 +197,10 @@ const toSearch = (val: any, clear: boolean = false) => {
if (clear) {
searchItemList.value.map((item) => (item.default = ""));
page.value.connectorName = '';
page.value.approveState = "";
page.value.bizApproveState = "";
} else {
page.value.connectorName = val.connectorName;
page.value.approveState = val.approveState;
page.value.bizApproveState = val.bizApproveState;
}
getTableData();
updateCheckConnector();
......@@ -212,7 +212,7 @@ const getTableData = () => {
pageIndex: page.value.curr,
pageSize: page.value.limit,
connectorName: page.value.connectorName,
approveState: page.value.approveState,
bizApproveState: page.value.bizApproveState,
currentStaffGuid: userData.staffGuid
}).then((res: any) => {
if (res?.code == proxy.$passCode) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!