2 Revīzijas

54 mainītis faili ar 134 papildinājumiem un 58 dzēšanām
Dalītais skats
  1. +3
    -3
      dist/asset-manifest.json
  2. +1
    -1
      dist/authorization/index.html
  3. +1
    -1
      dist/authorization/platformAuthorization/index.html
  4. +1
    -1
      dist/authorization/storeAuthorization/index.html
  5. +1
    -1
      dist/company/account/index.html
  6. +1
    -1
      dist/company/index.html
  7. +1
    -1
      dist/database/basic/batching/index.html
  8. +1
    -1
      dist/database/bom/index.html
  9. +1
    -1
      dist/database/goods/goodsInfo/index.html
  10. +1
    -1
      dist/database/goods/goodsattribute/index.html
  11. +1
    -1
      dist/database/goods/goodsattributeprice/index.html
  12. +1
    -1
      dist/database/goods/goodsbom/index.html
  13. +1
    -1
      dist/database/goods/goodsclassify/index.html
  14. +1
    -1
      dist/database/goods/goodstechnology/index.html
  15. +1
    -1
      dist/database/goods/goodstypemanage/index.html
  16. +1
    -1
      dist/database/goods/newgoods/index.html
  17. +1
    -1
      dist/database/index.html
  18. +1
    -1
      dist/device/deviceInfo/index.html
  19. +1
    -1
      dist/device/deviceVesion/index.html
  20. +1
    -1
      dist/device/index.html
  21. +1
    -1
      dist/device/product/index.html
  22. +1
    -1
      dist/device/productmanage/index.html
  23. +1
    -1
      dist/device/technology/index.html
  24. +1
    -1
      dist/device/warehousepostion/index.html
  25. +1
    -1
      dist/index.html
  26. +1
    -1
      dist/order/index.html
  27. +1
    -1
      dist/order/orderflow/index.html
  28. +1
    -1
      dist/order/thirdAuthorize/index.html
  29. +1
    -1
      dist/order/thirdOrder/index.html
  30. +1
    -1
      dist/org/index.html
  31. +1
    -1
      dist/org/orgamange/index.html
  32. +1
    -1
      dist/org/roles/index.html
  33. +1
    -1
      dist/org/users/index.html
  34. +0
    -1
      dist/p__database__goods__goodsInfo.3cab935f.async.js
  35. +1
    -0
      dist/p__database__goods__goodsInfo.c1755db7.async.js
  36. +0
    -1
      dist/p__database__goods__newgoods.1b937ba1.async.js
  37. +1
    -0
      dist/p__database__goods__newgoods.2b98b660.async.js
  38. +1
    -1
      dist/push/batchingpush/index.html
  39. +1
    -1
      dist/push/bompush/index.html
  40. +1
    -1
      dist/push/goodspush/index.html
  41. +1
    -1
      dist/push/index.html
  42. +1
    -1
      dist/push/technologypush/index.html
  43. +1
    -1
      dist/scene/foodmenu/index.html
  44. +1
    -1
      dist/scene/index.html
  45. +1
    -1
      dist/scene/store/index.html
  46. +1
    -1
      dist/sys/dictionary/dicttype/index.html
  47. +1
    -1
      dist/sys/index.html
  48. +1
    -1
      dist/sys/menus/index.html
  49. +1
    -1
      dist/umi.80142491.js
  50. +1
    -1
      dist/user/index.html
  51. +1
    -1
      dist/user/login/index.html
  52. +1
    -1
      dist/welcome/index.html
  53. +76
    -6
      src/pages/database/goods/newgoods/index.jsx
  54. +6
    -0
      src/pages/database/goods/newgoods/service.js

+ 3
- 3
dist/asset-manifest.json Parādīt failu

@@ -1,6 +1,6 @@
{
"/umi.css": "/umi.2d7db433.css",
"/umi.js": "/umi.9daee39b.js",
"/umi.js": "/umi.80142491.js",
"/t__plugin-layout__Layout.css": "/t__plugin-layout__Layout.e1129705.chunk.css",
"/t__plugin-layout__Layout.js": "/t__plugin-layout__Layout.87f875be.async.js",
"/p__user__login.css": "/p__user__login.2f84d6a8.chunk.css",
@@ -23,8 +23,8 @@
"/p__database__goods__goodstypemanage.js": "/p__database__goods__goodstypemanage.22dd50b7.async.js",
"/p__database__goods__goodsattribute.js": "/p__database__goods__goodsattribute.4738ebf1.async.js",
"/p__database__goods__newgoods.css": "/p__database__goods__newgoods.648d67d4.chunk.css",
"/p__database__goods__newgoods.js": "/p__database__goods__newgoods.1b937ba1.async.js",
"/p__database__goods__goodsInfo.js": "/p__database__goods__goodsInfo.3cab935f.async.js",
"/p__database__goods__newgoods.js": "/p__database__goods__newgoods.2b98b660.async.js",
"/p__database__goods__goodsInfo.js": "/p__database__goods__goodsInfo.c1755db7.async.js",
"/p__database__goods__goodsbom.js": "/p__database__goods__goodsbom.bf9c6572.async.js",
"/p__database__goods__goodstechnology.css": "/p__database__goods__goodstechnology.bee21a79.chunk.css",
"/p__database__goods__goodstechnology.js": "/p__database__goods__goodstechnology.1ea43b2e.async.js",


+ 1
- 1
dist/authorization/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/authorization/platformAuthorization/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/authorization/storeAuthorization/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/company/account/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/company/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/database/basic/batching/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/database/bom/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/database/goods/goodsInfo/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/database/goods/goodsattribute/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/database/goods/goodsattributeprice/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/database/goods/goodsbom/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/database/goods/goodsclassify/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/database/goods/goodstechnology/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/database/goods/goodstypemanage/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/database/goods/newgoods/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/database/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/device/deviceInfo/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/device/deviceVesion/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/device/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/device/product/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/device/productmanage/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/device/technology/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/device/warehousepostion/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/order/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/order/orderflow/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/order/thirdAuthorize/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/order/thirdOrder/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/org/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/org/orgamange/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/org/roles/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/org/users/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 0
- 1
dist/p__database__goods__goodsInfo.3cab935f.async.js
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 1
- 0
dist/p__database__goods__goodsInfo.c1755db7.async.js
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 0
- 1
dist/p__database__goods__newgoods.1b937ba1.async.js
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 1
- 0
dist/p__database__goods__newgoods.2b98b660.async.js
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 1
- 1
dist/push/batchingpush/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/push/bompush/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/push/goodspush/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/push/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/push/technologypush/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/scene/foodmenu/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/scene/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/scene/store/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/sys/dictionary/dicttype/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/sys/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/sys/menus/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

dist/umi.80142491.js
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 1
- 1
dist/user/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/user/login/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 1
- 1
dist/welcome/index.html Parādīt failu

@@ -221,6 +221,6 @@
</div>
</div>

<script src="/umi.9daee39b.js"></script>
<script src="/umi.80142491.js"></script>
</body>
</html>

+ 76
- 6
src/pages/database/goods/newgoods/index.jsx Parādīt failu

@@ -1,5 +1,5 @@
import { PlusOutlined, UploadOutlined, QuestionCircleOutlined, DownloadOutlined } from '@ant-design/icons';
import { Button, message, Input, Drawer, Popconfirm, Upload, Spin, Tooltip, Modal, Select, Form } from 'antd';
import { Button, message, Drawer, Popconfirm, Upload, Spin, Tooltip, Modal, Form } from 'antd';
import React, { useState, useRef, useEffect } from 'react';
import { PageContainer } from '@ant-design/pro-layout';
import ProTable from '@ant-design/pro-table';
@@ -8,7 +8,7 @@ import { history } from 'umi';
import CreateForm from './components/CreateForm';
import ChooseForm from './components/ChooseForm';
import { getDataBaseUrl } from '@/global_data';
import { gettree, goods, removeGoods, addGoods, updateGoods, GetDeviceTechnology, GetgoodsWithIds, Getgoodslist, GoodsExport } from './service';
import { gettree, goods, removeGoods, addGoods, updateGoods, GetDeviceTechnology, GoodsExport, GetGoodsRecipeList } from './service';
import axios from 'axios';

const aliyunHostUrl = 'https://bpa.oss-cn-chengdu.aliyuncs.com/hkerp/test/goods/';
@@ -35,6 +35,8 @@ const GoodsManage = () => {
const [importFile, setImportFile] = useState();
const [showChooseForm, setShowChooseForm] = useState(false);
const [chooseFormData, setChooseFormData] = useState([]);
const [showRecipeForm, setShowRecipeForm] = useState(false);
const [recipeGoodsId, setRecipeGoodsId] = useState([]);
/** 国际化配置 */
useEffect(() => {
gettree().then((r) => {
@@ -213,7 +215,7 @@ const GoodsManage = () => {
dataIndex: 'option',
valueType: 'option',
fixed: 'right',
width: 350,
width: 400,
render: (_, record) => [
<a
key="primary"
@@ -294,8 +296,17 @@ const GoodsManage = () => {
}}
>
下载商品
</a>
,
</a>,
<a
key="primary"
type="primary"
onClick={() => {
setRecipeGoodsId(record.id);
setShowRecipeForm(true);
}}
>
查看配方
</a>,
<Popconfirm
type="primary"
key="primary"
@@ -319,7 +330,37 @@ const GoodsManage = () => {
],
},
];

const recipeColumns = [
{
title: '序号',
dataIndex: 'sort',
hideInSearch: true
},
{
title: '商品名称',
dataIndex: 'name',
hideInSearch: true,
render: (text) => text === "-" ? '' : text
},
{
title: '工序名称',
dataIndex: 'technologyName',
hideInSearch: true,
render: (text) => text === "-" ? '' : text
},
{
title: '主/物料名称',
dataIndex: 'batchingName',
hideInSearch: true,
render: (text) => text === "-" ? '' : text
},
{
title: '重量',
dataIndex: 'weight',
hideInSearch: true,
render: (text) => text === "-" ? '' : text
},
];
const importMessage = (json) =>{
const hide = message.loading('正在导入');
const formDataAll = new FormData();
@@ -553,6 +594,35 @@ const GoodsManage = () => {
values={currentRow || {}}
form={form}
/>
<Modal
title="配方详情"
open={showRecipeForm}
onCancel={() => {
setShowRecipeForm(false);
}}
width={1040}
destroyOnClose={true}
bodyStyle={{ padding: '32px 40px 1px 48px' }}
footer={null}
maskClosable={false}
>
<ProTable
pagination={false}
search={false}
rowKey="sort"
request={async () => {
var recipeData = [];
await GetGoodsRecipeList(recipeGoodsId).then((r) => {
recipeData = r.data;
});
return {
data: recipeData,
success: true,
};
}}
columns={recipeColumns}
/>
</Modal>
<ChooseForm
onFinish={async (data) => {
const transformedData = Object.entries(data).map(([key, value]) => ({


+ 6
- 0
src/pages/database/goods/newgoods/service.js Parādīt failu

@@ -185,4 +185,10 @@ export async function GoodsImport(data) {
method: 'post',
data: data
});
}

export async function GetGoodsRecipeList(data) {
return request(getDataBaseUrl()+`/api/goods/GetGoodsRecipeList?goodsId=${data}`, {
method: 'Get',
});
}

Notiek ielāde…
Atcelt
Saglabāt