|  | @@ -137,18 +137,11 @@
 | 
	
		
			
				|  |  |      <el-button type="primary" @click="dialogVisible = false">关 闭</el-button>
 | 
	
		
			
				|  |  |    </span>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  | -    <el-button type="primary" @click="addOrUpdateHandle">查看审批</el-button>
 | 
	
		
			
				|  |  | -    <el-button type="primary" @click="addOrUpdateHand">审批弹窗</el-button>
 | 
	
		
			
				|  |  | -    <!-- 弹窗, 新增 / 修改 -->
 | 
	
		
			
				|  |  | -    <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
 | 
	
		
			
				|  |  | -    <approval-comments v-if="addOrUpdateVisib" ref="ApprovalComments" @refreshDataList="returnData"></approval-comments>
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |  import { listCorps, information, warehouse, inquiry } from '../../src/api/index'
 | 
	
		
			
				|  |  | -import AddOrUpdate from '@/views/viewApproval'
 | 
	
		
			
				|  |  | -import ApprovalComments from '@/views/startApproval'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: 'index',
 | 
	
	
		
			
				|  | @@ -160,8 +153,6 @@ export default {
 | 
	
		
			
				|  |  |        select: '',
 | 
	
		
			
				|  |  |        text: '',
 | 
	
		
			
				|  |  |        dialogVisible: false,
 | 
	
		
			
				|  |  | -      addOrUpdateVisible: false,
 | 
	
		
			
				|  |  | -      addOrUpdateVisib: false,
 | 
	
		
			
				|  |  |        tableData: [],
 | 
	
		
			
				|  |  |        chart: [],
 | 
	
		
			
				|  |  |        warehouse: [],
 | 
	
	
		
			
				|  | @@ -172,10 +163,6 @@ export default {
 | 
	
		
			
				|  |  |        tableDataTwo: []
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  components: {
 | 
	
		
			
				|  |  | -    AddOrUpdate,
 | 
	
		
			
				|  |  | -    ApprovalComments
 | 
	
		
			
				|  |  | -  },
 | 
	
		
			
				|  |  |    activated() {
 | 
	
		
			
				|  |  |      this.getList()
 | 
	
		
			
				|  |  |      this.warehouses()
 | 
	
	
		
			
				|  | @@ -246,28 +233,6 @@ export default {
 | 
	
		
			
				|  |  |          this.tableData = res.data
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    getDataList() {
 | 
	
		
			
				|  |  | -      this.addOrUpdateVisible = false
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -    returnData() {
 | 
	
		
			
				|  |  | -      this.addOrUpdateVisib = false
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -    addOrUpdateHandle() {
 | 
	
		
			
				|  |  | -      this.addOrUpdateVisible = true
 | 
	
		
			
				|  |  | -      let id = '448'
 | 
	
		
			
				|  |  | -      let actId = '110'
 | 
	
		
			
				|  |  | -      this.$nextTick(() => {
 | 
	
		
			
				|  |  | -        this.$refs.addOrUpdate.init(id, actId)
 | 
	
		
			
				|  |  | -      })
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -    addOrUpdateHand() {
 | 
	
		
			
				|  |  | -      this.addOrUpdateVisib = true
 | 
	
		
			
				|  |  | -      let id = '448'
 | 
	
		
			
				|  |  | -      let actId = '110'
 | 
	
		
			
				|  |  | -      this.$nextTick(() => {
 | 
	
		
			
				|  |  | -        this.$refs.ApprovalComments.init(id, actId)
 | 
	
		
			
				|  |  | -      })
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  |      querytoDo(res) {
 | 
	
		
			
				|  |  |        this.dialogVisible = true
 | 
	
		
			
				|  |  |        this.text = res
 |