2 Commits

Se han modificado 51 ficheros con 83 adiciones y 79 borrados
Dividir vista
  1. +2
    -2
      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. +1
    -0
      dist/p__database__goods__newgoods.1b937ba1.async.js
  35. +0
    -1
      dist/p__database__goods__newgoods.92f66b44.async.js
  36. +1
    -1
      dist/push/batchingpush/index.html
  37. +1
    -1
      dist/push/bompush/index.html
  38. +1
    -1
      dist/push/goodspush/index.html
  39. +1
    -1
      dist/push/index.html
  40. +1
    -1
      dist/push/technologypush/index.html
  41. +1
    -1
      dist/scene/foodmenu/index.html
  42. +1
    -1
      dist/scene/index.html
  43. +1
    -1
      dist/scene/store/index.html
  44. +1
    -1
      dist/sys/dictionary/dicttype/index.html
  45. +1
    -1
      dist/sys/index.html
  46. +1
    -1
      dist/sys/menus/index.html
  47. +1
    -1
      dist/umi.9daee39b.js
  48. +1
    -1
      dist/user/index.html
  49. +1
    -1
      dist/user/login/index.html
  50. +1
    -1
      dist/welcome/index.html
  51. +33
    -29
      src/pages/database/goods/newgoods/index.jsx

+ 2
- 2
dist/asset-manifest.json Ver fichero

@@ -1,6 +1,6 @@
{
"/umi.css": "/umi.2d7db433.css",
"/umi.js": "/umi.f6ff2c12.js",
"/umi.js": "/umi.9daee39b.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,7 +23,7 @@
"/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.92f66b44.async.js",
"/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__goodsbom.js": "/p__database__goods__goodsbom.bf9c6572.async.js",
"/p__database__goods__goodstechnology.css": "/p__database__goods__goodstechnology.bee21a79.chunk.css",


+ 1
- 1
dist/authorization/index.html Ver fichero

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

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

+ 1
- 1
dist/authorization/platformAuthorization/index.html Ver fichero

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

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

+ 1
- 1
dist/authorization/storeAuthorization/index.html Ver fichero

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

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

+ 1
- 1
dist/company/account/index.html Ver fichero

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

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

+ 1
- 1
dist/company/index.html Ver fichero

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

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

+ 1
- 1
dist/database/basic/batching/index.html Ver fichero

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

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

+ 1
- 1
dist/database/bom/index.html Ver fichero

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

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

+ 1
- 1
dist/database/goods/goodsInfo/index.html Ver fichero

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

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

+ 1
- 1
dist/database/goods/goodsattribute/index.html Ver fichero

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

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

+ 1
- 1
dist/database/goods/goodsattributeprice/index.html Ver fichero

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

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

+ 1
- 1
dist/database/goods/goodsbom/index.html Ver fichero

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

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

+ 1
- 1
dist/database/goods/goodsclassify/index.html Ver fichero

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

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

+ 1
- 1
dist/database/goods/goodstechnology/index.html Ver fichero

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

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

+ 1
- 1
dist/database/goods/goodstypemanage/index.html Ver fichero

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

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

+ 1
- 1
dist/database/goods/newgoods/index.html Ver fichero

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

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

+ 1
- 1
dist/database/index.html Ver fichero

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

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

+ 1
- 1
dist/device/deviceInfo/index.html Ver fichero

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

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

+ 1
- 1
dist/device/deviceVesion/index.html Ver fichero

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

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

+ 1
- 1
dist/device/index.html Ver fichero

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

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

+ 1
- 1
dist/device/product/index.html Ver fichero

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

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

+ 1
- 1
dist/device/productmanage/index.html Ver fichero

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

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

+ 1
- 1
dist/device/technology/index.html Ver fichero

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

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

+ 1
- 1
dist/device/warehousepostion/index.html Ver fichero

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

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

+ 1
- 1
dist/index.html Ver fichero

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

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

+ 1
- 1
dist/order/index.html Ver fichero

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

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

+ 1
- 1
dist/order/orderflow/index.html Ver fichero

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

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

+ 1
- 1
dist/order/thirdAuthorize/index.html Ver fichero

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

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

+ 1
- 1
dist/order/thirdOrder/index.html Ver fichero

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

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

+ 1
- 1
dist/org/index.html Ver fichero

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

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

+ 1
- 1
dist/org/orgamange/index.html Ver fichero

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

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

+ 1
- 1
dist/org/roles/index.html Ver fichero

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

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

+ 1
- 1
dist/org/users/index.html Ver fichero

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

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

+ 1
- 0
dist/p__database__goods__newgoods.1b937ba1.async.js
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 0
- 1
dist/p__database__goods__newgoods.92f66b44.async.js
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 1
- 1
dist/push/batchingpush/index.html Ver fichero

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

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

+ 1
- 1
dist/push/bompush/index.html Ver fichero

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

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

+ 1
- 1
dist/push/goodspush/index.html Ver fichero

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

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

+ 1
- 1
dist/push/index.html Ver fichero

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

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

+ 1
- 1
dist/push/technologypush/index.html Ver fichero

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

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

+ 1
- 1
dist/scene/foodmenu/index.html Ver fichero

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

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

+ 1
- 1
dist/scene/index.html Ver fichero

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

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

+ 1
- 1
dist/scene/store/index.html Ver fichero

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

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

+ 1
- 1
dist/sys/dictionary/dicttype/index.html Ver fichero

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

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

+ 1
- 1
dist/sys/index.html Ver fichero

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

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

+ 1
- 1
dist/sys/menus/index.html Ver fichero

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

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

dist/umi.9daee39b.js
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 1
- 1
dist/user/index.html Ver fichero

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

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

+ 1
- 1
dist/user/login/index.html Ver fichero

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

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

+ 1
- 1
dist/welcome/index.html Ver fichero

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

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

+ 33
- 29
src/pages/database/goods/newgoods/index.jsx Ver fichero

@@ -321,6 +321,7 @@ const GoodsManage = () => {
];

const importMessage = (json) =>{
const hide = message.loading('正在导入');
const formDataAll = new FormData();
formDataAll.append('file', importFile);
formDataAll.append('json', json);
@@ -339,6 +340,7 @@ const GoodsManage = () => {
}).catch(error => {
message.error(error);
});
hide();
}

/**
@@ -415,36 +417,38 @@ const GoodsManage = () => {
message.error('请选择一个设备!');
return;
}
await GoodsExport({ goodId: goodId, deviceId: deviceId, goodsId: goodsId }).then((r) => {
if (r.succeeded) {
const base64String = r.data;
// 解码 Base64 数据
const binaryString = atob(base64String);
// 转换为 Uint8Array
const bytes = new Uint8Array(binaryString.length);
for (let i = 0; i < binaryString.length; i++) {
bytes[i] = binaryString.charCodeAt(i);
}
// 创建 Blob 对象
const blob = new Blob([bytes], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
// 创建一个临时的 URL,指向 Blob 对象
const url = window.URL.createObjectURL(blob);
// 创建 <a> 元素,用于下载文件
const link = document.createElement('a');
const fileName = "商品.zip";
link.href = url;
link.setAttribute('download', fileName);
// 将 <a> 元素添加到页面中
document.body.appendChild(link);
// 模拟用户点击下载链接,触发文件下载
link.click();
// 下载完成后,移除 <a> 元素
document.body.removeChild(link);
message.success("下载成功");
}else{
message.error(r.errors);
const hide = message.loading('正在下载');
await GoodsExport({ goodId: goodId, deviceId: deviceId, goodsId: goodsId }).then((r) => {
if (r.succeeded) {
const base64String = r.data;
// 解码 Base64 数据
const binaryString = atob(base64String);
// 转换为 Uint8Array
const bytes = new Uint8Array(binaryString.length);
for (let i = 0; i < binaryString.length; i++) {
bytes[i] = binaryString.charCodeAt(i);
}
})
// 创建 Blob 对象
const blob = new Blob([bytes], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
// 创建一个临时的 URL,指向 Blob 对象
const url = window.URL.createObjectURL(blob);
// 创建 <a> 元素,用于下载文件
const link = document.createElement('a');
const fileName = "商品.zip";
link.href = url;
link.setAttribute('download', fileName);
// 将 <a> 元素添加到页面中
document.body.appendChild(link);
// 模拟用户点击下载链接,触发文件下载
link.click();
// 下载完成后,移除 <a> 元素
document.body.removeChild(link);
message.success("下载成功");
} else {
message.error(r.errors);
}
})
hide();
}

return (


Cargando…
Cancelar
Guardar