e99c4026 by 蔡俊立

功能完善

1 parent ac87420f
...@@ -147,8 +147,11 @@ export default { ...@@ -147,8 +147,11 @@ export default {
147 getJtfcInfo({ sqcxBsm: this.sqcxBsm }).then((res) => { 147 getJtfcInfo({ sqcxBsm: this.sqcxBsm }).then((res) => {
148 this.$endLoading(); 148 this.$endLoading();
149 if (res.code == 200) { 149 if (res.code == 200) {
150 this.form = res.result; 150 this.activeStep = 2;
151 this.isSearch = true; 151 this.isSearch = true;
152 this.$nextTick(() => {
153 this.$refs.dydjbInfo.setResult(res.result)
154 })
152 } 155 }
153 }); 156 });
154 }, 157 },
...@@ -162,7 +165,6 @@ export default { ...@@ -162,7 +165,6 @@ export default {
162 this.activeStep = 2; 165 this.activeStep = 2;
163 this.isSearch = true; 166 this.isSearch = true;
164 this.$nextTick(() => { 167 this.$nextTick(() => {
165 console.log(this.$refs.dydjbInfo,22222);
166 this.$refs.dydjbInfo.setResult(res.result) 168 this.$refs.dydjbInfo.setResult(res.result)
167 }) 169 })
168 this.$parent.queryClick(); 170 this.$parent.queryClick();
......
...@@ -30,25 +30,17 @@ ...@@ -30,25 +30,17 @@
30 <lb-table :column="yydjColumns" key="yydj" :data="resultData.yydjDetail" :maxHeight="200" heightNumSetting 30 <lb-table :column="yydjColumns" key="yydj" :data="resultData.yydjDetail" :maxHeight="200" heightNumSetting
31 :pagination="false"> 31 :pagination="false">
32 </lb-table> 32 </lb-table>
33 <div class="submit-button" style="padding-bottom:50px">
34 <el-button @click="resetClick" v-show="!isSearch">重置</el-button>
35 <el-button type="primary" @click="queryChick" v-show="!isSearch">查询</el-button>
36 <el-button @click="closeDialog">关闭</el-button>
37 </div>
38 </div> 33 </div>
39 </div> 34 </div>
40 </template> 35 </template>
41 36
42 <script> 37 <script>
43 import { datas, sendThis } from "./infodata"; 38 import { datas, sendThis } from "./infodata";
39 import { getJtfcInfo } from "@/api/sqcx";
44 export default { 40 export default {
45 props: { 41 props: {
42
46 }, 43 },
47
48 created () {
49
50 },
51
52 data () { 44 data () {
53 return { 45 return {
54 ruleForm: { 46 ruleForm: {
...@@ -76,8 +68,6 @@ export default { ...@@ -76,8 +68,6 @@ export default {
76 mounted () { }, 68 mounted () { },
77 methods: { 69 methods: {
78 setResult(data){ 70 setResult(data){
79 console.log(data,11111);
80
81 this.resultData = data 71 this.resultData = data
82 } 72 }
83 }, 73 },
......
...@@ -92,9 +92,13 @@ export default { ...@@ -92,9 +92,13 @@ export default {
92 }); 92 });
93 }, 93 },
94 dydjbClick (scope) { 94 dydjbClick (scope) {
95 popupDialog("打印登记薄", "sqcx/dydjb/components/dydjbInfo", { 95 this.$nextTick(() => {
96 sqcxdata: scope.row, 96 this.isDialog = true
97 }); 97 this.sqcxBsm = scope.row.bsmSqcx
98 })
99 // popupDialog("打印登记薄", "sqcx/dydjb/components/dydjbInfo", {
100 // bsmSqcx: scope.row.bsmSqcx,
101 // });
98 }, 102 },
99 handleSort (name, sort) { 103 handleSort (name, sort) {
100 console.log(name, sort); 104 console.log(name, sort);
......