Commit 5939a3b5 authored by krysent's avatar krysent

new

parent e2e36256
...@@ -12,8 +12,8 @@ export default { ...@@ -12,8 +12,8 @@ export default {
"/srwms/": { "/srwms/": {
// 要代理的地址 // 要代理的地址
// target: "http://192.168.40.18/wms/", //39:28040 18/wms/ // target: "http://192.168.40.18/wms/", //39:28040 18/wms/
// target: "http://192.168.40.203:28040", //39:28040 18/wms/ dj target: "http://192.168.40.203:28040", //39:28040 18/wms/ dj
target: "http://192.168.40.117:28040", //39:28040 18/wms/ dj // target: "http://192.168.40.117:28040", //39:28040 18/wms/ jf
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
"^/srwms": "", "^/srwms": "",
......
...@@ -216,6 +216,11 @@ export default [ ...@@ -216,6 +216,11 @@ export default [
name: '客户管理', name: '客户管理',
component: './platform/Custom', component: './platform/Custom',
}, },
{
path: '/store/reservoir',
name: '库区库位',
component: './platform/Reservoir',
},
{ {
component: "./404", component: "./404",
}, },
......
export default {
"customerNo": {
"value": null,
"type": "input",
"title": "编号",
"name": [
"customerNo"
],
"required": false
},
"customerName": {
"value": null,
"type": "input",
"title": "名称",
"name": [
"customerName"
],
"required": true
},
"officialWebsite": {
"value": null,
"type": "input",
"title": "公司官网",
"name": [
"officialWebsite"
],
"required": false
},
"telephone": {
"value": null,
"type": "input",
"title": "联系电话",
"name": [
"telephone"
],
"required": false
},
"email": {
"value": null,
"type": "input",
"title": "公司邮箱",
"name": [
"email"
],
"required": false
},
"address": {
"value": null,
"type": "input",
"title": "地址",
"name": [
"address"
],
"required": false
},
"score": {
"value": null,
"type": "rate",
"title": "评分",
"name": [
"score"
],
"required": false,
allowHalf: true,
},
"status": {
"value": 1,
"type": "select",
"title": "启停状态",
"name": [
"status"
],
"required": true,
options: [
{
label: "启用",
value: 1
},
{
label: "停用",
value: 0
},
]
},
"remark": {
"value": null,
"type": "textarea",
"title": "备注",
"name": [
"remark"
],
"required": false,
col: { span: 24 }
},
"customerUserList": {
"value": null,
"editable": true,
"type": "table",
"title": "联系人",
"name": [
"customerUserList"
],
"required": false,
"columns": [
{
"title": "联系人姓名",
"dataIndex": "userName",
"key": "userName",
"search": false,
"valueType": "input",
formItemProps: {
rules: [
{
required: true,
message: '此项为必填项',
},
],
}
},
{
"title": "联系电话",
"dataIndex": "telephone",
"key": "telephone",
"search": false,
"valueType": "input",
formItemProps: {
rules: [
{
required: false,
pattern: /^(((\d{3,4}-)?[0-9]{7,8})|(1(3|4|5|6|7|8|9)\d{9}))$/,
message: '手机号格式不正确'
},
],
}
},
{
"title": "邮箱",
"dataIndex": "email",
"key": "email",
"search": false,
"valueType": "input",
formItemProps: {
rules: [
{
required: false,
pattern: /^[a-z0-9A-Z]+[- | a-z0-9A-Z . _]+@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\.)+[a-z]{2,}$/,
message: '邮箱格式不正确'
},
],
}
},
{
"title": "职位",
"dataIndex": "title",
"key": "title",
"search": false,
"valueType": "input"
},
{
title: '操作',
valueType: 'option',
render: () => {
return null;
},
},
],
"editable": true,
"rowKey": "id",
"rowName": "",
"dataSource": [],
col: { span: 24 }
}
}
\ No newline at end of file
import React, { useState, useRef, useReducer } from "react";
import {
Modal,
Button,
Drawer,
Tooltip,
Popconfirm,
message,
Switch,
Layout,
} from "antd";
import AutoTable from "@/components/AutoTable";
import getPrem from "@/utils/getPrem"; //权限判断fn
import InitForm from "@/components/InitForm";
import { useRequest } from "umi";
import defaultFields from "./fields";
import { doFetch } from "@/utils/doFetch";
import { deviceprovideDetail, deleteProvideCheck } from "@/services/device";
import { usercusDetails } from "@/utils/detailTotalCard";
import Details from "@/components/Details";
import { useAsyncEffect } from "ahooks";
import tempfields from "@/utils/tempfields";
import TreeRender from "@/components/TreeRender";
const { Sider, Content } = Layout;
const initState = {
vs: false,
fields: {},
iftype: {},
details: {
dataSource: {},
totalCard: [],
},
visible: false,
};
function reducer(state, action) {
let { type } = action,
newState = {};
switch (type) {
case "add":
newState = {
...state,
vs: true,
iftype: {
title: "新增客户",
val: type,
},
fields: { ...action.fields },
};
break;
case "edit":
newState = {
...state,
vs: true,
iftype: {
title: "编辑客户",
val: type,
},
fields: { ...action.fields },
};
break;
case "cdetails":
let n = 1,
dataSource = action.dataSource;
let special = action?.dataSource?.customerCharList?.map?.((it) => {
n++;
let key = n.toString();
dataSource[key] = it?.fieldRealValue;
return {
title: it?.fieldName,
key: key,
};
});
let extraspecial = [
{
cardTitle: "特殊属性",
itemData: special,
},
];
newState = {
...state,
details: {
dataSource: action.dataSource,
totalCard: [...usercusDetails, ...extraspecial],
},
visible: true,
};
break;
case "close":
newState = {
vs: false,
fields: {},
iftype: {},
details: {
dataSource: {},
totalCard: [],
},
visible: false,
};
break;
}
return newState;
}
const Reservoir = (props) => {
let actionRef = useRef(),
ChildRef = null;
function reload() {
actionRef?.current?.reload();
ChildRef?.onRefresh();
}
const [state, dispatch] = useReducer(reducer, initState),
{ vs, fields, iftype, details, visible } = state,
columns = [
{
title: "客户编号",
dataIndex: "customerNo",
key: "customerNo",
},
{
title: "客户名称",
dataIndex: "customerName",
key: "customerName",
render: (_, row) => {
return (
<div
style={{
padding: "3px 0",
overflow: "hidden",
whiteSpace: "nowrap",
textOverflow: "ellipsis",
}}
>
<Tooltip title={row.customerName}>
<a
onClick={() => {
doFetch({
url: "/ngic-auth/sysCustomer/query/detail",
params: { id: row.id },
}).then((res) => {
let data = res?.data?.data || {};
dispatch({ type: "cdetails", dataSource: data });
});
}}
>
{row.customerName}
</a>
</Tooltip>
</div>
);
},
},
{
title: "联系电话",
dataIndex: "telephone",
key: "telephone",
},
{
title: "邮箱",
dataIndex: "email",
key: "email",
},
{
title: "地址",
dataIndex: "address",
key: "address",
search: false,
},
{
title: "备注",
dataIndex: "remark",
key: "remark",
search: false,
},
{
title: "评分",
dataIndex: "score",
key: "score",
render: (_, row) => {
return <div>{row.score}</div>;
},
},
{
title: "状态",
dataIndex: "status",
key: "status",
valueType: "select",
options: [
{
label: "启用",
value: 1,
},
{
label: "关闭",
value: 0,
},
],
render: (text, row, _, action) => {
return (
<Popconfirm
title="是否开启或关闭客户?"
onConfirm={() => {
run({
url: "/ngic-auth/sysCustomer/update/status",
params: { id: row.id, status: row.status == 1 ? 0 : 1 },
});
}}
onCancel={() => {}}
okText="确定"
cancelText="取消"
disabled={!getPrem("equipmentCustomer_updatestatus", "ifs")}
>
<Switch
checked={row.status == 1 ? true : false}
checkedChildren="开启"
unCheckedChildren="关闭"
defaultChecked={false}
/>
</Popconfirm>
);
},
},
{
title: "操作",
valueType: "option",
width: 150,
render: (text, row, _, action) => extraAction(text, row, _, action),
},
],
{ run, loading } = useRequest(doFetch, {
manual: true,
formatResult: (res) => res,
onSuccess: (result, params) => {
if (result.code == "0000") {
message.success("操作成功!");
reload();
dispatch({ type: "close" });
}
},
});
const [extrafields, setextrafields] = useState({});
const [subdata, setsubdata] = useState([]);
const [curitem, setcuritem] = useState({});
function extraAction(text, record, _, action) {
return [
getPrem("equipmentCustomer_save", action, "修改", async () => {
await setcuritem({
...record,
key: "edit",
});
}),
getPrem("equipmentCustomer_deleteById", action, "删除", null, {
title: "确认删除该客户?",
onConfirm: () => {
run({
url: "/ngic-auth/sysCustomer/deleteById",
params: { id: record.id },
});
},
}),
];
}
let saveData = (values, fn) => {
let newfields = JSON.parse(JSON.stringify(values));
//新增&修改
let difrid = iftype.val == "edit" ? { id: curitem.id } : {};
let customerUserList = newfields?.customerUserList?.map((it) => {
delete it.id;
return it;
});
let customerCharList = subdata.map((it, i) => {
let key = "field" + i.toString();
it.fieldRealValue = values[key];
delete newfields[key];
return it;
});
let params = {
...newfields,
customerUserList,
customerCharList,
};
run({
url: "/ngic-auth/sysCustomer/save",
params: { ...params, ...difrid },
});
};
let extrarender = [
<Button
disabled={!getPrem("equipmentCustomer_save", "ifs")}
type="primary"
onClick={async () => {
let result = await tempfields(
"/ngic-auth/sysCustomerChar/queryCommonList",
{}
);
for (let i in defaultFields) {
defaultFields[i].value = null;
if (i == "customerUserList") {
defaultFields[i].value = [];
}
if (i == "status") {
defaultFields[i].value = 1;
}
}
for (let i in extrafields) {
extrafields[i].value = null;
if (extrafields[i]["multiple"] == true) {
extrafields[i].value = [];
}
}
dispatch({
type: "add",
fields: { ...defaultFields, ...result?.fields },
});
}}
>
新增
</Button>,
];
useAsyncEffect(async () => {
let result = await tempfields(
"/ngic-auth/sysCustomerChar/queryCommonList",
{ id: curitem.id }
);
await setextrafields(result?.fields);
await setsubdata(result?.data);
if (curitem.key == "edit") {
doFetch({
url: "/ngic-auth/sysCustomer/query/detail",
params: { id: curitem.id },
}).then((res) => {
if (res.code == "0000") {
let data = res?.data?.data || {};
for (let i in defaultFields) {
defaultFields[i].value = data[i];
}
dispatch({
type: "edit",
fields: { ...defaultFields, ...result?.fields },
});
}
});
}
}, [curitem]);
const [collapsed, setCollapsed] = useState(false);
return (
<div>
<Layout
style={{
minHeight: "100%",
}}
>
<Sider
theme="light"
collapsible
collapsed={collapsed}
onCollapse={(value) => setCollapsed(value)}
>
{/* <TreeRender /> */}
123
</Sider>
<Content>
<AutoTable
pagetitle={props.route.name} //页面标题
pageextra={extrarender} //页面操作 新增or批量删除
columns={columns}
path="/ngic-auth/sysCustomer/queryList"
actionRef={actionRef}
onRef={(node) => (ChildRef = node)}
></AutoTable>
</Content>
</Layout>
<Modal
maskClosable={false}
title={iftype.title}
visible={vs}
onCancel={() => dispatch({ type: "close" })}
footer={false}
destroyOnClose={true}
width={1000}
>
<InitForm
fields={fields}
submitData={(values) => {
saveData(values);
}}
onChange={(changedValues, allValues) => {
//联动操作
}}
submitting={loading || !vs}
></InitForm>
</Modal>
<Details
title="客户详情"
closable={true}
visible={visible}
onClose={() => dispatch({ type: "close" })}
destroyOnClose={true}
afterVisibleChange={(v) => {}}
width="100%"
className="drawerDetails"
{...details}
></Details>
</div>
);
};
export default Reservoir;
...@@ -119,7 +119,7 @@ const Jiagou = (props) => { ...@@ -119,7 +119,7 @@ const Jiagou = (props) => {
function extraAction(text, record, _, action) { function extraAction(text, record, _, action) {
let ifs = record.children; let ifs = record.children;
return [ return [
getPrem("sysDepartment_save", action, "新增", () => { getPrem("sysDepartment_save", action, "新增下级", () => {
for (let i in defaultFields) { for (let i in defaultFields) {
defaultFields[i].value = null; defaultFields[i].value = null;
} }
......
...@@ -43,7 +43,7 @@ export async function getMenu(params) { ...@@ -43,7 +43,7 @@ export async function getMenu(params) {
/*---------------菜单收藏-------------------*/ /*---------------菜单收藏-------------------*/
export async function collectPerms(params) { export async function collectPerms(params) {
return request(`/wms/ngic-auth/sysUserPermission/collectPerm`, { return request(`/srwms/ngic-auth/sysUserPermission/collectPerm`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
...@@ -51,14 +51,14 @@ export async function collectPerms(params) { ...@@ -51,14 +51,14 @@ export async function collectPerms(params) {
/*---------------取消菜单收藏-------------------*/ /*---------------取消菜单收藏-------------------*/
export async function cancelCollectPerms(params) { export async function cancelCollectPerms(params) {
return request(`/wms/ngic-auth/sysUserPermission/cancelCollectPerm`, { return request(`/srwms/ngic-auth/sysUserPermission/cancelCollectPerm`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
/*---------------菜单历史记录-------------------*/ /*---------------菜单历史记录-------------------*/
export async function mtosave(params) { export async function mtosave(params) {
return request(`/wms/ngic-auth/sysUserVisitPermission/save`, { return request(`/srwms/ngic-auth/sysUserVisitPermission/save`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
......
...@@ -2,21 +2,21 @@ import request from "@/utils/request"; ...@@ -2,21 +2,21 @@ import request from "@/utils/request";
//工厂下拉框 //工厂下拉框
export async function factorySelect(params) { export async function factorySelect(params) {
return request(`/wms/ngic-auth/sysFactory/selectionBox`, { return request(`/srwms/ngic-auth/sysFactory/selectionBox`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//查询个人所属工厂下拉框 //查询个人所属工厂下拉框
export async function factorySelectByuser(params) { export async function factorySelectByuser(params) {
return request(`/wms/ngic-auth/sysFactory/selectionBoxU`, { return request(`/srwms/ngic-auth/sysFactory/selectionBoxU`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//查询工厂下拉框---注册 //查询工厂下拉框---注册
export async function factorySelectRegister(params) { export async function factorySelectRegister(params) {
return request(`/wms/ngic-auth/sysFactory/selectionBoxAll`, { return request(`/srwms/ngic-auth/sysFactory/selectionBoxAll`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
...@@ -24,28 +24,28 @@ export async function factorySelectRegister(params) { ...@@ -24,28 +24,28 @@ export async function factorySelectRegister(params) {
//全部车间下拉框 //全部车间下拉框
export async function shopSelect(params) { export async function shopSelect(params) {
return request(`/wms/ngic-auth/sysShop/selectionBox`, { return request(`/srwms/ngic-auth/sysShop/selectionBox`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//仓库下拉 //仓库下拉
export async function storeselectionBoxAll(params) { export async function storeselectionBoxAll(params) {
return request(`/wms/ngic-auth/sysStore/selectionBox`, { return request(`/srwms/ngic-auth/sysStore/selectionBox`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//根据工厂id查询车间下拉 //根据工厂id查询车间下拉
export async function storeselectionBox(params) { export async function storeselectionBox(params) {
return request(`/wms/ngic-auth/sysStore/selectionBox`, { return request(`/srwms/ngic-auth/sysStore/selectionBox`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//全部组织下拉 //全部组织下拉
export async function allDepartment(params) { export async function allDepartment(params) {
return request(`/wms/ngic-auth/sysDepartment/query/selectbox/depart`, { return request(`/srwms/ngic-auth/sysDepartment/query/selectbox/depart`, {
method: 'POST', method: 'POST',
data: params, data: params,
}); });
...@@ -53,77 +53,77 @@ export async function allDepartment(params) { ...@@ -53,77 +53,77 @@ export async function allDepartment(params) {
//根据工厂id查询车间下拉 //根据工厂id查询车间下拉
export async function shopSelectByFactory(params) { export async function shopSelectByFactory(params) {
return request(`/wms/ngic-auth/sysShop/query/selectbox/factory`, { return request(`/srwms/ngic-auth/sysShop/query/selectbox/factory`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//根据车间id查询产线下拉 //根据车间id查询产线下拉
export async function productionLineSelectByShop(params) { export async function productionLineSelectByShop(params) {
return request(`/wms/ngic-auth/sysProductionLine/query/selectbox/shopId`, { return request(`/srwms/ngic-auth/sysProductionLine/query/selectbox/shopId`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//根据车间id集合查询产线下拉 //根据车间id集合查询产线下拉
export async function productionLineSelectByShops(params) { export async function productionLineSelectByShops(params) {
return request(`/wms/ngic-auth/sysProductionLine/query/selectbox/shopIds`, { return request(`/srwms/ngic-auth/sysProductionLine/query/selectbox/shopIds`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//根据车间id查询工段下拉 //根据车间id查询工段下拉
export async function sectionSelectByShop(params) { export async function sectionSelectByShop(params) {
return request(`/wms/ngic-auth/sysSection/query/selectbox/shopId`, { return request(`/srwms/ngic-auth/sysSection/query/selectbox/shopId`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//根据车间id集合查询工段下拉 //根据车间id集合查询工段下拉
export async function sectionSelectByShops(params) { export async function sectionSelectByShops(params) {
return request(`/wms/ngic-auth/sysSection/query/selectbox/shopIds`, { return request(`/srwms/ngic-auth/sysSection/query/selectbox/shopIds`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//授权前查询权限树 //授权前查询权限树
export async function roleTree(params) { export async function roleTree(params) {
return request(`/wms/ngic-auth/sysRolePermission/queryAll`, { return request(`/srwms/ngic-auth/sysRolePermission/queryAll`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//角色下权限数据 //角色下权限数据
export async function adminDataqueryAll(params) { export async function adminDataqueryAll(params) {
return request(`/wms/ngic-auth/sysRoleDataPermission/queryAll`, { return request(`/srwms/ngic-auth/sysRoleDataPermission/queryAll`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//不包含自己在内的全部用户下拉框 //不包含自己在内的全部用户下拉框
export async function userSelect(params) { export async function userSelect(params) {
return request(`/wms/ngic-auth/sysUser/queryParentSelectionByUserId`, { return request(`/srwms/ngic-auth/sysUser/queryParentSelectionByUserId`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//全部用户下拉框 //全部用户下拉框
export async function allUserSelect(params) { export async function allUserSelect(params) {
return request(`/wms/ngic-auth/sysUser/query/selectbox/company`, { return request(`/srwms/ngic-auth/sysUser/query/selectbox/company`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//根据工厂id查询树结构 //根据工厂id查询树结构
export async function departmentTree(params) { export async function departmentTree(params) {
return request(`/wms/ngic-auth/sysDepartment/query/tree`, { return request(`/srwms/ngic-auth/sysDepartment/query/tree`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//查询角色下拉框 //查询角色下拉框
export async function roleSelect(params) { export async function roleSelect(params) {
return request(`/wms/ngic-auth/sysRole/queryAllSelectList`, { return request(`/srwms/ngic-auth/sysRole/queryAllSelectList`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
...@@ -131,14 +131,14 @@ export async function roleSelect(params) { ...@@ -131,14 +131,14 @@ export async function roleSelect(params) {
//查询角色下拉框---注册 //查询角色下拉框---注册
export async function roleSelectRegister(params) { export async function roleSelectRegister(params) {
return request(`/wms/ngic-auth/sysRole/queryAllSelectByComId`, { return request(`/srwms/ngic-auth/sysRole/queryAllSelectByComId`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//查询全部编号类型下拉框(登录人公司) //查询全部编号类型下拉框(登录人公司)
export async function bmNoRule(params) { export async function bmNoRule(params) {
return request(`/wms/ngic-base-business/bmNoRule/querySelect`, { return request(`/srwms/ngic-base-business/bmNoRule/querySelect`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
...@@ -146,7 +146,7 @@ export async function bmNoRule(params) { ...@@ -146,7 +146,7 @@ export async function bmNoRule(params) {
//根据物料查询产线下拉框 //根据物料查询产线下拉框
export async function productionLineSelectByMaterieId(params) { export async function productionLineSelectByMaterieId(params) {
return request(`/wms/ngic-auth/sysProductionLine/query/selectbox/materieId`, { return request(`/srwms/ngic-auth/sysProductionLine/query/selectbox/materieId`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
...@@ -154,7 +154,7 @@ export async function productionLineSelectByMaterieId(params) { ...@@ -154,7 +154,7 @@ export async function productionLineSelectByMaterieId(params) {
//根据物料查询班组下拉框 //根据物料查询班组下拉框
export async function groupSelectByMaterieId(params) { export async function groupSelectByMaterieId(params) {
return request(`/wms/ngic-auth/sysGroup/query/selectbox/materieId`, { return request(`/srwms/ngic-auth/sysGroup/query/selectbox/materieId`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
...@@ -162,7 +162,7 @@ export async function groupSelectByMaterieId(params) { ...@@ -162,7 +162,7 @@ export async function groupSelectByMaterieId(params) {
//根据物料查询班次下拉框 //根据物料查询班次下拉框
export async function shiftSelectByMaterieId(params) { export async function shiftSelectByMaterieId(params) {
return request(`/wms/ngic-auth/sysShift/query/selectbox/materieId`, { return request(`/srwms/ngic-auth/sysShift/query/selectbox/materieId`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
...@@ -170,21 +170,21 @@ export async function shiftSelectByMaterieId(params) { ...@@ -170,21 +170,21 @@ export async function shiftSelectByMaterieId(params) {
//根据车间id查询班次下拉框 //根据车间id查询班次下拉框
export async function shiftSelectByShopId(params) { export async function shiftSelectByShopId(params) {
return request(`/wms/ngic-auth/sysShift/query/selectbox/shopId`, { return request(`/srwms/ngic-auth/sysShift/query/selectbox/shopId`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
} }
//角色下拉框 //角色下拉框
export async function roleList(params) { export async function roleList(params) {
return request(`/wms/ngic-auth/sysRole/queryAllSelectList`, { return request(`/srwms/ngic-auth/sysRole/queryAllSelectList`, {
method: 'POST', method: 'POST',
data: params, data: params,
}); });
} }
//集团下拉框 //集团下拉框
export async function factory(params) { export async function factory(params) {
return request(`/wms/ngic-auth/sysDepartment/query/selectbox/factory`, { return request(`/srwms/ngic-auth/sysDepartment/query/selectbox/factory`, {
method: 'POST', method: 'POST',
data: params, data: params,
}); });
...@@ -193,21 +193,21 @@ export async function factory(params) { ...@@ -193,21 +193,21 @@ export async function factory(params) {
// 4 : // 4 :
//集团下拉框 //集团下拉框
export async function zuzhi(params) { export async function zuzhi(params) {
return request(`/wms/ngic-auth/sysDepartment/query/tree`, { return request(`/srwms/ngic-auth/sysDepartment/query/tree`, {
method: 'POST', method: 'POST',
data: params, data: params,
}); });
} }
//集团下拉框 //集团下拉框
export async function depart(params) { export async function depart(params) {
return request(`/wms/ngic-auth/sysDepartment/query/selectbox/depart`, { return request(`/srwms/ngic-auth/sysDepartment/query/selectbox/depart`, {
method: 'POST', method: 'POST',
data: params, data: params,
}); });
} }
//集团下拉框 //集团下拉框
export async function selectionBoxAll(params) { export async function selectionBoxAll(params) {
return request(`/wms/ngic-auth/sysStore/selectionBoxAll`, { return request(`/srwms/ngic-auth/sysStore/selectionBoxAll`, {
method: 'POST', method: 'POST',
data: params, data: params,
}); });
...@@ -216,21 +216,21 @@ export async function selectionBoxAll(params) { ...@@ -216,21 +216,21 @@ export async function selectionBoxAll(params) {
//下拉框---当前公司下 //下拉框---当前公司下
export async function currentUserList(params) { export async function currentUserList(params) {
return request(`/wms/ngic-auth/sysUser/query/selectbox/current/company`, { return request(`/srwms/ngic-auth/sysUser/query/selectbox/current/company`, {
method: 'POST', method: 'POST',
data: params, data: params,
}); });
} }
//当前公司所有工厂下拉 //当前公司所有工厂下拉
export async function allShop(params) { export async function allShop(params) {
return request(`/wms/ngic-auth/sysShop/query/selectbox/current/company`, { return request(`/srwms/ngic-auth/sysShop/query/selectbox/current/company`, {
method: 'POST', method: 'POST',
data: params, data: params,
}); });
} }
//当前公司所有车间下拉 //当前公司所有车间下拉
export async function allSection(params) { export async function allSection(params) {
return request(`/wms/ngic-auth/sysSection/query/selectbox`, { return request(`/srwms/ngic-auth/sysSection/query/selectbox`, {
method: 'POST', method: 'POST',
data: params, data: params,
}); });
...@@ -238,7 +238,7 @@ export async function allSection(params) { ...@@ -238,7 +238,7 @@ export async function allSection(params) {
//查询全部编号类型下拉框(登录人公司) //查询全部编号类型下拉框(登录人公司)
export async function bmNoTypeadd(params) { export async function bmNoTypeadd(params) {
return request(`/wms/ngic-base-business/bmNoType/querySelect`, { return request(`/srwms/ngic-base-business/bmNoType/querySelect`, {
method: 'POST', method: 'POST',
data: params, data: params,
}); });
...@@ -246,7 +246,7 @@ export async function bmNoTypeadd(params) { ...@@ -246,7 +246,7 @@ export async function bmNoTypeadd(params) {
//查询全部编号类型下拉框(登录人公司) //查询全部编号类型下拉框(登录人公司)
export async function bmNoType(params) { export async function bmNoType(params) {
return request(`/wms/ngic-base-business/bmNoType/queryAllSelect`, { return request(`/srwms/ngic-base-business/bmNoType/queryAllSelect`, {
method: 'POST', method: 'POST',
data: params, data: params,
}); });
......
...@@ -11,7 +11,7 @@ export async function doFetch({ url, params }) { ...@@ -11,7 +11,7 @@ export async function doFetch({ url, params }) {
if(!url){ if(!url){
return return
} }
return request("/wms" + url, { return request("/srwms" + url, {
method: "POST", method: "POST",
data: params, data: params,
}); });
......
import src from "../../public/ewm.png"; import src from "../../public/ewm.png";
export const str = `<table import srcc from "../../public/1.png";
border="1" // export const str = `<table
width="100%" // border="1"
height="100%" // width="100%"
style="border-collapse: collapse; border: solid 1px" // height="100%"
bordercolor="#000000" // style="border-collapse: collapse; border: solid 1px"
cellpadding="0" // bordercolor="#000000"
> // cellpadding="0"
<tr> // >
<td colspan="8">卷料名称:剪切后硅钢片</td> // <tr>
</tr> // <td colspan="8">卷料名称:剪切后硅钢片</td>
<tr> // </tr>
<td colspan="8">卷料编码:PDC010100093</td> // <tr>
</tr> // <td colspan="8">卷料编码:PDC010100093</td>
<tr> // </tr>
<td colspan="4">牌号:070片</td> // <tr>
<td colspan="4">母卷编号:20SQC</td> // <td colspan="4">牌号:070片</td>
</tr> // <td colspan="4">母卷编号:20SQC</td>
<tr> // </tr>
<td colspan="4">厂家:江苏南高</td> // <tr>
<td colspan="4">母卷重量:100KG</td> // <td colspan="4">厂家:江苏南高</td>
</tr> // <td colspan="4">母卷重量:100KG</td>
<tr> // </tr>
<td colspan="8">单边卷料厚度:200mm</td> // <tr>
</tr> // <td colspan="8">单边卷料厚度:200mm</td>
<tr> // </tr>
<td colspan="2" rowspan="3"> // <tr>
<img src=${src} style="width:50px"/> // <td colspan="2" rowspan="3">
</td> // <img src=${src} style="width:50px"/>
<td colspan="3">铁损:0.68w/kg</td> // </td>
<td colspan="3">批次:20230412</td> // <td colspan="3">铁损:0.68w/kg</td>
</tr> // <td colspan="3">批次:20230412</td>
<tr> // </tr>
<td colspan="3">宽度:188mm</td> // <tr>
<td colspan="3">片厚:0.2mm</td> // <td colspan="3">宽度:188mm</td>
</tr> // <td colspan="3">片厚:0.2mm</td>
<tr> // </tr>
<td colspan="3">重量:631KG</td> // <tr>
<td colspan="3">米数:2292M</td> // <td colspan="3">重量:631KG</td>
</tr> // <td colspan="3">米数:2292M</td>
<tr> // </tr>
<td colspan="8">条码:1BR157846039401296</td> // <tr>
</tr> // <td colspan="8">条码:1BR157846039401296</td>
</table>`; // </tr>
// </table>`;
export const str = `<img src=${srcc}/>`
\ No newline at end of file
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