Commit 48c141f9 authored by TZW's avatar TZW

bug

parent 94019537
...@@ -3,7 +3,7 @@ import InitForm from '@/components/InitForm'; ...@@ -3,7 +3,7 @@ import InitForm from '@/components/InitForm';
import { message } from 'antd'; import { message } from 'antd';
import { doFetch } from '@/utils/doFetch'; import { doFetch } from '@/utils/doFetch';
const App = ({ url, actionRef, setdrawer,drawer }) => { const App = ({ url, actionRef, setdrawer, drawer }) => {
const columns = [ const columns = [
{ {
title: '选择设备', title: '选择设备',
......
...@@ -5,6 +5,7 @@ import { Divider, Image, Collapse } from 'antd'; ...@@ -5,6 +5,7 @@ import { Divider, Image, Collapse } from 'antd';
const { Panel } = Collapse; const { Panel } = Collapse;
export default ({ index, title, dataSource, columns, hidden, navhidden = false, type }) => { export default ({ index, title, dataSource, columns, hidden, navhidden = false, type }) => {
console.log(type);
const [flag, setflag] = useState(true); const [flag, setflag] = useState(true);
// 0:报修 1:接单 2:派单 3:完成维修 4:转追踪 5:转外协 6:转单 7:退单 8:追踪审核 9:外协审核 10:退单审核 11:效果验证 // 0:报修 1:接单 2:派单 3:完成维修 4:转追踪 5:转外协 6:转单 7:退单 8:追踪审核 9:外协审核 10:退单审核 11:效果验证
const columns_mes = { const columns_mes = {
...@@ -104,6 +105,45 @@ export default ({ index, title, dataSource, columns, hidden, navhidden = false, ...@@ -104,6 +105,45 @@ export default ({ index, title, dataSource, columns, hidden, navhidden = false,
}, },
}, },
], ],
gzxx_nouser: [
{
title: '是否停机',
dataIndex: 'isShutdown',
key: 'isShutdown',
render: (text, row, _, action) => {
return row?.isShutdown == '1' ? '是' : '否';
},
},
{
title: '故障类型',
dataIndex: 'faultType',
key: 'faultType',
},
{
title: '故障名称',
dataIndex: 'faultDetailName',
key: 'faultDetailName',
},
{
title: '故障描述',
dataIndex: 'faultDescription',
key: 'faultDescription',
},
{
title: '故障图片',
dataIndex: 'pictureUrl',
key: 'pictureUrl',
render: (text, row, _, action) => {
if (row?.picList?.length > 0) {
return row?.picList.map((it) => (
<Image width={80} src={it?.url} style={{ padding: 8 }} />
));
} else {
return '暂无';
}
},
},
],
}, },
columns_wxgd = { columns_wxgd = {
1: [ 1: [
...@@ -539,7 +579,11 @@ export default ({ index, title, dataSource, columns, hidden, navhidden = false, ...@@ -539,7 +579,11 @@ export default ({ index, title, dataSource, columns, hidden, navhidden = false,
<Divider orientation="left">设备信息</Divider> <Divider orientation="left">设备信息</Divider>
<ProDescriptions dataSource={dataSource?.equipment} columns={columns_mes.sbxx} /> <ProDescriptions dataSource={dataSource?.equipment} columns={columns_mes.sbxx} />
<Divider orientation="left">故障信息</Divider> <Divider orientation="left">故障信息</Divider>
<ProDescriptions dataSource={dataSource} columns={columns_mes['gzxx']} /> {type == 'wgd' ? (
<ProDescriptions dataSource={dataSource} columns={columns_mes['gzxx_nouser']} />
) : (
<ProDescriptions dataSource={dataSource} columns={columns_mes['gzxx']} />
)}
</div> </div>
) : ( ) : (
<div className="fault-detail"> <div className="fault-detail">
...@@ -563,7 +607,11 @@ export default ({ index, title, dataSource, columns, hidden, navhidden = false, ...@@ -563,7 +607,11 @@ export default ({ index, title, dataSource, columns, hidden, navhidden = false,
columns={columns_mes['sbxx']} columns={columns_mes['sbxx']}
/> />
<Divider orientation="left">故障信息</Divider> <Divider orientation="left">故障信息</Divider>
<ProDescriptions dataSource={dataSource} columns={columns_mes['gzxx']} /> {type == 'zzgd' ? (
<ProDescriptions dataSource={dataSource} columns={columns_mes['gzxx_nouser']} />
) : (
<ProDescriptions dataSource={dataSource} columns={columns_mes['gzxx']} />
)}
</div> </div>
</div> </div>
) )
......
...@@ -52,6 +52,7 @@ export default (props) => { ...@@ -52,6 +52,7 @@ export default (props) => {
dataSource={request?.data?.dataList[0]} dataSource={request?.data?.dataList[0]}
title="基本信息" title="基本信息"
hidden={true} hidden={true}
type="zzgd"
index="0" index="0"
// navhidden={false} // navhidden={false}
/> />
...@@ -107,6 +108,7 @@ export default (props) => { ...@@ -107,6 +108,7 @@ export default (props) => {
<DesItem <DesItem
dataSource={request?.data?.dataList[0]} dataSource={request?.data?.dataList[0]}
title="基本信息" title="基本信息"
type="zzgd"
hidden={true} hidden={true}
index="0" index="0"
// navhidden={false} // navhidden={false}
...@@ -135,6 +137,7 @@ export default (props) => { ...@@ -135,6 +137,7 @@ export default (props) => {
dataSource={request?.data?.dataList[0]} dataSource={request?.data?.dataList[0]}
title="基本信息" title="基本信息"
hidden={true} hidden={true}
type="wgd"
index="0" index="0"
navhidden={true} navhidden={true}
/> />
......
...@@ -523,4 +523,12 @@ ol { ...@@ -523,4 +523,12 @@ ol {
.runtime-keep-alive-layout aside { .runtime-keep-alive-layout aside {
z-index: 1; z-index: 1;
}
main {
>div:first-child {
ul {
z-index: 99999 !important;
}
}
} }
\ No newline at end of file
...@@ -99,6 +99,7 @@ function Orders(props) { ...@@ -99,6 +99,7 @@ function Orders(props) {
const order = (text, row, _, action) => { const order = (text, row, _, action) => {
return ( return (
<PremButton <PremButton
access="umMaintainTask:orderReceiving"
pop={{ pop={{
title: '是否接单?', title: '是否接单?',
okText: '确认', okText: '确认',
...@@ -121,6 +122,7 @@ function Orders(props) { ...@@ -121,6 +122,7 @@ function Orders(props) {
const close = (text, row, _, action) => { const close = (text, row, _, action) => {
return ( return (
<PremButton <PremButton
access="umMaintainTask:customsDeclaration"
pop={{ pop={{
title: '是否关单?', title: '是否关单?',
okText: '确认', okText: '确认',
......
...@@ -563,9 +563,9 @@ function getcolumns(setdrawer) { ...@@ -563,9 +563,9 @@ function getcolumns(setdrawer) {
enabledetail: true, enabledetail: true,
add: '/maintain/umMaintainPlan/save', add: '/maintain/umMaintainPlan/save',
edit: '/maintain/umMaintainPlan/save', edit: '/maintain/umMaintainPlan/save',
list: '/maintain/umMaintainPlan/queryList', list: '/maintain/umMaintainPlanHis/queryList',
delete: '/maintain/umMaintainPlan/deleteById', delete: '/maintain/umMaintainPlan/deleteById',
detail: '/maintain/umMaintainPlan/queryById', detail: '/maintain/umMaintainPlanHis/queryById',
}, },
}, },
]; ];
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2023-01-16 15:35:00 * @Date: 2023-01-16 15:35:00
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-19 09:41:53 * @Last Modified time: 2023-02-01 11:00:50
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -632,11 +632,16 @@ function Plan(props) { ...@@ -632,11 +632,16 @@ function Plan(props) {
delete vals.maintainFrequency; delete vals.maintainFrequency;
if (drawer?.from == 'tq') { if (drawer?.from == 'tq') {
vals.isStopFlag = 1; vals.isStopFlag = 1;
await runAsync({
url: '/maintain/umMaintainPlan/enableDeactivate',
params: { ...vals, id: drawer?.item?.id },
});
} else {
await runAsync({
url: '/maintain/umMaintainPlan/adjustDate',
params: { ...vals, id: drawer?.item?.id },
});
} }
await runAsync({
url: '/maintain/umMaintainPlan/enableDeactivate',
params: { ...vals, id: drawer?.item?.id },
});
}} }}
/> />
</DrawerPro> </DrawerPro>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2023-01-19 09:53:59 * @Date: 2023-01-19 09:53:59
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-30 16:18:16 * @Last Modified time: 2023-02-01 14:36:50
*/ */
import * as React from 'react'; import * as React from 'react';
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03 * @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-31 17:43:42 * @Last Modified time: 2023-02-01 14:33:41
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -249,7 +249,7 @@ function Failure(props) { ...@@ -249,7 +249,7 @@ function Failure(props) {
...s, ...s,
open: true, open: true,
type: 'zzsh', type: 'zzsh',
item: row, item: { ...row, resultFlag: '1' },
val: 'only', val: 'only',
title: '追踪审核', title: '追踪审核',
})); }));
...@@ -274,7 +274,7 @@ function Failure(props) { ...@@ -274,7 +274,7 @@ function Failure(props) {
...s, ...s,
open: true, open: true,
type: 'wxsh', type: 'wxsh',
item: row, item: { ...row, resultFlag: '1' },
val: 'only', val: 'only',
title: '外协审核', title: '外协审核',
})); }));
...@@ -299,7 +299,7 @@ function Failure(props) { ...@@ -299,7 +299,7 @@ function Failure(props) {
...s, ...s,
open: true, open: true,
type: 'tdsh', type: 'tdsh',
item: row, item: { ...row, resultFlag: '1' },
val: 'only', val: 'only',
title: '退单审核', title: '退单审核',
})); }));
...@@ -781,6 +781,21 @@ function Failure(props) { ...@@ -781,6 +781,21 @@ function Failure(props) {
<InitForm <InitForm
defaultFormValue={drawer?.item} defaultFormValue={drawer?.item}
fields={columns} fields={columns}
onValuesChange={(changedValues, allValues) => {
//console.log(changedValues, allValues);
if (Object.keys(changedValues)[0] == 'faultDetailId') {
doFetch({
url: '/repair/umFaultSettingDetail/queryById',
params: {
id: changedValues?.faultDetailId,
},
}).then((res) => {
formRef?.current?.setFieldsValue({
repairContent: res?.data?.data.faultSolution,
});
});
}
}}
onFinish={async (vals) => { onFinish={async (vals) => {
let params = { let params = {
repairComplete: { repairComplete: {
...@@ -791,8 +806,8 @@ function Failure(props) { ...@@ -791,8 +806,8 @@ function Failure(props) {
isShutdown: vals.isShutdown, isShutdown: vals.isShutdown,
repairContent: vals.repairContent, repairContent: vals.repairContent,
}, },
id: drawer?.item.id, id: drawer?.item.id,
repairAssistList: vals?.repairAssistList,
}; };
let res = await doFetch({ let res = await doFetch({
url: '/repair/umRepairOrder/completeRepair', url: '/repair/umRepairOrder/completeRepair',
...@@ -1188,7 +1203,7 @@ function Failure(props) { ...@@ -1188,7 +1203,7 @@ function Failure(props) {
]} ]}
onFinish={async (vals) => { onFinish={async (vals) => {
let params = { let params = {
repairProcess: { reviewerResult: vals.reviewerResult }, repairProcess: { reviewerResult: '', remark: vals?.remark },
resultFlag: vals.resultFlag, resultFlag: vals.resultFlag,
id: drawer?.item.id, id: drawer?.item.id,
}; };
...@@ -1268,7 +1283,7 @@ function Failure(props) { ...@@ -1268,7 +1283,7 @@ function Failure(props) {
]} ]}
onFinish={async (vals) => { onFinish={async (vals) => {
let params = { let params = {
repairProcess: { reviewerResult: vals.reviewerResult }, repairProcess: { reviewerResult: '', remark: vals?.remark },
resultFlag: vals.resultFlag, resultFlag: vals.resultFlag,
id: drawer?.item.id, id: drawer?.item.id,
}; };
...@@ -1348,7 +1363,7 @@ function Failure(props) { ...@@ -1348,7 +1363,7 @@ function Failure(props) {
]} ]}
onFinish={async (vals) => { onFinish={async (vals) => {
let params = { let params = {
repairProcess: { reviewerResult: vals.reason, remark: vals?.reason }, repairProcess: { reviewerResult: '', remark: vals?.remark },
resultFlag: vals.resultFlag, resultFlag: vals.resultFlag,
id: drawer?.item.id, id: drawer?.item.id,
}; };
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03 * @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-01 09:36:58 * @Last Modified time: 2023-02-01 11:20:41
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -156,6 +156,7 @@ function Failure(props) { ...@@ -156,6 +156,7 @@ function Failure(props) {
return ( return (
<> <>
<InitForm <InitForm
defaultFormValue={drawer?.item}
fields={[ fields={[
{ {
title: '最新外协人员', title: '最新外协人员',
...@@ -393,6 +394,7 @@ function Failure(props) { ...@@ -393,6 +394,7 @@ function Failure(props) {
title: '重新指派', title: '重新指派',
type: 'Reassig', type: 'Reassig',
open: true, open: true,
val: 'only',
})); }));
}, },
}} }}
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-12-05 10:13:42 * @Date: 2022-12-05 10:13:42
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-30 11:15:44 * @Last Modified time: 2023-02-01 14:00:27
*/ */
import * as React from 'react'; import * as React from 'react';
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03 * @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-01 09:34:49 * @Last Modified time: 2023-02-01 14:02:32
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -18,6 +18,8 @@ import Addform from '@/components/Addform'; ...@@ -18,6 +18,8 @@ import Addform from '@/components/Addform';
import { Menu, Dropdown, Button, message } from 'antd'; import { Menu, Dropdown, Button, message } from 'antd';
import InitForm from '@/components/InitForm'; import InitForm from '@/components/InitForm';
import Detail from '@/components/RepaireDetail/Detail'; import Detail from '@/components/RepaireDetail/Detail';
import OrderHandle from '../platform/RepairOrderHandle';
function Failure(props) { function Failure(props) {
const actionRef = useRef(), const actionRef = useRef(),
containderef = useRef(), containderef = useRef(),
...@@ -102,7 +104,6 @@ function Failure(props) { ...@@ -102,7 +104,6 @@ function Failure(props) {
actionRef.current.reload(); actionRef.current.reload();
} }
}} }}
defaultFormValue={drawer?.item}
{...drawer} {...drawer}
/> />
</> </>
...@@ -309,6 +310,19 @@ function Failure(props) { ...@@ -309,6 +310,19 @@ function Failure(props) {
); );
}; };
// 派单
const Disp = () => {
return (
<OrderHandle
type="zzpd"
id={drawer?.item.id}
actionRef={actionRef}
url="/repair/umTrackOrder/dispatchById"
setdrawer={setdrawer}
/>
);
};
const remove = (text, row, _, action) => { const remove = (text, row, _, action) => {
return ( return (
<PremButton <PremButton
...@@ -338,6 +352,7 @@ function Failure(props) { ...@@ -338,6 +352,7 @@ function Failure(props) {
{ {
label: ( label: (
<PremButton <PremButton
access="umTrackOrder:orderReceiving"
btn={{ btn={{
onClick: async () => { onClick: async () => {
let params = { let params = {
...@@ -370,23 +385,17 @@ function Failure(props) { ...@@ -370,23 +385,17 @@ function Failure(props) {
{ {
label: ( label: (
<PremButton <PremButton
// access="umTrackOrder:dispatchById"
btn={{ btn={{
onClick: async () => { onClick: () => {
let params = { setdrawer((s) => ({
id: row?.id, ...s,
}; open: true,
let res = await doFetch({ type: 'pd',
url: '/repair/umTrackOrder/dispatchById', item: row,
params, val: 'only',
}); title: '派单',
if (res.code === '0000') { }));
message.success('派单成功!');
setdrawer((s) => ({
...s,
open: false,
}));
actionRef.current.reload();
}
}, },
}} }}
> >
...@@ -402,6 +411,7 @@ function Failure(props) { ...@@ -402,6 +411,7 @@ function Failure(props) {
{ {
label: ( label: (
<PremButton <PremButton
access="umTrackOrder:trackById"
btn={{ btn={{
onClick: () => { onClick: () => {
setdrawer((s) => ({ setdrawer((s) => ({
...@@ -433,6 +443,7 @@ function Failure(props) { ...@@ -433,6 +443,7 @@ function Failure(props) {
{ {
label: ( label: (
<PremButton <PremButton
access="umTrackOrder:verification"
btn={{ btn={{
onClick: () => { onClick: () => {
setdrawer((s) => ({ setdrawer((s) => ({
...@@ -649,6 +660,8 @@ function Failure(props) { ...@@ -649,6 +660,8 @@ function Failure(props) {
); );
case 'track': case 'track':
return <TrackForm />; return <TrackForm />;
case 'pd':
return <Disp />;
case 'check': case 'check':
return <CheckForm />; return <CheckForm />;
case 'Reassig': case 'Reassig':
......
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