Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
ems3.3
Commits
9690d0f7
Commit
9690d0f7
authored
2 years ago
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1007
parent
f7862cfa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
98 deletions
+19
-98
index.jsx
src/components/InitForm/Expandable/index.jsx
+6
-2
index.jsx
src/pages/maintain/workOrder/index.jsx
+8
-7
index.jsx
src/pages/repair/order/index.jsx
+5
-89
No files found.
src/components/InitForm/Expandable/index.jsx
View file @
9690d0f7
...
...
@@ -83,11 +83,15 @@ function Expandables({ value = [], onChange, item }) {
editable
:
false
,
},
{
title
:
'更换数量'
,
title
:
(
<
div
>
更换数量
<
span
style=
{
{
color
:
'red'
}
}
>
*
</
span
>
</
div
>
),
dataIndex
:
'operateNum'
,
search
:
false
,
key
:
'operateNum'
,
valueType
:
'
inpu
t'
,
valueType
:
'
digi
t'
,
fieldProps
:
{
precision
:
3
,
},
...
...
This diff is collapsed.
Click to expand it.
src/pages/maintain/workOrder/index.jsx
View file @
9690d0f7
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2023-01-19 09:53:59
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-2
4 19:18:49
* @Last Modified time: 2023-02-2
7 09:44:54
*/
import
*
as
React
from
'react'
;
...
...
@@ -14,7 +14,7 @@ import getcolumns from './columns';
import
{
useRequest
}
from
'ahooks'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
AutoTables
from
'@/components/AutoTable/mtable'
;
import
{
Radio
,
InputNumber
,
Input
,
Divider
}
from
'antd'
;
import
{
Radio
,
InputNumber
,
Input
,
Divider
,
message
}
from
'antd'
;
import
InitForm
from
'@/components/InitForm'
;
import
getDetailColumns
from
'./detailColumns'
;
import
{
useModel
}
from
'@umijs/max'
;
...
...
@@ -34,6 +34,7 @@ function WorkOrder(props) {
manual
:
true
,
onSuccess
:
(
res
,
params
)
=>
{
if
(
res
?.
code
==
'0000'
)
{
message
.
success
(
'操作成功!'
);
actionRef
?.
current
?.
reload
();
setdrawer
((
s
)
=>
({
...
s
,
...
...
@@ -603,8 +604,8 @@ function WorkOrder(props) {
valueType
:
'split'
,
},
{
dataIndex
:
'ifePieceStockUseList'
,
key
:
'ifePieceStockUseList'
,
dataIndex
:
'
l
ifePieceStockUseList'
,
key
:
'
l
ifePieceStockUseList'
,
valueType
:
'Expandable'
,
colProps
:
{
span
:
24
,
...
...
@@ -652,7 +653,7 @@ function WorkOrder(props) {
],
path
:
'/sparepart/lifePieceAccount/queryPageByEquipment'
,
extraparams
:
{
equipmentId
:
drawer
?.
item
?.
equipmentId
},
expandablePath
:
'/sparepart/lineStock/queryReplaceStock'
,
expandablePath
:
'/sparepart/lineStock/queryReplaceStock
All
'
,
},
]
}
onFinish=
{
(
vals
)
=>
{
...
...
@@ -677,14 +678,14 @@ function WorkOrder(props) {
lineStockId
:
it
?.
id
,
operateNum
:
it
?.
operateNum
,
}))
??
[];
let
ifePieceStockUseList
=
vals
?.
ifePieceStockUseList
??
[];
let
lifePieceStockUseList
=
vals
?.
l
ifePieceStockUseList
??
[];
run
({
url
:
'/maintain/umMaintainTask/finishMaintainTask'
,
params
:
{
id
:
drawer
?.
item
?.
id
,
maintainTaskItemList
,
lineStockUseList
,
ifePieceStockUseList
,
l
ifePieceStockUseList
,
},
});
}
}
...
...
This diff is collapsed.
Click to expand it.
src/pages/repair/order/index.jsx
View file @
9690d0f7
...
...
@@ -3,7 +3,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-2
4 19:10:16
* @Last Modified time: 2023-02-2
7 09:12:42
*/
import
*
as
React
from
'react'
;
...
...
@@ -711,90 +711,6 @@ function Failure(props) {
};
// 完成维修
const
Finishrepair
=
()
=>
{
// const EditTableItem = ({ record }) => {
// const [value, setvalue] = useState([]);
// return (
// <div>
// <EditTable
// resizeable={false}
// alwaysShowAlert={false}
// tableAlertRender={false}
// tableAlertOptionRender={false}
// columns={[
// {
// title: '线边库',
// dataIndex: 'supplierNo',
// key: 'supplierNo',
// editable: false,
// },
// {
// title: '供应商编号',
// dataIndex: 'supplierNo',
// key: 'supplierNo',
// span: 3,
// editable: false,
// },
// {
// title: '供应商名称',
// dataIndex: 'supplierName',
// key: 'supplierName',
// span: 3,
// editable: false,
// },
// {
// title: '可用数量',
// dataIndex: 'usedStock',
// key: 'usedStock',
// search: false,
// span: 3,
// editable: false,
// },
// {
// title: (
// <div>
// 更换数量 <span style={{ color: 'red' }}>* </span>
// </div>
// ),
// search: false,
// dataIndex: 'operateNum',
// valueType: 'digit',
// fieldProps: {
// precision: 3,
// },
// key: 'operateNum',
// span: 3,
// hideInForm: true,
// editable: true,
// },
// ]}
// path="/sparepart/lineStock/queryReplaceStock"
// extraparams={{ lifePieceAccountId: record?.id }}
// rowSelection={{
// type: 'checkbox',
// columnWidth: 44,
// preserveSelectedRowKeys: true,
// selectedRowKeys: value?.map((it) => it?.lineStockId) ?? [],
// onChange: (selectedKeys, selectedRows) => {
// const lineStockUseList = selectedRows?.map((it) => {
// return { lineStockId: it?.id, operateNum: it?.operateNum };
// });
// setvalue(lineStockUseList);
// },
// }}
// editable={{
// onValuesChange: (rower, recordList) => {
// setvalue((value) => {
// const curkey = value?.map((it) => it?.lineStockId);
// const newValue = value.concat(rower);
// return [...newValue];
// });
// },
// }}
// />
// </div>
// );
// };
const
columns_fsmjxh
=
[
{
title
:
'线边库'
,
...
...
@@ -846,7 +762,7 @@ function Failure(props) {
),
search
:
false
,
dataIndex
:
'operateNum'
,
valueType
:
'
inpu
t'
,
valueType
:
'
digi
t'
,
fieldProps
:
{
precision
:
3
,
},
...
...
@@ -1002,8 +918,8 @@ function Failure(props) {
},
{
title
:
'寿命件更换'
,
dataIndex
:
'ifePieceStockUseList'
,
key
:
'ifePieceStockUseList'
,
dataIndex
:
'
l
ifePieceStockUseList'
,
key
:
'
l
ifePieceStockUseList'
,
valueType
:
'Expandable'
,
colProps
:
{
span
:
24
,
...
...
@@ -1090,7 +1006,7 @@ function Failure(props) {
lineStockId
:
it
?.
id
,
operateNum
:
it
?.
operateNum
,
})),
ifePieceStockUseList
:
vals
?.
ifePieceStockUseList
,
lifePieceStockUseList
:
vals
?.
l
ifePieceStockUseList
,
};
let
res
=
await
doFetch
({
url
:
'/repair/umRepairOrder/completeRepair'
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment