|
@@ -112,7 +112,7 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<template v-if="item.slot">
|
|
<template v-if="item.slot">
|
|
<!-- 装货点 -->
|
|
<!-- 装货点 -->
|
|
- <template v-if="item.prop == 'requirementPlatformName'">
|
|
|
|
|
|
+ <template v-if="item.prop == 'requirementPlatformName'" style="width:400px">
|
|
<el-input
|
|
<el-input
|
|
class="textinput"
|
|
class="textinput"
|
|
v-model="scope.row.requirementPlatformName"
|
|
v-model="scope.row.requirementPlatformName"
|
|
@@ -236,7 +236,7 @@
|
|
</el-drawer>
|
|
</el-drawer>
|
|
</div>
|
|
</div>
|
|
<div class="button-box">
|
|
<div class="button-box">
|
|
- <el-button type="primary" @click="makeSure">确认新增</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="makeSure" :disabled = "disabled">确认新增</el-button>
|
|
<el-button type="primary" @click="cancel">返回</el-button>
|
|
<el-button type="primary" @click="cancel">返回</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -314,7 +314,7 @@ export default {
|
|
mapList1: []
|
|
mapList1: []
|
|
},
|
|
},
|
|
second1: {
|
|
second1: {
|
|
- requestUrl: "/api/v1/uc/getUnloadingMesByLike?apiId=374",
|
|
|
|
|
|
+ requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
mapList2: []
|
|
mapList2: []
|
|
},
|
|
},
|
|
@@ -355,6 +355,9 @@ export default {
|
|
this.shipperId = item.shipperId
|
|
this.shipperId = item.shipperId
|
|
this.requireUnitName = item.shipperName
|
|
this.requireUnitName = item.shipperName
|
|
},
|
|
},
|
|
|
|
+ getUnloadRequestUrl(){
|
|
|
|
+ this.second1.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=374&i=" + new Date()
|
|
|
|
+ },
|
|
//以下是用车单位边输边查搜索
|
|
//以下是用车单位边输边查搜索
|
|
querySearchCarrier(queryString, cb) {
|
|
querySearchCarrier(queryString, cb) {
|
|
this.axios.post('/api/v1/uc/getRequireUnitName?index='+queryString).then((res)=>{
|
|
this.axios.post('/api/v1/uc/getRequireUnitName?index='+queryString).then((res)=>{
|
|
@@ -378,16 +381,16 @@ export default {
|
|
this.selectionList1 = selection;
|
|
this.selectionList1 = selection;
|
|
},
|
|
},
|
|
unloadPoint(index) {
|
|
unloadPoint(index) {
|
|
- // console.log(index)
|
|
|
|
|
|
+ this.getUnloadRequestUrl()
|
|
this.index= index
|
|
this.index= index
|
|
this.a = 3
|
|
this.a = 3
|
|
- this.drawer = true;
|
|
|
|
|
|
+ this.drawer = true;
|
|
},
|
|
},
|
|
loadPoint(index) {
|
|
loadPoint(index) {
|
|
- // console.log(index)
|
|
|
|
|
|
+ this.getUnloadRequestUrl()
|
|
this.index = index
|
|
this.index = index
|
|
this.a = 4
|
|
this.a = 4
|
|
- this.drawer = true;
|
|
|
|
|
|
+ this.drawer = true;
|
|
},
|
|
},
|
|
//以上是用车单位边输边查搜索
|
|
//以上是用车单位边输边查搜索
|
|
ondrawer(num) {
|
|
ondrawer(num) {
|
|
@@ -496,22 +499,28 @@ export default {
|
|
},
|
|
},
|
|
// 新增
|
|
// 新增
|
|
makeSure() {
|
|
makeSure() {
|
|
|
|
+ this.disabled = true
|
|
if(this.shipperId == null){
|
|
if(this.shipperId == null){
|
|
this.$message.error("请选择用车单位")
|
|
this.$message.error("请选择用车单位")
|
|
|
|
+ this.disabled = false
|
|
return
|
|
return
|
|
}if(typeof(this.form.requirementTruckTime) == 'undefined'){
|
|
}if(typeof(this.form.requirementTruckTime) == 'undefined'){
|
|
this.$message.error("请输入用车时间")
|
|
this.$message.error("请输入用车时间")
|
|
|
|
+ this.disabled = false
|
|
return
|
|
return
|
|
}if(typeof(this.form.requirementType) == 'undefined'){
|
|
}if(typeof(this.form.requirementType) == 'undefined'){
|
|
this.$message.error("请选择需求类型")
|
|
this.$message.error("请选择需求类型")
|
|
|
|
+ this.disabled = false
|
|
return
|
|
return
|
|
}if(this.tableData.length == 0){
|
|
}if(this.tableData.length == 0){
|
|
this.$message.error("请点击浏览选择物资")
|
|
this.$message.error("请点击浏览选择物资")
|
|
|
|
+ this.disabled = false
|
|
return
|
|
return
|
|
}if(typeof(this.form.requirementOverlimit) != 'undefined'){
|
|
}if(typeof(this.form.requirementOverlimit) != 'undefined'){
|
|
console.log((typeof(this.form.remark) == 'undefined'))
|
|
console.log((typeof(this.form.remark) == 'undefined'))
|
|
if((typeof(this.form.remark) == 'undefined')){
|
|
if((typeof(this.form.remark) == 'undefined')){
|
|
this.$message.error("请填写超限备注")
|
|
this.$message.error("请填写超限备注")
|
|
|
|
+ this.disabled = false
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -523,6 +532,7 @@ export default {
|
|
})
|
|
})
|
|
if(i==0){
|
|
if(i==0){
|
|
this.$message.error("请选择装卸点")
|
|
this.$message.error("请选择装卸点")
|
|
|
|
+ this.disabled = false
|
|
return
|
|
return
|
|
}
|
|
}
|
|
// console.log(this.tableData)
|
|
// console.log(this.tableData)
|
|
@@ -558,6 +568,7 @@ export default {
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|
|
} else {
|
|
} else {
|
|
this.$message.error("新增失败!");
|
|
this.$message.error("新增失败!");
|
|
|
|
+ this.disabled = false
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|