Преглед изворни кода

Merge branch 'feature-DeviceCopy' into dev

tags/小炒逻辑变更前
txb пре 2 година
родитељ
комит
13b2f1aa89
3 измењених фајлова са 28 додато и 8 уклоњено
  1. +16
    -3
      src/pages/device/deviceInfo/index.jsx
  2. +9
    -2
      src/pages/device/deviceInfo/services.js
  3. +3
    -3
      src/pages/device/deviceStock/index.jsx

+ 16
- 3
src/pages/device/deviceInfo/index.jsx Прегледај датотеку

@@ -12,6 +12,7 @@ import {
DelDeviceInfo,
GetDeviceType,
GetDeviceVersions,
CopyDevice
} from './services';
import { gettree } from '../../sys/org/service';
const key = 'message';
@@ -115,7 +116,7 @@ const GoodsTypeManage = () => {
}else{
datas[i]['disabled']=true;
}
if (datas[i].children) {
inittree(datas[i].children);
}
@@ -273,9 +274,21 @@ const GoodsTypeManage = () => {
}}
>
{' '}
{record.store_Status == 0 ? '正常' :'停用'}
{record.status == 0 ? '停用':'正常'}
</a>,
<a
key="primary"
onClick={() => {
CopyDevice({ id: record.id }).then((r) => {
if (r.data) {
actionRef.current.reload();
}
});
}}
>
{' '}
复制
</a>,

],
},
];


+ 9
- 2
src/pages/device/deviceInfo/services.js Прегледај датотеку

@@ -21,13 +21,20 @@ export async function AddDeviceInfo(data) {
});
}

/** 修改 */
/** 修改 */
export async function UpdateDeviceInfo(data) {
return request(`/kitchen/api/Device/UpdateDeviceInfo`, {
method: 'POST',
data: data,
});
}
/** 修改 */
export async function CopyDevice(data) {
return request(`/kitchen/api/Device/CopyDevice`, {
method: 'POST',
data: data,
});
}
/** 删除 */
export async function DelDeviceInfo(data) {
return request(`​​/kitchen/api/Device/DelDeviceInfo`, {
@@ -48,4 +55,4 @@ export async function DelDeviceInfo(data) {
method: 'post',
});
}

+ 3
- 3
src/pages/device/deviceStock/index.jsx Прегледај датотеку

@@ -64,7 +64,7 @@ const DeviceStockManager = (props) => {
actionRef.current.reload();
return true;
} else {
message.success('同步失败');
message.error('同步失败' + r.errors);
actionRef.current.reload();
return false;
}
@@ -80,7 +80,7 @@ const DeviceStockManager = (props) => {
actionRef.current.reload();
return true;
} else {
message.success('同步失败');
message.error('同步失败' + r.errors);
actionRef.current.reload();
return false;
}
@@ -94,7 +94,7 @@ const DeviceStockManager = (props) => {
actionRef.current.reload();
return true;
} else {
message.success('同步失败');
message.error('同步失败' + r.errors);
actionRef.current.reload();
return false;
}


Loading…
Откажи
Сачувај