|
@@ -2,34 +2,46 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
<div style="margin:10px">
|
|
<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"
|
|
v-for="item in options"
|
|
:key="item.value"
|
|
:key="item.value"
|
|
:label="item.label"
|
|
:label="item.label"
|
|
- :value="item.value">
|
|
|
|
- </el-option>
|
|
|
|
|
|
+ :value="item.value"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<el-input
|
|
<el-input
|
|
- placeholder="请输入内容"
|
|
|
|
- v-model="input1"
|
|
|
|
- style="width:200px"
|
|
|
|
- clearable
|
|
|
|
|
|
+ placeholder="请输入内容"
|
|
|
|
+ v-model="input1"
|
|
|
|
+ style="width:200px"
|
|
|
|
+ clearable
|
|
>
|
|
>
|
|
</el-input>
|
|
</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"
|
|
v-for="item in options"
|
|
:key="item.value"
|
|
:key="item.value"
|
|
:label="item.label"
|
|
:label="item.label"
|
|
- :value="item.value">
|
|
|
|
- </el-option>
|
|
|
|
|
|
+ :value="item.value"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<el-input
|
|
<el-input
|
|
- placeholder="请输入内容"
|
|
|
|
- v-model="input2"
|
|
|
|
- style="width:200px"
|
|
|
|
- clearable
|
|
|
|
|
|
+ placeholder="请输入内容"
|
|
|
|
+ v-model="input2"
|
|
|
|
+ style="width:200px"
|
|
|
|
+ clearable
|
|
>
|
|
>
|
|
</el-input>
|
|
</el-input>
|
|
<span>需求时间:</span>
|
|
<span>需求时间:</span>
|
|
@@ -54,7 +66,7 @@
|
|
</div>
|
|
</div>
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <el-tabs v-model="activeName" >
|
|
|
|
|
|
+ <el-tabs v-model="activeName">
|
|
<el-tab-pane label="待分解" name="second">
|
|
<el-tab-pane label="待分解" name="second">
|
|
<mergeRowTable v-bind.sync="second" ref="table1" max-height="300">
|
|
<mergeRowTable v-bind.sync="second" ref="table1" max-height="300">
|
|
<el-table-column fixed="right" label="操作" width="100">
|
|
<el-table-column fixed="right" label="操作" width="100">
|
|
@@ -100,7 +112,8 @@
|
|
</mergeRowTable>
|
|
</mergeRowTable>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="已完成" name="four">
|
|
<el-tab-pane label="已完成" name="four">
|
|
- <mergeRowTable v-bind.sync="four" ref="table3" max-height="300"> </mergeRowTable>
|
|
|
|
|
|
+ <mergeRowTable v-bind.sync="four" ref="table3" max-height="300">
|
|
|
|
+ </mergeRowTable>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</div>
|
|
</div>
|
|
@@ -108,258 +121,258 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { getCookie } from "@/utils/util.js";
|
|
|
|
-import { sjTime } from "@/utils/sharedJsFile";
|
|
|
|
|
|
+import { getCookie } from '@/utils/util.js'
|
|
|
|
+import { sjTime } from '@/utils/sharedJsFile'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- condition1:null,
|
|
|
|
- condition2:null,
|
|
|
|
- input1:null,
|
|
|
|
- input2:null,
|
|
|
|
- options:[
|
|
|
|
- {
|
|
|
|
- label:"用车单位",
|
|
|
|
- value:"shipperName"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label:"物资名称",
|
|
|
|
- value:"materialName"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label:"装货点",
|
|
|
|
- value:"loadName"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label:"卸货点",
|
|
|
|
- value:"unloadName"
|
|
|
|
- }
|
|
|
|
|
|
+ condition1: null,
|
|
|
|
+ condition2: null,
|
|
|
|
+ input1: null,
|
|
|
|
+ input2: null,
|
|
|
|
+ options: [
|
|
|
|
+ {
|
|
|
|
+ label: '用车单位',
|
|
|
|
+ value: 'shipperName'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '物资名称',
|
|
|
|
+ value: 'materialName'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '装货点',
|
|
|
|
+ value: 'loadName'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '卸货点',
|
|
|
|
+ value: 'unloadName'
|
|
|
|
+ }
|
|
],
|
|
],
|
|
endTime: null,
|
|
endTime: null,
|
|
startTime: null,
|
|
startTime: null,
|
|
- inputText: "",
|
|
|
|
|
|
+ inputText: '',
|
|
carrierId: 40,
|
|
carrierId: 40,
|
|
second: {
|
|
second: {
|
|
columnIndexs: [0, 1, 2, 3, 4, 5, 9.1, 21, 22],
|
|
columnIndexs: [0, 1, 2, 3, 4, 5, 9.1, 21, 22],
|
|
- comparison: "requirementNumber",
|
|
|
|
|
|
+ comparison: 'requirementNumber',
|
|
// second请求数据的地址
|
|
// second请求数据的地址
|
|
- requestUrl: ""
|
|
|
|
|
|
+ requestUrl: ''
|
|
},
|
|
},
|
|
third: {
|
|
third: {
|
|
columnIndexs: [0, 1, 2, 3, 4, 5, 9.1, 21, 22],
|
|
columnIndexs: [0, 1, 2, 3, 4, 5, 9.1, 21, 22],
|
|
- comparison: "requirementNumber",
|
|
|
|
|
|
+ comparison: 'requirementNumber',
|
|
// second请求数据的地址
|
|
// second请求数据的地址
|
|
- requestUrl: ""
|
|
|
|
|
|
+ requestUrl: ''
|
|
},
|
|
},
|
|
four: {
|
|
four: {
|
|
- requestUrl: ""
|
|
|
|
|
|
+ requestUrl: ''
|
|
},
|
|
},
|
|
- activeName: "second",
|
|
|
|
|
|
+ activeName: 'second',
|
|
tableData: []
|
|
tableData: []
|
|
- };
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- if (getCookie("orgCode") == "chengyunshang") {
|
|
|
|
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
this.second.requestUrl =
|
|
this.second.requestUrl =
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=" +
|
|
|
|
- getCookie("userId");
|
|
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=' +
|
|
|
|
+ getCookie('userId')
|
|
this.third.requestUrl =
|
|
this.third.requestUrl =
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3&carrierId=" +
|
|
|
|
- getCookie("userId");
|
|
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3&carrierId=' +
|
|
|
|
+ getCookie('userId')
|
|
this.four.requestUrl =
|
|
this.four.requestUrl =
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=4&carrierId=" +
|
|
|
|
- getCookie("userId");
|
|
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=4&carrierId=' +
|
|
|
|
+ getCookie('userId')
|
|
} else {
|
|
} else {
|
|
this.second.requestUrl =
|
|
this.second.requestUrl =
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2";
|
|
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2'
|
|
this.third.requestUrl =
|
|
this.third.requestUrl =
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3";
|
|
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3'
|
|
this.four.requestUrl =
|
|
this.four.requestUrl =
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=4";
|
|
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=4'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
handleClick(tab, event) {
|
|
handleClick(tab, event) {
|
|
- console.log("zhix");
|
|
|
|
- this.getRequestUrl();
|
|
|
|
|
|
+ console.log('zhix')
|
|
|
|
+ this.getRequestUrl()
|
|
},
|
|
},
|
|
onclick() {
|
|
onclick() {
|
|
- let startTime = null;
|
|
|
|
- let endTime = null;
|
|
|
|
|
|
+ let startTime = null
|
|
|
|
+ let endTime = null
|
|
if (this.startTime && this.endTime) {
|
|
if (this.startTime && this.endTime) {
|
|
- startTime = sjTime(this.startTime);
|
|
|
|
- endTime = sjTime(this.endTime);
|
|
|
|
|
|
+ startTime = sjTime(this.startTime)
|
|
|
|
+ endTime = sjTime(this.endTime)
|
|
}
|
|
}
|
|
- let requestQuery={
|
|
|
|
- startTime:startTime,
|
|
|
|
- endTime:endTime
|
|
|
|
|
|
+ let requestQuery = {
|
|
|
|
+ startTime: startTime,
|
|
|
|
+ endTime: endTime
|
|
}
|
|
}
|
|
- if(this.condition1 == this.condition2){
|
|
|
|
- requestQuery[this.condition1]=[this.input1,this.input2]
|
|
|
|
- }else{
|
|
|
|
- requestQuery[this.condition1]=[this.input1+'']
|
|
|
|
- requestQuery[this.condition2]=[this.input2+'']
|
|
|
|
|
|
+ if (this.condition1 == this.condition2) {
|
|
|
|
+ requestQuery[this.condition1] = [this.input1, this.input2]
|
|
|
|
+ } else {
|
|
|
|
+ requestQuery[this.condition1] = [this.input1 + '']
|
|
|
|
+ requestQuery[this.condition2] = [this.input2 + '']
|
|
}
|
|
}
|
|
- this.second.requestQuery=requestQuery
|
|
|
|
- this.third.requestQuery=requestQuery
|
|
|
|
- this.four.requestQuery=requestQuery
|
|
|
|
- if (getCookie("orgCode") == "chengyunshang") {
|
|
|
|
- this.second.requestUrl =
|
|
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=" +
|
|
|
|
- getCookie("userId");
|
|
|
|
- this.third.requestUrl =
|
|
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3&carrierId=" +
|
|
|
|
- getCookie("userId");
|
|
|
|
- this.four.requestUrl =
|
|
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=4&carrierId=" +
|
|
|
|
- getCookie("userId");
|
|
|
|
- } else {
|
|
|
|
- this.second.requestUrl =
|
|
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2";
|
|
|
|
- this.third.requestUrl =
|
|
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3";
|
|
|
|
- this.four.requestUrl =
|
|
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=4";
|
|
|
|
- }
|
|
|
|
- this.$forceUpdate();
|
|
|
|
|
|
+ this.second.requestQuery = requestQuery
|
|
|
|
+ this.third.requestQuery = requestQuery
|
|
|
|
+ this.four.requestQuery = requestQuery
|
|
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
|
|
+ this.second.requestUrl =
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=' +
|
|
|
|
+ getCookie('userId')
|
|
|
|
+ this.third.requestUrl =
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3&carrierId=' +
|
|
|
|
+ getCookie('userId')
|
|
|
|
+ this.four.requestUrl =
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=4&carrierId=' +
|
|
|
|
+ getCookie('userId')
|
|
|
|
+ } else {
|
|
|
|
+ this.second.requestUrl =
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2'
|
|
|
|
+ this.third.requestUrl =
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3'
|
|
|
|
+ this.four.requestUrl =
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=4'
|
|
|
|
+ }
|
|
|
|
+ this.$forceUpdate()
|
|
},
|
|
},
|
|
getRequestUrl() {
|
|
getRequestUrl() {
|
|
- if (getCookie("orgCode") == "chengyunshang") {
|
|
|
|
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
this.second.requestUrl =
|
|
this.second.requestUrl =
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=" +
|
|
|
|
- getCookie("userId") +
|
|
|
|
- "&i=" +
|
|
|
|
- new Date();
|
|
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=' +
|
|
|
|
+ getCookie('userId') +
|
|
|
|
+ '&i=' +
|
|
|
|
+ new Date()
|
|
this.third.requestUrl =
|
|
this.third.requestUrl =
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3&carrierId=" +
|
|
|
|
- getCookie("userId") +
|
|
|
|
- "&i=" +
|
|
|
|
- new Date();
|
|
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3&carrierId=' +
|
|
|
|
+ getCookie('userId') +
|
|
|
|
+ '&i=' +
|
|
|
|
+ new Date()
|
|
this.four.requestUrl =
|
|
this.four.requestUrl =
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=4&carrierId=" +
|
|
|
|
- getCookie("userId") +
|
|
|
|
- "&i=" +
|
|
|
|
- new Date();
|
|
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=4&carrierId=' +
|
|
|
|
+ getCookie('userId') +
|
|
|
|
+ '&i=' +
|
|
|
|
+ new Date()
|
|
} else {
|
|
} else {
|
|
this.second.requestUrl =
|
|
this.second.requestUrl =
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2" +
|
|
|
|
- "&i=" +
|
|
|
|
- new Date();
|
|
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2' +
|
|
|
|
+ '&i=' +
|
|
|
|
+ new Date()
|
|
this.third.requestUrl =
|
|
this.third.requestUrl =
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3" +
|
|
|
|
- "&i=" +
|
|
|
|
- new Date();
|
|
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3' +
|
|
|
|
+ '&i=' +
|
|
|
|
+ new Date()
|
|
this.four.requestUrl =
|
|
this.four.requestUrl =
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=4" +
|
|
|
|
- "&i=" +
|
|
|
|
- new Date();
|
|
|
|
|
|
+ '/api/v1/ams/getTruckPlanList?apiId=258&planStatus=4' +
|
|
|
|
+ '&i=' +
|
|
|
|
+ new Date()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
closePlanOrder(scope) {
|
|
closePlanOrder(scope) {
|
|
- console.log(scope.row.planId);
|
|
|
|
|
|
+ console.log(scope.row.planId)
|
|
this.$confirm(
|
|
this.$confirm(
|
|
- "确定关闭该计划吗?该操作会将计划下未接收订单全部关闭",
|
|
|
|
- "是否继续?",
|
|
|
|
|
|
+ '确定关闭该计划吗?该操作会将计划下未接收订单全部关闭',
|
|
|
|
+ '是否继续?',
|
|
{
|
|
{
|
|
center: true,
|
|
center: true,
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消"
|
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消'
|
|
}
|
|
}
|
|
).then(() => {
|
|
).then(() => {
|
|
this.axios
|
|
this.axios
|
|
- .post("/api/v1/oms/closeInwardOrderByPlan?planId=" + scope.row.planId)
|
|
|
|
|
|
+ .post('/api/v1/oms/closeInwardOrderByPlan?planId=' + scope.row.planId)
|
|
.then(res => {
|
|
.then(res => {
|
|
- if (res.data.code == "200") {
|
|
|
|
- this.$message.success("关闭成功");
|
|
|
|
- this.getRequestUrl();
|
|
|
|
|
|
+ if (res.data.code == '200') {
|
|
|
|
+ this.$message.success('关闭成功')
|
|
|
|
+ this.getRequestUrl()
|
|
} else {
|
|
} else {
|
|
- this.$message.error("关闭失败");
|
|
|
|
|
|
+ this.$message.error('关闭失败')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
- this.$message.error("关闭失败");
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
|
|
+ this.$message.error('关闭失败')
|
|
|
|
+ })
|
|
|
|
+ })
|
|
},
|
|
},
|
|
receiver(scope) {
|
|
receiver(scope) {
|
|
- this.$confirm("是否接收", "提示", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- type: "warning",
|
|
|
|
|
|
+ this.$confirm('是否接收', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
center: true
|
|
center: true
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
this.axios
|
|
this.axios
|
|
- .post("/api/v1/ams/receiveInwardPlan/" + scope.row.planId)
|
|
|
|
|
|
+ .post('/api/v1/ams/receiveInwardPlan/' + scope.row.planId)
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
this.$message({
|
|
this.$message({
|
|
- type: "success",
|
|
|
|
- message: "接收成功!"
|
|
|
|
- });
|
|
|
|
- this.getRequestUrl();
|
|
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: '接收成功!'
|
|
|
|
+ })
|
|
|
|
+ this.getRequestUrl()
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
- message: "接收失败",
|
|
|
|
- type: "warning"
|
|
|
|
- });
|
|
|
|
|
|
+ message: '接收失败',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+ })
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
this.$message({
|
|
this.$message({
|
|
- type: "info",
|
|
|
|
- message: "接收操作已取消!"
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
|
|
+ type: 'info',
|
|
|
|
+ message: '接收操作已取消!'
|
|
|
|
+ })
|
|
|
|
+ })
|
|
},
|
|
},
|
|
selectionChange(selection) {
|
|
selectionChange(selection) {
|
|
- this.second.mapList = selection;
|
|
|
|
|
|
+ this.second.mapList = selection
|
|
},
|
|
},
|
|
desponsePlan(scope) {
|
|
desponsePlan(scope) {
|
|
- this.$router.push("/decomposePlan/" + scope.row.planId);
|
|
|
|
|
|
+ this.$router.push('/decomposePlan/' + scope.row.planId)
|
|
},
|
|
},
|
|
getPlanOrder(scope) {
|
|
getPlanOrder(scope) {
|
|
- this.$router.push("/getPlanOrder/" + scope.row.planId);
|
|
|
|
|
|
+ this.$router.push('/getPlanOrder/' + scope.row.planId)
|
|
},
|
|
},
|
|
Issue() {
|
|
Issue() {
|
|
- console.log(this.first.mapList);
|
|
|
|
- this.$confirm("是否下发", "提示", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- type: "warning",
|
|
|
|
|
|
+ console.log(this.first.mapList)
|
|
|
|
+ this.$confirm('是否下发', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
center: true
|
|
center: true
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
this.axios
|
|
this.axios
|
|
.post(
|
|
.post(
|
|
- "/api/v1/ams/addFixedAmsDispatchSaleOrder",
|
|
|
|
|
|
+ '/api/v1/ams/addFixedAmsDispatchSaleOrder',
|
|
this.first.mapList
|
|
this.first.mapList
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
this.$message({
|
|
this.$message({
|
|
- type: "success",
|
|
|
|
- message: "下发成功!"
|
|
|
|
- });
|
|
|
|
- this.getRequestUrl();
|
|
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: '下发成功!'
|
|
|
|
+ })
|
|
|
|
+ this.getRequestUrl()
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
- message: "下发失败",
|
|
|
|
- type: "warning"
|
|
|
|
- });
|
|
|
|
|
|
+ message: '下发失败',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+ })
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
this.$message({
|
|
this.$message({
|
|
- type: "info",
|
|
|
|
- message: "取消下发!"
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
|
|
+ type: 'info',
|
|
|
|
+ message: '取消下发!'
|
|
|
|
+ })
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-};
|
|
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
.inwardDisPlan {
|
|
.inwardDisPlan {
|