12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- //采购化工材料运输派单
- <template>
- <div class="homeworkPath">
- <div class="top">
- <el-input
- placeholder="请输入内容"
- class="input"
- v-model="input"
- clearable
- >
- </el-input>
- <el-button type="primary" class="btn" @click="onclick">
- <i class="el-icon-search"></i>查询1
- </el-button>
- </div>
- <el-tabs v-model="activeName">
- <!-- 未下发 -->
- <el-tab-pane label="已接收" name="first">
- <dilTable v-bind.sync="option1" ref="table"> </dilTable>
- </el-tab-pane>
- <!-- 已下发 -->
- <el-tab-pane label="已拒绝" name="second">
- <dilTable v-bind.sync="option2"> </dilTable>
- </el-tab-pane>
- </el-tabs>
- </div>
- </template>
- <script>
- import { getCookie } from "@/utils/util.js";
- export default {
- name: "inplantTMS",
- data() {
- return {
- input: "",
- Time: "",
- activeName: "first",
- option1: {
- // 表格请求数据的地址
- requestUrl:"",
- },
- option2: {
- // 表格请求数据的地址
- requestUrl:"",
- },
- };
- },
- created() {
- //判断是否是承运商
- if (getCookie("orgCode") == "chengyunshang") {
- this.option1.requestUrl =
- "/api/v1/oms/getTransportDispatch?apiId=148&fuelOrder=2&orderStatus=111&carrierSSOId=" +
- getCookie("userId");
- this.option2.requestUrl =
- "/api/v1/oms/getTransportDispatch?apiId=241&fuelOrder=2&orderStatus=6&carrierSSOId=" +
- getCookie("userId");
- } else {
- this.option1.requestUrl =
- "/api/v1/oms/getTransportDispatch?apiId=148&fuelOrder=2&orderStatus=111&carrierSSOId=" +
- null;
- this.option2.requestUrl =
- "/api/v1/oms/getTransportDispatch?apiId=241&fuelOrder=2&orderStatus=6&carrierSSOId=" +
- null;
- }
- },
- methods: {
- onclick() {
- if (this.activeName == "first") {
- this.option1.requestUrl =
- "/api/v1/oms/getTransportDispatch?apiId=241&fuelOrder=2&orderStatus=111&con=" +
- this.input;
- } else {
- this.option2.requestUrl =
- "/api/v1/oms/getTransportDispatch?apiId=241&fuelOrder=2&orderStatus=6&con=" +
- this.input;
- }
- },
- },
- };
- </script>
- <style lang='scss'>
- .homeworkPath {
- .top {
- padding: 40px;
- .input {
- width: 250px;
- margin-right: 10px;
- }
- }
- }
- </style>
|