Commit c6bcf6c496eaef0bf8b1abd3609aace5c0da8228

Authored by zhangzzzz
1 parent 400a5a6e

处理建议反馈列表功能;

src/components/Common/WorkOrderSystem/WorkOrderSystemAdd.js
... ... @@ -131,6 +131,11 @@ const WorkOrderSystemAdd = props => {
131 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 139 if (values.sModuleId) {
135 140 const iIndex = moduleData.findIndex(
136 141 item => item.sModuleId === values.sModuleId
... ... @@ -266,6 +271,15 @@ const WorkOrderSystemAdd = props => {
266 271 placeholder="请选择抄送人"
267 272 />
268 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 283 <Form.Item
270 284 name="bVsersion"
271 285 label="标版同样问题"
... ...
src/components/Common/WorkOrderSystem/WorkOrderSystemDetail.js
... ... @@ -50,6 +50,7 @@ const WorkOrderSystemDetail = props =&gt; {
50 50 sModuleId,
51 51 sModuleName,
52 52 sHanldeId,
  53 + sRDUserId,
53 54 sCopyHanldeId,
54 55 bVsersion,
55 56 sBug,
... ... @@ -117,14 +118,14 @@ const WorkOrderSystemDetail = props =&gt; {
117 118 } else if (bSoluted) {
118 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 129 setBtnShowData(defaultBtnData);
129 130 }, [gdsjurisdiction, enabled, bSoluted]);
130 131  
... ... @@ -261,6 +262,7 @@ const WorkOrderSystemDetail = props =&gt; {
261 262 ...addState,
262 263 sHanldeId,
263 264 sCopyHanldeId: sCopyHanldeId ? sCopyHanldeId.split(",") : [],
  265 + sRDUserId,
264 266 bVsersion,
265 267 sBug,
266 268 sType: sType !== undefined ? parseInt(sType) : "",
... ... @@ -446,6 +448,8 @@ const WorkOrderSystemDetail = props =&gt; {
446 448 .filter(item => sCopyHanldeId.includes(item.value))
447 449 .map(item => item.label)
448 450 .toString(),
  451 + sRDUserId,
  452 + sRDUserName: userOption.find(item => sRDUserId === item.value)?.label,
449 453 bVsersion,
450 454 sBug,
451 455 sType,
... ... @@ -456,12 +460,6 @@ const WorkOrderSystemDetail = props =&gt; {
456 460 });
457 461  
458 462 setLoading(false);
459   -
460   - if (values.callback) {
461   - values.callback();
462   - return;
463   - }
464   -
465 463 if (commonUtils.isNotEmptyObject(response)) {
466 464 setFormEnabled(false);
467 465 refresh();
... ... @@ -554,6 +552,13 @@ const WorkOrderSystemDetail = props =&gt; {
554 552 disabled={!formEnabled}
555 553 />
556 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 562 <Form.Item className={styles.formItemAQuarter} name="bVsersion" label="标版同样问题" valuePropName="checked">
558 563 <Switch checkedChildren="是" unCheckedChildren="否" disabled={!formEnabled} />
559 564 </Form.Item>
... ...
src/components/Common/WorkOrderSystem/index.less
1 1 @modal-content-height: calc(100vh - 100px); // 弹窗内容高度
2   -@braft-height: 400px; // 富文本框高度
  2 +@braft-height: 350px; // 富文本框高度
3 3 @level-color-1: #d50000; // 严重
4 4 @level-color-2: #ff9800; // 紧急
5 5 @level-color-3: #2098ee; // 一般
... ... @@ -151,7 +151,7 @@
151 151  
152 152 :global {
153 153 .bf-content {
154   - height: @braft-height - 94px;
  154 + height: calc(@braft-height - 94px);
155 155 background-color: #fff;
156 156 }
157 157 }
... ... @@ -265,6 +265,9 @@
265 265 }
266 266 }
267 267  
  268 +.workOrderSystem {
  269 + overflow: hidden;
  270 +}
268 271  
269 272 // 居中布局
270 273 .flexCener {
... ... @@ -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 356 width: 18%;
354 357  
355 358 .ant-form-item-label {
... ... @@ -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 373 width: 25%;
371 374  
372 375 .ant-form-item-label {
... ...