| | |
| | | </el-table-column> |
| | | <el-table-column prop="option" label="操作" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" class="table-btn" @click="handleClick(scope.row,'detail')">查看详情</el-button><span |
| | | class="line-set">|</span> |
| | | <el-button type="text" class="table-btn" @click="handleClick(scope.row,'edit')">编辑</el-button> |
| | | <el-button type="text" class="table-btn" |
| | | @click="handleClick(scope.row, 'detail')">查看详情</el-button><span class="line-set">|</span> |
| | | <el-button type="text" class="table-btn" @click="handleClick(scope.row, 'edit')">编辑</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | this.getLists() |
| | | }, |
| | | methods: { |
| | | handleClick(e,type){ |
| | | handleClick(e, type) { |
| | | this.$router.push({ |
| | | path: '/addOrder', |
| | | query: { |
| | |
| | | }) |
| | | }, |
| | | getLists() { |
| | | getList({ ...this.searchForm, }).then(res => { |
| | | let params = { |
| | | ...this.searchForm |
| | | } |
| | | // params.orderId = params.orderId ? params.orderId : null |
| | | if (!params.orderId) { |
| | | delete params.orderId |
| | | } |
| | | if (!params.container) { |
| | | delete params.container |
| | | } |
| | | if (!params.bol) { |
| | | delete params.bol |
| | | } |
| | | if (!params.post) { |
| | | delete params.post |
| | | } |
| | | if (!params.address) { |
| | | delete params.address |
| | | } |
| | | if (!params.DO) { |
| | | delete params.DO |
| | | } |
| | | if (!params.status) { |
| | | delete params.status |
| | | } |
| | | getList({ ...params, }).then(res => { |
| | | this.tableData = res.data |
| | | }) |
| | | }, |
| | | search(){ |
| | | search() { |
| | | this.getLists() |
| | | }, |
| | | reset() { |
| | |
| | | address: '', |
| | | DO: '', |
| | | status: '', |
| | | extra: JSON.parse(localStorage.getItem('userInfo')).extra |
| | | } |
| | | this.getLists() |
| | | } |