| | |
| | | icon="el-icon-search" |
| | | size="mini" |
| | | @click="handleQuery" |
| | | style="margin-right: 15px" |
| | | >查询</el-button |
| | | > |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" |
| | |
| | | <!-- v-hasPermi="['reservation:reservation:edit']" --> |
| | | <el-table-column label="操作" align="center" width="120px"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="tongbu(scope.row)" |
| | | <el-button size="mini" type="text" @click="tongbu(scope.row)" |
| | | >同步</el-button |
| | | > |
| | | <el-button |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | this.getdate(); |
| | | // this.getNowTime(); |
| | | }, |
| | |
| | | moment(res.data).format("YYYY-MM-DD 00:00:00"), |
| | | moment(res.data).format("YYYY-MM-DD 23:59:00"), |
| | | ]; |
| | | this.getList(); |
| | | }); |
| | | }, |
| | | // / 处理默认选中当前日期 |
| | |
| | | getList() { |
| | | this.loading = true; |
| | | this.queryParams.checkStatus = this.checkStatus; |
| | | this.queryParams.beginTime = this.createTimeList[0]; |
| | | this.queryParams.endTime = this.createTimeList[1]; |
| | | if (this.createTimeList) { |
| | | this.queryParams.beginTime = this.createTimeList[0]; |
| | | this.queryParams.endTime = this.createTimeList[1]; |
| | | } else if (this.createTimeList == null) { |
| | | this.queryParams.beginTime = null; |
| | | this.queryParams.endTime = null; |
| | | } |
| | | |
| | | getCsList(this.queryParams).then((res) => { |
| | | if (res.code == 200) { |
| | | this.loading = false; |
| | |
| | | }, |
| | | |
| | | hb() { |
| | | console.log(this.queryParams.tjNumber); |
| | | // console.log(this.queryParams.tjNumber); |
| | | if (this.queryParams.tjNumber != null) { |
| | | this.handleQuery(); |
| | | } |
| | |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.createTimeList = []; |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | this.loading = true; |
| | | }, |
| | | // 单选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | console.log(11111); |
| | | this.selectList = selection; |
| | | this.multipleSelection = []; |
| | | if (selection.length > 1) { |
| | |
| | | cSWebGetPro(tjNumber).then((res) => { |
| | | this.xiangmuList = res.data; |
| | | this.xiangmuList.forEach((item) => { |
| | | console.log(item); |
| | | if (item.type == 0) { |
| | | this.dis = true; |
| | | } else { |
| | | this.dis = false; |
| | | } |
| | | // console.log(item); |
| | | // if (item.type == 0) { |
| | | // this.dis = true; |
| | | // } else { |
| | | // this.dis = false; |
| | | // } |
| | | }); |
| | | }); |
| | | }); |
| | |
| | | if (res.code == 200) { |
| | | // this.$forceUpdate(); |
| | | this.getList(); |
| | | this.xiangmuList = [] |
| | | this.xiangmuList = []; |
| | | this.$modal.msgSuccess("提交成功!"); |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | tongbu(row) { |
| | | this.$refs.tb.toggleRowSelection(row); |
| | | let tjNumber = row.tjNumber; |
| | | dataSynchronization(tjNumber).then((res) => { |
| | | if (res.code == 200) { |
| | | // this.$forceUpdate(); |
| | | this.getList(); |
| | | // this.getList(); |
| | | this.$modal.msgSuccess("同步成功!"); |
| | | } |
| | | }); |