Commit e6cdacb5 authored by alwayOnlie's avatar alwayOnlie

修复bug

parent c4d40312
...@@ -46,7 +46,7 @@ const SchemaFormButtonGroup = createVirtualBox('schemaButtonGroup', FormButtonGr ...@@ -46,7 +46,7 @@ const SchemaFormButtonGroup = createVirtualBox('schemaButtonGroup', FormButtonGr
const SchemaButton = createVirtualBox('schemaButton', Button) const SchemaButton = createVirtualBox('schemaButton', Button)
const SchemaSubmit = createVirtualBox('schemaSubmit', Submit) const SchemaSubmit = createVirtualBox('schemaSubmit', Submit)
const SchemaReset = createVirtualBox('schemaReset', Reset) const SchemaReset = createVirtualBox('schemaReset', Reset)
export const FlexBox = createVirtualBox('flexBox', props => <Row {...props}/>) export const FlexBox = createVirtualBox('flexBox', props => <Row {...props} />)
// 自定义校验规则 // 自定义校验规则
registerValidationRules({ registerValidationRules({
...@@ -124,12 +124,13 @@ const NiceForm: React.FC<NiceFormProps> = props => { ...@@ -124,12 +124,13 @@ const NiceForm: React.FC<NiceFormProps> = props => {
const defineComponents = Object.assign(componentExport, components); const defineComponents = Object.assign(componentExport, components);
return ( return (
<div style={{width: '100%', position: 'relative'}}> <div style={{ width: '100%', position: 'relative' }}>
<SchemaForm <SchemaForm
colon={false} colon={false}
components={defineComponents} components={defineComponents}
style={{opacity: loading ? 0 : 1, position: loading ? 'absolute' : 'initial'}} style={{ opacity: loading ? 0 : 1, position: loading ? 'absolute' : 'initial' }}
effects={($, ctx) => { effects={($, ctx) => {
console.log(ctx)
// 自定义联动scope收集器 // 自定义联动scope收集器
useLinkComponentProps(expressionScope) useLinkComponentProps(expressionScope)
...@@ -141,7 +142,7 @@ const NiceForm: React.FC<NiceFormProps> = props => { ...@@ -141,7 +142,7 @@ const NiceForm: React.FC<NiceFormProps> = props => {
> >
{children} {children}
</SchemaForm> </SchemaForm>
{ loading && <Loading/> } { loading && <Loading />}
</div> </div>
); );
}; };
......
...@@ -285,7 +285,7 @@ const Goods: React.FC<{}> = () => { ...@@ -285,7 +285,7 @@ const Goods: React.FC<{}> = () => {
title: '确定要执行批量删除操作?', title: '确定要执行批量删除操作?',
icon: <ExclamationCircleOutlined />, icon: <ExclamationCircleOutlined />,
onOk() { onOk() {
if(!goodsRowCtl.selectedRowKeys.length) { return message.error('请先选择货品') } if (!goodsRowCtl.selectedRowKeys.length) { return message.error('请先选择货品') }
PublicApi.postProductGoodsDeleteBatchGoods({ idList: goodsRowCtl.selectedRowKeys }).then(res => { PublicApi.postProductGoodsDeleteBatchGoods({ idList: goodsRowCtl.selectedRowKeys }).then(res => {
ref.current.reload() ref.current.reload()
}) })
......
...@@ -35,6 +35,7 @@ const Examine: React.FC<Iprops> = ({ ...@@ -35,6 +35,7 @@ const Examine: React.FC<Iprops> = ({
const [form] = Form.useForm(); const [form] = Form.useForm();
/* 提交表单 */ /* 提交表单 */
const onFinish = (values: any) => { const onFinish = (values: any) => {
console.log(type, '是啥')
let fn; let fn;
switch (type) { switch (type) {
/* 待新增请款单审核接口 */ /* 待新增请款单审核接口 */
...@@ -69,12 +70,12 @@ const Examine: React.FC<Iprops> = ({ ...@@ -69,12 +70,12 @@ const Examine: React.FC<Iprops> = ({
break; break;
/* 合同协同 待提交审核合同 */ /* 合同协同 待提交审核合同 */
case 'pageToBeSubmitExamine': case 'pageToBeSubmitExamine':
fn = PublicApi.getContractCoordinationPageToBeSubmitExamine fn = PublicApi.postContractCoordinationSubmitExamine
values.contractId = applyId; values.contractId = applyId;
break; break;
/* 合同协同 一级待提交审核合同 */ /* 合同协同 一级待提交审核合同 */
case 'CoordinationPageToBeExamineOne': case 'CoordinationPageToBeExamineOne':
fn = PublicApi.getContractCoordinationPageToBeExamineOne fn = PublicApi.postContractCoordinationExamineStepOne
values.contractId = applyId; values.contractId = applyId;
break; break;
/* 合同协同 二级待提交审核合同 */ /* 合同协同 二级待提交审核合同 */
......
.god-schema-form > .ant-form-item {
margin-bottom: 0 !important;
}
.god-schema-form > .ant-row-end {
margin-top: 24px !important;
}
.revise_info :global .ant-form-item-label {
width: 174px;
}
.revise_info :global .ant-form-item-label label {
color: #6B778C;
}
.revise_info :global .ant-form-item-control {
width: 500px;
}
.revise_info :global .ant-form-item-control .ant-form-item-control-input-content {
position: relative;
}
.revise_info :global .ant-form-item-control .ant-form-item-control-input-content .ant-btn-link {
position: absolute;
right: -120px;
}
.revise_info :global .ant-form-item-control .ant-form-item-control-input-content .ant-picker {
width: 100%;
}
.revise_info :global .ant-form-item-control .ant-input-group-addon .ant-input-search-button {
background-color: #6B778C !important;
border-color: #6B778C;
}
.revise_info :global .ant-radio-group-solid .ant-radio-button-wrapper-checked {
background: #6B778C !important;
border-color: #6B778C;
}
.revise_info :global .ant-radio-group-solid .ant-radio-button-wrapper-checked:hover {
background: #6B778C;
border-color: #6B778C;
}
.revise_info .upload_item {
padding: 5px 8px;
margin-bottom: 16px;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #FAFBFC;
}
.revise_info .upload_item .upload_left {
display: flex;
align-items: center;
color: #303133;
}
.revise_info .upload_item .upload_left :global .anticon-file-word {
color: #4279df;
font-size: 20px;
margin-right: 8px;
}
.revise_info .upload_item .upload_right {
color: #00B37A;
cursor: pointer;
}
.revise_info .upload_item .upload_right :global .anticon-delete {
margin-left: 19px;
color: #C0C4CC;
}
.revise_info {
:global {
.ant-form-item-label {
width: 174px;
label {
color:#6B778C
}
}
.ant-form-item-control {
width: 500px;
.ant-form-item-control-input-content {
position: relative;
.ant-btn-link {
position: absolute;
right: -120px;
}
.ant-picker {
width: 100%;
}
}
.ant-input-group-addon {
.ant-input-search-button {
background-color: #6B778C !important;
border-color: #6B778C;
}
}
}
.ant-radio-group-solid {
.ant-radio-button-wrapper-checked {
background: #6B778C !important;
border-color: #6B778C;
&:hover {
background: #6B778C;
border-color: #6B778C;
}
}
}
}
.upload_item {
padding: 5px 8px;
margin-bottom: 16px;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #FAFBFC;
.upload_left {
display: flex;
align-items: center;
color: #303133;
:global {
.anticon-file-word {
color: #4279df;
font-size: 20px;
margin-right: 8px;
}
}
}
.upload_right {
color: #00B37A;
cursor: pointer;
:global {
.anticon-delete {
margin-left: 19px;
color: #C0C4CC;
}
}
}
}
}
...@@ -159,3 +159,9 @@ ...@@ -159,3 +159,9 @@
color: #00B37A; color: #00B37A;
cursor: pointer; cursor: pointer;
} }
.wrapper :global .ant-input-search .ant-input-group .ant-input {
padding: 0px !important;
}
.wrapper :global .ant-input-search .ant-input-group-addon .ant-input-search-button {
background-color: #F7F8FA;
}
...@@ -182,3 +182,21 @@ ...@@ -182,3 +182,21 @@
color: #00B37A; color: #00B37A;
cursor:pointer; cursor:pointer;
} }
.wrapper{
:global {
// 处理高级筛选input和search按钮不对齐问题、search按钮背景
.ant-input-search {
.ant-input-group {
.ant-input {
padding: 0px !important;
}
}
.ant-input-group-addon {
.ant-input-search-button {
background-color: #F7F8FA;
}
}
}
}
}
...@@ -185,7 +185,7 @@ const Details = (props: any) => { ...@@ -185,7 +185,7 @@ const Details = (props: any) => {
title: '含税/税率', dataIndex: 'taxRate', align: 'center', title: '含税/税率', dataIndex: 'taxRate', align: 'center',
render: (text, record) => ( render: (text, record) => (
<Space direction='vertical'> <Space direction='vertical'>
<Text>{record.isHasTax}</Text> <Text>{record.isHasTax == 1 ? '是' : '否'}</Text>
<Text>%{text}</Text> <Text>%{text}</Text>
</Space> </Space>
) )
...@@ -579,7 +579,7 @@ const Details = (props: any) => { ...@@ -579,7 +579,7 @@ const Details = (props: any) => {
<div className='ant-card-head-wrapper'> <div className='ant-card-head-wrapper'>
执行情况 执行情况
</div> </div>
<div> <div className={style.wrapper}>
<Input.Search <Input.Search
style={{ width: 240 }} style={{ width: 240 }}
placeholder="搜素" placeholder="搜素"
......
...@@ -202,7 +202,7 @@ const pageToBeExamineOne = () => { ...@@ -202,7 +202,7 @@ const pageToBeExamineOne = () => {
ExamineFlag={Visible} ExamineFlag={Visible}
getfetchData={getfetchData} getfetchData={getfetchData}
applyId={id} applyId={id}
type="ManageExamineStepOne" type="CoordinationPageToBeExamineOne"
/> />
</PageHeaderWrapper> </PageHeaderWrapper>
......
...@@ -199,7 +199,7 @@ const pageToBeSubmitExamine = () => { ...@@ -199,7 +199,7 @@ const pageToBeSubmitExamine = () => {
ExamineFlag={Visible} ExamineFlag={Visible}
getfetchData={getfetchData} getfetchData={getfetchData}
applyId={id} applyId={id}
type="ManageExamineStepOne" type="pageToBeSubmitExamine"
/> />
</PageHeaderWrapper> </PageHeaderWrapper>
......
...@@ -145,7 +145,6 @@ const QueryList = () => { ...@@ -145,7 +145,6 @@ const QueryList = () => {
}; };
const like = (record) => { const like = (record) => {
history.push(`/memberCenter/contract/manage/add/addList/editing?contractId=${record.id}&oldContractId=1`) history.push(`/memberCenter/contract/manage/add/addList/editing?contractId=${record.id}&oldContractId=1`)
// history.push(`/memberCenter/contract/manage/add/QueryList/editing?contractId=${record.id}&oldContractId=1`)
}; };
const [form] = Form.useForm(); const [form] = Form.useForm();
const [id, setId] = useState(''); const [id, setId] = useState('');
...@@ -247,7 +246,7 @@ const QueryList = () => { ...@@ -247,7 +246,7 @@ const QueryList = () => {
</div> </div>
</Form> </Form>
</Modal> </Modal>
</PageHeaderWrapper > </PageHeaderWrapper>
) )
} }
......
...@@ -257,13 +257,13 @@ const FormList = (props: any) => { ...@@ -257,13 +257,13 @@ const FormList = (props: any) => {
price: Number(item.price), price: Number(item.price),
bidCount: item.bidCount, bidCount: item.bidCount,
bidAmount: item.bidCount && item.price ? Number(item.bidCount) * Number(item.price) : '', bidAmount: item.bidCount && item.price ? Number(item.bidCount) * Number(item.price) : '',
associatedMaterielName: item.associatedMaterielName ? item.associatedMaterielName : '', associatedMaterielName: Object.keys(Row).length === 0 ? '' : item.associatedMaterielName,
associatedGoods: item.associatedGoods ? item.associatedGoods : '', associatedGoods: Object.keys(Row).length === 0 ? '' : item.associatedGoods,
associatedDataId: item.associatedDataId ? item.associatedDataId : '', associatedDataId: Object.keys(Row).length === 0 ? '' : item.associatedDataId,
associatedMaterielNo: item.associatedMaterielNo ? item.associatedMaterielNo : '', associatedMaterielNo: Object.keys(Row).length === 0 ? '' : item.associatedMaterielNo,
associatedType: item.type ? item.type : '', associatedType: Object.keys(Row).length === 0 ? '' : item.type,
associatedCategory: item.customerCategory != null ? item.customerCategory.name : '', associatedCategory: Object.keys(Row).length === 0 ? '' : item.customerCategory.name,
associatedBrand: item.brand != null ? item.brand.name : '', associatedBrand: Object.keys(Row).length === 0 ? '' : item.brand.name,
}) })
}) })
resolve({ resolve({
...@@ -336,7 +336,7 @@ const FormList = (props: any) => { ...@@ -336,7 +336,7 @@ const FormList = (props: any) => {
} }
<Table <Table
rowKey="id" rowKey="index"
dataSource={dataList} dataSource={dataList}
columns={columnsTab} columns={columnsTab}
expandable={{ expandable={{
......
...@@ -14,6 +14,8 @@ import Submit from '@/components/NiceForm/components/Submit' ...@@ -14,6 +14,8 @@ import Submit from '@/components/NiceForm/components/Submit'
import DateRangePickerUnix from '@/components/NiceForm/components/DateRangePickerUnix' import DateRangePickerUnix from '@/components/NiceForm/components/DateRangePickerUnix'
import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch' import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch'
import { column, columnsList, columnsGetList, supplierColumns } from '../Table' import { column, columnsList, columnsGetList, supplierColumns } from '../Table'
import { clearModalParams } from '@/utils';
import style from '../../../constants/styles.less'
const { Option } = Select; const { Option } = Select;
const { RangePicker } = DatePicker; const { RangePicker } = DatePicker;
...@@ -55,11 +57,13 @@ const Information = (props: any) => { ...@@ -55,11 +57,13 @@ const Information = (props: any) => {
const [manual, setmanual] = useState<boolean>(false) const [manual, setmanual] = useState<boolean>(false)
/* 显示弹出 */ /* 显示弹出 */
const Choose = (sourceType?) => { const Choose = (sourceType?) => {
clearModalParams()
if (sourceType) { if (sourceType) {
let Data = basicsVO; let Data = basicsVO;
Data.sourceType = sourceType; Data.sourceType = sourceType;
console.log(currentRef); console.log(currentRef);
setbasicsVO(Data); setbasicsVO(Data);
} }
setvisible(!visible) setvisible(!visible)
} }
...@@ -245,7 +249,7 @@ const Information = (props: any) => { ...@@ -245,7 +249,7 @@ const Information = (props: any) => {
rules: [{ type: 'array' as const, required: true, message: ' 请选择开始或者结束时间' }], rules: [{ type: 'array' as const, required: true, message: ' 请选择开始或者结束时间' }],
}; };
return ( return (
<div> <div className={style.revise_info}>
<Form <Form
form={attrValueForm} form={attrValueForm}
name="edit_infomation" name="edit_infomation"
...@@ -253,6 +257,7 @@ const Information = (props: any) => { ...@@ -253,6 +257,7 @@ const Information = (props: any) => {
labelAlign="left" labelAlign="left"
colon={false} colon={false}
autoComplete="off" autoComplete="off"
> >
<Form.Item <Form.Item
label="合同编号" label="合同编号"
......
...@@ -32,7 +32,7 @@ const Add: React.FC<{}> = (props: any) => { ...@@ -32,7 +32,7 @@ const Add: React.FC<{}> = (props: any) => {
const [Row, setRow] = useState<any>({}) const [Row, setRow] = useState<any>({})
/* 获取下拉框选中的id 查询物料 */ /* 获取下拉框选中的id 查询物料 */
const getrow = (row) => { const getrow = (row) => {
console.log(row, 1111111111111) // console.log(row, 1111111111111)
setRow(row) setRow(row)
} }
const TabList = [ const TabList = [
...@@ -90,8 +90,6 @@ const Add: React.FC<{}> = (props: any) => { ...@@ -90,8 +90,6 @@ const Add: React.FC<{}> = (props: any) => {
const payPlanList = await payPlan.current.length != 0 ? await payPlan.current.get() : []; const payPlanList = await payPlan.current.length != 0 ? await payPlan.current.get() : [];
/* 合同管理 */ /* 合同管理 */
const contract = await Object.keys(contractText.current).length != 0 ? await contractText.current.get() : {} const contract = await Object.keys(contractText.current).length != 0 ? await contractText.current.get() : {}
console.log(payPlanList, contract)
let param: any = { let param: any = {
basicsVO: basicsVO.data, basicsVO: basicsVO.data,
purchaseMaterielList: purchaseMaterielList.data.list, purchaseMaterielList: purchaseMaterielList.data.list,
...@@ -100,6 +98,7 @@ const Add: React.FC<{}> = (props: any) => { ...@@ -100,6 +98,7 @@ const Add: React.FC<{}> = (props: any) => {
operateType: 1 operateType: 1
} }
console.log(param) console.log(param)
// return;
PublicApi.postContractManageSave(param).then((res => { PublicApi.postContractManageSave(param).then((res => {
if (res.code === 1000) { if (res.code === 1000) {
setTimeout(() => { setTimeout(() => {
......
...@@ -105,7 +105,6 @@ const Auction = () => { ...@@ -105,7 +105,6 @@ const Auction = () => {
// 列表数据 // 列表数据
const fetchData = (params?: any) => { const fetchData = (params?: any) => {
console.log(params)//可以直接打印参数
params.startTime = params.startTime ? moment(Number(params.startTime)).format('YYYY-MM-DD') : ''; params.startTime = params.startTime ? moment(Number(params.startTime)).format('YYYY-MM-DD') : '';
params.endTime = params.endTime ? moment(Number(params.endTime)).format('YYYY-MM-DD') : ''; params.endTime = params.endTime ? moment(Number(params.endTime)).format('YYYY-MM-DD') : '';
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
......
...@@ -18,7 +18,6 @@ const { Step } = Steps; ...@@ -18,7 +18,6 @@ const { Step } = Steps;
const { Text } = Typography; const { Text } = Typography;
const activeAnchorClassName = 'ant-anchor-link-active' const activeAnchorClassName = 'ant-anchor-link-active'
const Details = (props: any) => { const Details = (props: any) => {
/* 合同id */ /* 合同id */
const { location: { query: { contractId, type } } } = props; const { location: { query: { contractId, type } } } = props;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import React, { useState, useEffect, forwardRef } from 'react'; import React, { useState, useEffect, forwardRef } from 'react';
import { Button, Input, Select, DatePicker, Form, Drawer } from 'antd' import { Button, Input, Select, DatePicker, Form, Drawer } from 'antd'
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import style from '../../../constants/styles.less'
import moment from 'moment'; import moment from 'moment';
const { Option } = Select; const { Option } = Select;
...@@ -77,7 +77,7 @@ const Information = (props: any) => { ...@@ -77,7 +77,7 @@ const Information = (props: any) => {
rules: [{ type: 'array' as const, required: true, message: ' 请选择开始或者结束时间' }], rules: [{ type: 'array' as const, required: true, message: ' 请选择开始或者结束时间' }],
}; };
return ( return (
<div> <div className={style.revise_info}>
<Form <Form
form={attrValueForm} form={attrValueForm}
name="edit_infomation" name="edit_infomation"
......
...@@ -103,7 +103,6 @@ const PurchaseList = () => { ...@@ -103,7 +103,6 @@ const PurchaseList = () => {
return ( return (
<div> <div>
<span style={{ color: '#00B37A', cursor: 'pointer', marginRight: 10 }} onClick={() => like(record)}>创建采购询价合同</span> <span style={{ color: '#00B37A', cursor: 'pointer', marginRight: 10 }} onClick={() => like(record)}>创建采购询价合同</span>
{/* <span style={{ color: '#00B37A', cursor: 'pointer' }} onClick={() => history.push(`/memberCenter/contract/manage/purchase/details?contractId=${record.id}`)}>查看</span> */}
</div> </div>
) )
} }
......
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