Commit 8c356db4 authored by 左玲玲's avatar 左玲玲 😬

1416

parent bd0f0279
...@@ -174,7 +174,7 @@ export default [ ...@@ -174,7 +174,7 @@ export default [
}, },
{ {
path: "/platform/rule", path: "/platform/norule",
name: "编号规则", name: "编号规则",
component: "./platform/Rule", component: "./platform/Rule",
}, },
......
...@@ -557,9 +557,6 @@ let InitForm = ({ ...@@ -557,9 +557,6 @@ let InitForm = ({
// formartSubmit(values); // formartSubmit(values);
}} }}
onValuesChange={(changedValues, values) => { onValuesChange={(changedValues, values) => {
console.log('====================================')
console.log(changedValues)
console.log('====================================')
let newvalue = {}; let newvalue = {};
let linkkey = Object.keys(changedValues)[0]; let linkkey = Object.keys(changedValues)[0];
//联动逻辑 //联动逻辑
......
...@@ -79,20 +79,17 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max ...@@ -79,20 +79,17 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max
</span> </span>
</Tooltip> </Tooltip>
) : ( ) : (
<Tooltip title={item.title} placement="bottom"> <Tooltip title={item.title} placement="bottom">
<span style={{ display: "inline-block", maxWidth: maxWidth ?? 88, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>{item.title}</span> <span style={{ display: "inline-block", maxWidth: maxWidth ?? 88, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>{item.title}</span>
</Tooltip> </Tooltip>
); );
const actiontitle = ( const actiontitle = (
<div style={{ display: "flex", alignItems: "center", justifyContent: "space-between" }}> <div style={{ display: "flex", alignItems: "center", justifyContent: "space-between" }}>
{title} {title}
<div> <div>
{ {
item.key != "0" && <Divider type='vertical' style={{ margin: "0 6px" }}></Divider> item.key && item.key != "0" && <Tooltip title="编辑" onClick={(e) => {
}
{
item.key != "0" && <Tooltip title="编辑" onClick={(e) => {
e.stopPropagation(); e.stopPropagation();
setsavetitle(null) setsavetitle(null)
if (getPrem("enElectricityMeterType_save", "ifs")) { if (getPrem("enElectricityMeterType_save", "ifs")) {
...@@ -110,8 +107,9 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max ...@@ -110,8 +107,9 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max
<FormOutlined style={{ color: "#1890ff" }} /> <FormOutlined style={{ color: "#1890ff" }} />
</Tooltip> </Tooltip>
} }
{
<Divider type='vertical' style={{ margin: "0 6px" }}></Divider> item.key && <Divider type='vertical' style={{ margin: "0 6px" }}></Divider>
}
<Tooltip title="新增"> <Tooltip title="新增">
<PlusSquareOutlined <PlusSquareOutlined
disabled={!getPrem("enElectricityMeterType_save", "ifs")} disabled={!getPrem("enElectricityMeterType_save", "ifs")}
...@@ -158,10 +156,10 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max ...@@ -158,10 +156,10 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max
</Tooltip> </Tooltip>
</Popconfirm> </Popconfirm>
} }
{ {/* {
item.key === "" && <Divider type='vertical' style={{ margin: "0 6px" }}></Divider> item.key === "" && <Divider type='vertical' style={{ margin: "0 6px" }}></Divider>
} } */}
{ {/* {
item.key === "" && <Tooltip title={expandall ? "收起" : "展开"} onClick={(e) => { item.key === "" && <Tooltip title={expandall ? "收起" : "展开"} onClick={(e) => {
e.stopPropagation(); e.stopPropagation();
setexpandall(!expandall) setexpandall(!expandall)
...@@ -169,7 +167,7 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max ...@@ -169,7 +167,7 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max
}}> }}>
{expandall ? <ArrowDownOutlined /> : <ArrowRightOutlined />} {expandall ? <ArrowDownOutlined /> : <ArrowRightOutlined />}
</Tooltip> </Tooltip>
} } */}
</div> </div>
</div> </div>
...@@ -221,7 +219,6 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max ...@@ -221,7 +219,6 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max
if (modal.okText == "修改") { if (modal.okText == "修改") {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (savetitle) { if (savetitle) {
console.log(ref1.current);
doFetch({ doFetch({
url: saveurl, url: saveurl,
params: { params: {
...@@ -299,7 +296,6 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max ...@@ -299,7 +296,6 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max
defaultExpandAll={true} defaultExpandAll={true}
expandedKeys={expandedKeys} expandedKeys={expandedKeys}
onExpand={(expandedKeys) => { onExpand={(expandedKeys) => {
console.log(expandedKeys);
onExpand(expandedKeys) onExpand(expandedKeys)
}} }}
> >
......
import { bmNoType } from "@/services/platform"; import { bmNoTypeadd } from "@/services/system"
export default { export default {
noTypeId: { "noTypeId": {
value: null, "value": null,
type: "select", "type": "select",
title: "单号类型", "title": "单号类型",
name: ["noTypeId"], "name": [
required: true, "noTypeId"
options: { ],
database: bmNoType, "required": true,
params: {}, "options": {
}, database: bmNoTypeadd,
col: { span: 12 }, params: {}
}, },
noSunName: { "col": { span: 24 },
value: null, },
type: "input", "nrList": {
title: "编号子类", "value": { value: [], other: {} },
name: ["noSunName"], "type": "diyrule",
required: true, "title": "规则配置",
col: { span: 12 }, "name": [
}, "nrList"
nrList: { ],
value: { value: [], other: {} }, "col": { span: 24 },
type: "diyrule", "required": true
title: "规则配置", }
name: ["nrList"], }
col: { span: 24 }, \ No newline at end of file
required: true,
},
};
This diff is collapsed.
...@@ -33,7 +33,7 @@ let SendList = (props) => { ...@@ -33,7 +33,7 @@ let SendList = (props) => {
"title": "推送方式", "title": "推送方式",
"dataIndex": "sendMethodName", "dataIndex": "sendMethodName",
"key": "sendMethodName", "key": "sendMethodName",
search:false search: false
}, },
{ {
"title": "推送内容", "title": "推送内容",
...@@ -127,23 +127,16 @@ let SendList = (props) => { ...@@ -127,23 +127,16 @@ let SendList = (props) => {
actionRef={actionRef} actionRef={actionRef}
path="/ngic-base-business/paMsgSendRecord/queryList" path="/ngic-base-business/paMsgSendRecord/queryList"
></AutoTable> ></AutoTable>
<Drawer <Details
title={details.totalTitle} title={details.totalTitle}
closable={true} closable={true}
visible={details.visible} visible={details.visible}
onClose={() => { cdetails({ ...details, visible: false }) }} onClose={() => { cdetails({ ...details, visible: false }) }}
destroyOnClose={true}
afterVisibleChange={(v) => {
cdetails({
...details,
shown: v
})
}}
width="100%" width="100%"
className="drawerDetails" className="drawerDetails"
{...details}
> >
{details.shown && <Details {...details}></Details>} </Details>
</Drawer>
</div> </div>
) )
} }
......
...@@ -7,7 +7,7 @@ import InitForm from '@/components/InitForm'; ...@@ -7,7 +7,7 @@ import InitForm from '@/components/InitForm';
import { doFetch } from '@/utils/doFetch'; import { doFetch } from '@/utils/doFetch';
import { tableField } from "./fields"; import { tableField } from "./fields";
import moment from "moment"; import moment from "moment";
import { factory, allDepartment, allShop, depart, selectionBoxAll,roleList, currentUserList } from "@/services/system"; import { factorySelect,factory, allDepartment, allShop, depart, selectionBoxAll,roleList, currentUserList } from "@/services/system";
const { TextArea } = Input, const { TextArea } = Input,
{ Paragraph } = Typography; { Paragraph } = Typography;
...@@ -513,10 +513,10 @@ const Formpage = (props) => { ...@@ -513,10 +513,10 @@ const Formpage = (props) => {
let database; let database;
switch (val) { switch (val) {
case 2: case 2:
database = factory database = factorySelect
break; break;
case 3: case 3:
database = depart database = factory
break; break;
case 4: case 4:
database = selectionBoxAll database = selectionBoxAll
......
...@@ -25,11 +25,12 @@ export default { ...@@ -25,11 +25,12 @@ export default {
}, },
"description": { "description": {
"value": null, "value": null,
"type": "input", "type": "textarea",
"title": "描述", "title": "描述",
"name": [ "name": [
"description" "description"
], ],
"required": true "required": false,
col:{span:24}
} }
}; };
...@@ -228,4 +228,20 @@ export async function allSection(params) { ...@@ -228,4 +228,20 @@ export async function allSection(params) {
method: 'POST', method: 'POST',
data: params, data: params,
}); });
}
//查询全部编号类型下拉框(登录人公司)
export async function bmNoTypeadd(params) {
return request(`/wms/ngic-base-business/bmNoType/querySelect`, {
method: 'POST',
data: params,
});
}
//查询全部编号类型下拉框(登录人公司)
export async function bmNoType(params) {
return request(`/wms/ngic-base-business/bmNoType/queryAllSelect`, {
method: 'POST',
data: params,
});
} }
\ 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