Commit 0125451f authored by TZW's avatar TZW

1111

parent 2406b2ec
...@@ -351,9 +351,10 @@ let Diyrule = (props) => { ...@@ -351,9 +351,10 @@ let Diyrule = (props) => {
<Checkbox <Checkbox
checked={other.increaseList && other.increaseList.indexOf(it?.id) != -1} checked={other.increaseList && other.increaseList.indexOf(it?.id) != -1}
onChange={(e) => { onChange={(e) => {
console.log(e, other, value);
let checked = e.target.checked; let checked = e.target.checked;
if (checked) { if (checked) {
let newlist = [...other.increaseList]; let newlist = [...other?.increaseList];
newlist.push(it?.id); newlist.push(it?.id);
onChange({ onChange({
value: value, value: value,
......
...@@ -1417,7 +1417,7 @@ function Diyrules({ item, colProps, formRef }) { ...@@ -1417,7 +1417,7 @@ function Diyrules({ item, colProps, formRef }) {
convertValue={(value) => { convertValue={(value) => {
if (value?.other) return value; if (value?.other) return value;
let nrList = { let nrList = {
other: {}, other: { increaseList: [] },
value: [], value: [],
}; };
value?.forEach?.((it) => { value?.forEach?.((it) => {
......
...@@ -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-30 10:13:54 * @Last Modified time: 2023-01-30 14:34:25
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -138,7 +138,7 @@ function Failure(props) { ...@@ -138,7 +138,7 @@ function Failure(props) {
...s, ...s,
open: true, open: true,
type: 'wcwx', type: 'wcwx',
item: row, item: { ...row, isShutdown: 1 },
val: 'only', val: 'only',
title: '完成维修', title: '完成维修',
})); }));
...@@ -154,7 +154,8 @@ function Failure(props) { ...@@ -154,7 +154,8 @@ function Failure(props) {
label: ( label: (
<PremButton <PremButton
access="umRepairOrder_transferTracking" access="umRepairOrder_transferTracking"
onClick={() => { btn={{
onClick: () => {
setdrawer((s) => ({ setdrawer((s) => ({
...s, ...s,
open: true, open: true,
...@@ -163,6 +164,7 @@ function Failure(props) { ...@@ -163,6 +164,7 @@ function Failure(props) {
val: 'only', val: 'only',
title: '转追踪', title: '转追踪',
})); }));
},
}} }}
> >
转追踪 转追踪
...@@ -377,7 +379,7 @@ function Failure(props) { ...@@ -377,7 +379,7 @@ function Failure(props) {
...s, ...s,
open: true, open: true,
type: 'wcwx', type: 'wcwx',
item: row, item: { ...row, isShutdown: 1 },
val: 'only', val: 'only',
title: '完成维修', title: '完成维修',
})); }));
...@@ -393,7 +395,8 @@ function Failure(props) { ...@@ -393,7 +395,8 @@ function Failure(props) {
label: ( label: (
<PremButton <PremButton
access="umRepairOrder_transferTracking" access="umRepairOrder_transferTracking"
onClick={() => { btn={{
onClick: () => {
setdrawer((s) => ({ setdrawer((s) => ({
...s, ...s,
open: true, open: true,
...@@ -402,6 +405,7 @@ function Failure(props) { ...@@ -402,6 +405,7 @@ function Failure(props) {
val: 'only', val: 'only',
title: '转追踪', title: '转追踪',
})); }));
},
}} }}
> >
转追踪 转追踪
...@@ -649,6 +653,7 @@ function Failure(props) { ...@@ -649,6 +653,7 @@ function Failure(props) {
title: '故障类型', title: '故障类型',
dataIndex: 'faultSettingId', dataIndex: 'faultSettingId',
key: 'faultSettingId', key: 'faultSettingId',
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
valueType: 'select', valueType: 'select',
options: { options: {
path: '/repair/umFaultSetting/selected/queryList', path: '/repair/umFaultSetting/selected/queryList',
...@@ -662,6 +667,7 @@ function Failure(props) { ...@@ -662,6 +667,7 @@ function Failure(props) {
dataIndex: 'faultDetailId', dataIndex: 'faultDetailId',
key: 'faultDetailId', key: 'faultDetailId',
valueType: 'select', valueType: 'select',
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
options: { options: {
path: '/repair/umFaultSettingDetail/selected/queryList', path: '/repair/umFaultSettingDetail/selected/queryList',
linkParams: { linkParams: {
...@@ -672,6 +678,7 @@ function Failure(props) { ...@@ -672,6 +678,7 @@ function Failure(props) {
{ {
title: '故障原因', title: '故障原因',
dataIndex: 'faultCause', dataIndex: 'faultCause',
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
key: 'faultCause', key: 'faultCause',
valueType: 'textarea', valueType: 'textarea',
formItemProps: { formItemProps: {
...@@ -695,6 +702,7 @@ function Failure(props) { ...@@ -695,6 +702,7 @@ function Failure(props) {
title: '维修类型', title: '维修类型',
dataIndex: 'repairType', dataIndex: 'repairType',
key: 'repairType', key: 'repairType',
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
valueType: 'select', valueType: 'select',
options: { options: {
path: '/base/sysInitData/queryChildrenSelection', path: '/base/sysInitData/queryChildrenSelection',
...@@ -714,6 +722,7 @@ function Failure(props) { ...@@ -714,6 +722,7 @@ function Failure(props) {
{ {
title: '是否停机维修', title: '是否停机维修',
dataIndex: 'isShutdown', dataIndex: 'isShutdown',
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
key: 'isShutdown', key: 'isShutdown',
valueType: 'radio', valueType: 'radio',
options: [ options: [
...@@ -739,6 +748,7 @@ function Failure(props) { ...@@ -739,6 +748,7 @@ function Failure(props) {
title: '维修内容', title: '维修内容',
dataIndex: 'repairContent', dataIndex: 'repairContent',
key: 'repairContent', key: 'repairContent',
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
valueType: 'textarea', valueType: 'textarea',
formItemProps: { formItemProps: {
rules: [ rules: [
...@@ -754,7 +764,10 @@ function Failure(props) { ...@@ -754,7 +764,10 @@ function Failure(props) {
dataIndex: 'repairAssistList', dataIndex: 'repairAssistList',
key: 'repairAssistList', key: 'repairAssistList',
valueType: 'select', valueType: 'select',
options: { path: '/repair/umRepairOrder/selection', params: { id: drawer?.item.id } }, options: {
path: '/repair/umRepairOrder/selection',
params: { id: drawer?.item.id, permission: 'umRepairOrder:completeRepair' },
},
fieldProps: { fieldProps: {
placeholder: '请选择', placeholder: '请选择',
showSearch: true, showSearch: true,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-12-05 11:13:26 * @Date: 2022-12-05 11:13:26
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-19 09:43:15 * @Last Modified time: 2023-01-30 14:38:08
*/ */
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
...@@ -17,7 +17,10 @@ const App = ({ type, id, actionRef, url, setdrawer }) => { ...@@ -17,7 +17,10 @@ const App = ({ type, id, actionRef, url, setdrawer }) => {
dataIndex: 'repairAssistList', dataIndex: 'repairAssistList',
key: 'repairAssistList', key: 'repairAssistList',
valueType: 'select', valueType: 'select',
options: { path: '/repair/umRepairOrder/selection', params: { id } }, options: {
path: '/repair/umRepairOrder/selection',
params: { id, permission: 'umRepairOrder:orderReceiving' },
},
fieldProps: { fieldProps: {
placeholder: '请选择', placeholder: '请选择',
showSearch: true, showSearch: true,
...@@ -39,7 +42,10 @@ const App = ({ type, id, actionRef, url, setdrawer }) => { ...@@ -39,7 +42,10 @@ const App = ({ type, id, actionRef, url, setdrawer }) => {
dataIndex: 'repairAssistList', dataIndex: 'repairAssistList',
key: 'repairAssistList', key: 'repairAssistList',
valueType: 'select', valueType: 'select',
options: { path: '/repair/umRepairOrder/selection', params: { id } }, options: {
path: '/repair/umRepairOrder/selection',
params: { id, permission: 'umRepairOrder:dispatchById' },
},
fieldProps: { fieldProps: {
placeholder: '请选择', placeholder: '请选择',
showSearch: true, showSearch: true,
......
...@@ -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-30 11:12:49 * @Last Modified time: 2023-01-30 14:33:09
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -407,7 +407,12 @@ function Failure(props) { ...@@ -407,7 +407,12 @@ function Failure(props) {
...s, ...s,
open: true, open: true,
type: 'track', type: 'track',
item: { ...row, trackCycle: String(row?.trackCycle) }, item: {
...row,
trackCycle: String(row?.trackCycle),
trackResult: '1',
isFinishTrack: '1',
},
// detailpath: '/repair/umTrackTraceinfo/queryByTrackOrderId', // detailpath: '/repair/umTrackTraceinfo/queryByTrackOrderId',
// params: { trackOrderId: row?.id }, // params: { trackOrderId: row?.id },
val: 'only', val: 'only',
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44 * @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-30 10:30:44 * @Last Modified time: 2023-01-30 13:10:55
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -185,6 +185,7 @@ function Rules(props) { ...@@ -185,6 +185,7 @@ function Rules(props) {
title: '新增', title: '新增',
val: 'add', val: 'add',
onFinish: async (vals) => { onFinish: async (vals) => {
console.log(vals);
let params = { ...vals }; let params = { ...vals };
params.nrList = []; params.nrList = [];
params.nrList = params.nrList.concat(vals?.nrList.value); params.nrList = params.nrList.concat(vals?.nrList.value);
......
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