371ab015 by 田浩浩

增加登簿功能

1 parent 49adeb62
......@@ -215,6 +215,7 @@ export default {
},
methods: {
list (bsmSldy) {
debugger;
var formdata = new FormData();
formdata.append("bsmSldy", bsmSldy);
Init(formdata).then((res) => {
......
......@@ -58,13 +58,24 @@
<p class="splitScreen tabsList-title">材料信息</p>
<div class="splitScreen"></div>
</div>
<div style="width:100%">
<el-tabs v-model="activeName" @tab-click='activeClick'>
<el-tab-pane :label="item.name" :name="item.value" v-for="(item, index) in tabList" :key="index">
<div style="width: 100%">
<el-tabs v-model="activeName" @tab-click="activeClick">
<el-tab-pane
:label="item.name"
:name="item.value"
v-for="(item, index) in tabList"
:key="index"
>
</el-tab-pane>
</el-tabs>
<div class="splitScreen-con">
<component ref='slxx' v-if="activeName == 'slsq'" :is="editItem" :flag="flag" :key="key" />
<component
ref="slxx"
v-if="activeName == 'slsq'"
:is="editItem"
:flag="flag"
:key="key"
/>
<component :is="editItem" :key="key" />
</div>
</div>
......@@ -117,11 +128,11 @@ export default {
},
watch: {
activeName: {
handler (newName, oldName) {
if (newName === 'qlxx') {
this.editItem = this.loadViewSlsq()
handler(newName, oldName) {
if (newName === "qlxx") {
this.editItem = this.loadViewSlsq();
} else {
this.editItem = this.loadView(newName)
this.editItem = this.loadView(newName);
}
},
immediate: true,
......@@ -142,13 +153,13 @@ export default {
that.id = id;
var formdata = new FormData();
formdata.append("bsmSlsq", id);
leftMenu(formdata).then(res => {
leftMenu(formdata).then((res) => {
if (res.code === 200) {
this.unitData = res.result ? res.result : [];
setTimeout(() => {
that.$refs.slxx?.[0].list(that.unitData?.[0]?.bsmSldy)
this.taskId = that.unitData?.[0]?.taskId
this.bsmBusiness = that.unitData?.[0]?.bsmBusiness
that.$refs.slxx?.[0].list(that.unitData?.[0]?.bsmSldy);
this.taskId = that.unitData?.[0]?.taskId;
this.bsmBusiness = that.unitData?.[0]?.bsmBusiness;
}, 300);
}
});
......@@ -161,8 +172,8 @@ export default {
formdata.append("bestepid", bestepid);
stepExpandInfo(formdata).then((res) => {
if (res.code === 200) {
this.tabList1 = [...res.result.form]
this.tabList = res.result.form
this.tabList1 = [...res.result.form];
this.tabList = res.result.form;
this.headerleftList = res.result.button;
this.headerRightList = res.result.operation;
}
......@@ -209,15 +220,33 @@ export default {
case "tc":
window.close();
break;
case "db":
// comMsg;
case "db":
var formdata = new FormData();
formdata.append("bsmSlsq", this.$route.query.bsmSlsq);
formdata.append("bestepid", this.$route.query.bestepid);
record(formdata).then((res) => {
if (res.code === 200) {
}
});
// comMsg;
this.$confirm("请确认是否登簿", "提示", {
iconClass: "el-icon-question", //自定义图标样式
confirmButtonText: "确认", //确认按钮文字更换
cancelButtonText: "取消", //取消按钮文字更换
showClose: true, //是否显示右上角关闭按钮
type: "warning", //提示类型 success/info/warning/error
})
.then(function () {
record(formdata).then((res) => {
debugger;
if (res.code === 200 || res.code === 2002) {
this.$alert(res.message);
}
});
})
.then((data) => {
this.$alert("res.Message");
})
.catch(function (err) {
//捕获异常
});
break;
}
},
......@@ -225,8 +254,11 @@ export default {
return (r) =>
require.ensure([], () => r(require(`./components/${view}.vue`)));
},
loadViewSlsq () {
return r => require.ensure([], () => r(require('../../components/jsydsyq/jsydsyq.vue')))
loadViewSlsq() {
return (r) =>
require.ensure([], () =>
r(require("../../components/jsydsyq/jsydsyq.vue"))
);
},
},
};
......@@ -256,7 +288,6 @@ export default {
margin: 0 !important;
}
.splitScreen-con {
padding: 0 15px;
box-sizing: border-box;
......