|
@@ -1,19 +1,24 @@
|
|
|
<template>
|
|
|
<!-- 辅料出厂作业页面 -->
|
|
|
<div class="homeworkPath">
|
|
|
- <div class="top">
|
|
|
- <el-input placeholder="请输入内容" class="input" v-model="input" clearable> </el-input>
|
|
|
+ <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>查询
|
|
|
</el-button>
|
|
|
</div>
|
|
|
- <dilTable v-bind.sync="option">
|
|
|
-
|
|
|
- </dilTable>
|
|
|
+ <dilTable v-bind.sync="option"> </dilTable>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { getCookie } from "@/utils/util.js";
|
|
|
export default {
|
|
|
name: "homeworkPath",
|
|
|
data() {
|
|
@@ -22,24 +27,38 @@ export default {
|
|
|
input: "",
|
|
|
option: {
|
|
|
// 表格请求数据的地址
|
|
|
- requestUrl: "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=5",
|
|
|
+ requestUrl: "",
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
-
|
|
|
+ created() {
|
|
|
+ this.getRequestUrl();
|
|
|
+ },
|
|
|
methods: {
|
|
|
-
|
|
|
+ getRequestUrl(){
|
|
|
+ if (getCookie("orgCode") == "chengyunshang") {
|
|
|
+ this.option.requestUrl =
|
|
|
+ "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=5&carrierSsoId=" +
|
|
|
+ getCookie("userId");
|
|
|
+ } else {
|
|
|
+ this.option.requestUrl =
|
|
|
+ "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=5&carrierSsoId=" +
|
|
|
+ null;
|
|
|
+ }
|
|
|
+ },
|
|
|
onclick() {
|
|
|
- this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=5&con=" + this.input;
|
|
|
+ this.option.requestUrl =
|
|
|
+ "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=5&con=" +
|
|
|
+ this.input;
|
|
|
},
|
|
|
- }
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
<style lang='scss'>
|
|
|
.homeworkPath {
|
|
|
- .top {
|
|
|
+ .top {
|
|
|
padding: 40px;
|
|
|
- .input{
|
|
|
+ .input {
|
|
|
width: 250px;
|
|
|
margin-right: 10px;
|
|
|
}
|