|
@@ -1,35 +1,47 @@
|
|
|
//运输派单
|
|
|
<template>
|
|
|
- <div >
|
|
|
+ <div>
|
|
|
<div style="margin:10px">
|
|
|
- <el-select v-model="condition1" placeholder="请选择筛选条件" style="width:150px" clearable>
|
|
|
- <el-option
|
|
|
+ <el-select
|
|
|
+ v-model="condition1"
|
|
|
+ placeholder="请选择筛选条件"
|
|
|
+ style="width:150px"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
v-for="item in options"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
</el-select>
|
|
|
<el-input
|
|
|
- placeholder="请输入内容"
|
|
|
- v-model="input1"
|
|
|
- style="width:200px"
|
|
|
- clearable
|
|
|
+ placeholder="请输入内容"
|
|
|
+ v-model="input1"
|
|
|
+ style="width:200px"
|
|
|
+ clearable
|
|
|
>
|
|
|
</el-input>
|
|
|
- <el-select v-model="condition2" placeholder="请选择筛选条件" style="width:150px" clearable>
|
|
|
- <el-option
|
|
|
+ <el-select
|
|
|
+ v-model="condition2"
|
|
|
+ placeholder="请选择筛选条件"
|
|
|
+ style="width:150px"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
v-for="item in options"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
</el-select>
|
|
|
<el-input
|
|
|
- placeholder="请输入内容"
|
|
|
- v-model="input2"
|
|
|
- style="width:200px"
|
|
|
- clearable
|
|
|
+ placeholder="请输入内容"
|
|
|
+ v-model="input2"
|
|
|
+ style="width:200px"
|
|
|
+ clearable
|
|
|
>
|
|
|
</el-input>
|
|
|
<el-button type="primary" class="btn" @click="getRequestUrl">
|
|
@@ -54,7 +66,6 @@
|
|
|
<dilTable
|
|
|
v-bind.sync="truck"
|
|
|
@radio-change="currentRadioChange1"
|
|
|
-
|
|
|
></dilTable>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogTableVisible = false">取 消</el-button>
|
|
@@ -119,31 +130,31 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getCookie } from "@/utils/util.js";
|
|
|
+import { getCookie } from '@/utils/util.js'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- condition1:null,
|
|
|
- condition2:null,
|
|
|
- input1:null,
|
|
|
- input2:null,
|
|
|
- options:[
|
|
|
- {
|
|
|
- label:"采购订单号",
|
|
|
- value:"purchaseOrderNo"
|
|
|
- },
|
|
|
- {
|
|
|
- label:"发货单位",
|
|
|
- value:"supplierName"
|
|
|
- },
|
|
|
- {
|
|
|
- label:"卸货点",
|
|
|
- value:"warehouseName"
|
|
|
- },
|
|
|
- {
|
|
|
- label:"船名",
|
|
|
- value:"shipName"
|
|
|
- }
|
|
|
+ condition1: null,
|
|
|
+ condition2: null,
|
|
|
+ input1: null,
|
|
|
+ input2: null,
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ label: '采购订单号',
|
|
|
+ value: 'purchaseOrderNo'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '发货单位',
|
|
|
+ value: 'supplierName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '卸货点',
|
|
|
+ value: 'warehouseName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '船名',
|
|
|
+ value: 'shipName'
|
|
|
+ }
|
|
|
],
|
|
|
//模态窗的框计算
|
|
|
inputText: null,
|
|
@@ -152,41 +163,41 @@ export default {
|
|
|
//输入框的值
|
|
|
input: null,
|
|
|
//选项卡的当前选中的值
|
|
|
- activeName: "first",
|
|
|
+ activeName: 'first',
|
|
|
//已下发的表格
|
|
|
first: {
|
|
|
- requestUrl: ""
|
|
|
+ requestUrl: ''
|
|
|
},
|
|
|
//车辆信息的表格
|
|
|
truck: {
|
|
|
- requestUrl: "",
|
|
|
+ requestUrl: '',
|
|
|
// 控制显示当选列
|
|
|
- selectionType: "radio"
|
|
|
+ selectionType: 'radio'
|
|
|
},
|
|
|
Received: {
|
|
|
- requestUrl: ""
|
|
|
+ requestUrl: ''
|
|
|
},
|
|
|
completed: {
|
|
|
- requestUrl: ""
|
|
|
+ requestUrl: ''
|
|
|
},
|
|
|
dispatched: {
|
|
|
- requestUrl: ""
|
|
|
+ requestUrl: ''
|
|
|
},
|
|
|
//车辆的表格
|
|
|
truck: {
|
|
|
- requestUrl: "",
|
|
|
- selectionType: "radio"
|
|
|
+ requestUrl: '',
|
|
|
+ selectionType: 'radio'
|
|
|
},
|
|
|
//当前选中的订单id
|
|
|
selectOrderId: null,
|
|
|
//选中的车辆号
|
|
|
- capacityNumber: "",
|
|
|
+ capacityNumber: '',
|
|
|
//选中的运力id
|
|
|
capacityId: null,
|
|
|
//是否关闭模态框
|
|
|
drawer: false,
|
|
|
//模态框从左往右打开
|
|
|
- direction: "rtl",
|
|
|
+ direction: 'rtl',
|
|
|
|
|
|
orderId: null,
|
|
|
//多选的选中的订单id
|
|
@@ -197,282 +208,282 @@ export default {
|
|
|
// actiones: { username: "湘M99999" } //传入后台的数据
|
|
|
addPlanCount: 0,
|
|
|
timer: null
|
|
|
- };
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
- if (getCookie("orgCode") == "chengyunshang") {
|
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
|
this.truck.requestUrl =
|
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" +
|
|
|
- getCookie("userId");
|
|
|
+ '/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=' +
|
|
|
+ getCookie('userId')
|
|
|
} else {
|
|
|
this.truck.requestUrl =
|
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" + null;
|
|
|
+ '/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=' + null
|
|
|
}
|
|
|
- if (getCookie("orgCode") == "chengyunshang") {
|
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
|
this.first.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1&carrierId=" +
|
|
|
- getCookie("userId");
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1&carrierId=' +
|
|
|
+ getCookie('userId')
|
|
|
this.Received.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5&carrierId=" +
|
|
|
- getCookie("userId");
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5&carrierId=' +
|
|
|
+ getCookie('userId')
|
|
|
this.completed.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2&carrierId=" +
|
|
|
- getCookie("userId");
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2&carrierId=' +
|
|
|
+ getCookie('userId')
|
|
|
this.dispatched.requestUrl =
|
|
|
- "/api/v1/ams/getPurRequirementList?apiId=431&requirementStatus=1&planStatus=3&carrierSsoId=" +
|
|
|
- getCookie("userId");
|
|
|
+ '/api/v1/ams/getPurRequirementList?apiId=431&requirementStatus=1&planStatus=3&carrierSsoId=' +
|
|
|
+ getCookie('userId')
|
|
|
} else if (
|
|
|
- getCookie("orgCode") == "dagangadmin" ||
|
|
|
- getCookie("orgCode") == "zidonghuabu"
|
|
|
+ getCookie('orgCode') == 'dagangadmin' ||
|
|
|
+ getCookie('orgCode') == 'zidonghuabu'
|
|
|
) {
|
|
|
this.first.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1";
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1'
|
|
|
this.Received.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5";
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5'
|
|
|
this.completed.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2";
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2'
|
|
|
this.dispatched.requestUrl =
|
|
|
- "/api/v1/ams/getPurRequirementList?apiId=431&requirementStatus=1&planStatus=3";
|
|
|
+ '/api/v1/ams/getPurRequirementList?apiId=431&requirementStatus=1&planStatus=3'
|
|
|
} else {
|
|
|
this.first.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1&userId=" +
|
|
|
- getCookie("orgCode");
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1&userId=' +
|
|
|
+ getCookie('orgCode')
|
|
|
this.Received.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5&userId=" +
|
|
|
- getCookie("orgCode");
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5&userId=' +
|
|
|
+ getCookie('orgCode')
|
|
|
this.completed.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2&userId=" +
|
|
|
- getCookie("orgCode");
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2&userId=' +
|
|
|
+ getCookie('orgCode')
|
|
|
this.dispatched.requestUrl =
|
|
|
- "/api/v1/ams/getPurRequirementList?apiId=431&requirementStatus=1&planStatus=3&userId=" +
|
|
|
- getCookie("orgCode");
|
|
|
+ '/api/v1/ams/getPurRequirementList?apiId=431&requirementStatus=1&planStatus=3&userId=' +
|
|
|
+ getCookie('orgCode')
|
|
|
}
|
|
|
// this.initWebSocket();
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.getAddPlan();
|
|
|
- this.timer = setInterval(this.getAddPlan, 10000);
|
|
|
+ this.getAddPlan()
|
|
|
+ this.timer = setInterval(this.getAddPlan, 10000)
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
- clearInterval(this.timer);
|
|
|
+ clearInterval(this.timer)
|
|
|
},
|
|
|
methods: {
|
|
|
getAddPlan() {
|
|
|
this.axios
|
|
|
.post(
|
|
|
- "/api/v1/ams/getPurRequirementList?apiId=431&requirementStatus=1&enableStatus=1&planStatus=2&pageNum=1&pageSize=10"
|
|
|
+ '/api/v1/ams/getPurRequirementList?apiId=431&requirementStatus=1&enableStatus=1&planStatus=2&pageNum=1&pageSize=10'
|
|
|
)
|
|
|
.then(res => {
|
|
|
- console.log("data:", res.data.data);
|
|
|
- this.addPlanCount = res.data.data.total;
|
|
|
- });
|
|
|
+ console.log('data:', res.data.data)
|
|
|
+ this.addPlanCount = res.data.data.total
|
|
|
+ })
|
|
|
},
|
|
|
//建立websocket连接
|
|
|
initWebSocket() {
|
|
|
//试图调用websocket
|
|
|
//初始化weosocket
|
|
|
- const wssUrl = this.wssUrl;
|
|
|
- this.websock = new WebSocket(wssUrl);
|
|
|
- this.websock.onmessage = this.websocketonmessage;
|
|
|
- this.websock.onopen = this.websocketonopen;
|
|
|
- this.websock.onerror = this.websocketonerror;
|
|
|
+ const wssUrl = this.wssUrl
|
|
|
+ this.websock = new WebSocket(wssUrl)
|
|
|
+ this.websock.onmessage = this.websocketonmessage
|
|
|
+ this.websock.onopen = this.websocketonopen
|
|
|
+ this.websock.onerror = this.websocketonerror
|
|
|
// this.websock.onclose = this.websocketclose;
|
|
|
},
|
|
|
//发送数据
|
|
|
websocketonopen() {
|
|
|
- this.websocketsend();
|
|
|
+ this.websocketsend()
|
|
|
},
|
|
|
//接收数据
|
|
|
websocketonmessage(e) {
|
|
|
- console.log("收到信息");
|
|
|
- let data = e.data;
|
|
|
- console.log(data);
|
|
|
- let websocketKey = data.messageContent;
|
|
|
- let userName = "湘M99999";
|
|
|
+ console.log('收到信息')
|
|
|
+ let data = e.data
|
|
|
+ console.log(data)
|
|
|
+ let websocketKey = data.messageContent
|
|
|
+ let userName = '湘M99999'
|
|
|
let message =
|
|
|
"{'messageContent': '" +
|
|
|
websocketKey +
|
|
|
- ":" +
|
|
|
+ ':' +
|
|
|
userName +
|
|
|
- "','messageType':1,'receivePerson': 'app','sendPerson': 'self'}";
|
|
|
- this.websocketsend(message);
|
|
|
+ "','messageType':1,'receivePerson': 'app','sendPerson': 'self'}"
|
|
|
+ this.websocketsend(message)
|
|
|
},
|
|
|
//连接建立失败重连
|
|
|
websocketonerror() {
|
|
|
- this.initWebSocket();
|
|
|
+ this.initWebSocket()
|
|
|
},
|
|
|
//发送数据
|
|
|
websocketsend(message) {
|
|
|
- this.websock.send({ message, async success() {} });
|
|
|
+ this.websock.send({ message, async success() {} })
|
|
|
},
|
|
|
//关闭连接
|
|
|
websocketclose(e) {
|
|
|
- console.log("断开连接", e);
|
|
|
+ console.log('断开连接', e)
|
|
|
},
|
|
|
continueDispatch(scope) {
|
|
|
- this.$router.push("/addPurInwardOrderCon/" + scope.row.planId);
|
|
|
+ this.$router.push('/addPurInwardOrderCon/' + scope.row.planId)
|
|
|
},
|
|
|
onclick() {
|
|
|
- console.log();
|
|
|
+ console.log()
|
|
|
},
|
|
|
handleClose(done) {
|
|
|
- done();
|
|
|
- this.$message.info("取消修改运力");
|
|
|
+ done()
|
|
|
+ this.$message.info('取消修改运力')
|
|
|
},
|
|
|
getRequestUrl() {
|
|
|
- let requestQuery={}
|
|
|
- if(this.condition1 == this.condition2){
|
|
|
- requestQuery[this.condition1]=[this.input1+'',this.input2+'']
|
|
|
- }else{
|
|
|
- requestQuery[this.condition1]=[this.input1+'']
|
|
|
- requestQuery[this.condition2]=[this.input2+'']
|
|
|
+ let requestQuery = {}
|
|
|
+ if (this.condition1 == this.condition2) {
|
|
|
+ requestQuery[this.condition1] = [this.input1 + '', this.input2 + '']
|
|
|
+ } else {
|
|
|
+ requestQuery[this.condition1] = [this.input1 + '']
|
|
|
+ requestQuery[this.condition2] = [this.input2 + '']
|
|
|
}
|
|
|
- this.first.requestQuery=requestQuery;
|
|
|
- this.Received.requestQuery=requestQuery
|
|
|
- this.completed.requestQuery=requestQuery
|
|
|
- this.dispatched.requestQuery=requestQuery
|
|
|
- if (getCookie("orgCode") == "chengyunshang") {
|
|
|
- (this.first.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1&carrierId=" +
|
|
|
+ this.first.requestQuery = requestQuery
|
|
|
+ this.Received.requestQuery = requestQuery
|
|
|
+ this.completed.requestQuery = requestQuery
|
|
|
+ this.dispatched.requestQuery = requestQuery
|
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
|
+ ;(this.first.requestUrl =
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1&carrierId=' +
|
|
|
this.carrierUserId +
|
|
|
- "&test=" +
|
|
|
+ '&test=' +
|
|
|
new Date() +
|
|
|
- "&con=" +
|
|
|
+ '&con=' +
|
|
|
this.input),
|
|
|
(this.Received.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5&planEnableStatus=1&carrierId=" +
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5&planEnableStatus=1&carrierId=' +
|
|
|
this.carrierUserId +
|
|
|
- "&test=" +
|
|
|
- new Date() ),
|
|
|
+ '&test=' +
|
|
|
+ new Date()),
|
|
|
(this.completed.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2&carrierId=" +
|
|
|
- getCookie("userId") );
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2&carrierId=' +
|
|
|
+ getCookie('userId'))
|
|
|
} else if (
|
|
|
- getCookie("orgCode") == "dagangadmin" ||
|
|
|
- getCookie("orgCode") == "zidonghuabu"
|
|
|
+ getCookie('orgCode') == 'dagangadmin' ||
|
|
|
+ getCookie('orgCode') == 'zidonghuabu'
|
|
|
) {
|
|
|
this.first.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1" +
|
|
|
- "&test=" +
|
|
|
- new Date() ;
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1' +
|
|
|
+ '&test=' +
|
|
|
+ new Date()
|
|
|
this.Received.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5" +
|
|
|
- "&test=" +
|
|
|
- new Date();
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5' +
|
|
|
+ '&test=' +
|
|
|
+ new Date()
|
|
|
this.completed.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2" +
|
|
|
- "&test=" +
|
|
|
- new Date();
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2' +
|
|
|
+ '&test=' +
|
|
|
+ new Date()
|
|
|
} else {
|
|
|
this.first.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1" +
|
|
|
- "&test=" +
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1' +
|
|
|
+ '&test=' +
|
|
|
new Date() +
|
|
|
- "&userId=" +
|
|
|
- getCookie("orgCode");
|
|
|
+ '&userId=' +
|
|
|
+ getCookie('orgCode')
|
|
|
this.Received.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5" +
|
|
|
- "&test=" +
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5' +
|
|
|
+ '&test=' +
|
|
|
new Date() +
|
|
|
- "&userId=" +
|
|
|
- getCookie("orgCode");
|
|
|
+ '&userId=' +
|
|
|
+ getCookie('orgCode')
|
|
|
this.completed.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2" +
|
|
|
- "&test=" +
|
|
|
+ '/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2' +
|
|
|
+ '&test=' +
|
|
|
new Date() +
|
|
|
- "&userId=" +
|
|
|
- getCookie("orgCode");
|
|
|
+ '&userId=' +
|
|
|
+ getCookie('orgCode')
|
|
|
}
|
|
|
- this.$forceUpdate();
|
|
|
+ this.$forceUpdate()
|
|
|
},
|
|
|
getTruckRequestUrl() {
|
|
|
- if (getCookie("orgCode") == "chengyunshang") {
|
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
|
this.truck.requestUrl =
|
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" +
|
|
|
- getCookie("userId") +
|
|
|
- "&test=" +
|
|
|
- new Date();
|
|
|
+ '/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=' +
|
|
|
+ getCookie('userId') +
|
|
|
+ '&test=' +
|
|
|
+ new Date()
|
|
|
} else {
|
|
|
this.truck.requestUrl =
|
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" +
|
|
|
+ '/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=' +
|
|
|
null +
|
|
|
- "&test=" +
|
|
|
- new Date();
|
|
|
+ '&test=' +
|
|
|
+ new Date()
|
|
|
}
|
|
|
},
|
|
|
currentRadioChange1(row) {
|
|
|
- console.log(row);
|
|
|
- this.capacityId = row.capacityId;
|
|
|
+ console.log(row)
|
|
|
+ this.capacityId = row.capacityId
|
|
|
},
|
|
|
//删除运输订单
|
|
|
deleteClick(scope) {
|
|
|
let map = {
|
|
|
orderId: scope.row.orderId,
|
|
|
- userId: getCookie("userId")
|
|
|
- };
|
|
|
- this.$confirm("是否删除?", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
+ userId: getCookie('userId')
|
|
|
+ }
|
|
|
+ this.$confirm('是否删除?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
.then(() => {
|
|
|
- this.axios.post("/api/v1/oms/closeOmstruckOrder", map).then(res => {
|
|
|
+ this.axios.post('/api/v1/oms/closeOmstruckOrder', map).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.$message({
|
|
|
- type: "success",
|
|
|
- message: "删除成功!"
|
|
|
- });
|
|
|
- this.getRequestUrl();
|
|
|
+ type: 'success',
|
|
|
+ message: '删除成功!'
|
|
|
+ })
|
|
|
+ this.getRequestUrl()
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- message: "删除失败",
|
|
|
- type: "warning"
|
|
|
- });
|
|
|
+ message: '删除失败',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.$message({
|
|
|
- type: "info",
|
|
|
- message: "已取消删除"
|
|
|
- });
|
|
|
- });
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消删除'
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
//修改运输订单
|
|
|
updateClick(scope) {
|
|
|
- this.getTruckRequestUrl();
|
|
|
- this.orderId = scope.row.orderId;
|
|
|
- this.dialogTableVisible = true;
|
|
|
- console.log(scope.row.orderId);
|
|
|
+ this.getTruckRequestUrl()
|
|
|
+ this.orderId = scope.row.orderId
|
|
|
+ this.dialogTableVisible = true
|
|
|
+ console.log(scope.row.orderId)
|
|
|
},
|
|
|
updateTruckCapacity() {
|
|
|
if (this.capacityId == null) {
|
|
|
- this.$message.error("未选中运力");
|
|
|
- return;
|
|
|
+ this.$message.error('未选中运力')
|
|
|
+ return
|
|
|
}
|
|
|
this.axios
|
|
|
- .post("/api/v1/oms/updateCapacityId", {
|
|
|
+ .post('/api/v1/oms/updateCapacityId', {
|
|
|
capacityId: this.capacityId,
|
|
|
orderId: this.orderId
|
|
|
})
|
|
|
.then(res => {
|
|
|
- if (res.data.code == "200") {
|
|
|
- this.$message.success("修改运力成功");
|
|
|
- this.getRequestUrl();
|
|
|
- this.dialogTableVisible = false;
|
|
|
+ if (res.data.code == '200') {
|
|
|
+ this.$message.success('修改运力成功')
|
|
|
+ this.getRequestUrl()
|
|
|
+ this.dialogTableVisible = false
|
|
|
} else {
|
|
|
- this.$message.error("修改运力失败");
|
|
|
+ this.$message.error('修改运力失败')
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
},
|
|
|
handleClick(tab, event) {
|
|
|
- this.getRequestUrl();
|
|
|
+ this.getRequestUrl()
|
|
|
},
|
|
|
Insert() {
|
|
|
- this.$router.push("addPurInwardOrder");
|
|
|
+ this.$router.push('addPurInwardOrder')
|
|
|
}
|
|
|
}
|
|
|
-};
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|