Commit 1c941cf1 authored by 仇晓婷's avatar 仇晓婷

物料流程加启用禁用判断

parent fdf5d990
......@@ -86,7 +86,7 @@ export default {
arr: [],
entity: {
code: 0,
status: 0,
status: this.nodeInfo.status == 1 ? 3 : 0, //status==1的时候,保存物料直接传status=3
version: 0,
codeRuleId: this.nodeInfo.codeRuleId,
categoryId: this.nodeInfo.categoryId, //左侧树点击的id
......
......@@ -32,4 +32,7 @@ export default {
batchstart(params) {
return Api.post(`${workflowUrl}/instance/batchstart`, params); //送审
},
getSchema(params) {
return Api.get(`${workflowUrl}/schema/get`, params); //流程
},
}
\ No newline at end of file
......@@ -184,13 +184,17 @@ export default {
attrs: { oprate: "edit" },
on: { click: () => this.send(params.row) }
},
params.row.status == 0 || params.row.status == 1 ? "送审" : ""
(params.row.status == 0 || params.row.status == 1) &&
status == 0
? "送审"
: ""
)
]);
}
}
], //基础咧
cols: [] //
cols: [], //
status: null
};
},
async fetch({ store, params }) {
......@@ -203,6 +207,12 @@ export default {
} else {
this.initCols();
}
Api.getSchema({
id: "b6303ddc-8b5e-40a3-a51b-294657d1d913"
}).then(r => {
this.status = r.result.status; //status为0的话为启用,有送审,为1的话,流程是禁用的,没有送审按钮
this.nodeInfo.status = this.status;
});
},
mounted() {
window.onresize = () => {
......
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