// 卸货作业
<template>
    <div class="sale">
        <div class="top">
            <!-- 框计算 -->
            <el-input
                placeholder="请输入内容"
                v-model="inputText"
                clearable>
            </el-input>
            <el-button type="primary" class="btn" @click="onclick">
                <i class="el-icon-search"></i>查询
            </el-button>
        </div>
        <div class="tab">
            <dilTable v-bind.sync="option"></dilTable>
        </div>
    </div>
</template>
<script>
import { getCookie } from "@/utils/util.js";
export default {
    data(){
        return{
            inputText:'',
            option: {       
                // 表格请求数据的地址
                requestUrl: "",
            },
        }
    },
    created(){
        if(getCookie("orgCode") == "dagangadmin" || getCookie("orgCode") == "zidonghuabu"){
            this.option.requestUrl = "/api/v1/tms/getUnloadResult?apiId=356&orderType=10"
        }else{
            this.option.requestUrl = "/api/v1/tms/getUnloadResult?apiId=356&orderType=10&userId=" + getCookie("orgCode")
        }
    },
    methods:{
        // onclick(){
        //     this.option.requestUrl = "/api/v1/tms/getUnloadResult?apiId=356&orderType=10&con="+this.inputText;
        // }
    }
}
</script>
<style lang="scss">
    .sale{
        .top{
            width: 100%;height: 5rem;
            display: flex;
            align-items: center;
            padding-left: 2.5rem;
        .el-input{
            width: 20%;
        }
        }
    }
</style>