Commit abffbb3f authored by TZW's avatar TZW

11111

parent a1f5b176
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-12-05 10:13:42 * @Date: 2022-12-05 10:13:42
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-29 16:25:57 * @Last Modified time: 2023-01-30 11:15:44
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -124,10 +124,9 @@ function Platform(props) { ...@@ -124,10 +124,9 @@ function Platform(props) {
btn={{ btn={{
size: 'small', size: 'small',
type: 'primary', type: 'primary',
onClick: async () => { onClick: async (vals) => {
let params = { let params = {
...vals, id: row?.id,
id,
}; };
let res = await doFetch({ let res = await doFetch({
url: '/repair/umOtherUnitsOrder/orderReceiving', url: '/repair/umOtherUnitsOrder/orderReceiving',
......
...@@ -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-29 16:29:20 * @Last Modified time: 2023-01-30 11:12:49
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -331,12 +331,11 @@ function Failure(props) { ...@@ -331,12 +331,11 @@ function Failure(props) {
// 更多 // 更多
const more = (text, row, _, action) => { const more = (text, row, _, action) => {
const menu = ( let menulist = [];
<Menu if (row?.status == '1') {
items={[ menulist = [
{ {
label: label: (
row?.status == 0 || row?.status == 1 ? (
<PremButton <PremButton
btn={{ btn={{
onClick: async () => { onClick: async () => {
...@@ -360,7 +359,15 @@ function Failure(props) { ...@@ -360,7 +359,15 @@ function Failure(props) {
> >
接单 接单
</PremButton> </PremButton>
) : ( ),
key: '0',
// disabled: true,
},
];
} else if (row?.status == '2') {
menulist = [
{
label: (
<PremButton <PremButton
btn={{ btn={{
onClick: async () => { onClick: async () => {
...@@ -388,6 +395,9 @@ function Failure(props) { ...@@ -388,6 +395,9 @@ function Failure(props) {
key: '0', key: '0',
// disabled: true, // disabled: true,
}, },
];
} else if (row?.status == '3') {
menulist = [
{ {
label: ( label: (
<PremButton <PremButton
...@@ -411,6 +421,9 @@ function Failure(props) { ...@@ -411,6 +421,9 @@ function Failure(props) {
), ),
key: '1', key: '1',
}, },
];
} else if (row?.status == '4') {
menulist = [
{ {
label: ( label: (
<PremButton <PremButton
...@@ -434,9 +447,9 @@ function Failure(props) { ...@@ -434,9 +447,9 @@ function Failure(props) {
), ),
key: '2', key: '2',
}, },
]} ];
/> }
); const menu = <Menu items={menulist} />;
return ( return (
<Dropdown <Dropdown
overlay={menu} overlay={menu}
......
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