|
@@ -321,6 +321,7 @@ import PageTitle from "@/components/Page/Title";
|
|
import { sjTime } from "@/utils/sharedJsFile";
|
|
import { sjTime } from "@/utils/sharedJsFile";
|
|
import { getCookie } from "@/utils/util.js";
|
|
import { getCookie } from "@/utils/util.js";
|
|
import { checkTel } from "@/utils/validator.js";
|
|
import { checkTel } from "@/utils/validator.js";
|
|
|
|
+import returnResultVue from "../offsetSteel/truckTransport/returnResult.vue";
|
|
export default {
|
|
export default {
|
|
components: { PageTitle },
|
|
components: { PageTitle },
|
|
data() {
|
|
data() {
|
|
@@ -450,7 +451,28 @@ export default {
|
|
form: {}
|
|
form: {}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ requirementType() {
|
|
|
|
+ return this.form.requirementType;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
watch: {
|
|
watch: {
|
|
|
|
+ requirementType() {
|
|
|
|
+ if (this.form.requirementType == "计重") {
|
|
|
|
+ this.materialTable.requestUrl =
|
|
|
|
+ "/api/v1/uc/getInwardWeightMaterial?apiId=498&i=" + new Date();
|
|
|
|
+ } else {
|
|
|
|
+ this.materialTable.requestUrl =
|
|
|
|
+ "/api/v1/uc/queryMaterialByLike?apiId=244&i=" + new Date();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ // form: {
|
|
|
|
+ // handler(oldVal, newVal) {
|
|
|
|
+ // console.log(oldVal);
|
|
|
|
+ // console.log(newVal);
|
|
|
|
+ // },
|
|
|
|
+ // deep: true
|
|
|
|
+ // },
|
|
value() {
|
|
value() {
|
|
if (this.value) {
|
|
if (this.value) {
|
|
// console.log(this.value)
|
|
// console.log(this.value)
|
|
@@ -517,7 +539,6 @@ export default {
|
|
selectionChange(selection) {
|
|
selectionChange(selection) {
|
|
this.selectionList1 = [];
|
|
this.selectionList1 = [];
|
|
this.selectionList1 = selection;
|
|
this.selectionList1 = selection;
|
|
- console.log("selection", selection);
|
|
|
|
},
|
|
},
|
|
unloadPoint(index) {
|
|
unloadPoint(index) {
|
|
this.getUnloadRequestUrl();
|
|
this.getUnloadRequestUrl();
|
|
@@ -535,8 +556,13 @@ export default {
|
|
ondrawer(num) {
|
|
ondrawer(num) {
|
|
if (num == 1) {
|
|
if (num == 1) {
|
|
this.table = true;
|
|
this.table = true;
|
|
- this.materialTable.requestUrl =
|
|
|
|
- "/api/v1/uc/queryMaterialByLike?apiId=244&i=" + new Date();
|
|
|
|
|
|
+ if (this.form.requirementType == "计重") {
|
|
|
|
+ this.materialTable.requestUrl =
|
|
|
|
+ "/api/v1/uc/getInwardWeightMaterial?apiId=498&i=" + new Date();
|
|
|
|
+ } else {
|
|
|
|
+ this.materialTable.requestUrl =
|
|
|
|
+ "/api/v1/uc/queryMaterialByLike?apiId=244&i=" + new Date();
|
|
|
|
+ }
|
|
} else if (num == 3) {
|
|
} else if (num == 3) {
|
|
this.drawer2 = true;
|
|
this.drawer2 = true;
|
|
this.options3.requestUrl = "/api/v1/uc/getCapacityType?apiId=460";
|
|
this.options3.requestUrl = "/api/v1/uc/getCapacityType?apiId=460";
|
|
@@ -553,9 +579,19 @@ export default {
|
|
this.materialTable.requestUrl =
|
|
this.materialTable.requestUrl =
|
|
"/api/v1/uc/queryMaterialByLike?apiId=244&i=" + new Date();
|
|
"/api/v1/uc/queryMaterialByLike?apiId=244&i=" + new Date();
|
|
} else {
|
|
} else {
|
|
- this.materialTable.requestUrl =
|
|
|
|
- "/api/v1/uc/queryMaterialByLike?apiId=244&index=" +
|
|
|
|
- this.inputMaterial;
|
|
|
|
|
|
+ if (this.form.requirementType == "计重") {
|
|
|
|
+ this.materialTable.requestUrl =
|
|
|
|
+ "/api/v1/uc/getInwardWeightMaterial?apiId=498&i=" +
|
|
|
|
+ new Date() +
|
|
|
|
+ "&index=" +
|
|
|
|
+ this.inputMaterial;
|
|
|
|
+ } else {
|
|
|
|
+ this.materialTable.requestUrl =
|
|
|
|
+ "/api/v1/uc/queryMaterialByLike?apiId=244&i=" +
|
|
|
|
+ new Date() +
|
|
|
|
+ "&index=" +
|
|
|
|
+ this.inputMaterial;
|
|
|
|
+ }
|
|
this.inputMaterial = null;
|
|
this.inputMaterial = null;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -616,7 +652,9 @@ export default {
|
|
requirementPlatformId: e.requirementPlatformId,
|
|
requirementPlatformId: e.requirementPlatformId,
|
|
requirementUnloadUnitId: e.requirementUnloadUnitId,
|
|
requirementUnloadUnitId: e.requirementUnloadUnitId,
|
|
orderMaterialNumber: e.orderMaterialNumber,
|
|
orderMaterialNumber: e.orderMaterialNumber,
|
|
- orderMaterialWeight: e.orderMaterialWeight
|
|
|
|
|
|
+ orderMaterialWeight: e.orderMaterialWeight,
|
|
|
|
+ loadPointName: e.loadPointName,
|
|
|
|
+ unloadPointName: e.unloadPointName
|
|
};
|
|
};
|
|
this.tableData.push(addmap);
|
|
this.tableData.push(addmap);
|
|
});
|
|
});
|
|
@@ -624,8 +662,19 @@ export default {
|
|
onclick(a) {
|
|
onclick(a) {
|
|
if (this.input != null) {
|
|
if (this.input != null) {
|
|
if (a == 1) {
|
|
if (a == 1) {
|
|
- this.materialTable.requestUrl =
|
|
|
|
- "/api/v1/uc/queryMaterialByLike?apiId=244&index=" + this.input;
|
|
|
|
|
|
+ if (this.form.requirementType == "计重") {
|
|
|
|
+ this.materialTable.requestUrl =
|
|
|
|
+ "/api/v1/uc/getInwardWeightMaterial?apiId=498&i=" +
|
|
|
|
+ new Date() +
|
|
|
|
+ "&index=" +
|
|
|
|
+ this.input;
|
|
|
|
+ } else {
|
|
|
|
+ this.materialTable.requestUrl =
|
|
|
|
+ "/api/v1/uc/queryMaterialByLike?apiId=244&i=" +
|
|
|
|
+ new Date() +
|
|
|
|
+ "&index=" +
|
|
|
|
+ this.input;
|
|
|
|
+ }
|
|
this.input = null;
|
|
this.input = null;
|
|
} else {
|
|
} else {
|
|
this.second1.requestUrl =
|
|
this.second1.requestUrl =
|
|
@@ -633,8 +682,14 @@ export default {
|
|
this.input = null;
|
|
this.input = null;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- this.materialTable.requestUrl =
|
|
|
|
- "/api/v1/uc/queryMaterialByLike?apiId=244&i=" + new Date();
|
|
|
|
|
|
+ if (this.form.requirementType == "计重") {
|
|
|
|
+ this.materialTable.requestUrl =
|
|
|
|
+ "/api/v1/uc/getInwardWeightMaterial?apiId=498&i=" + new Date();
|
|
|
|
+ } else {
|
|
|
|
+ this.materialTable.requestUrl =
|
|
|
|
+ "/api/v1/uc/queryMaterialByLike?apiId=244&i=" + new Date();
|
|
|
|
+ }
|
|
|
|
+ this.inputMaterial = null;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
currentRadioChange1(selection) {
|
|
currentRadioChange1(selection) {
|
|
@@ -657,12 +712,11 @@ export default {
|
|
},
|
|
},
|
|
selectionChange1(radio) {
|
|
selectionChange1(radio) {
|
|
console.log(radio);
|
|
console.log(radio);
|
|
- (this.capacityTypeName = radio.capacityTypeName),
|
|
|
|
- (this.capacityTypeId = radio.capacityTypeId),
|
|
|
|
- (this.whether = radio.whether);
|
|
|
|
|
|
+ this.capacityTypeName = radio.capacityTypeName;
|
|
|
|
+ this.capacityTypeId = radio.capacityTypeId;
|
|
|
|
+ this.whether = radio.whether;
|
|
},
|
|
},
|
|
currentRadioChange2(selection) {
|
|
currentRadioChange2(selection) {
|
|
- console.log(selection);
|
|
|
|
if (this.a == 2) {
|
|
if (this.a == 2) {
|
|
this.truckPoint = selection.warehouseName;
|
|
this.truckPoint = selection.warehouseName;
|
|
this.requiremntUnitId = selection.warehouseId;
|
|
this.requiremntUnitId = selection.warehouseId;
|
|
@@ -670,12 +724,14 @@ export default {
|
|
// console.log(this.tableData[this.index])
|
|
// console.log(this.tableData[this.index])
|
|
this.tableData[this.index].requirementUnloadUnitId =
|
|
this.tableData[this.index].requirementUnloadUnitId =
|
|
selection.warehouseId;
|
|
selection.warehouseId;
|
|
|
|
+ this.tableData[this.index].unloadPointName = selection.warehouseName;
|
|
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 =
|
|
this.tableData[this.index].requirementPlatformId =
|
|
selection.warehouseId;
|
|
selection.warehouseId;
|
|
|
|
+ this.tableData[this.index].loadPointName = selection.warehouseName;
|
|
this.tableData[this.index].requirementPlatformName =
|
|
this.tableData[this.index].requirementPlatformName =
|
|
selection.warehouseName;
|
|
selection.warehouseName;
|
|
this.refreshTable();
|
|
this.refreshTable();
|
|
@@ -790,7 +846,6 @@ export default {
|
|
orgCode: getCookie("orgCode"),
|
|
orgCode: getCookie("orgCode"),
|
|
remark: this.form.Tel + this.capacityTypeName + this.form.typeRemarks
|
|
remark: this.form.Tel + this.capacityTypeName + this.form.typeRemarks
|
|
};
|
|
};
|
|
- console.log("requirement", requiremnet);
|
|
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/ams/addTruckRequirement", requiremnet)
|
|
.post("/api/v1/ams/addTruckRequirement", requiremnet)
|
|
.then(res => {
|
|
.then(res => {
|