| | |
| | | ref="form1" |
| | | v-model="obj0" |
| | | :option="option" |
| | | @submit="submit" |
| | | class="cardButs" |
| | | ></avue-form> |
| | | </el-collapse-item> |
| | | <el-collapse-item title="附件上传/查询" name="2"> |
| | |
| | | }, |
| | | option: { |
| | | emptyBtn: false, |
| | | submitBtn: false, |
| | | submitBtn: true, |
| | | gutter: 50, |
| | | column: [], |
| | | }, |
| | |
| | | this.OnceChouse = true; |
| | | |
| | | d.push(this.together[i]); |
| | | console.log("选择"); |
| | | // console.log("选择"); |
| | | } |
| | | } |
| | | if (this.OnceChouse) { |
| | |
| | | this.data = this.data.concat(resk.data.data.records); |
| | | getListrev(page.currentPage, page.pageSize, params).then((resv) => { |
| | | this.data = this.data.concat(resv.data.data.records); |
| | | console.log("已有申请数量:", this.data.length); |
| | | console.log(val, "当前type"); |
| | | // console.log("已有申请数量:", this.data.length); |
| | | // console.log(val, "当前type"); |
| | | this.changeBut(true, d); |
| | | if (this.data.length == 0) { |
| | | console.log("一条数据都没有"); |
| | | // console.log("一条数据都没有"); |
| | | } else { |
| | | this.data.forEach((item) => { |
| | | if (item.ptype == val) { |
| | | if (item.type == 0 || item.type == 2) { |
| | | this.changeBut(false, d); |
| | | console.log(item, "有数据未审核或者审核通过"); |
| | | // console.log(item, "有数据未审核或者审核通过"); |
| | | } else { |
| | | this.changeBut(true, d); |
| | | console.log(item, "审核不通过"); |
| | | // console.log(item, "审核不通过"); |
| | | } |
| | | } |
| | | }); |
| | |
| | | aa(b) { |
| | | console.log(b); |
| | | }, |
| | | up() { |
| | | submit() { |
| | | this.up(0); |
| | | }, |
| | | up(val = 1) { |
| | | //提交申请 |
| | | // this.submit(); |
| | | if (val == 1) { |
| | | this.$refs.form1.submit(); //解决点击提交不能显示那个字段输入错误的问题 |
| | | return; |
| | | } |
| | | var d = {}; |
| | | for (var k in this.obj0) { |
| | | for (var i in this.option.column) { |