1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <template>
- <!-- 出库 -->
- <div class="homeworkPath">
- <div class="top">
- <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
- <el-button type="primary" class="btn" @click="onclick">
- <i class="el-icon-search"></i>查询
- </el-button>
- <el-button type="primary" class="btn" @click="insert">
- 出库
- </el-button>
- </div>
- <el-tabs v-model="activeName" @tab-click="handleClick">
- <dilTable v-bind.sync="option1" ref="table"> </dilTable>
- </el-tabs>
- </div>
- </template>
- <script>
- export default {
- name: "inplantTMS",
- data() {
- return {
- input: "",
- Time: "",
- activeName: "first",
- option1: {
- // 表格请求数据的地址
- requestUrl: "/api/v1/wmsh/getOutBoundResult?apiId=159"
- }
- };
- },
- filters: {},
- methods: {
- onclick() {
- if (this.activeName == "first") {
- this.option1.requestUrl =
- "/api/v1/wmsh/getOutBoundResult?apiId=159&con=" + this.input;
- }
- },
- insert() {
- this.$router.push("/addWagonLoadCopy");
- },
- handleClick(tab, event) {
- console.log(tab, event);
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- .homeworkPath {
- .top {
- padding: 1.25rem 0.375rem;
- .el-input {
- width: 20%;
- margin-right: 40rpx;
- }
- .btn {
- width: 5.5%;
- margin-left: 0.25rem;
- }
- }
- }
- </style>
|