|
@@ -1,9 +1,20 @@
|
|
//老区采购化工产品出厂作业
|
|
//老区采购化工产品出厂作业
|
|
<template>
|
|
<template>
|
|
<div class="homeworkPath">
|
|
<div class="homeworkPath">
|
|
|
|
+<<<<<<< HEAD
|
|
|
|
+ <div class="top">
|
|
|
|
+ <span class="text">出厂时间:</span>
|
|
|
|
+ <el-date-picker v-model="startTime" type="datetime" placeholder="选择日期">
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ <span class="text1">至</span>
|
|
|
|
+ <el-date-picker v-model="endTime" type="datetime" placeholder="选择日期">
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ <el-button type="primary" class="btn" @click="onclick">
|
|
|
|
+=======
|
|
<div class="top">
|
|
<div class="top">
|
|
<el-input placeholder="请输入内容" class="input" v-model="input" clearable> </el-input>
|
|
<el-input placeholder="请输入内容" class="input" v-model="input" clearable> </el-input>
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
|
|
+>>>>>>> 316aaeed393abe41c9ba8b8fc4bef29b4f666027
|
|
<i class="el-icon-search"></i>查询
|
|
<i class="el-icon-search"></i>查询
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -14,13 +25,19 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+<<<<<<< HEAD
|
|
|
|
+import { sjTime } from "@/utils/sharedJsFile";
|
|
|
|
+=======
|
|
import { getCookie } from "@/utils/util.js";
|
|
import { getCookie } from "@/utils/util.js";
|
|
|
|
+>>>>>>> 316aaeed393abe41c9ba8b8fc4bef29b4f666027
|
|
export default {
|
|
export default {
|
|
name: "homeworkPath",
|
|
name: "homeworkPath",
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
restaurants: [],
|
|
restaurants: [],
|
|
input: "",
|
|
input: "",
|
|
|
|
+ startTime: null,
|
|
|
|
+ endTime: null,
|
|
option: {
|
|
option: {
|
|
// 表格请求数据的地址
|
|
// 表格请求数据的地址
|
|
requestUrl: "",
|
|
requestUrl: "",
|
|
@@ -37,11 +54,34 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
onclick() {
|
|
onclick() {
|
|
|
|
+<<<<<<< HEAD
|
|
|
|
+ let startTime = null;
|
|
|
|
+ let endTime = null;
|
|
|
|
+ if(this.startTime){
|
|
|
|
+ startTime = sjTime(this.startTime);
|
|
|
|
+ }
|
|
|
|
+ if(this.endTime){
|
|
|
|
+ endTime = sjTime(this.endTime);
|
|
|
|
+ }
|
|
|
|
+ if(startTime && endTime){
|
|
|
|
+ if(startTime < endTime){
|
|
|
|
+ this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=6&startTime="+startTime+"&endTime="+endTime+"&i=" +new Date();
|
|
|
|
+ }else{
|
|
|
|
+ this.startTime = null;
|
|
|
|
+ this.endTime = null;
|
|
|
|
+ this.$message.warning('开始时间要比结束时间早')
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=6&startTime="+startTime+"&endTime="+endTime+"&i=" +new Date();
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+=======
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=17&carrierSsoId=" + getCookie("userId")+"&con=" + this.input;;
|
|
this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=17&carrierSsoId=" + getCookie("userId")+"&con=" + this.input;;
|
|
} else {
|
|
} else {
|
|
this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=17&carrierSsoId=" + null +"&con=" + this.input;
|
|
this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=17&carrierSsoId=" + null +"&con=" + this.input;
|
|
}
|
|
}
|
|
|
|
+>>>>>>> 316aaeed393abe41c9ba8b8fc4bef29b4f666027
|
|
},
|
|
},
|
|
}
|
|
}
|
|
};
|
|
};
|