Commit 23d0e4a2 by 乔延琦

Merge branch 'develop-yuancheng' into 'develop'

Develop yuancheng

See merge request GFP/RBC/rbc-frontend!34
parents 4d6860db c17a68c8
...@@ -246,7 +246,8 @@ export default { ...@@ -246,7 +246,8 @@ export default {
const listRes = await this.getBaseData(postData) const listRes = await this.getBaseData(postData)
const { rows } = listRes.data const { rows } = listRes.data
// 过滤叶子节点,list接口不返回叶子节点标识,离谱 // 过滤叶子节点,list接口不返回叶子节点标识,离谱
if (this.isLeaf) { // 分组列表类型基础数据请求出来的数据不需要过滤叶子节点
if (this.isLeaf && this.structtype !== 1) {
this.baseDataList = rows.filter((item) => { this.baseDataList = rows.filter((item) => {
return this.treeDataMap[item.code] return this.treeDataMap[item.code]
}) })
......
...@@ -10,19 +10,19 @@ export default { ...@@ -10,19 +10,19 @@ export default {
}, },
}, },
}, },
watch: { // watch: {
value: { // value: {
handler: function (newVal) { // handler: function (newVal) {
if (newVal) { // if (newVal) {
this.init(newVal) // this.init(newVal)
} else { // } else {
this.selection = [] // this.selection = []
this.sendEvent(null) // this.sendEvent(null)
} // }
}, // },
deep: true, // deep: true,
}, // },
}, // },
methods: { methods: {
init(value) { init(value) {
......
...@@ -1157,7 +1157,7 @@ export default { ...@@ -1157,7 +1157,7 @@ export default {
"title": "财务_查询草稿[CW_draftSearchAction]", "title": "财务_查询草稿[CW_draftSearchAction]",
"value": "draftSearchAction", "value": "draftSearchAction",
"btnDisable": "false", "btnDisable": "false",
"btnDisable": "billReadOnly;90;91;92" "btnDisable": "billReadOnly;1;90;91;92"
}, { }, {
"discard": false, "discard": false,
"path": "单据/复制单据", "path": "单据/复制单据",
...@@ -1354,7 +1354,7 @@ export default { ...@@ -1354,7 +1354,7 @@ export default {
"description": "", "description": "",
"title": "财务_暂存[CW_tempSave]", "title": "财务_暂存[CW_tempSave]",
"value": "CW_tempSave", "value": "CW_tempSave",
"btnDisable": "billReadOnly;90;91;92" "btnDisable": "billReadOnly;1;90;91;92"
}, },
{ {
"discard": false, "discard": false,
...@@ -1367,7 +1367,7 @@ export default { ...@@ -1367,7 +1367,7 @@ export default {
"description": "", "description": "",
"title": "财务_保存[CW_saveAction]", "title": "财务_保存[CW_saveAction]",
"value": "CW_saveAction", "value": "CW_saveAction",
"btnDisable": "billReadOnly;90;92" "btnDisable": "billReadOnly;1;90;92"
}, },
{ {
"discard": false, "discard": false,
...@@ -1477,7 +1477,7 @@ export default { ...@@ -1477,7 +1477,7 @@ export default {
"description": "", "description": "",
"title": "财务_提交[CW_submitAction]", "title": "财务_提交[CW_submitAction]",
"value": "CW_submitAction", "value": "CW_submitAction",
"btnDisable": "billEdit;90;92" "btnDisable": "billEdit;1;90;92"
}, },
{ {
"discard": false, "discard": false,
......
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
c.init = true; c.init = true;
c.modal_visible = true; c.modal_visible = true;
c.isReadOnly = true; c.isReadOnly = true;
c.state = 'readOnly'
}); });
} }
}, },
......
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