|
@@ -2,37 +2,55 @@
|
|
<!-- 新增运输作业页面 -->
|
|
<!-- 新增运输作业页面 -->
|
|
<div id="contractDetails">
|
|
<div id="contractDetails">
|
|
<page-title>运输预约</page-title>
|
|
<page-title>运输预约</page-title>
|
|
|
|
+ <div class="orderType from">
|
|
|
|
+ <!-- <span class="text">订单类别:</span>
|
|
|
|
+ <el-select
|
|
|
|
+ class="select"
|
|
|
|
+ v-model="orderType"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
|
- <div class="main">
|
|
|
|
- <el-divider content-position="left">新增运输预约</el-divider>
|
|
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in orderTypeList"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select> -->
|
|
|
|
+ <span class="span"></span>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
<div class="material from">
|
|
<div class="material from">
|
|
<span class="text">物资:</span>
|
|
<span class="text">物资:</span>
|
|
- <el-input v-model="materialName" disabled> </el-input>
|
|
|
|
|
|
+ <el-input class="input" v-model="materialName" disabled> </el-input>
|
|
<el-button type="primary" @click="ondrawer(1)">浏览</el-button>
|
|
<el-button type="primary" @click="ondrawer(1)">浏览</el-button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="forwardingUnit from">
|
|
<div class="forwardingUnit from">
|
|
<span class="text">发货单位:</span>
|
|
<span class="text">发货单位:</span>
|
|
- <el-input v-model="supplierName" disabled> </el-input>
|
|
|
|
|
|
+ <el-input class="input" v-model="supplierName" disabled> </el-input>
|
|
<el-button type="primary" @click="ondrawer(2)">浏览</el-button>
|
|
<el-button type="primary" @click="ondrawer(2)">浏览</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="remark from">
|
|
<div class="remark from">
|
|
<span class="text">船名:</span>
|
|
<span class="text">船名:</span>
|
|
- <el-input v-model="remark" @blur="onBlur"> </el-input>
|
|
|
|
|
|
+ <el-input class="input" v-model="remark" @blur="onBlur"> </el-input>
|
|
<span class="span"></span>
|
|
<span class="span"></span>
|
|
</div>
|
|
</div>
|
|
<div class="forwardingUnit from">
|
|
<div class="forwardingUnit from">
|
|
<span class="text">卸货点:</span>
|
|
<span class="text">卸货点:</span>
|
|
- <el-input v-model="unloadPointName" disabled> </el-input>
|
|
|
|
|
|
+ <el-input class="input" v-model="unloadPointName" disabled> </el-input>
|
|
<el-button type="primary" @click="ondrawer(4)">浏览</el-button>
|
|
<el-button type="primary" @click="ondrawer(4)">浏览</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="lineId from">
|
|
<div class="lineId from">
|
|
<span class="text">选择路线:</span>
|
|
<span class="text">选择路线:</span>
|
|
- <el-input v-model="lineName" disabled> </el-input>
|
|
|
|
|
|
+ <el-input class="input" v-model="lineName" disabled> </el-input>
|
|
<el-button type="primary" @click="ondrawer(5)">浏览</el-button>
|
|
<el-button type="primary" @click="ondrawer(5)">浏览</el-button>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="lineId from">
|
|
|
|
+ <span class="text">采购订单号:</span>
|
|
|
|
+ <el-input class="input" v-model="purchaseOrderNo" disabled> </el-input>
|
|
|
|
+ <el-button type="primary" @click="ondrawer(6)">浏览</el-button>
|
|
|
|
+ </div>
|
|
<div class="contractTitle from">
|
|
<div class="contractTitle from">
|
|
<dil-form :formId="219" v-model="form1"></dil-form>
|
|
<dil-form :formId="219" v-model="form1"></dil-form>
|
|
</div>
|
|
</div>
|
|
@@ -44,25 +62,10 @@
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <!-- 车辆表格 -->
|
|
|
|
- <div class="switch" v-if="selectionList.length > 0">
|
|
|
|
- <el-tooltip placement="top">
|
|
|
|
- <div slot="content">下面表格已有数据,不能进行更改!!!</div>
|
|
|
|
- <el-switch
|
|
|
|
- v-model="value"
|
|
|
|
- active-text="重量"
|
|
|
|
- inactive-text="件数"
|
|
|
|
- disabled
|
|
|
|
- >
|
|
|
|
- </el-switch>
|
|
|
|
- </el-tooltip>
|
|
|
|
- </div>
|
|
|
|
- <div class="switch" v-else>
|
|
|
|
- <el-tooltip placement="top">
|
|
|
|
- <div slot="content">当下面表格有数据之后,将不能进行更改!!!</div>
|
|
|
|
- <el-switch v-model="value" active-text="重量" inactive-text="件数">
|
|
|
|
- </el-switch>
|
|
|
|
- </el-tooltip>
|
|
|
|
|
|
+ <div class="lineId from">
|
|
|
|
+ <span class="text">该批车辆是否一车多趟:</span>
|
|
|
|
+ <el-switch v-model="isMoreTrips" active-text="是" inactive-text="否">
|
|
|
|
+ </el-switch>
|
|
</div>
|
|
</div>
|
|
<div class="truckListTable">
|
|
<div class="truckListTable">
|
|
<el-table
|
|
<el-table
|
|
@@ -81,22 +84,15 @@
|
|
align="center"
|
|
align="center"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
>
|
|
>
|
|
- <template slot="scope" v-if="item.th_name !== '件数'">
|
|
|
|
- <span>{{ item.label }}</span>
|
|
|
|
- </template>
|
|
|
|
<template slot="scope" v-if="item.th_name !== '重量'">
|
|
<template slot="scope" v-if="item.th_name !== '重量'">
|
|
<span>{{ item.label }}</span>
|
|
<span>{{ item.label }}</span>
|
|
</template>
|
|
</template>
|
|
<!-- 插入输入框 -->
|
|
<!-- 插入输入框 -->
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<template v-if="item.slot">
|
|
<template v-if="item.slot">
|
|
- <template v-if="item.prop == 'orderMaterialNumber'">
|
|
|
|
- <el-input
|
|
|
|
- v-model.number="scope.row.orderMaterialNumber"
|
|
|
|
- ></el-input>
|
|
|
|
- </template>
|
|
|
|
<template v-if="item.prop == 'orderMaterialWeight'">
|
|
<template v-if="item.prop == 'orderMaterialWeight'">
|
|
<el-input
|
|
<el-input
|
|
|
|
+ style="width: 250px"
|
|
v-model.number="scope.row.orderMaterialWeight"
|
|
v-model.number="scope.row.orderMaterialWeight"
|
|
></el-input>
|
|
></el-input>
|
|
</template>
|
|
</template>
|
|
@@ -117,49 +113,82 @@
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
<!-- 模态窗口 -->
|
|
<!-- 模态窗口 -->
|
|
- <el-drawer :visible.sync="drawer" :direction="direction" size="30%">
|
|
|
|
- <el-input
|
|
|
|
- placeholder="请输入内容"
|
|
|
|
- v-model="input"
|
|
|
|
- style="margin-top: 0.625rem; margin-left: 1.25rem"
|
|
|
|
- clearable
|
|
|
|
- ></el-input>
|
|
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- class="btn"
|
|
|
|
- @click="onclick(a)"
|
|
|
|
- style="margin-bottom: 0.9375rem"
|
|
|
|
- >
|
|
|
|
- <i class="el-icon-search"></i>查询
|
|
|
|
- </el-button>
|
|
|
|
- <div v-show="a == 1">
|
|
|
|
|
|
+ <el-drawer :visible.sync="drawer" :direction="direction" size="40%">
|
|
|
|
+ <div class="drawer_top">
|
|
|
|
+ <el-input
|
|
|
|
+ placeholder="请输入内容"
|
|
|
|
+ v-model="input"
|
|
|
|
+ style="margin-top: 10px; margin-right: 10px; width: 250px"
|
|
|
|
+ clearable
|
|
|
|
+ ></el-input>
|
|
|
|
+ <el-button type="primary" class="btn" @click="onclick">
|
|
|
|
+ <i class="el-icon-search"></i>查询
|
|
|
|
+ </el-button>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="drawer_table1" v-show="onDrawerNumber == 1">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="frist"
|
|
v-bind.sync="frist"
|
|
@radio-change="currentRadioChange1"
|
|
@radio-change="currentRadioChange1"
|
|
|
|
+ :isKuang="isKuang"
|
|
|
|
+ @func="func"
|
|
|
|
+ :isHeigth="isHeigth"
|
|
|
|
+ :shiyHeigth="shiyHeigth"
|
|
|
|
+ :drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
- <div v-show="a == 2">
|
|
|
|
|
|
+ <div v-show="onDrawerNumber == 2">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="secend"
|
|
v-bind.sync="secend"
|
|
@radio-change="currentRadioChange2"
|
|
@radio-change="currentRadioChange2"
|
|
|
|
+ :isKuang="isKuang"
|
|
|
|
+ @func="func"
|
|
|
|
+ :isHeigth="isHeigth1"
|
|
|
|
+ :shiyHeigth="shiyHeigth1"
|
|
|
|
+ :drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
- <div v-show="a == 3">
|
|
|
|
|
|
+ <div v-show="onDrawerNumber == 3">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="third"
|
|
v-bind.sync="third"
|
|
@selection-change="currentRadioChange3"
|
|
@selection-change="currentRadioChange3"
|
|
|
|
+ :isKuang="isKuang"
|
|
|
|
+ @func="func"
|
|
|
|
+ :isHeigth="isHeigth2"
|
|
|
|
+ :shiyHeigth="shiyHeigth2"
|
|
|
|
+ :drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
- <div v-show="a == 4">
|
|
|
|
|
|
+ <div v-show="onDrawerNumber == 4">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="unloadPoint"
|
|
v-bind.sync="unloadPoint"
|
|
@radio-change="currentRadioChange4"
|
|
@radio-change="currentRadioChange4"
|
|
|
|
+ :isKuang="isKuang"
|
|
|
|
+ @func="func"
|
|
|
|
+ :isHeigth="isHeigth3"
|
|
|
|
+ :shiyHeigth="shiyHeigth3"
|
|
|
|
+ :drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
- <div v-show="a == 5">
|
|
|
|
|
|
+ <div v-show="onDrawerNumber == 5">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="line"
|
|
v-bind.sync="line"
|
|
@radio-change="currentRadioChange5"
|
|
@radio-change="currentRadioChange5"
|
|
|
|
+ :isKuang="isKuang"
|
|
|
|
+ @func="func"
|
|
|
|
+ :isHeigth="isHeigth4"
|
|
|
|
+ :shiyHeigth="shiyHeigth4"
|
|
|
|
+ :drawer="drawer"
|
|
|
|
+ ></dilTable>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-show="onDrawerNumber == 6">
|
|
|
|
+ <dilTable
|
|
|
|
+ v-bind.sync="purchaseOrder"
|
|
|
|
+ @radio-change="currentRadioChange6"
|
|
|
|
+ :isKuang="isKuang"
|
|
|
|
+ @func="func"
|
|
|
|
+ :isHeigth="isHeigth5"
|
|
|
|
+ :shiyHeigth="shiyHeigth5"
|
|
|
|
+ :drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
</el-drawer>
|
|
</el-drawer>
|
|
@@ -171,11 +200,45 @@
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import PageTitle from "@/components/Page/Title";
|
|
import PageTitle from "@/components/Page/Title";
|
|
-
|
|
|
|
|
|
+import { sjTime, isNumber, isIntegerNumber } from "@/utils/sharedJsFile";
|
|
|
|
+import { getCookie } from "@/utils/util.js";
|
|
export default {
|
|
export default {
|
|
components: { PageTitle },
|
|
components: { PageTitle },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ //限定first
|
|
|
|
+ isHeigth:true,
|
|
|
|
+ shiyHeigth:140,
|
|
|
|
+ //限定second
|
|
|
|
+ isHeigth1:true,
|
|
|
|
+ shiyHeigth1:140,
|
|
|
|
+ //限定third
|
|
|
|
+ isHeigth2:true,
|
|
|
|
+ shiyHeigth2:140,
|
|
|
|
+ //限定unloadPoint
|
|
|
|
+ isHeigth3:true,
|
|
|
|
+ shiyHeigth3:140,
|
|
|
|
+ //限定line
|
|
|
|
+ isHeigth4:true,
|
|
|
|
+ shiyHeigth4:140,
|
|
|
|
+ //限定purchaseOrder
|
|
|
|
+ isHeigth5:true,
|
|
|
|
+ shiyHeigth5:140,
|
|
|
|
+ isKuang: false,
|
|
|
|
+ //采购订单号
|
|
|
|
+ purchaseOrderNo: "",
|
|
|
|
+ isMoreTrips: false,
|
|
|
|
+ //订单类别
|
|
|
|
+ orderTypeList: [
|
|
|
|
+ {
|
|
|
|
+ value: 6,
|
|
|
|
+ label: "老厂区",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: 7,
|
|
|
|
+ label: "新厂区",
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
// 线路名称
|
|
// 线路名称
|
|
lineName: "",
|
|
lineName: "",
|
|
//线路id
|
|
//线路id
|
|
@@ -197,8 +260,8 @@ export default {
|
|
width: "140",
|
|
width: "140",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- prop: "orderMaterialNumber",
|
|
|
|
- label: "件数",
|
|
|
|
|
|
+ prop: "orderMaterialWeight",
|
|
|
|
+ label: "重量",
|
|
slot: true,
|
|
slot: true,
|
|
},
|
|
},
|
|
],
|
|
],
|
|
@@ -222,54 +285,57 @@ export default {
|
|
unloadPointId: "",
|
|
unloadPointId: "",
|
|
//卸货点名称
|
|
//卸货点名称
|
|
unloadPointName: "",
|
|
unloadPointName: "",
|
|
- a: 1,
|
|
|
|
|
|
+ //订单类别
|
|
|
|
+ orderType: 5,
|
|
|
|
+ onDrawerNumber: 1,
|
|
direction: "rtl",
|
|
direction: "rtl",
|
|
input: "",
|
|
input: "",
|
|
frist: {
|
|
frist: {
|
|
- requestUrl: "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050",
|
|
|
|
|
|
+ requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
mapList1: [],
|
|
mapList1: [],
|
|
},
|
|
},
|
|
secend: {
|
|
secend: {
|
|
- requestUrl:
|
|
|
|
- "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=",
|
|
|
|
|
|
+ requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
mapList2: [],
|
|
mapList2: [],
|
|
},
|
|
},
|
|
third: {
|
|
third: {
|
|
- requestUrl: "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248",
|
|
|
|
|
|
+ requestUrl: "",
|
|
selectionType: "select",
|
|
selectionType: "select",
|
|
mapList3: [],
|
|
mapList3: [],
|
|
},
|
|
},
|
|
unloadPoint: {
|
|
unloadPoint: {
|
|
- requestUrl: "/api/v1/uc/getUnloadingMesByLike?apiId=374",
|
|
|
|
|
|
+ requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
},
|
|
},
|
|
line: {
|
|
line: {
|
|
- requestUrl: "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3",
|
|
|
|
|
|
+ requestUrl: "",
|
|
|
|
+ selectionType: "radio",
|
|
|
|
+ },
|
|
|
|
+ purchaseOrder: {
|
|
|
|
+ requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
},
|
|
},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- value() {
|
|
|
|
- if (this.value) {
|
|
|
|
- this.tableTop.splice(this.tableTop.length - 1, 1);
|
|
|
|
- this.tableTop.push({
|
|
|
|
- prop: "orderMaterialWeight",
|
|
|
|
- label: "重量",
|
|
|
|
- slot: true,
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- this.tableTop.splice(this.tableTop.length - 1, 1);
|
|
|
|
- this.tableTop.push({
|
|
|
|
- prop: "orderMaterialNumber",
|
|
|
|
- label: "件数",
|
|
|
|
- slot: true,
|
|
|
|
- });
|
|
|
|
|
|
+ drawer(val) {
|
|
|
|
+ if (val) {
|
|
|
|
+ this.input = null;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ created() {
|
|
|
|
+ if (getCookie("orgCode") == "chengyunshang") {
|
|
|
|
+ this.third.requestUrl =
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
|
|
|
|
+ getCookie("userId");
|
|
|
|
+ } else {
|
|
|
|
+ this.third.requestUrl =
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
onClick(index) {
|
|
onClick(index) {
|
|
this.selectionList.splice(index, 1);
|
|
this.selectionList.splice(index, 1);
|
|
@@ -297,9 +363,15 @@ export default {
|
|
});
|
|
});
|
|
this.form1 = [];
|
|
this.form1 = [];
|
|
} else {
|
|
} else {
|
|
|
|
+ console.log();
|
|
this.remark = res.data.data.remark;
|
|
this.remark = res.data.data.remark;
|
|
this.purchaseOrderId = res.data.data.purchaseOrderId;
|
|
this.purchaseOrderId = res.data.data.purchaseOrderId;
|
|
- this.form1 = { purchaseOrderNo: res.data.data.purchaseOrderNo };
|
|
|
|
|
|
+ this.purchaseOrderNo = res.data.data.purchaseOrderNo;
|
|
|
|
+ // if (res.data.data.receiveUnitId == 1) {
|
|
|
|
+ // this.orderType = 6;
|
|
|
|
+ // } else {
|
|
|
|
+ // this.orderType = 7;
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
this.$message.error("请求失败");
|
|
this.$message.error("请求失败");
|
|
@@ -307,44 +379,135 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- onclick(a) {
|
|
|
|
- if (a == 1) {
|
|
|
|
- this.frist.requestUrl =
|
|
|
|
- "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
|
|
|
|
- this.input;
|
|
|
|
- } else if (a == 2) {
|
|
|
|
- this.secend.requestUrl =
|
|
|
|
- "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
|
|
|
|
- this.materialId +
|
|
|
|
- "&index=" +
|
|
|
|
- this.input;
|
|
|
|
- } else if (a == 3) {
|
|
|
|
- this.third.requestUrl =
|
|
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&index=" +
|
|
|
|
- this.input;
|
|
|
|
- } else if (a == 4) {
|
|
|
|
- this.third.requestUrl =
|
|
|
|
- "/api/v1/uc/getUnloadingMesByLike?apiId=347&index=" + this.input;
|
|
|
|
- } else if (a == 5) {
|
|
|
|
- this.option.requestUrl =
|
|
|
|
- "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=" + this.input;
|
|
|
|
|
|
+ onclick() {
|
|
|
|
+ if (this.input) {
|
|
|
|
+ this.isKuang = true;
|
|
|
|
+ if (this.onDrawerNumber == 1) {
|
|
|
|
+ this.frist.requestUrl =
|
|
|
|
+ "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
|
|
|
|
+ this.input;
|
|
|
|
+ } else if (this.onDrawerNumber == 2) {
|
|
|
|
+ this.secend.requestUrl =
|
|
|
|
+ "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
|
|
|
|
+ this.materialId +
|
|
|
|
+ "&index=" +
|
|
|
|
+ this.input;
|
|
|
|
+ } else if (this.onDrawerNumber == 3) {
|
|
|
|
+ //判断是否是承运商查询车辆
|
|
|
|
+ if (getCookie("orgCode") == "chengyunshang") {
|
|
|
|
+ this.third.requestUrl =
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
|
|
|
|
+ getCookie("userId") +
|
|
|
|
+ "&index=" +
|
|
|
|
+ this.input;
|
|
|
|
+ } else {
|
|
|
|
+ this.third.requestUrl =
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
|
|
|
|
+ null +
|
|
|
|
+ "&index=" +
|
|
|
|
+ this.input;
|
|
|
|
+ }
|
|
|
|
+ } else if (this.onDrawerNumber == 4) {
|
|
|
|
+ this.unloadPoint.requestUrl =
|
|
|
|
+ "/api/v1/uc/getUnloadingMesByLike?apiId=374&index=" + this.input;
|
|
|
|
+ } else if (this.onDrawerNumber == 5) {
|
|
|
|
+ this.line.requestUrl =
|
|
|
|
+ "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=" + this.input;
|
|
|
|
+ } else if (this.onDrawerNumber == 6) {
|
|
|
|
+ this.purchaseOrder.requestUrl =
|
|
|
|
+ "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId=" +
|
|
|
|
+ this.supplierId +
|
|
|
|
+ "&con=" +
|
|
|
|
+ this.input +
|
|
|
|
+ "&i=" +
|
|
|
|
+ new Date();
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (this.onDrawerNumber == 1) {
|
|
|
|
+ this.frist.requestUrl =
|
|
|
|
+ "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&i=" +
|
|
|
|
+ new Date();
|
|
|
|
+ } else if (this.onDrawerNumber == 2) {
|
|
|
|
+ this.secend.requestUrl =
|
|
|
|
+ "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
|
|
|
|
+ this.materialId +
|
|
|
|
+ "&i=" +
|
|
|
|
+ new Date();
|
|
|
|
+ } else if (this.onDrawerNumber == 3) {
|
|
|
|
+ //判断是否是承运商查询车辆
|
|
|
|
+ if (getCookie("orgCode") == "chengyunshang") {
|
|
|
|
+ this.third.requestUrl =
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
|
|
|
|
+ getCookie("userId") +
|
|
|
|
+ "&i=" +
|
|
|
|
+ new Date();
|
|
|
|
+ } else {
|
|
|
|
+ this.third.requestUrl =
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
|
|
|
|
+ null +
|
|
|
|
+ "&i=" +
|
|
|
|
+ new Date();
|
|
|
|
+ }
|
|
|
|
+ } else if (this.onDrawerNumber == 4) {
|
|
|
|
+ this.unloadPoint.requestUrl =
|
|
|
|
+ "/api/v1/uc/getUnloadingMesByLike?apiId=374&i=" + new Date();
|
|
|
|
+ } else if (this.onDrawerNumber == 5) {
|
|
|
|
+ this.line.requestUrl =
|
|
|
|
+ "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i=" + new Date();
|
|
|
|
+ } else if (this.onDrawerNumber == 6) {
|
|
|
|
+ this.purchaseOrder.requestUrl =
|
|
|
|
+ "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId=" +
|
|
|
|
+ this.supplierId +
|
|
|
|
+ "&i=" +
|
|
|
|
+ new Date();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
ondrawer(num) {
|
|
ondrawer(num) {
|
|
this.drawer = true;
|
|
this.drawer = true;
|
|
- this.a = num;
|
|
|
|
- if (num == 2) {
|
|
|
|
|
|
+ this.onDrawerNumber = num;
|
|
|
|
+ if (num == 1) {
|
|
|
|
+ this.frist.requestUrl =
|
|
|
|
+ "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
|
|
|
|
+ this.input;
|
|
|
|
+ } else if (num == 2) {
|
|
this.secend.requestUrl =
|
|
this.secend.requestUrl =
|
|
"/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
|
|
"/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
|
|
this.materialId;
|
|
this.materialId;
|
|
|
|
+ } else if (num == 3) {
|
|
|
|
+ //判断是否是承运商查询车辆
|
|
|
|
+ if (getCookie("orgCode") == "chengyunshang") {
|
|
|
|
+ this.third.requestUrl =
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
|
|
|
|
+ getCookie("userId") +
|
|
|
|
+ "&i=" +
|
|
|
|
+ new Date();
|
|
|
|
+ } else {
|
|
|
|
+ this.third.requestUrl =
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
|
|
|
|
+ null +
|
|
|
|
+ "&i=" +
|
|
|
|
+ new Date();
|
|
|
|
+ }
|
|
|
|
+ } else if (num == 4) {
|
|
|
|
+ this.unloadPoint.requestUrl =
|
|
|
|
+ "/api/v1/uc/getUnloadingMesByLike?apiId=374&i=" + new Date();
|
|
|
|
+ } else if (num == 5) {
|
|
|
|
+ this.line.requestUrl =
|
|
|
|
+ "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=辅料&i=" + new Date();
|
|
|
|
+ } else if (num == 6) {
|
|
|
|
+ this.purchaseOrder.requestUrl =
|
|
|
|
+ "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId=" +
|
|
|
|
+ this.supplierId +
|
|
|
|
+ "&i=" +
|
|
|
|
+ new Date();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 返回
|
|
// 返回
|
|
onClickCancel() {
|
|
onClickCancel() {
|
|
- this.$router.push("/transportReserveFu");
|
|
|
|
|
|
+ this.$router.push("/transportReserveRan");
|
|
},
|
|
},
|
|
currentRadioChange1(selection) {
|
|
currentRadioChange1(selection) {
|
|
- this.input = null;
|
|
|
|
this.materialName = selection.materialName;
|
|
this.materialName = selection.materialName;
|
|
this.materialId = selection.materialId;
|
|
this.materialId = selection.materialId;
|
|
this.getPurchaseOrderNo();
|
|
this.getPurchaseOrderNo();
|
|
@@ -362,10 +525,22 @@ export default {
|
|
this.lineName = selection.lineName;
|
|
this.lineName = selection.lineName;
|
|
this.lineId = selection.lineId;
|
|
this.lineId = selection.lineId;
|
|
},
|
|
},
|
|
|
|
+ currentRadioChange6(selection) {
|
|
|
|
+ this.materialName = selection.materialName;
|
|
|
|
+ this.materialId = selection.materialId;
|
|
|
|
+ this.supplierId = selection.supplierId;
|
|
|
|
+ this.supplierName = selection.supplierName;
|
|
|
|
+ this.purchaseOrderNo = selection.purchaseOrderNo;
|
|
|
|
+ this.purchaseOrderId = selection.purchaseOrderId;
|
|
|
|
+ },
|
|
currentRadioChange3(selection) {
|
|
currentRadioChange3(selection) {
|
|
this.selectionList = [];
|
|
this.selectionList = [];
|
|
this.selectionList = selection;
|
|
this.selectionList = selection;
|
|
},
|
|
},
|
|
|
|
+ func(res) {
|
|
|
|
+ console.log(res);
|
|
|
|
+ this.isKuang = false;
|
|
|
|
+ },
|
|
// 确认
|
|
// 确认
|
|
onClickConfirm() {
|
|
onClickConfirm() {
|
|
var state = 0;
|
|
var state = 0;
|
|
@@ -384,31 +559,45 @@ export default {
|
|
message: "请选择物资!",
|
|
message: "请选择物资!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
- } else if (!this.supplierId) {
|
|
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // else if (!this.orderType) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: "请选择订单类别!",
|
|
|
|
+ // type: "warning",
|
|
|
|
+ // });
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
|
|
+ else if (!this.supplierId) {
|
|
this.$message({
|
|
this.$message({
|
|
message: "请选择发货单位!",
|
|
message: "请选择发货单位!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
|
|
+ return;
|
|
} else if (!this.purchaseOrderId) {
|
|
} else if (!this.purchaseOrderId) {
|
|
this.$message({
|
|
this.$message({
|
|
message: "没有匹配的采购订单号!",
|
|
message: "没有匹配的采购订单号!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
|
|
+ return;
|
|
} else if (!this.unloadPointId) {
|
|
} else if (!this.unloadPointId) {
|
|
this.$message({
|
|
this.$message({
|
|
message: "请选择卸货地点!",
|
|
message: "请选择卸货地点!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
|
|
+ return;
|
|
} else if (!this.lineId) {
|
|
} else if (!this.lineId) {
|
|
this.$message({
|
|
this.$message({
|
|
message: "请选择运输路线!",
|
|
message: "请选择运输路线!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
|
|
+ return;
|
|
} else if (!sjTime(this.form1.orderEntryTime)) {
|
|
} else if (!sjTime(this.form1.orderEntryTime)) {
|
|
this.$message({
|
|
this.$message({
|
|
message: "请选择预估进厂时间!",
|
|
message: "请选择预估进厂时间!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (this.selectionList.length == 0) {
|
|
if (this.selectionList.length == 0) {
|
|
@@ -416,116 +605,159 @@ export default {
|
|
message: "请选择车辆!",
|
|
message: "请选择车辆!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
- state = 0;
|
|
|
|
|
|
+ return;
|
|
} else {
|
|
} else {
|
|
this.selectionList.forEach((e) => {
|
|
this.selectionList.forEach((e) => {
|
|
- if (e.orderMaterialNumber || e.orderMaterialWeight) {
|
|
|
|
- if (
|
|
|
|
- isNumber(e.orderMaterialNumber) ||
|
|
|
|
- isNumber(e.orderMaterialWeight)
|
|
|
|
- ) {
|
|
|
|
- if (
|
|
|
|
- isIntegerNumber(e.orderMaterialNumber) ||
|
|
|
|
- isIntegerNumber(e.orderMaterialWeight)
|
|
|
|
- ) {
|
|
|
|
|
|
+ if (e.orderMaterialWeight) {
|
|
|
|
+ if (isNumber(e.orderMaterialWeight)) {
|
|
|
|
+ if (isIntegerNumber(e.orderMaterialWeight)) {
|
|
state = 1;
|
|
state = 1;
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
- message: "件数(重量)只能是整数!",
|
|
|
|
|
|
+ message: "重量只能是整数!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
- state = 0;
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
- message: "件数(重量)只能是数字!",
|
|
|
|
|
|
+ message: "重量只能是数字!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
- state = 0;
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- this.$message({
|
|
|
|
- message: "件数(重量)不能为空!",
|
|
|
|
- type: "warning",
|
|
|
|
- });
|
|
|
|
- state = 0;
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ let map = {
|
|
|
|
+ materialId: this.materialId,
|
|
|
|
+ supplierId: this.supplierId,
|
|
|
|
+ purchaseOrderId: this.purchaseOrderId,
|
|
|
|
+ unloadPointId: this.unloadPointId,
|
|
|
|
+ orderEntryTime: sjTime(this.form1.orderEntryTime),
|
|
|
|
+ driverCapacityIdList: this.selectionList,
|
|
|
|
+ orderType: this.orderType,
|
|
|
|
+ lineId: this.lineId,
|
|
|
|
+ isMoreTrips: this.isMoreTrips,
|
|
|
|
+ };
|
|
|
|
|
|
- if (state == 1) {
|
|
|
|
- let map = {
|
|
|
|
- materialId: this.materialId,
|
|
|
|
- supplierId: this.supplierId,
|
|
|
|
- purchaseOrderId: this.purchaseOrderId,
|
|
|
|
- unloadPointId: this.unloadPointId,
|
|
|
|
- orderEntryTime: sjTime(this.form1.orderEntryTime),
|
|
|
|
- driverCapacityIdList: this.selectionList,
|
|
|
|
- orderType: 5,
|
|
|
|
- lineId: this.lineId,
|
|
|
|
- };
|
|
|
|
- console.log(map, map);
|
|
|
|
- this.axios.post("/api/v1/oms/addPurOrder", map).then((res) => {
|
|
|
|
- if (res.data.code == "200") {
|
|
|
|
- this.$message({
|
|
|
|
- message: "添加成功!",
|
|
|
|
- type: "success",
|
|
|
|
- });
|
|
|
|
- this.$router.push("/transportReserveFu");
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ this.axios.post("/api/v1/oms/addPurOrder", map).then((res) => {
|
|
|
|
+ if (res.data.code == "200") {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: "添加成功!",
|
|
|
|
+ type: "success",
|
|
|
|
+ });
|
|
|
|
+ this.$router.push("/transportReserveFu");
|
|
|
|
+ }
|
|
|
|
+ });
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
-
|
|
|
|
-<style lang="scss" >
|
|
|
|
|
|
+<style lang="scss">
|
|
.contractDetails {
|
|
.contractDetails {
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.el-drawer__container ::-webkit-scrollbar {
|
|
|
|
+ display: none;
|
|
|
|
+}
|
|
.from {
|
|
.from {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
- margin-top: 0.3125rem;
|
|
|
|
- margin-bottom: 1.25rem;
|
|
|
|
|
|
+ margin-top: 5px;
|
|
|
|
+ margin-bottom: 20px;
|
|
}
|
|
}
|
|
.remark {
|
|
.remark {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
.text {
|
|
.text {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
- width: 5.625rem;
|
|
|
|
|
|
+ width: 100px;
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
+ .input {
|
|
|
|
+ width: 250px;
|
|
|
|
+ margin-right: 20px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.lineId {
|
|
.lineId {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
.text {
|
|
.text {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
- width: 10rem;
|
|
|
|
|
|
+ width: 170px;
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
+ .input {
|
|
|
|
+ width: 250px;
|
|
|
|
+ margin-right: 20px;
|
|
|
|
+ }
|
|
|
|
+ .span {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ width: 70px;
|
|
|
|
+ height: 1px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.material {
|
|
.material {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ margin-top: 20px;
|
|
.text {
|
|
.text {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
- width: 10rem;
|
|
|
|
|
|
+ width: 170px;
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
+ .input {
|
|
|
|
+ width: 250px;
|
|
|
|
+ margin-right: 20px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
-.switch {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 2.5rem;
|
|
|
|
|
|
+.orderType {
|
|
display: flex;
|
|
display: flex;
|
|
- align-items: center;
|
|
|
|
- justify-content: flex-end;
|
|
|
|
- padding-right: 6.875rem;
|
|
|
|
|
|
+ justify-content: center;
|
|
|
|
+ .text {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ width: 110px;
|
|
|
|
+ text-align: right;
|
|
|
|
+ }
|
|
|
|
+ .select {
|
|
|
|
+ width: 250px;
|
|
|
|
+ }
|
|
|
|
+ .span {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ width: 30px;
|
|
|
|
+ height: 10px;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+.contractTitle {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ .el-form-item {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ .el-form-item__label {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ }
|
|
|
|
+ .el-input {
|
|
|
|
+ width: 250px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.forwardingUnit {
|
|
.forwardingUnit {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
.text {
|
|
.text {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
- width: 10rem;
|
|
|
|
|
|
+ width: 170px;
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
+ .input {
|
|
|
|
+ width: 250px;
|
|
|
|
+ margin-right: 20px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.truckList1 {
|
|
.truckList1 {
|
|
width: 100%;
|
|
width: 100%;
|
|
@@ -533,19 +765,28 @@ export default {
|
|
width: 96%;
|
|
width: 96%;
|
|
.text {
|
|
.text {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
- width: 9.375rem;
|
|
|
|
|
|
+ width: 120px;
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
.truckBtn {
|
|
.truckBtn {
|
|
- width: 17.5rem;
|
|
|
|
|
|
+ width: 250px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+.drawer_top{
|
|
|
|
+ margin-top: -50px;
|
|
|
|
+ width: 100%;height: 60px;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+}
|
|
|
|
+.drawer_table1{
|
|
|
|
+ width: 100%;height: 500px;
|
|
|
|
+}
|
|
.button_box {
|
|
.button_box {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
width: 100%;
|
|
- height: 6.25rem;
|
|
|
|
|
|
+ height: 100px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|