9.27 标的类型展示支持多个展示

This commit is contained in:
jl-zhoujl2
2022-09-27 15:31:15 +08:00
parent b431e82647
commit 566ebae68b
14 changed files with 589 additions and 583 deletions

View File

@ -3,14 +3,14 @@ import { Button, Tabs, Form, Input, Modal, Checkbox, message, PageHeader, Popcon
import ProTable, { ActionType, ProColumns } from '@ant-design/pro-table';
import { getSection, exitProject, getProject, getOther, supplierRegister, exitProjectPayCheck } from './service';
import { getSupplierUser } from '@/utils/SupplierList/service'
import { getProMethod,getSessionUserData } from '@/utils/session';
import { getProMethod, getSessionUserData } from '@/utils/session';
import '@/assets/ld_style.less';
import { history } from 'umi';
import { followUpAProjectSupplier, getDicData } from '@/utils/session';
import { getDictName, getProjectTypeCode, getURLInformation, getUrlParam, getUrlRelativePath, isEmpty, isNotEmpty, proTableValueEnum, proTableValueEnumOther } from '@/utils/CommonUtils';
import { getDictName, getProjectTypeCode, getURLInformation, getUrlParam, getUrlRelativePath, isEmpty, isNotEmpty, multipleTypeTransform, proTableValueEnum, proTableValueEnumOther } from '@/utils/CommonUtils';
import { btnAuthority } from '@/utils/authority';
import kefu from '@/assets/img/kefu.png' //智慧客服
import {submitHiddenForm, createHiddenForm} from '@/utils/CustomerService' //智慧客服
import { submitHiddenForm, createHiddenForm } from '@/utils/CustomerService' //智慧客服
const { TabPane } = Tabs;
const { TextArea } = Input;
@ -127,7 +127,7 @@ const Index: React.FC<{}> = () => {
title: '我要咨询',
dataIndex: 'consult',
render: (text: any, record: any) => (
<span onClick={()=>{saveTmpForm(record); initChatUI()}}><img style={{width:20,height:20, cursor:'pointer'}} src={kefu} alt="" /></span>
<span onClick={() => { saveTmpForm(record); initChatUI() }}><img style={{ width: 20, height: 20, cursor: 'pointer' }} src={kefu} alt="" /></span>
),
},
{
@ -145,9 +145,9 @@ const Index: React.FC<{}> = () => {
{
title: '项目分类',
dataIndex: 'procurementType',
valueEnum: proTableValueEnum(dictData['procurement_type=entrust']),
search: false,
width: '5%'
width: '5%',
render: (_: any, record: any) => multipleTypeTransform(record.procurementType, proTableValueEnum(dictData['procurement_type=entrust'])),
},
{
title: '所属区域',
@ -371,7 +371,7 @@ const Index: React.FC<{}> = () => {
onOk() {
if (checkedList.length > 0) {
//quitForm.getFieldValue().checkbox = checkedList 报错——林杰注释
quitForm.setFieldsValue({checkbox: checkedList})
quitForm.setFieldsValue({ checkbox: checkedList })
}
quitForm.submit()
setCheckAll(false)
@ -390,12 +390,12 @@ const Index: React.FC<{}> = () => {
const submitQuit = (val: any) => { // 确定并进行校验
exitProjectPayCheck(checkedList).then((res: any) => {
if(res.data && res.data != null){
if (res.data && res.data != null) {
showConfirm(res.data)
} else {
if (checkedList.length > 0) {
//quitForm.getFieldValue().checkbox = checkedList 报错——林杰注释
quitForm.setFieldsValue({checkbox: checkedList})
quitForm.setFieldsValue({ checkbox: checkedList })
}
quitForm.submit()
setCheckAll(false)
@ -405,98 +405,98 @@ const Index: React.FC<{}> = () => {
}
})
}
const saveTmpForm = (record:any)=>{//智慧客服-创建临时表单
const saveTmpForm = (record: any) => {//智慧客服-创建临时表单
let roleAuthority: any | null = sessionStorage.getItem('roleAuthority');
let data = getSessionUserData();
const inputList = [
{
label:null,
paraName:'origin',
isEncode:false,
paraVal:'eBid',
label: null,
paraName: 'origin',
isEncode: false,
paraVal: 'eBid',
},
{
label:null,
paraName:'organizationId',
isEncode:false,
label: null,
paraName: 'organizationId',
isEncode: false,
paraVal: data.organizationId,
},
{
label:'项目名称',
paraName:'projectName',
isEncode:true,
paraVal:record.projectName,
label: '项目名称',
paraName: 'projectName',
isEncode: true,
paraVal: record.projectName,
},
{
label:'项目编号',
paraName:'ebpProjectNumber',
isEncode:false,
paraVal:record.ebpProjectNumber,
label: '项目编号',
paraName: 'ebpProjectNumber',
isEncode: false,
paraVal: record.ebpProjectNumber,
},
{
label:'项目流水号',
paraName:'projectBizNum',
isEncode:false,
paraVal:record.projectBizNum,
label: '项目流水号',
paraName: 'projectBizNum',
isEncode: false,
paraVal: record.projectBizNum,
},
{
label:null,
paraName:'tenderAgencyId',
isEncode:false,
paraVal:record.tenderAgencyId,
label: null,
paraName: 'tenderAgencyId',
isEncode: false,
paraVal: record.tenderAgencyId,
},
{
label:null,
paraName:'tenderAgencyName',
isEncode:true,
paraVal:record.tenderAgencyName,
label: null,
paraName: 'tenderAgencyName',
isEncode: true,
paraVal: record.tenderAgencyName,
},
{
label:'项目状态',
paraName:'status',
isEncode:false,
paraVal:record.status==1?'编辑中':record.status==2?'进行中':record.status==3?'已结束':record.status==9?'废止':'无效状态',
label: '项目状态',
paraName: 'status',
isEncode: false,
paraVal: record.status == 1 ? '编辑中' : record.status == 2 ? '进行中' : record.status == 3 ? '已结束' : record.status == 9 ? '废止' : '无效状态',
},
{
label:'采购单位',
paraName:'tendereeName',
isEncode:true,
paraVal:record.tendereeName,
label: '采购单位',
paraName: 'tendereeName',
isEncode: true,
paraVal: record.tendereeName,
},
{
label:'实施单位',
paraName:'providerName',
isEncode:true,
paraVal:record.tenderAgencyName,
label: '实施单位',
paraName: 'providerName',
isEncode: true,
paraVal: record.tenderAgencyName,
},
{
label:'实施人员',
paraName:'ownerContactName',
isEncode:true,
paraVal:record.appManagerName+'-'+record.appManagerId+'-'+record.appManagerTel
label: '实施人员',
paraName: 'ownerContactName',
isEncode: true,
paraVal: record.appManagerName + '-' + record.appManagerId + '-' + record.appManagerTel
},
{
label:null,
paraName:'roleAuthority',
isEncode:false,
paraVal:JSON.parse(roleAuthority)[0],
label: null,
paraName: 'roleAuthority',
isEncode: false,
paraVal: JSON.parse(roleAuthority)[0],
},
{
label:null,
paraName:'module',
isEncode:false,
paraVal:'10',
label: null,
paraName: 'module',
isEncode: false,
paraVal: '10',
},
{
label:null,
paraName:'custType',
isEncode:false,
paraVal:'2',
label: null,
paraName: 'custType',
isEncode: false,
paraVal: '2',
},
]
createHiddenForm(inputList, window.location.pathname)
}
const initChatUI = ()=>{ //打开客服界面
const initChatUI = () => { //打开客服界面
submitHiddenForm()
}
return (