fc4eaed2 by 任超

style:业务申请

1 parent 1e7b62fb
...@@ -66,8 +66,6 @@ export default { ...@@ -66,8 +66,6 @@ export default {
66 computed: { 66 computed: {
67 ...mapGetters(['dictData']), 67 ...mapGetters(['dictData']),
68 }, 68 },
69
70
71 data () { 69 data () {
72 return { 70 return {
73 queryForm: { 71 queryForm: {
...@@ -90,20 +88,20 @@ export default { ...@@ -90,20 +88,20 @@ export default {
90 mounted () { 88 mounted () {
91 sendThis(this); 89 sendThis(this);
92 let that = this 90 let that = this
93 window.addEventListener('visibilitychange',this.init,true) 91 window.addEventListener('visibilitychange', this.init, true)
94 }, 92 },
95 destroyed(){ 93 destroyed () {
96 window.removeEventListener('visibilitychange',this.init,true) 94 window.removeEventListener('visibilitychange', this.init, true)
97 }, 95 },
98 created () { }, 96 created () { },
99 methods: { 97 methods: {
100 init(e){ 98 init (e) {
101 var isHidden = document.hidden; 99 var isHidden = document.hidden;
102 if (isHidden) {//切离该页面时执行 100 if (isHidden) {//切离该页面时执行
103 //页面切换时,处理逻辑 101 //页面切换时,处理逻辑
104 } else {//切换到该页面时执行 102 } else {//切换到该页面时执行
105 if(window.location.hash=='#/ywbl/dbx'){ 103 if (window.location.hash == '#/ywbl/dbx') {
106 console.log('让我看看',window.location) 104 console.log('让我看看', window.location)
107 that.fetchData() 105 that.fetchData()
108 } 106 }
109 } 107 }
...@@ -128,7 +126,7 @@ export default { ...@@ -128,7 +126,7 @@ export default {
128 console.log(999999999999999); 126 console.log(999999999999999);
129 }, 127 },
130 ywhClick (item) { 128 ywhClick (item) {
131 const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid='+item.bestepid) 129 const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid)
132 window.open(href, '_blank'); 130 window.open(href, '_blank');
133 }, 131 },
134 }, 132 },
......
...@@ -45,21 +45,24 @@ ...@@ -45,21 +45,24 @@
45 @selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data"> 45 @selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data">
46 </lb-table> 46 </lb-table>
47 </div> 47 </div>
48 <div class="submit_button">
49 <el-button @click="closeDialog">取消</el-button>
50 <el-button type="primary" plain @click="submitForm" :loading="saveloding">发起申请</el-button>
51 </div>
48 </div> 52 </div>
49 </template> 53 </template>
50 <script> 54 <script>
55 //查封等级
51 import { datas, sendThis } from "./cfdj.js"; 56 import { datas, sendThis } from "./cfdj.js";
52 import table from "@/utils/mixin/table"; 57 import table from "@/utils/mixin/table";
53 import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js"; 58 import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js";
54 export default { 59 export default {
55 props: { 60 props: {
56 value: { type: Boolean, default: false },
57 bsmSqyw: { type: String, default: '' }, 61 bsmSqyw: { type: String, default: '' },
58 }, 62 },
59 mixins: [table], 63 mixins: [table],
60 data () { 64 data () {
61 return { 65 return {
62 appliDialog: false,
63 queryForm: { 66 queryForm: {
64 qllx: "", 67 qllx: "",
65 bdcdyh: "", 68 bdcdyh: "",
...@@ -73,23 +76,24 @@ export default { ...@@ -73,23 +76,24 @@ export default {
73 columns: datas.columns(), 76 columns: datas.columns(),
74 data: [], 77 data: [],
75 }, 78 },
76 myValue: this.value, 79 bdcdysz: [],
77 saveloding: false, 80 saveloding: false
78 bdcdysz: []
79 }; 81 };
80 }, 82 },
81 mounted () {
82 sendThis(this);
83 },
84 watch: { 83 watch: {
85 value (val) { 84 bsmSqyw (val) {
86 this.myValue = val
87 this.fetchData() 85 this.fetchData()
88 }, 86 },
89 }, 87 },
88 mounted () {
89 sendThis(this);
90 },
90 methods: { 91 methods: {
92 closeDialog () {
93 this.$emit("closeDialog")
94 },
91 fetchData () { 95 fetchData () {
92 if (this.value) { 96 if (this.bsmSqyw) {
93 selectBdcdy({ ...this.queryForm, ...this.pageData }) 97 selectBdcdy({ ...this.queryForm, ...this.pageData })
94 .then((res) => { 98 .then((res) => {
95 if (res.code === 200) { 99 if (res.code === 200) {
...@@ -111,14 +115,11 @@ export default { ...@@ -111,14 +115,11 @@ export default {
111 bdcdysz: this.bdcdysz 115 bdcdysz: this.bdcdysz
112 }).then(res => { 116 }).then(res => {
113 this.saveloding = false 117 this.saveloding = false
114 this.$emit('input', false) 118 this.$emit("closeDialog")
115 const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message) 119 const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message)
116 window.open(href, '_blank'); 120 window.open(href, '_blank');
117 }) 121 })
118 }, 122 },
119 closeDialog () {
120 this.$emit("input", false);
121 },
122 handleSelectionChange (val) { 123 handleSelectionChange (val) {
123 this.bdcdysz = val 124 this.bdcdysz = val
124 } 125 }
......
1 <template> 1 <template>
2 <dialogBox title="查询权利信息" width="85%" :isButton="false" @closeDialog="closeDialog" v-model="myValue"> 2 <dialogBox title="查询权利信息" width="85%" :isButton="false" @closeDialog="closeDialog" v-model="myValue">
3 <component :is="editItem" /> 3 <component :is="editItem" @closeDialog="closeDialog" :bsmSqyw="bsmSqyw" />
4 </dialogBox> 4 </dialogBox>
5 </template> 5 </template>
6 <script> 6 <script>
...@@ -19,7 +19,6 @@ export default { ...@@ -19,7 +19,6 @@ export default {
19 watch: { 19 watch: {
20 value (val) { 20 value (val) {
21 this.myValue = val 21 this.myValue = val
22 this.fetchData()
23 }, 22 },
24 djywbm (val) { 23 djywbm (val) {
25 let itemObj = { 'A03100': 'scdj', default: 'scdj' } 24 let itemObj = { 'A03100': 'scdj', default: 'scdj' }
...@@ -30,18 +29,6 @@ export default { ...@@ -30,18 +29,6 @@ export default {
30 loadView (view) { 29 loadView (view) {
31 return r => require.ensure([], () => r(require(`../${view}/${view}.vue`))) 30 return r => require.ensure([], () => r(require(`../${view}/${view}.vue`)))
32 }, 31 },
33 fetchData () {
34 if (this.value) {
35 selectBdcdy({ ...this.queryForm, ...this.pageData })
36 .then((res) => {
37 if (res.code === 200) {
38 let { total, records } = res.result;
39 this.tableData.total = total;
40 this.tableData.data = records;
41 }
42 })
43 }
44 },
45 closeDialog () { 32 closeDialog () {
46 this.$emit("input", false); 33 this.$emit("input", false);
47 } 34 }
...@@ -51,4 +38,10 @@ export default { ...@@ -51,4 +38,10 @@ export default {
51 <style scoped lang="scss"> 38 <style scoped lang="scss">
52 @import "~@/styles/mixin.scss"; 39 @import "~@/styles/mixin.scss";
53 @import "~@/styles/public.scss"; 40 @import "~@/styles/public.scss";
41
42 /deep/.submit_button {
43 text-align: center;
44 padding: 10px;
45 margin: 10px;
46 }
54 </style> 47 </style>
......
...@@ -45,13 +45,21 @@ ...@@ -45,13 +45,21 @@
45 @selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data"> 45 @selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data">
46 </lb-table> 46 </lb-table>
47 </div> 47 </div>
48 <div class="submit_button">
49 <el-button @click="closeDialog">取消</el-button>
50 <el-button type="primary" plain @click="submitForm" :loading="saveloding">发起申请</el-button>
51 </div>
48 </div> 52 </div>
49 </template> 53 </template>
50 <script> 54 <script>
55 //首次登记
51 import { datas, sendThis } from "./scdj.js"; 56 import { datas, sendThis } from "./scdj.js";
52 import table from "@/utils/mixin/table"; 57 import table from "@/utils/mixin/table";
53 import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js"; 58 import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js";
54 export default { 59 export default {
60 props: {
61 bsmSqyw: { type: String, default: '' },
62 },
55 mixins: [table], 63 mixins: [table],
56 data () { 64 data () {
57 return { 65 return {
...@@ -68,31 +76,49 @@ export default { ...@@ -68,31 +76,49 @@ export default {
68 columns: datas.columns(), 76 columns: datas.columns(),
69 data: [], 77 data: [],
70 }, 78 },
71 bdcdysz: [] 79 bdcdysz: [],
80 saveloding: false
72 }; 81 };
73 }, 82 },
83 watch: {
84 bsmSqyw (val) {
85 this.fetchData()
86 },
87 },
74 mounted () { 88 mounted () {
75 sendThis(this); 89 sendThis(this);
76 }, 90 },
77 methods: { 91 methods: {
78 // submitForm () {
79 // if (this.bdcdysz.length == 0) {
80 // this.$message.error('请至少选择一条数据');
81 // return
82 // }
83 // this.saveloding = true
84 // startBusinessFlow({
85 // bsmSqyw: this.bsmSqyw,
86 // bdcdysz: this.bdcdysz
87 // }).then(res => {
88 // this.saveloding = false
89 // this.$emit('input', false)
90 // const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message)
91 // window.open(href, '_blank');
92 // })
93 // },
94 closeDialog () { 92 closeDialog () {
95 this.$emit("input", false); 93 this.$emit("closeDialog")
94 },
95 fetchData () {
96 if (this.bsmSqyw) {
97 selectBdcdy({ ...this.queryForm, ...this.pageData })
98 .then((res) => {
99 if (res.code === 200) {
100 let { total, records } = res.result;
101 this.tableData.total = total;
102 this.tableData.data = records;
103 }
104 })
105 }
106 },
107 submitForm () {
108 if (this.bdcdysz.length == 0) {
109 this.$message.error('请至少选择一条数据');
110 return
111 }
112 this.saveloding = true
113 startBusinessFlow({
114 bsmSqyw: this.bsmSqyw,
115 bdcdysz: this.bdcdysz
116 }).then(res => {
117 this.saveloding = false
118 this.$emit("closeDialog")
119 const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message)
120 window.open(href, '_blank');
121 })
96 }, 122 },
97 handleSelectionChange (val) { 123 handleSelectionChange (val) {
98 this.bdcdysz = val 124 this.bdcdysz = val
......
...@@ -45,21 +45,24 @@ ...@@ -45,21 +45,24 @@
45 @selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data"> 45 @selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data">
46 </lb-table> 46 </lb-table>
47 </div> 47 </div>
48 <div class="submit_button">
49 <el-button @click="closeDialog">取消</el-button>
50 <el-button type="primary" plain @click="submitForm" :loading="saveloding">发起申请</el-button>
51 </div>
48 </div> 52 </div>
49 </template> 53 </template>
50 <script> 54 <script>
55 //续封登记
51 import { datas, sendThis } from "./xfdj.js"; 56 import { datas, sendThis } from "./xfdj.js";
52 import table from "@/utils/mixin/table"; 57 import table from "@/utils/mixin/table";
53 import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js"; 58 import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js";
54 export default { 59 export default {
55 props: { 60 props: {
56 value: { type: Boolean, default: false },
57 bsmSqyw: { type: String, default: '' }, 61 bsmSqyw: { type: String, default: '' },
58 }, 62 },
59 mixins: [table], 63 mixins: [table],
60 data () { 64 data () {
61 return { 65 return {
62 appliDialog: false,
63 queryForm: { 66 queryForm: {
64 qllx: "", 67 qllx: "",
65 bdcdyh: "", 68 bdcdyh: "",
...@@ -73,23 +76,24 @@ export default { ...@@ -73,23 +76,24 @@ export default {
73 columns: datas.columns(), 76 columns: datas.columns(),
74 data: [], 77 data: [],
75 }, 78 },
76 myValue: this.value, 79 bdcdysz: [],
77 saveloding: false, 80 saveloding: false
78 bdcdysz: []
79 }; 81 };
80 }, 82 },
81 mounted () {
82 sendThis(this);
83 },
84 watch: { 83 watch: {
85 value (val) { 84 bsmSqyw (val) {
86 this.myValue = val
87 this.fetchData() 85 this.fetchData()
88 }, 86 },
89 }, 87 },
88 mounted () {
89 sendThis(this);
90 },
90 methods: { 91 methods: {
92 closeDialog () {
93 this.$emit("closeDialog")
94 },
91 fetchData () { 95 fetchData () {
92 if (this.value) { 96 if (this.bsmSqyw) {
93 selectBdcdy({ ...this.queryForm, ...this.pageData }) 97 selectBdcdy({ ...this.queryForm, ...this.pageData })
94 .then((res) => { 98 .then((res) => {
95 if (res.code === 200) { 99 if (res.code === 200) {
...@@ -111,14 +115,11 @@ export default { ...@@ -111,14 +115,11 @@ export default {
111 bdcdysz: this.bdcdysz 115 bdcdysz: this.bdcdysz
112 }).then(res => { 116 }).then(res => {
113 this.saveloding = false 117 this.saveloding = false
114 this.$emit('input', false) 118 this.$emit("closeDialog")
115 const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message) 119 const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message)
116 window.open(href, '_blank'); 120 window.open(href, '_blank');
117 }) 121 })
118 }, 122 },
119 closeDialog () {
120 this.$emit("input", false);
121 },
122 handleSelectionChange (val) { 123 handleSelectionChange (val) {
123 this.bdcdysz = val 124 this.bdcdysz = val
124 } 125 }
......
...@@ -45,21 +45,24 @@ ...@@ -45,21 +45,24 @@
45 @selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data"> 45 @selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data">
46 </lb-table> 46 </lb-table>
47 </div> 47 </div>
48 <div class="submit_button">
49 <el-button @click="closeDialog">取消</el-button>
50 <el-button type="primary" plain @click="submitForm" :loading="saveloding">发起申请</el-button>
51 </div>
48 </div> 52 </div>
49 </template> 53 </template>
50 <script> 54 <script>
55 //转移登记
51 import { datas, sendThis } from "./zydj.js"; 56 import { datas, sendThis } from "./zydj.js";
52 import table from "@/utils/mixin/table"; 57 import table from "@/utils/mixin/table";
53 import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js"; 58 import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js";
54 export default { 59 export default {
55 props: { 60 props: {
56 value: { type: Boolean, default: false },
57 bsmSqyw: { type: String, default: '' }, 61 bsmSqyw: { type: String, default: '' },
58 }, 62 },
59 mixins: [table], 63 mixins: [table],
60 data () { 64 data () {
61 return { 65 return {
62 appliDialog: false,
63 queryForm: { 66 queryForm: {
64 qllx: "", 67 qllx: "",
65 bdcdyh: "", 68 bdcdyh: "",
...@@ -73,23 +76,24 @@ export default { ...@@ -73,23 +76,24 @@ export default {
73 columns: datas.columns(), 76 columns: datas.columns(),
74 data: [], 77 data: [],
75 }, 78 },
76 myValue: this.value, 79 bdcdysz: [],
77 saveloding: false, 80 saveloding: false
78 bdcdysz: []
79 }; 81 };
80 }, 82 },
81 mounted () {
82 sendThis(this);
83 },
84 watch: { 83 watch: {
85 value (val) { 84 bsmSqyw (val) {
86 this.myValue = val
87 this.fetchData() 85 this.fetchData()
88 }, 86 },
89 }, 87 },
88 mounted () {
89 sendThis(this);
90 },
90 methods: { 91 methods: {
92 closeDialog () {
93 this.$emit("closeDialog")
94 },
91 fetchData () { 95 fetchData () {
92 if (this.value) { 96 if (this.bsmSqyw) {
93 selectBdcdy({ ...this.queryForm, ...this.pageData }) 97 selectBdcdy({ ...this.queryForm, ...this.pageData })
94 .then((res) => { 98 .then((res) => {
95 if (res.code === 200) { 99 if (res.code === 200) {
...@@ -111,14 +115,11 @@ export default { ...@@ -111,14 +115,11 @@ export default {
111 bdcdysz: this.bdcdysz 115 bdcdysz: this.bdcdysz
112 }).then(res => { 116 }).then(res => {
113 this.saveloding = false 117 this.saveloding = false
114 this.$emit('input', false) 118 this.$emit("closeDialog")
115 const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message) 119 const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message)
116 window.open(href, '_blank'); 120 window.open(href, '_blank');
117 }) 121 })
118 }, 122 },
119 closeDialog () {
120 this.$emit("input", false);
121 },
122 handleSelectionChange (val) { 123 handleSelectionChange (val) {
123 this.bdcdysz = val 124 this.bdcdysz = val
124 } 125 }
......