场站增加钉钉推送
This commit is contained in:
@@ -427,11 +427,13 @@ const WorkOrderPage = () => {
|
||||
// 提交执行工单
|
||||
const submitExecute = async (values) => {
|
||||
try {
|
||||
const startTimeStr = dayjs(values.startTime).format('YYYY-MM-DD HH:mm:ss');
|
||||
|
||||
// 调用 startWorkOrder 接口,传递 ids 和 选择的设备 id
|
||||
const params = {
|
||||
ids: values.orderIds,
|
||||
deviceId: values.deviceId,
|
||||
startTime: values.startTime
|
||||
startTime: startTimeStr
|
||||
};
|
||||
const res = await startWorkOrder(params);
|
||||
if (res.code == 200) {
|
||||
@@ -787,11 +789,9 @@ const WorkOrderPage = () => {
|
||||
<Row gutter={[16, 16]} style={{ background: '#f8fafc', padding: 16, borderRadius: 12, marginBottom: 20 }}>
|
||||
<Col span={12}><span style={{ fontSize: 12 }}>来源:</span><span style={{ fontSize: 12, fontWeight: 500 }}>{sourceTypeMap[currentDetail?.sourceType] || '--'}</span></Col>
|
||||
<Col span={12}><span style={{ fontSize: 12 }}>工单类型:</span><span style={{ fontSize: 12, fontWeight: 500 }}>{getWorkOrderTypeText(currentDetail?.orderType)}</span></Col>
|
||||
<Col span={24}><span style={{ fontSize: 12 }}>计划时间:</span>
|
||||
<Col span={24}><span style={{ fontSize: 12 }}>执行开始时间:</span>
|
||||
<span style={{ fontSize: 12, fontWeight: 500 }}>
|
||||
{currentDetail?.planStartTime && currentDetail?.planEndTime
|
||||
? `${dayjs(currentDetail.planStartTime).format('YYYY-MM-DD HH:mm')} ~ ${dayjs(currentDetail.planEndTime).format('YYYY-MM-DD HH:mm')}`
|
||||
: '--'}
|
||||
{currentDetail?.actualStartTime}
|
||||
</span>
|
||||
</Col>
|
||||
<Col span={24}><span style={{ fontSize: 12 }}>关联设备:</span><span style={{ fontSize: 12, color: '#165DFF', fontWeight: 600 }}>{currentDetail?.deviceName || '无'}</span></Col>
|
||||
|
||||
Reference in New Issue
Block a user