|  | @ -1,14 +1,18 @@ | 
		
	
		
			
				|  |  | <template> |  |  | <template> | 
		
	
		
			
				|  |  |   <div class="app-container"> |  |  |   <div class="app-container"> | 
		
	
		
			
				|  |  |     <div class="head-container" style="padding:0 0 20px 0"> |  |  |     <div class="head-container" style="padding:0 0 20px 0"> | 
		
	
		
			
				|  |  |       <el-button size="mini" class="iconfont icon-xinzengpandian-fanbai" @click="handleAdd">新增盘点</el-button> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       <el-button size="mini" class="iconfont icon-xinzengpandian-fanbai" @click="handleAdd">新增</el-button> | 
		
	
		
			
				|  |  |       <el-button |  |  |       <el-button | 
		
	
		
			
				|  |  |         icon="el-icon-delete" |  |  |         icon="el-icon-delete" | 
		
	
		
			
				|  |  |         size="mini" |  |  |         size="mini" | 
		
	
		
			
				|  |  |         style="margin:0 7px 0 7px" |  |  |  | 
		
	
		
			
				|  |  |         :disabled="selections.length ? false : true " |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         style="margin:0 0 0 10px" | 
		
	
		
			
				|  |  |  |  |  |         :disabled="!(selections.length && selections[0].checkState === '待执行') " | 
		
	
		
			
				|  |  |         @click="deleteVisible = true" |  |  |         @click="deleteVisible = true" | 
		
	
		
			
				|  |  |       >删除</el-button> |  |  |       >删除</el-button> | 
		
	
		
			
				|  |  |  |  |  |       <el-button size="mini" icon="el-icon-tickets" :disabled="!(selections.length===1 && selections[0].checkState === '执行中') " @click="handleCalc">结算</el-button> | 
		
	
		
			
				|  |  |  |  |  |       <el-select v-model="stateVal" class="filter-item" style="width: 90px;height:30px;margin:0 10px 0 10px"> | 
		
	
		
			
				|  |  |  |  |  |         <el-option v-for="item in stateOptions" :key="item.value" :label="item.label" :value="item.value" /> | 
		
	
		
			
				|  |  |  |  |  |       </el-select> | 
		
	
		
			
				|  |  |       <el-input |  |  |       <el-input | 
		
	
		
			
				|  |  |         v-model="keyWord" |  |  |         v-model="keyWord" | 
		
	
		
			
				|  |  |         size="small" |  |  |         size="small" | 
		
	
	
		
			
				|  | @ -18,7 +22,7 @@ | 
		
	
		
			
				|  |  |         class="input-prepend filter-item" |  |  |         class="input-prepend filter-item" | 
		
	
		
			
				|  |  |         @keyup.enter.native="crud.toQuery" |  |  |         @keyup.enter.native="crud.toQuery" | 
		
	
		
			
				|  |  |       > |  |  |       > | 
		
	
		
			
				|  |  |         <el-select slot="prepend" v-model="cateSearch" style="width: 80px"> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         <el-select slot="prepend" v-model="cateSearch" style="width: 100px;"> | 
		
	
		
			
				|  |  |           <el-option |  |  |           <el-option | 
		
	
		
			
				|  |  |             v-for="item in cateSearchOptions" |  |  |             v-for="item in cateSearchOptions" | 
		
	
		
			
				|  |  |             :key="item.value" |  |  |             :key="item.value" | 
		
	
	
		
			
				|  | @ -121,9 +125,17 @@ export default { | 
		
	
		
			
				|  |  |       tableData: [], |  |  |       tableData: [], | 
		
	
		
			
				|  |  |       selections: [], |  |  |       selections: [], | 
		
	
		
			
				|  |  |       keyWord: '', |  |  |       keyWord: '', | 
		
	
		
			
				|  |  |       cateSearch: '区域', |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       stateVal: 0, | 
		
	
		
			
				|  |  |  |  |  |       stateOptions: [ | 
		
	
		
			
				|  |  |  |  |  |         { value: 0, label: '全部' }, | 
		
	
		
			
				|  |  |  |  |  |         { value: 1, label: '待执行' }, | 
		
	
		
			
				|  |  |  |  |  |         { value: 2, label: '执行中' }, | 
		
	
		
			
				|  |  |  |  |  |         { value: 3, label: '已执行' } | 
		
	
		
			
				|  |  |  |  |  |       ], | 
		
	
		
			
				|  |  |  |  |  |       cateSearch: 1, | 
		
	
		
			
				|  |  |       cateSearchOptions: [ |  |  |       cateSearchOptions: [ | 
		
	
		
			
				|  |  |         { value: '选项1', label: '区域' } |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         { value: 1, label: '区域' }, | 
		
	
		
			
				|  |  |  |  |  |         { value: 2, label: '盘点单号' } | 
		
	
		
			
				|  |  |       ], |  |  |       ], | 
		
	
		
			
				|  |  |       deleteVisible: false |  |  |       deleteVisible: false | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
	
		
			
				|  | @ -139,6 +151,10 @@ export default { | 
		
	
		
			
				|  |  |     handleConfirm() { |  |  |     handleConfirm() { | 
		
	
		
			
				|  |  |       this.deleteVisible = false |  |  |       this.deleteVisible = false | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |  |  |  |     // 结算 | 
		
	
		
			
				|  |  |  |  |  |     handleCalc() { | 
		
	
		
			
				|  |  |  |  |  |       console.log(this.selections) | 
		
	
		
			
				|  |  |  |  |  |     }, | 
		
	
		
			
				|  |  |     // 新增盘点 |  |  |     // 新增盘点 | 
		
	
		
			
				|  |  |     handleAdd() { |  |  |     handleAdd() { | 
		
	
		
			
				|  |  |       this.$refs.addCheckDom.tableData = data1.rows |  |  |       this.$refs.addCheckDom.tableData = data1.rows | 
		
	
	
		
			
				|  | @ -202,4 +218,7 @@ export default { | 
		
	
		
			
				|  |  | .svg-style{ |  |  | .svg-style{ | 
		
	
		
			
				|  |  |   margin-right: 5px; |  |  |   margin-right: 5px; | 
		
	
		
			
				|  |  | } |  |  | } | 
		
	
		
			
				|  |  |  |  |  | ::v-deep .input-prepend .el-input__inner{ | 
		
	
		
			
				|  |  |  |  |  | padding-left: 94px; | 
		
	
		
			
				|  |  |  |  |  | } | 
		
	
		
			
				|  |  | </style> |  |  | </style> |