Commit b77e036d authored by cellee's avatar cellee

设施以及合同需求更改

Signed-off-by: cellee's avatarcellee <893264950@qq.com>
parent 4ac4b8a1
...@@ -20,6 +20,7 @@ export default { ...@@ -20,6 +20,7 @@ export default {
subscribeDate: null, subscribeDate: null,
status: 0, status: 0,
communityNameList: null, communityNameList: null,
communityNameList2: null,
tab:1, tab:1,
curPage: 1, curPage: 1,
curPage2: 1, curPage2: 1,
......
...@@ -198,6 +198,11 @@ const FacilityBookings = (props: any) => { ...@@ -198,6 +198,11 @@ const FacilityBookings = (props: any) => {
//发起请求--有小区再发起,没有就没必要了 //发起请求--有小区再发起,没有就没必要了
if (CommunityList) { if (CommunityList) {
if (curString.tab == 1) { if (curString.tab == 1) {
let tmp = curString;
tmp.communityNameList = CommunityList;
tmp.communityNameList2 = CommunityList;
QA(tmp);
RA(9, { RA(9, {
communityNameList: CommunityList, communityNameList: CommunityList,
userToken: token, userToken: token,
...@@ -227,6 +232,7 @@ const FacilityBookings = (props: any) => { ...@@ -227,6 +232,7 @@ const FacilityBookings = (props: any) => {
if (comment.communityName != null || comment.key != null || comment.status != null) { if (comment.communityName != null || comment.key != null || comment.status != null) {
var tmp = curString; var tmp = curString;
tmp.subscribeDate = comment.key; tmp.subscribeDate = comment.key;
if (comment.status == null || comment.status == undefined) { if (comment.status == null || comment.status == undefined) {
tmp.status = null; tmp.status = null;
} else { } else {
...@@ -249,7 +255,7 @@ const FacilityBookings = (props: any) => { ...@@ -249,7 +255,7 @@ const FacilityBookings = (props: any) => {
} else { } else {
if (comment.communityName != null || comment.facilityName != null) { if (comment.communityName != null || comment.facilityName != null) {
var tmp = curString; var tmp = curString;
tmp.communityNameList = comment.communityName; tmp.communityNameList2 = comment.communityName;
tmp.facilityName = comment.facilityName; tmp.facilityName = comment.facilityName;
tmp.curPage = 1; tmp.curPage = 1;
QA(tmp); QA(tmp);
...@@ -267,7 +273,7 @@ const FacilityBookings = (props: any) => { ...@@ -267,7 +273,7 @@ const FacilityBookings = (props: any) => {
QA(tmp); QA(tmp);
if (tab == 1) { if (tab == 1) {
RA(9, { RA(9, {
communityNameList: CommunityList, communityNameList: curString.communityNameList,
userToken: token, userToken: token,
status: curString.status, status: curString.status,
subscribeDate: curString.subscribeDate, subscribeDate: curString.subscribeDate,
...@@ -278,7 +284,7 @@ const FacilityBookings = (props: any) => { ...@@ -278,7 +284,7 @@ const FacilityBookings = (props: any) => {
RA(8, { RA(8, {
userToken: token, userToken: token,
pageNum: curString.curPage2, pageNum: curString.curPage2,
communityNameList: CommunityList, communityNameList: curString.communityNameList2,
}); });
} }
} }
...@@ -292,7 +298,7 @@ const FacilityBookings = (props: any) => { ...@@ -292,7 +298,7 @@ const FacilityBookings = (props: any) => {
pageNum: current, pageNum: current,
subscribeDate: curString.subscribeDate, subscribeDate: curString.subscribeDate,
status: curString.status, status: curString.status,
communityNameList: CommunityList, communityNameList: curString.communityNameList,
globalMark: curString.globalMark, globalMark: curString.globalMark,
}); });
} else { } else {
...@@ -303,8 +309,8 @@ const FacilityBookings = (props: any) => { ...@@ -303,8 +309,8 @@ const FacilityBookings = (props: any) => {
RA(8, { RA(8, {
userToken: token, userToken: token,
pageNum: current, pageNum: current,
communityNameList: curString.communityNameList communityNameList: curString.communityNameList2
? curString.communityNameList ? curString.communityNameList2
: JSON.parse(localStorage.getItem('CommunityList') as any), : JSON.parse(localStorage.getItem('CommunityList') as any),
}); });
} else { } else {
...@@ -314,16 +320,16 @@ const FacilityBookings = (props: any) => { ...@@ -314,16 +320,16 @@ const FacilityBookings = (props: any) => {
} }
// 预约刷新 // 预约刷新
const onReset = () => { // const onReset = () => {
RA(9, { // RA(9, {
userToken: token, // userToken: token,
pageNum: curString.curPage, // pageNum: curString.curPage,
subscribeDate: curString.subscribeDate, // subscribeDate: curString.subscribeDate,
status: curString.status, // status: curString.status,
communityNameList: CommunityList, // communityNameList: CommunityList,
globalMark: curString.globalMark, // globalMark: curString.globalMark,
}); // });
}; // };
return ( return (
<> <>
...@@ -347,7 +353,7 @@ const FacilityBookings = (props: any) => { ...@@ -347,7 +353,7 @@ const FacilityBookings = (props: any) => {
]} ]}
time={['key', 'Booking time ']} time={['key', 'Booking time ']}
community={'communityName'} community={'communityName'}
checklist={CommunityList} checklist={curString.communityNameList ? curString.communityNameList : []}
onSubmit={CallBackTitleSearch} onSubmit={CallBackTitleSearch}
/> />
</> </>
...@@ -357,7 +363,7 @@ const FacilityBookings = (props: any) => { ...@@ -357,7 +363,7 @@ const FacilityBookings = (props: any) => {
listkey={['facilityName']} listkey={['facilityName']}
list={['Facility name']} list={['Facility name']}
community={'communityName'} community={'communityName'}
checklist={CommunityList} checklist={curString.communityNameList2 ? curString.communityNameList2 : []}
onSubmit={CallBackTitleSearch} onSubmit={CallBackTitleSearch}
/> />
</> </>
......
...@@ -63,14 +63,11 @@ const Contract = (props: any) => { ...@@ -63,14 +63,11 @@ const Contract = (props: any) => {
}, },
}, // 合同编号 }, // 合同编号
{ {
title: 'Company', title: ' Contract Party',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
<> <>
<div> <div>
<span>Party A : {record.contractPartyA}</span> <span>{record.contractPartyB}</span>
</div>
<div>
<span>Party B : {record.contractPartyB}</span>
</div> </div>
</> </>
), ),
......
...@@ -398,7 +398,7 @@ const ContractContent = (props: any) => { ...@@ -398,7 +398,7 @@ const ContractContent = (props: any) => {
</div> </div>
{/* 合同编号、甲方、乙方 */} {/* 合同编号、甲方、乙方 */}
<div className="list_1"> <div className="list_1">
<div className="item_1"> {/* <div className="item_1">
<Form.Item <Form.Item
name="contractPartyA" name="contractPartyA"
label="Contract Party A" label="Contract Party A"
...@@ -406,14 +406,14 @@ const ContractContent = (props: any) => { ...@@ -406,14 +406,14 @@ const ContractContent = (props: any) => {
> >
<Input style={{ width: 300 }} placeholder="Contract Party A" /> <Input style={{ width: 300 }} placeholder="Contract Party A" />
</Form.Item> </Form.Item>
</div> </div> */}
<div className="item_1"> <div className="item_1">
<Form.Item <Form.Item
name="contractPartyB" name="contractPartyB"
label="Contract Party B" label="Contract Party"
rules={[{ required: true, message: `${tipList[2]}` }]} rules={[{ required: true, message: `${tipList[2]}` }]}
> >
<Input style={{ width: 300 }} placeholder="Contract Party B" /> <Input style={{ width: 300 }} placeholder="Contract Party " />
</Form.Item> </Form.Item>
</div> </div>
</div> </div>
......
...@@ -217,22 +217,13 @@ const ContractContent = (props: any) => { ...@@ -217,22 +217,13 @@ const ContractContent = (props: any) => {
</div> </div>
{/* 合同编号、甲方、乙方 */} {/* 合同编号、甲方、乙方 */}
<div className="list_1"> <div className="list_1">
<div className="item_1">
<Form.Item
name="contractPartyA"
label="Contract Party A"
rules={[{ required: true, message: `${tipList[1]}` }]}
>
<Input style={{ width: 300 }} disabled placeholder="Contract Party A" />
</Form.Item>
</div>
<div className="item_1"> <div className="item_1">
<Form.Item <Form.Item
name="contractPartyB" name="contractPartyB"
label="Contract Party B" label="Contract Party"
rules={[{ required: true, message: `${tipList[2]}` }]} rules={[{ required: true, message: `${tipList[2]}` }]}
> >
<Input style={{ width: 300 }} disabled placeholder="Contract Party B" /> <Input style={{ width: 300 }} disabled />
</Form.Item> </Form.Item>
</div> </div>
</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