Commit 684f9202 authored by TZW's avatar TZW

bug

parent 1cdfcce6
export default [
{
"path": "/welcome",
"name": "欢迎",
"name": "首页",
"icon": "smile",
"component": "./Welcome"
},
......
......@@ -110,7 +110,6 @@ const App = ({ url, actionRef, setdrawer, drawer }) => {
fields={columns}
defaultFormValue={drawer?.item}
onValuesChange={(changedValues, allValues) => {
//console.log(changedValues, allValues);
if (Object.keys(changedValues)[0] == 'faultDetailId') {
doFetch({
url: '/repair/umFaultSettingDetail/queryById',
......
......@@ -396,8 +396,8 @@ export default (props) => {
1: [
{
title: '追踪人员',
dataIndex: 'trackerName',
key: 'trackerName',
dataIndex: 'repairName',
key: 'repairName',
},
{
title: '接单时间',
......@@ -418,8 +418,8 @@ export default (props) => {
},
{
title: '追踪人员',
dataIndex: 'trackerName',
key: 'trackerName',
dataIndex: 'repairName',
key: 'repairName',
},
],
3: [
......@@ -435,8 +435,8 @@ export default (props) => {
},
{
title: '追踪人员',
dataIndex: 'trackerName',
key: 'trackerName',
dataIndex: 'repairName',
key: 'repairName',
},
],
4: [
......
......@@ -527,8 +527,8 @@ ol {
main {
>div:first-child {
ul {
z-index: 99999 !important;
.tags_container {
z-index: 1001 !important;
}
}
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-01 15:23:18
* @Last Modified time: 2023-02-02 16:46:59
*/
import * as React from 'react';
......@@ -131,7 +131,29 @@ function Failure(props) {
<PremButton
access="umRepairOrder_completeRepair"
btn={{
onClick: () => {
onClick: async () => {
let repairContent = '';
if (row?.faultDetailId) {
doFetch({
url: '/repair/umFaultSettingDetail/queryById',
params: {
id: row?.faultDetailId,
},
}).then((res) => {
setdrawer((s) => ({
...s,
open: true,
type: 'wcwx',
item: {
...row,
isShutdown: 1,
repairContent: res?.data?.data?.faultSolution,
},
val: 'only',
title: '完成维修',
}));
});
}
setdrawer((s) => ({
...s,
open: true,
......@@ -324,7 +346,7 @@ function Failure(props) {
...s,
open: true,
type: 'xgyz',
item: row,
item: { ...row, resultFlag: '1' },
val: 'only',
title: '效果验证',
}));
......@@ -372,6 +394,28 @@ function Failure(props) {
access="umRepairOrder_completeRepair"
btn={{
onClick: () => {
let repairContent = '';
if (row?.faultDetailId) {
doFetch({
url: '/repair/umFaultSettingDetail/queryById',
params: {
id: row?.faultDetailId,
},
}).then((res) => {
setdrawer((s) => ({
...s,
open: true,
type: 'wcwx',
item: {
...row,
isShutdown: 1,
repairContent: res?.data?.data?.faultSolution,
},
val: 'only',
title: '完成维修',
}));
});
}
setdrawer((s) => ({
...s,
open: true,
......@@ -489,7 +533,7 @@ function Failure(props) {
...s,
open: true,
type: 'zzsh',
item: row,
item: { ...row, resultFlag: '1' },
val: 'only',
title: '追踪审核',
}));
......@@ -514,7 +558,7 @@ function Failure(props) {
...s,
open: true,
type: 'wxsh',
item: row,
item: { ...row, resultFlag: '1' },
val: 'only',
title: '外协审核',
}));
......@@ -564,7 +608,7 @@ function Failure(props) {
...s,
open: true,
type: 'xgyz',
item: row,
item: { ...row, resultFlag: '1' },
val: 'only',
title: '效果验证',
}));
......@@ -779,10 +823,11 @@ function Failure(props) {
return (
<>
<InitForm
formRef={formRef}
defaultFormValue={drawer?.item}
fields={columns}
onValuesChange={(changedValues, allValues) => {
//console.log(changedValues, allValues);
console.log(changedValues, allValues);
if (Object.keys(changedValues)[0] == 'faultDetailId') {
doFetch({
url: '/repair/umFaultSettingDetail/queryById',
......
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