首页客服弹窗修改样式、发票管理咨询代理商
This commit is contained in:
@ -3,10 +3,10 @@ import { history } from 'umi';
|
||||
import ProTable from '@ant-design/pro-table';
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { getInteriorManagerProjectList } from '../service'
|
||||
import { auctionFollowUpAProjectManager, getDicData } from '@/utils/session';
|
||||
import { auctionFollowUpAProjectManager, getDicData, getSessionUserData } from '@/utils/session';
|
||||
import { getUrlParam, getUrlRelativePath, isEmpty, proTableValueEnum } from '@/utils/CommonUtils';
|
||||
import { btnAuthority } from '@/utils/authority';
|
||||
|
||||
import { createHiddenForm } from '@/utils/CustomerService' //智慧客服
|
||||
const AuctionMyLookingForInnerShot: React.FC<{}> = () => {
|
||||
const [form] = Form.useForm();
|
||||
|
||||
@ -19,6 +19,80 @@ const AuctionMyLookingForInnerShot: React.FC<{}> = () => {
|
||||
const projectName = getUrlParam("projectName");
|
||||
//url分页信息
|
||||
const current = getUrlParam("current");
|
||||
const saveTmpForm = (record: any) => {//智慧客服-创建临时表单
|
||||
let roleAuthority: any | null = sessionStorage.getItem('roleAuthority');
|
||||
let data = getSessionUserData();
|
||||
console.log(record)
|
||||
const inputList = [
|
||||
{
|
||||
label: null,
|
||||
paraName: 'origin',
|
||||
isEncode: false,
|
||||
paraVal: 'eBid',
|
||||
},
|
||||
{
|
||||
label: null,
|
||||
paraName: 'organizationId',
|
||||
isEncode: false,
|
||||
paraVal: data.organizationId,
|
||||
},
|
||||
{
|
||||
label: '处置实施项目',
|
||||
paraName: 'projectName',
|
||||
isEncode: true,
|
||||
paraVal: record.projectName,
|
||||
},
|
||||
{
|
||||
label: '处置编号 ',
|
||||
paraName: 'disposalNum',
|
||||
isEncode: true,
|
||||
paraVal: record.disposalNum,
|
||||
},
|
||||
{
|
||||
label: null,
|
||||
paraName: 'tenderAgencyId',
|
||||
isEncode: false,
|
||||
paraVal: 'EMPTY',
|
||||
},
|
||||
{
|
||||
label: null,
|
||||
paraName: 'tenderAgencyName',
|
||||
isEncode: true,
|
||||
paraVal: '招投标客服',
|
||||
},
|
||||
{
|
||||
label: '处置实施部门',
|
||||
paraName: 'disposalDepartmentName',
|
||||
isEncode: true,
|
||||
paraVal: record.disposalDepartmentName,
|
||||
},
|
||||
{
|
||||
label: '处置经理',
|
||||
paraName: 'disposalManagerName',
|
||||
isEncode: true,
|
||||
paraVal: record.disposalManagerName
|
||||
},
|
||||
{
|
||||
label: null,
|
||||
paraName: 'roleAuthority',
|
||||
isEncode: false,
|
||||
paraVal: JSON.parse(roleAuthority)[0],
|
||||
},
|
||||
{
|
||||
label: null,
|
||||
paraName: 'module',
|
||||
isEncode: false,
|
||||
paraVal: '2',
|
||||
},
|
||||
{
|
||||
label: null,
|
||||
paraName: 'custType',
|
||||
isEncode: false,
|
||||
paraVal: '1',
|
||||
},
|
||||
]
|
||||
createHiddenForm(inputList, window.location.pathname)
|
||||
}
|
||||
const columns: any = [
|
||||
{
|
||||
title: '序号',
|
||||
@ -88,11 +162,15 @@ const AuctionMyLookingForInnerShot: React.FC<{}> = () => {
|
||||
valueType: 'option',
|
||||
width: 100,
|
||||
render: (_: any, record: any) => {
|
||||
return <Button hidden={btnAuthority(['ebtp-auction-manager'])} type='link' danger onClick={() => saveProject({
|
||||
return <Button hidden={btnAuthority(['ebtp-auction-manager'])} type='link' danger onClick={() => {
|
||||
//创建临时表单-智慧客服
|
||||
saveTmpForm(record)
|
||||
saveProject({
|
||||
"id": record?.id,
|
||||
"projectName": record?.projectName,
|
||||
"bidMethodDict": 'auction',
|
||||
})}>项目跟进</Button>
|
||||
})
|
||||
}}>项目跟进</Button>
|
||||
}
|
||||
}
|
||||
];
|
||||
|
Reference in New Issue
Block a user