Commit 835fb822 authored by wuhao's avatar wuhao 🎯

asder

parent d6e35f85
......@@ -11,7 +11,7 @@ export default {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
"/wms/": {
// 要代理的地址
target: "http://192.168.40.18:18040/", //39:18040 23/wms/ //60 翔
target: "http://192.168.40.212:18040/", //39:18040 23/wms/ //60 翔
changeOrigin: true,
pathRewrite: {
"^/wms": "",
......
......@@ -322,4 +322,7 @@ table {
}
.ant-pro-table-list-toolbar{
overflow: hidden !important;
}
.ant-select-selector{
overflow: hidden !important;
}
\ No newline at end of file
......@@ -7,6 +7,7 @@ import {
departmentTree,
roleSelect,
} from "@/services/system";
import { doFetch } from "@/utils/doFetch";
export default {
accountName: {
value: null,
......@@ -53,7 +54,7 @@ export default {
linked: true,
multiple: true,
},
storeIdList: {
value: null,
type: "select",
......@@ -62,12 +63,12 @@ export default {
required: false,
belinked: {
options: {
database: storeselectionBox,
params: {
},
database: (params) => doFetch({ url: "/ngic-auth/sysStore/selectionBox", params: { ...params } }),
params: {
factoryIdList: "linked"
}
},
},
linked: true,
multiple: true,
},
roleIdList: {
......
......@@ -284,6 +284,12 @@ const Login = () => {
</Button>
}
}}
onValuesChange={async (values) => {
if (Object.keys(values)[0] == "factoryIdList") {
formRef.current.setFieldsValue({ storeIdList: [] });
}
}}
title={<span style={{ color: "#fff" }}>WMS</span>}
subTitle={
<span style={{ color: "rgba(255,255,255,0.6)" }}>
......@@ -453,38 +459,21 @@ const Login = () => {
]}
/>
</Col>
<Col span={8}>
<ProFormSelect
fieldProps={{
mode: "multiple",
maxTagCount: 1
}}
name="storeIdList"
label={<b>负责仓库</b>}
placeholder={"请选择负责仓库"}
request={async () => {
let res = await storeselectionBoxAll({});
return res?.data?.dataList ?? []
}}
rules={[
{
required: false,
message: "请选择负责仓库!",
}
]}
/>
{/* <ProFormDependency name={["factoryId"]}>
<ProFormDependency name={["factoryIdList"]}>
{
({ factoryId }) => {
({ factoryIdList }) => {
return <ProFormSelect
fieldProps={{
mode: "multiple",
maxTagCount: 1,
}}
name="storeIdList"
label={<b>负责仓库</b>}
placeholder={"请选择负责仓库"}
params={{ factoryId }}
params={{ factoryIdList }}
request={async (params) => {
let res = await storeselectionBoxAll({});
let res = await storeselectionBoxAll(params);
return res?.data?.dataList ?? []
}}
rules={[
......@@ -498,8 +487,7 @@ const Login = () => {
}
</ProFormDependency> */}
</ProFormDependency>
</Col>
<Col span={8}>
......
......@@ -31,7 +31,7 @@ export async function shopSelect(params) {
}
//仓库下拉
export async function storeselectionBoxAll(params) {
return request(`/wms/ngic-auth/sysStore/selectionBoxAll`, {
return request(`/wms/ngic-auth/sysStore/selectionBox`, {
method: "POST",
data: params,
});
......
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