|
@@ -324,8 +324,8 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
value() {
|
|
value() {
|
|
if (this.value) {
|
|
if (this.value) {
|
|
- console.log(this.value)
|
|
|
|
- console.log(this.tableTop.length)
|
|
|
|
|
|
+ // console.log(this.value)
|
|
|
|
+ // console.log(this.tableTop.length)
|
|
this.tableTop.splice(this.tableTop.length - 1, 1);
|
|
this.tableTop.splice(this.tableTop.length - 1, 1);
|
|
this.tableTop.push({
|
|
this.tableTop.push({
|
|
prop: "orderMaterialNumber",
|
|
prop: "orderMaterialNumber",
|
|
@@ -360,7 +360,7 @@ export default {
|
|
this.axios.post('/api/v1/uc/getRequireUnitName?index='+queryString).then((res)=>{
|
|
this.axios.post('/api/v1/uc/getRequireUnitName?index='+queryString).then((res)=>{
|
|
if(res.data.code == "200"){
|
|
if(res.data.code == "200"){
|
|
var restaurantsCarrier = res.data.data
|
|
var restaurantsCarrier = res.data.data
|
|
- console.log(restaurantsCarrier,"restaurantsCarrier");
|
|
|
|
|
|
+ // console.log(restaurantsCarrier,"restaurantsCarrier");
|
|
var results = queryString ? restaurantsCarrier.filter(this.createFilterCarrier(queryString)) :restaurantsCarrier;
|
|
var results = queryString ? restaurantsCarrier.filter(this.createFilterCarrier(queryString)) :restaurantsCarrier;
|
|
// 调用 callback 返回建议列表的数据
|
|
// 调用 callback 返回建议列表的数据
|
|
cb(results);
|
|
cb(results);
|
|
@@ -378,13 +378,13 @@ export default {
|
|
this.selectionList1 = selection;
|
|
this.selectionList1 = selection;
|
|
},
|
|
},
|
|
unloadPoint(index) {
|
|
unloadPoint(index) {
|
|
- console.log(index)
|
|
|
|
|
|
+ // console.log(index)
|
|
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)
|
|
|
|
|
|
+ // console.log(index)
|
|
this.index = index
|
|
this.index = index
|
|
this.a = 4
|
|
this.a = 4
|
|
this.drawer = true;
|
|
this.drawer = true;
|
|
@@ -404,14 +404,14 @@ export default {
|
|
},
|
|
},
|
|
//删除行
|
|
//删除行
|
|
deleteRow(index, rows) {
|
|
deleteRow(index, rows) {
|
|
- console.log(index)
|
|
|
|
- console.log("这里")
|
|
|
|
|
|
+ // console.log(index)
|
|
|
|
+ // console.log("这里")
|
|
rows.splice(index, 1);
|
|
rows.splice(index, 1);
|
|
},
|
|
},
|
|
// 返回主界面
|
|
// 返回主界面
|
|
makeSure1() {
|
|
makeSure1() {
|
|
this.selectionList1.forEach((e) => {
|
|
this.selectionList1.forEach((e) => {
|
|
- console.log(e.materialModel,e.materialSpecification)
|
|
|
|
|
|
+ // console.log(e.materialModel,e.materialSpecification)
|
|
if(e.materialSpecification == null){
|
|
if(e.materialSpecification == null){
|
|
e.materialSpecification = ''
|
|
e.materialSpecification = ''
|
|
}
|
|
}
|
|
@@ -461,7 +461,7 @@ export default {
|
|
},
|
|
},
|
|
currentRadioChange1(selection) {
|
|
currentRadioChange1(selection) {
|
|
this.mapList1 = selection;
|
|
this.mapList1 = selection;
|
|
- console.log(selection)
|
|
|
|
|
|
+ // console.log(selection)
|
|
if(selection.materialSpecification==null||selection.materialModel==null){
|
|
if(selection.materialSpecification==null||selection.materialModel==null){
|
|
this.materialName = this.mapList1.materialName
|
|
this.materialName = this.mapList1.materialName
|
|
}else{
|
|
}else{
|
|
@@ -474,12 +474,12 @@ export default {
|
|
this.truckPoint = selection.wareHouseName;
|
|
this.truckPoint = selection.wareHouseName;
|
|
this.requiremntUnitId = selection.wareHouseId;
|
|
this.requiremntUnitId = selection.wareHouseId;
|
|
} else if (this.a == 3) {
|
|
} else if (this.a == 3) {
|
|
- console.log(this.tableData[this.index])
|
|
|
|
|
|
+ // console.log(this.tableData[this.index])
|
|
this.tableData[this.index].requirementUnloadUnitId = selection.wareHouseId;
|
|
this.tableData[this.index].requirementUnloadUnitId = selection.wareHouseId;
|
|
this.tableData[this.index].truckPoint1 = selection.wareHouseName
|
|
this.tableData[this.index].truckPoint1 = selection.wareHouseName
|
|
this.refreshTable()
|
|
this.refreshTable()
|
|
} else if (this.a == 4) {
|
|
} else if (this.a == 4) {
|
|
- console.log(this.tableData[this.index])
|
|
|
|
|
|
+ // console.log(this.tableData[this.index])
|
|
this.tableData[this.index].requirementPlatformId = selection.wareHouseId;
|
|
this.tableData[this.index].requirementPlatformId = selection.wareHouseId;
|
|
this.tableData[this.index].requirementPlatformName = selection.wareHouseName;
|
|
this.tableData[this.index].requirementPlatformName = selection.wareHouseName;
|
|
this.refreshTable()
|
|
this.refreshTable()
|
|
@@ -487,8 +487,8 @@ export default {
|
|
},
|
|
},
|
|
// 新增
|
|
// 新增
|
|
makeSure() {
|
|
makeSure() {
|
|
- console.log(this.tableData)
|
|
|
|
- console.log(typeof(this.form.requirementEstimatedDuration))
|
|
|
|
|
|
+ // console.log(this.tableData)
|
|
|
|
+ // console.log(typeof(this.form.requirementEstimatedDuration))
|
|
if(this.shipperId == null){
|
|
if(this.shipperId == null){
|
|
this.$message.error("请选择用车单位")
|
|
this.$message.error("请选择用车单位")
|
|
return
|
|
return
|
|
@@ -518,8 +518,13 @@ export default {
|
|
this.$message.error("请选择装卸点")
|
|
this.$message.error("请选择装卸点")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- console.log(this.tableData)
|
|
|
|
- debugger
|
|
|
|
|
|
+ // console.log(this.tableData)
|
|
|
|
+ var DueTime;
|
|
|
|
+ if(this.DueTime==null){
|
|
|
|
+ DueTime = null;
|
|
|
|
+ }else{
|
|
|
|
+ DueTime = sjTime(this.DueTime);
|
|
|
|
+ }
|
|
let requiremnet = {
|
|
let requiremnet = {
|
|
requirementEstimatedDuration: this.form.requirementEstimatedDuration,
|
|
requirementEstimatedDuration: this.form.requirementEstimatedDuration,
|
|
requirementOverlimit: this.form.requirementOverlimit,
|
|
requirementOverlimit: this.form.requirementOverlimit,
|
|
@@ -530,11 +535,11 @@ export default {
|
|
requirementWorkType: this.form.requirementWorkType,
|
|
requirementWorkType: this.form.requirementWorkType,
|
|
requirementShipperId: this.shipperId,
|
|
requirementShipperId: this.shipperId,
|
|
// 用车截日期
|
|
// 用车截日期
|
|
- DueTime:sjTime(this.DueTime),
|
|
|
|
|
|
+ DueTime:DueTime,
|
|
mapList:this.tableData,
|
|
mapList:this.tableData,
|
|
orgCode:getCookie("orgCode")
|
|
orgCode:getCookie("orgCode")
|
|
};
|
|
};
|
|
- console.log("requirement",requiremnet);
|
|
|
|
|
|
+ // console.log("requirement",requiremnet);
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/ams/addTruckRequirement", requiremnet)
|
|
.post("/api/v1/ams/addTruckRequirement", requiremnet)
|
|
.then(res => {
|
|
.then(res => {
|