Commit c6bcf6c496eaef0bf8b1abd3609aace5c0da8228

Authored by zhangzzzz
1 parent 400a5a6e

处理建议反馈列表功能;

src/components/Common/WorkOrderSystem/WorkOrderSystemAdd.js
@@ -131,6 +131,11 @@ const WorkOrderSystemAdd = props => { @@ -131,6 +131,11 @@ const WorkOrderSystemAdd = props => {
131 .toString(); 131 .toString();
132 } 132 }
133 133
  134 + if (values.sRDUserId) {
  135 + addState.sRDUserName = userData
  136 + .find(item => values.sRDUserId === item.sHanldeId).sHanldeName;
  137 + }
  138 +
134 if (values.sModuleId) { 139 if (values.sModuleId) {
135 const iIndex = moduleData.findIndex( 140 const iIndex = moduleData.findIndex(
136 item => item.sModuleId === values.sModuleId 141 item => item.sModuleId === values.sModuleId
@@ -266,6 +271,15 @@ const WorkOrderSystemAdd = props => { @@ -266,6 +271,15 @@ const WorkOrderSystemAdd = props => {
266 placeholder="请选择抄送人" 271 placeholder="请选择抄送人"
267 /> 272 />
268 </Form.Item> 273 </Form.Item>
  274 + <Form.Item name="sRDUserId" label="研发人员">
  275 + <Select
  276 + allowClear
  277 + showSearch={true}
  278 + options={userOption}
  279 + optionFilterProp="label"
  280 + placeholder="请选择研发人员"
  281 + />
  282 + </Form.Item>
269 <Form.Item 283 <Form.Item
270 name="bVsersion" 284 name="bVsersion"
271 label="标版同样问题" 285 label="标版同样问题"
src/components/Common/WorkOrderSystem/WorkOrderSystemDetail.js
@@ -50,6 +50,7 @@ const WorkOrderSystemDetail = props =&gt; { @@ -50,6 +50,7 @@ const WorkOrderSystemDetail = props =&gt; {
50 sModuleId, 50 sModuleId,
51 sModuleName, 51 sModuleName,
52 sHanldeId, 52 sHanldeId,
  53 + sRDUserId,
53 sCopyHanldeId, 54 sCopyHanldeId,
54 bVsersion, 55 bVsersion,
55 sBug, 56 sBug,
@@ -117,14 +118,14 @@ const WorkOrderSystemDetail = props =&gt; { @@ -117,14 +118,14 @@ const WorkOrderSystemDetail = props =&gt; {
117 } else if (bSoluted) { 118 } else if (bSoluted) {
118 defaultBtnData = ["BtnAssign", "BtnActive", "BtnClose"]; 119 defaultBtnData = ["BtnAssign", "BtnActive", "BtnClose"];
119 } 120 }
120 - // if (gdsjurisdiction) {  
121 - // gdsjurisdiction.forEach(child => {  
122 - // const index = defaultBtnData.findIndex(item => item === child.sAction);  
123 - // if (index > -1) {  
124 - // defaultBtnData.splice(index, 1);  
125 - // }  
126 - // });  
127 - // } 121 + if (gdsjurisdiction) {
  122 + gdsjurisdiction.forEach(child => {
  123 + const index = defaultBtnData.findIndex(item => item === child.sAction);
  124 + if (index > -1) {
  125 + defaultBtnData.splice(index, 1);
  126 + }
  127 + });
  128 + }
128 setBtnShowData(defaultBtnData); 129 setBtnShowData(defaultBtnData);
129 }, [gdsjurisdiction, enabled, bSoluted]); 130 }, [gdsjurisdiction, enabled, bSoluted]);
130 131
@@ -261,6 +262,7 @@ const WorkOrderSystemDetail = props =&gt; { @@ -261,6 +262,7 @@ const WorkOrderSystemDetail = props =&gt; {
261 ...addState, 262 ...addState,
262 sHanldeId, 263 sHanldeId,
263 sCopyHanldeId: sCopyHanldeId ? sCopyHanldeId.split(",") : [], 264 sCopyHanldeId: sCopyHanldeId ? sCopyHanldeId.split(",") : [],
  265 + sRDUserId,
264 bVsersion, 266 bVsersion,
265 sBug, 267 sBug,
266 sType: sType !== undefined ? parseInt(sType) : "", 268 sType: sType !== undefined ? parseInt(sType) : "",
@@ -446,6 +448,8 @@ const WorkOrderSystemDetail = props =&gt; { @@ -446,6 +448,8 @@ const WorkOrderSystemDetail = props =&gt; {
446 .filter(item => sCopyHanldeId.includes(item.value)) 448 .filter(item => sCopyHanldeId.includes(item.value))
447 .map(item => item.label) 449 .map(item => item.label)
448 .toString(), 450 .toString(),
  451 + sRDUserId,
  452 + sRDUserName: userOption.find(item => sRDUserId === item.value)?.label,
449 bVsersion, 453 bVsersion,
450 sBug, 454 sBug,
451 sType, 455 sType,
@@ -456,12 +460,6 @@ const WorkOrderSystemDetail = props =&gt; { @@ -456,12 +460,6 @@ const WorkOrderSystemDetail = props =&gt; {
456 }); 460 });
457 461
458 setLoading(false); 462 setLoading(false);
459 -  
460 - if (values.callback) {  
461 - values.callback();  
462 - return;  
463 - }  
464 -  
465 if (commonUtils.isNotEmptyObject(response)) { 463 if (commonUtils.isNotEmptyObject(response)) {
466 setFormEnabled(false); 464 setFormEnabled(false);
467 refresh(); 465 refresh();
@@ -554,6 +552,13 @@ const WorkOrderSystemDetail = props =&gt; { @@ -554,6 +552,13 @@ const WorkOrderSystemDetail = props =&gt; {
554 disabled={!formEnabled} 552 disabled={!formEnabled}
555 /> 553 />
556 </Form.Item> 554 </Form.Item>
  555 + <Form.Item
  556 + // className={styles.formItemHalf}
  557 + name="sRDUserId"
  558 + label="研发人员"
  559 + >
  560 + <Select allowClear showSearch={true} options={userOption} optionFilterProp="label" placeholder="请选择研发人员" disabled={!formEnabled} />
  561 + </Form.Item>
557 <Form.Item className={styles.formItemAQuarter} name="bVsersion" label="标版同样问题" valuePropName="checked"> 562 <Form.Item className={styles.formItemAQuarter} name="bVsersion" label="标版同样问题" valuePropName="checked">
558 <Switch checkedChildren="是" unCheckedChildren="否" disabled={!formEnabled} /> 563 <Switch checkedChildren="是" unCheckedChildren="否" disabled={!formEnabled} />
559 </Form.Item> 564 </Form.Item>
src/components/Common/WorkOrderSystem/index.less
1 @modal-content-height: calc(100vh - 100px); // 弹窗内容高度 1 @modal-content-height: calc(100vh - 100px); // 弹窗内容高度
2 -@braft-height: 400px; // 富文本框高度 2 +@braft-height: 350px; // 富文本框高度
3 @level-color-1: #d50000; // 严重 3 @level-color-1: #d50000; // 严重
4 @level-color-2: #ff9800; // 紧急 4 @level-color-2: #ff9800; // 紧急
5 @level-color-3: #2098ee; // 一般 5 @level-color-3: #2098ee; // 一般
@@ -151,7 +151,7 @@ @@ -151,7 +151,7 @@
151 151
152 :global { 152 :global {
153 .bf-content { 153 .bf-content {
154 - height: @braft-height - 94px; 154 + height: calc(@braft-height - 94px);
155 background-color: #fff; 155 background-color: #fff;
156 } 156 }
157 } 157 }
@@ -265,6 +265,9 @@ @@ -265,6 +265,9 @@
265 } 265 }
266 } 266 }
267 267
  268 +.workOrderSystem {
  269 + overflow: hidden;
  270 +}
268 271
269 // 居中布局 272 // 居中布局
270 .flexCener { 273 .flexCener {
@@ -348,8 +351,8 @@ @@ -348,8 +351,8 @@
348 } 351 }
349 } 352 }
350 353
351 - .ant-form-item:nth-child(6),  
352 - .ant-form-item:nth-child(8) { 354 + .ant-form-item:nth-child(7),
  355 + .ant-form-item:nth-child(9) {
353 width: 18%; 356 width: 18%;
354 357
355 .ant-form-item-label { 358 .ant-form-item-label {
@@ -365,8 +368,8 @@ @@ -365,8 +368,8 @@
365 368
366 } 369 }
367 370
368 - .ant-form-item:nth-child(9),  
369 - .ant-form-item:nth-child(10) { 371 + .ant-form-item:nth-child(10),
  372 + .ant-form-item:nth-child(11) {
370 width: 25%; 373 width: 25%;
371 374
372 .ant-form-item-label { 375 .ant-form-item-label {