6972b908 by renchao@pashanhoo.com

style:材料明细

1 parent 3c245569
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-10-19 16:28:06
* @LastEditTime: 2023-10-24 16:12:54
-->
<template>
<div class="clxx">
......@@ -98,14 +98,14 @@
watch: {
workFresh: {
handler (newValue, oldValue) {
if (newValue) this.clmlInitList()
if (newValue) this.clmlInitList(1)
},
deep: true,
immediate: true
}
},
created () {
this.clmlInitList()
this.clmlInitList(1)
},
methods: {
/**
......@@ -166,6 +166,7 @@
clmlInitList (type) {
// 1:列表初始化 2:新增材料
return new Promise((resolve) => {
console.log(this.$parent, 'this.$parent');
repairInitClml(this.$parent).then((res) => {
if (res.code == 200) {
resolve(res.code);
......@@ -173,7 +174,7 @@
this.tableData = res.result;
if (type == 1) {
this.treeClick(this.tableData[0], 0);
} else {
} else if (type == 2) {
//新增材料后刷新列表焦点置于新增的对象上
this.treeClick(
this.tableData[this.tableData.length - 1],
......@@ -296,11 +297,14 @@
this.titleYs = index + 1;
},
//查看明细
viewDetail () {
store.dispatch("user/reWorkFresh", false);
ywPopupDialog("申请材料目录", "djbworkflow/components/clxx/dialog/clxxDetailDialog", {
data: this.tableData,
}, "60%", true, false)
async viewDetail () {
let res = await this.clmlInitList();
if (res == 200) {
store.dispatch("user/reWorkFresh", false);
ywPopupDialog("申请材料目录", "djbworkflow/components/clxx/dialog/clxxDetailDialog", {
data: this.tableData,
}, "60%", true, false)
}
},
//设置tableData
setTableData (tableData) {
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-10-10 14:40:07
* @LastEditTime: 2023-10-24 16:08:44
-->
<template>
<div class="clxx">
......@@ -167,7 +167,7 @@
this.unitData = this.$parent.unitData;
var formdata = new FormData();
formdata.append("bsmSlsq", this.$parent.bsmSlsq);
if (this.$route.query.sqywbm == "DJBBL") {
if (this.$route.query?.djywbm == "DJBBL") {
formdata.append("bsmSldy", this.$parent.bsmRepair);
formdata.append("clfl", 3);
} else {
......@@ -182,7 +182,7 @@
this.tableData = res.result;
if (type == 1) {
this.treeClick(this.tableData[0], 0);
} else {
} else if (type == 2) {
//新增材料后刷新列表焦点置于新增的对象上
this.treeClick(
this.tableData[this.tableData.length - 1],
......@@ -266,7 +266,7 @@
if (data.sfggcl == "0") {
obj["bsmSldy"] = this.$parent.currentSelectProps.bsmSldy;
}
if (this.$route.query.sqywbm == "DJBBL") {
if (this.$route.query?.djywbm == "DJBBL") {
obj.bsmSldy = this.$parent.bsmRepair
}
saveClml(obj).then(async (res) => {
......@@ -310,21 +310,24 @@
this.titleYs = index + 1;
},
//查看明细
viewDetail () {
this.$store.dispatch("user/reWorkFresh", false);
this.$popupDialog(
"申请材料目录",
"workflow/components/dialog/clxxDetailDialog",
{
data: this.tableData,
bsmSldy: this.$parent.currentSelectProps.bsmSldy,
unitData: this.$parent.unitData,
ableOperation: this.$parent.ableOperation,
bsmRepair: this.$parent.bsmRepair
},
"50%",
true
);
async viewDetail () {
let res = await this.clmlInitList();
if (res == 200) {
this.$store.dispatch("user/reWorkFresh", false);
this.$popupDialog(
"申请材料目录",
"workflow/components/dialog/clxxDetailDialog",
{
data: this.tableData,
bsmSldy: this.$parent.currentSelectProps.bsmSldy,
unitData: this.$parent.unitData,
ableOperation: this.$parent.ableOperation,
bsmRepair: this.$parent.bsmRepair
},
"60%",
true
)
}
},
//设置tableData
setTableData (tableData) {
......@@ -407,7 +410,7 @@
height: 100%;
font-size: 14px;
border-right: 1px dotted #d9d9d9;
padding: 0 15px;
padding: 0 10px;
.item {
line-height: 30px;
......@@ -452,6 +455,7 @@
.checked {
border: 1px solid $light-blue;
color: $light-blue;
box-sizing: border-box;
}
}
}
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-19 10:14:56
* @LastEditTime: 2023-10-24 16:08:59
-->
<template>
<div class="clmlmx-box">
......@@ -205,7 +205,7 @@
this.unitData = this.$parent.unitData;
var formdata = new FormData();
formdata.append("bsmSlsq", Vue.prototype.$currentRoute.query.bsmSlsq);
if (Vue.prototype.$currentRoute.query.sqywbm == "DJBBL") {
if (Vue.prototype.$currentRoute.query?.djywbm == "DJBBL") {
formdata.append("bsmSldy", this.formData.bsmRepair);
formdata.append("clfl", 3);
} else {
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-10-12 09:58:32
* @LastEditTime: 2023-10-24 16:13:19
-->
<template>
<div class="clxx">
......@@ -98,14 +98,14 @@
watch: {
workFresh: {
handler (newValue, oldValue) {
this.clmlInitList()
this.clmlInitList(1)
},
deep: true,
immediate: true
}
},
created () {
this.clmlInitList()
this.clmlInitList(1)
},
methods: {
/**
......@@ -173,7 +173,7 @@
this.tableData = res.result;
if (type == 1) {
this.treeClick(this.tableData[0], 0);
} else {
} else if (type == 2) {
//新增材料后刷新列表焦点置于新增的对象上
this.treeClick(
this.tableData[this.tableData.length - 1],
......@@ -287,12 +287,15 @@
this.titleYs = index + 1;
},
//查看明细
viewDetail () {
store.dispatch("user/reWorkFresh", false);
ywPopupDialog("申请材料目录", "xxba/components/clxx/dialog/clxxDetailDialog", {
data: this.tableData,
bsmCompany: this.formData.bsmCompany
}, "50%", true, false)
async viewDetail () {
let res = await this.clmlInitList();
if (res == 200) {
store.dispatch("user/reWorkFresh", false);
ywPopupDialog("申请材料目录", "xxba/components/clxx/dialog/clxxDetailDialog", {
data: this.tableData,
bsmCompany: this.formData.bsmCompany
}, "60%", true, false)
}
},
//设置tableData
setTableData (tableData) {
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-25 11:08:07
* @LastEditTime: 2023-10-24 16:09:46
-->
<template>
<div class="from-clues">
......@@ -278,7 +278,7 @@
const { href } = this.$router.resolve(
"/djbworkFrameview?bsmSlsq=" + item.bsmSlsq +
"&bestepid=" + item.bestepid +
"&sqywbm=" + item.djywbm
"&djywbm=" + item.djywbm
);
window.open(href, `djbworkFrameview${item.bsmSlsq}`);
} else {
......