Commit 145f9b29 authored by 左玲玲's avatar 左玲玲 😬

1711

parent ca9e3cf5
...@@ -432,7 +432,7 @@ ol { ...@@ -432,7 +432,7 @@ ol {
width: 5px; width: 5px;
/*高宽分别对应横竖滚动条的尺寸*/ /*高宽分别对应横竖滚动条的尺寸*/
height: 5px; height: 8px;
} }
......
...@@ -159,7 +159,7 @@ const Devicedata = () => { ...@@ -159,7 +159,7 @@ const Devicedata = () => {
</div> </div>
<div className={styles.ledgercontent}> <div className={styles.ledgercontent}>
<div className={`${styles.ledgerleft} boxcontianbox`}> <div className={`${styles.ledgerleft} boxcontianbox`}>
<TreeRender url="/auth/sysFactory/getTree" onselected={onselecteTree} noaction={true} maxWidth={215} /> <TreeRender url="/auth/sysFactory/getFactoryTree" onselected={onselecteTree} noaction={true} maxWidth={215} />
</div> </div>
<div className={`${styles.ledgerright} ledgerf boxcontianbox`}> <div className={`${styles.ledgerright} ledgerf boxcontianbox`}>
<Tabs destroyInactiveTabPane activeKey={activeKey} onChange={(key) => { <Tabs destroyInactiveTabPane activeKey={activeKey} onChange={(key) => {
......
...@@ -139,7 +139,7 @@ function getcolumns(setdrawer) { ...@@ -139,7 +139,7 @@ function getcolumns(setdrawer) {
hideInTable: true, hideInTable: true,
hideInDescriptions: true, hideInDescriptions: true,
colProps: { span: 8 }, colProps: { span: 8 },
options: { path: '/auth/sysFactory/getAllFactorySelection', params: {} }, options: { path: '/auth/sysFactory/getFactorySelectBox', params: {} },
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] }, formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
fieldProps: { fieldProps: {
disabled: true disabled: true
...@@ -150,7 +150,7 @@ function getcolumns(setdrawer) { ...@@ -150,7 +150,7 @@ function getcolumns(setdrawer) {
dataIndex: 'factoryName', dataIndex: 'factoryName',
key: 'factoryId', key: 'factoryId',
valueType: 'select', valueType: 'select',
options: { path: '/auth/sysFactory/getAllFactorySelection', params: {} }, options: { path: '/auth/sysFactory/getFactorySelectBox', params: {} },
hideInForm: true, hideInForm: true,
colProps: { span: 8 }, colProps: { span: 8 },
fieldProps: { fieldProps: {
...@@ -165,7 +165,7 @@ function getcolumns(setdrawer) { ...@@ -165,7 +165,7 @@ function getcolumns(setdrawer) {
hideInSearch: true, hideInSearch: true,
hideInTable: true, hideInTable: true,
valueType: 'select', valueType: 'select',
options: { path: '/auth/sysShop/getShopSelectionByFactory', linkParams: { factoryId: '' } }, options: { path: '/auth/sysShop/getShopSelectBox', linkParams: { factoryId: '' } },
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] }, formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
colProps: { span: 8 }, colProps: { span: 8 },
fieldProps: { fieldProps: {
...@@ -181,7 +181,7 @@ function getcolumns(setdrawer) { ...@@ -181,7 +181,7 @@ function getcolumns(setdrawer) {
hideInTable: true, hideInTable: true,
valueType: 'select', valueType: 'select',
options: { options: {
path: '/auth/sysSection/getAllSectionSelectionByShop', path: '/auth/sysSection/getSectionSelectBox',
linkParams: { shopId: '' }, linkParams: { shopId: '' },
}, },
colProps: { span: 8 } colProps: { span: 8 }
...@@ -194,7 +194,7 @@ function getcolumns(setdrawer) { ...@@ -194,7 +194,7 @@ function getcolumns(setdrawer) {
hideInSearch: true, hideInSearch: true,
hideInTable: true, hideInTable: true,
options: { options: {
path: '/auth/sysProductionLine/getAllProductLineSelectionByShop', path: '/auth/sysProductionLine/getProductLineSelectBox',
linkParams: { shopId: '' }, linkParams: { shopId: '' },
}, },
colProps: { span: 8 } colProps: { span: 8 }
......
...@@ -342,7 +342,7 @@ const Ledger = () => { ...@@ -342,7 +342,7 @@ const Ledger = () => {
</div> </div>
<div className={styles.ledgercontent}> <div className={styles.ledgercontent}>
<div className={`${styles.ledgerleft} boxcontianbox`}> <div className={`${styles.ledgerleft} boxcontianbox`}>
<TreeRender url="/auth/sysFactory/getTree" onselected={onselecteTree} noaction={true} maxWidth={215} /> <TreeRender url="/auth/sysFactory/getFactoryTree" onselected={onselecteTree} noaction={true} maxWidth={215} />
</div> </div>
<div className={`${styles.ledgerright} boxcontianbox`}> <div className={`${styles.ledgerright} boxcontianbox`}>
<AutoTable <AutoTable
......
...@@ -291,6 +291,34 @@ function getcolumns(setDrawer, ifs, formRef, isLease) { ...@@ -291,6 +291,34 @@ function getcolumns(setDrawer, ifs, formRef, isLease) {
hideInForm: true, hideInForm: true,
hideInTable: true, hideInTable: true,
}, },
{
title: '负责工厂',
dataIndex: 'factoryNames',
key: 'factoryIdList',
fieldProps: {
placeholder: '请选择',
showSearch: true,
mode: 'multiple',
disabled: true
},
width: 120,
valueType: 'select',
options: {
linkParams: {
customerId: 'id',
},
path: '/lease/umLeaseCustomer/getFactorySelectionByCustomerId'
},
showAll: true,
hideInTable: true,
hideInSearch: true,
hideInDescriptions: true,
hideInForm: {
customerType: {
reverse: [2],
},
},
},
{ {
title: '负责工厂', title: '负责工厂',
dataIndex: 'factoryNames', dataIndex: 'factoryNames',
...@@ -305,7 +333,12 @@ function getcolumns(setDrawer, ifs, formRef, isLease) { ...@@ -305,7 +333,12 @@ function getcolumns(setDrawer, ifs, formRef, isLease) {
searchKey: 'factoryNames', searchKey: 'factoryNames',
searchValueType: 'input', searchValueType: 'input',
options: { path: '/auth/sysFactory/getAllFactorySelection', params: {} }, options: { path: '/auth/sysFactory/getAllFactorySelection', params: {} },
showAll: true showAll: true,
hideInForm: {
customerType: {
reverse: [1],
},
},
}, },
{ {
title: '负责车间', title: '负责车间',
......
...@@ -155,8 +155,19 @@ function User(props) { ...@@ -155,8 +155,19 @@ function User(props) {
} }
}); });
} }
if (i == 'customerId') {
console.log(changedValues[i]);
doFetch({ url: '/lease/umLeaseCustomer/getFactorySelectionByCustomerId', params: { id: changedValues[i] } }).then(res => {
if (res.code == '0000') {
setDrawer((s) => ({
...s,
item: { ...(s?.item ?? {}), factoryIdList: res?.data?.dataList?.map(it => it.value) ?? [] }
}));
formRef?.current?.setFieldsValue({ factoryIdList: res?.data?.dataList?.map(it => it.value) ?? [] });
}
})
}
} }
} }
function selectType(type) { function selectType(type) {
switch (type) { switch (type) {
...@@ -301,6 +312,7 @@ function User(props) { ...@@ -301,6 +312,7 @@ function User(props) {
/> />
<DrawerPro <DrawerPro
{...drawer}
fields={columns} fields={columns}
// detailpath={urlParams.detail} // detailpath={urlParams.detail}
// params={{ id: drawer?.item?.id }} // params={{ id: drawer?.item?.id }}
...@@ -313,7 +325,6 @@ function User(props) { ...@@ -313,7 +325,6 @@ function User(props) {
visible: false, visible: false,
})); }));
}} }}
{...drawer}
> >
{selectType(drawer?.type)} {selectType(drawer?.type)}
</DrawerPro> </DrawerPro>
......
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