Commit 14dbf77c authored by TZW's avatar TZW

bug

parent 31e67ef1
...@@ -525,10 +525,8 @@ ol { ...@@ -525,10 +525,8 @@ ol {
z-index: 1; z-index: 1;
} }
main { .ant-pro-layout-container>main {
>div:first-child { >div:first-child>div {
.tags_container { z-index: 1001 !important;
z-index: 1001 !important;
}
} }
} }
\ No newline at end of file
...@@ -272,9 +272,20 @@ function getcolumns(setdrawer) { ...@@ -272,9 +272,20 @@ function getcolumns(setdrawer) {
hideInForm: true, hideInForm: true,
render: (text, row) => { render: (text, row) => {
if (row?.qrCodeUrl == null) { if (row?.qrCodeUrl == null) {
return '暂无图片'; return (
<div
style={{
height: 50,
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
}}
>
<span>暂无图片</span>
</div>
);
} else { } else {
return <Image width={70} src={row.qrCodeUrl} />; return <Image width={50} src={row.qrCodeUrl} />;
} }
}, },
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56 * @Date: 2022-11-10 09:39:56
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-02 10:16:20 * @Last Modified time: 2023-02-03 10:01:31
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -618,7 +618,7 @@ function Model(props) { ...@@ -618,7 +618,7 @@ function Model(props) {
const [activeTab, setactiveTab] = useState(1); const [activeTab, setactiveTab] = useState(1);
// 基础信息 // 基础信息
const BaseInfo = () => { const BaseInfo = () => {
const columns = [ const columns1 = [
{ {
title: '设备编号', title: '设备编号',
dataIndex: 'equipmentNo', dataIndex: 'equipmentNo',
...@@ -650,6 +650,8 @@ function Model(props) { ...@@ -650,6 +650,8 @@ function Model(props) {
key: 'statusName', key: 'statusName',
span: 2, span: 2,
}, },
];
const columns2 = [
{ {
title: '公司名称', title: '公司名称',
dataIndex: 'organizationName', dataIndex: 'organizationName',
...@@ -680,6 +682,8 @@ function Model(props) { ...@@ -680,6 +682,8 @@ function Model(props) {
dataIndex: 'productLineName', dataIndex: 'productLineName',
key: 'productLineName', key: 'productLineName',
}, },
];
const columns3 = [
{ {
title: '供应商', title: '供应商',
dataIndex: 'supplierName', dataIndex: 'supplierName',
...@@ -781,9 +785,12 @@ function Model(props) { ...@@ -781,9 +785,12 @@ function Model(props) {
}, []); }, []);
return ( return (
<> <>
<ProDescriptions dataSource={request} columns={columns} /> <ProDescriptions dataSource={request} columns={columns1} />
<Divider /> <Divider style={{ marginTop: 0 }} />
<h3 className="page-title" style={{ marginBottom: 16 }}> <ProDescriptions dataSource={request} columns={columns2} />
<Divider style={{ marginTop: 0 }} />
<ProDescriptions dataSource={request} columns={columns3} />
<h3 className="page-title" style={{ marginBottom: 24 }}>
扩展字段 扩展字段
</h3> </h3>
<ProDescriptions dataSource={request} columns={newfieldscolumns} /> <ProDescriptions dataSource={request} columns={newfieldscolumns} />
......
...@@ -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-02-02 17:04:15 * @Last Modified time: 2023-02-03 10:36:00
*/ */
import * as React from 'react'; import * as React from 'react';
......
...@@ -456,16 +456,20 @@ function getcolumns(setdrawer) { ...@@ -456,16 +456,20 @@ function getcolumns(setdrawer) {
mode: 'radio', mode: 'radio',
options: [ options: [
{ {
label: '待接单', label: '已关单',
value: '1', value: '7',
}, },
{ {
label: '保养中', label: '已完成',
value: '2', value: '3',
}, },
{ {
label: '待验证', label: '超时关单',
value: '5', value: '0',
},
{
label: '超时处理',
value: '6',
}, },
], ],
}, },
......
...@@ -204,23 +204,23 @@ const getcolumns = { ...@@ -204,23 +204,23 @@ const getcolumns = {
4: [ 4: [
{ {
title: '验证人员', title: '验证人员',
dataIndex: 'reviewerName', dataIndex: 'approveUserName',
key: 'reviewerName', key: 'approveUserName',
}, },
{ {
title: '验证时间', title: '验证时间',
dataIndex: 'reviewerName', dataIndex: 'approveTime',
key: 'reviewerName', key: 'approveTime',
}, },
{ {
title: '验证结果', title: '验证结果',
dataIndex: 'reviewerName', dataIndex: 'approveStatusName',
key: 'reviewerName', key: 'approveStatusName',
}, },
{ {
title: '备注', title: '备注',
dataIndex: 'reviewerName', dataIndex: 'approveContent',
key: 'reviewerName', key: 'approveContent',
}, },
], ],
}; };
......
...@@ -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 17:08:23 * @Last Modified time: 2023-02-03 10:40:38
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -112,13 +112,13 @@ function Failure(props) { ...@@ -112,13 +112,13 @@ function Failure(props) {
dataIndex: 'otherUnitsHours', dataIndex: 'otherUnitsHours',
key: 'otherUnitsHours', key: 'otherUnitsHours',
valueType: 'digit', valueType: 'digit',
precision: 0, precision: 3,
}, },
{ {
title: '外协费用', title: '外协费用',
dataIndex: 'otherUnitsCost', dataIndex: 'otherUnitsCost',
valueType: 'digit', valueType: 'digit',
precision: 0, precision: 3,
key: 'otherUnitsCost', key: 'otherUnitsCost',
}, },
{ {
...@@ -161,7 +161,7 @@ function Failure(props) { ...@@ -161,7 +161,7 @@ function Failure(props) {
{ {
title: '最新外协人员', title: '最新外协人员',
dataIndex: 'newRepairUserName', dataIndex: 'newRepairUserName',
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] }, formItemProps: { rules: [{ required: false, message: '此项为必填项' }] },
fieldProps: { disabled: true }, fieldProps: { disabled: true },
key: 'newRepairUserName', key: 'newRepairUserName',
}, },
......
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