|
@@ -81,40 +81,35 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
- <el-drawer
|
|
|
|
- title="选择车辆类型"
|
|
|
|
- :visible.sync="drawer2"
|
|
|
|
- direction="rtl"
|
|
|
|
- size="40%"
|
|
|
|
- :show-close="false"
|
|
|
|
- >
|
|
|
|
- <div style="margin-left: -300px">
|
|
|
|
|
|
+ <div class="drawSty">
|
|
|
|
+ <el-drawer
|
|
|
|
+ :visible.sync="drawer2"
|
|
|
|
+ direction="rtl"
|
|
|
|
+ size="40%"
|
|
|
|
+ :show-close="false"
|
|
|
|
+ >
|
|
<el-input
|
|
<el-input
|
|
placeholder="请输入内容"
|
|
placeholder="请输入内容"
|
|
v-model="inputCapacityType"
|
|
v-model="inputCapacityType"
|
|
- style="margin-left: 20px; width: 250px"
|
|
|
|
clearable
|
|
clearable
|
|
|
|
+ style="margin-left:20px"
|
|
>
|
|
>
|
|
</el-input
|
|
</el-input
|
|
><el-button type="primary" class="btn" @click="onclickCapacity">
|
|
><el-button type="primary" class="btn" @click="onclickCapacity">
|
|
<i class="el-icon-search"></i>查询
|
|
<i class="el-icon-search"></i>查询
|
|
</el-button>
|
|
</el-button>
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <!-- <el-button @click="open">取消</el-button> -->
|
|
|
|
-
|
|
|
|
- <div class="tablecls">
|
|
|
|
- <dilTable
|
|
|
|
- ref="options3"
|
|
|
|
- v-bind.sync="options3"
|
|
|
|
- @radio-change="selectionChange1"
|
|
|
|
- :drawer="aaadrawer"
|
|
|
|
- >
|
|
|
|
- </dilTable>
|
|
|
|
- </div>
|
|
|
|
- </el-drawer>
|
|
|
|
|
|
+ <div class="tablecls">
|
|
|
|
+ <dilTable
|
|
|
|
+ ref="options3"
|
|
|
|
+ v-bind.sync="options3"
|
|
|
|
+ @radio-change="selectionChange1"
|
|
|
|
+ :drawer="aaadrawer"
|
|
|
|
+ >
|
|
|
|
+ </dilTable>
|
|
|
|
+ </div>
|
|
|
|
+ </el-drawer>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
<!-- 选择物资 -->
|
|
<!-- 选择物资 -->
|
|
<div class="materialDrawer">
|
|
<div class="materialDrawer">
|
|
<el-form :inline="true" class="demo-form-inline" label-width="80px">
|
|
<el-form :inline="true" class="demo-form-inline" label-width="80px">
|
|
@@ -278,7 +273,7 @@
|
|
<el-input
|
|
<el-input
|
|
placeholder="请输入内容"
|
|
placeholder="请输入内容"
|
|
v-model="input"
|
|
v-model="input"
|
|
- style="margin-top: 5px; margin-left: 10px; width: 250px"
|
|
|
|
|
|
+ style="width: 250px"
|
|
clearable
|
|
clearable
|
|
>
|
|
>
|
|
</el-input>
|
|
</el-input>
|
|
@@ -311,9 +306,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">确认新增</el-button>
|
|
<el-button type="primary" @click="cancel">返回</el-button>
|
|
<el-button type="primary" @click="cancel">返回</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -334,44 +327,44 @@ export default {
|
|
options6: [
|
|
options6: [
|
|
{
|
|
{
|
|
value: "焦化",
|
|
value: "焦化",
|
|
- label: "焦化",
|
|
|
|
|
|
+ label: "焦化"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: "污粉",
|
|
value: "污粉",
|
|
- label: "污粉",
|
|
|
|
|
|
+ label: "污粉"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: "喷煤",
|
|
value: "喷煤",
|
|
- label: "喷煤",
|
|
|
|
|
|
+ label: "喷煤"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: "溶剂",
|
|
value: "溶剂",
|
|
- label: "溶剂",
|
|
|
|
|
|
+ label: "溶剂"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: "配料",
|
|
value: "配料",
|
|
- label: "配料",
|
|
|
|
|
|
+ label: "配料"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: "二次",
|
|
value: "二次",
|
|
- label: "二次",
|
|
|
|
|
|
+ label: "二次"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: "原料",
|
|
value: "原料",
|
|
- label: "原料",
|
|
|
|
|
|
+ label: "原料"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: "烧结矿",
|
|
value: "烧结矿",
|
|
- label: "烧结矿",
|
|
|
|
|
|
+ label: "烧结矿"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: "打堆、装车",
|
|
value: "打堆、装车",
|
|
- label: "打堆、装车",
|
|
|
|
|
|
+ label: "打堆、装车"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: "回收废旧物资",
|
|
value: "回收废旧物资",
|
|
- label: "回收废旧物资",
|
|
|
|
- },
|
|
|
|
|
|
+ label: "回收废旧物资"
|
|
|
|
+ }
|
|
],
|
|
],
|
|
installremark: "",
|
|
installremark: "",
|
|
options: [],
|
|
options: [],
|
|
@@ -389,25 +382,25 @@ export default {
|
|
{
|
|
{
|
|
prop: "materialName",
|
|
prop: "materialName",
|
|
label: "物资名称",
|
|
label: "物资名称",
|
|
- width: "140",
|
|
|
|
|
|
+ width: "140"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
prop: "requirementPlatformName",
|
|
prop: "requirementPlatformName",
|
|
label: "装货点",
|
|
label: "装货点",
|
|
slot: true,
|
|
slot: true,
|
|
- width: "140",
|
|
|
|
|
|
+ width: "140"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
prop: "truckPoint1",
|
|
prop: "truckPoint1",
|
|
label: "卸货点",
|
|
label: "卸货点",
|
|
slot: true,
|
|
slot: true,
|
|
- width: "140",
|
|
|
|
|
|
+ width: "140"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
prop: "orderMaterialWeight",
|
|
prop: "orderMaterialWeight",
|
|
label: "重量",
|
|
label: "重量",
|
|
- slot: true,
|
|
|
|
- },
|
|
|
|
|
|
+ slot: true
|
|
|
|
+ }
|
|
],
|
|
],
|
|
row: {},
|
|
row: {},
|
|
//物资表格数据
|
|
//物资表格数据
|
|
@@ -439,25 +432,25 @@ export default {
|
|
materialTable: {
|
|
materialTable: {
|
|
requestUrl: "",
|
|
requestUrl: "",
|
|
selectionType: "select",
|
|
selectionType: "select",
|
|
- mapList1: [],
|
|
|
|
|
|
+ mapList1: []
|
|
},
|
|
},
|
|
second1: {
|
|
second1: {
|
|
requestUrl: "",
|
|
requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
- mapList2: [],
|
|
|
|
|
|
+ mapList2: []
|
|
},
|
|
},
|
|
options3: {
|
|
options3: {
|
|
requestUrl: "",
|
|
requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
- mapList3: [],
|
|
|
|
|
|
+ mapList3: []
|
|
},
|
|
},
|
|
- form: {},
|
|
|
|
|
|
+ form: {}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
requirementType() {
|
|
requirementType() {
|
|
return this.form.requirementType;
|
|
return this.form.requirementType;
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
requirementType() {
|
|
requirementType() {
|
|
@@ -484,14 +477,14 @@ export default {
|
|
this.tableTop.push({
|
|
this.tableTop.push({
|
|
prop: "orderMaterialNumber",
|
|
prop: "orderMaterialNumber",
|
|
label: "件数",
|
|
label: "件数",
|
|
- slot: true,
|
|
|
|
|
|
+ slot: true
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
this.tableTop.splice(this.tableTop.length - 1, 1);
|
|
this.tableTop.splice(this.tableTop.length - 1, 1);
|
|
this.tableTop.push({
|
|
this.tableTop.push({
|
|
prop: "orderMaterialWeight",
|
|
prop: "orderMaterialWeight",
|
|
label: "重量",
|
|
label: "重量",
|
|
- slot: true,
|
|
|
|
|
|
+ slot: true
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -501,7 +494,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.aaadrawer = true;
|
|
this.aaadrawer = true;
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//用车单位弹出层
|
|
//用车单位弹出层
|
|
@@ -517,7 +510,7 @@ export default {
|
|
querySearchCarrier(queryString, cb) {
|
|
querySearchCarrier(queryString, cb) {
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/uc/getRequireUnitName?index=" + queryString)
|
|
.post("/api/v1/uc/getRequireUnitName?index=" + queryString)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .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");
|
|
@@ -530,7 +523,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
createFilterCarrier(queryString) {
|
|
createFilterCarrier(queryString) {
|
|
- return (restaurantsCarrier) => {
|
|
|
|
|
|
+ return restaurantsCarrier => {
|
|
return (
|
|
return (
|
|
restaurantsCarrier.shipperName
|
|
restaurantsCarrier.shipperName
|
|
.toLowerCase()
|
|
.toLowerCase()
|
|
@@ -580,16 +573,23 @@ export default {
|
|
},
|
|
},
|
|
handleClose2(done) {
|
|
handleClose2(done) {
|
|
console.log(this.tableData.length);
|
|
console.log(this.tableData.length);
|
|
- console.log("this.form.requirementType:",this.form.requirementType);
|
|
|
|
- if (this.tableData.length > 0 && this.selectionList1.length > 0 && this.form.requirementType!='倒库') {
|
|
|
|
|
|
+ console.log("this.form.requirementType:", this.form.requirementType);
|
|
|
|
+ if (
|
|
|
|
+ this.tableData.length > 0 &&
|
|
|
|
+ this.selectionList1.length > 0 &&
|
|
|
|
+ this.form.requirementType != "倒库"
|
|
|
|
+ ) {
|
|
this.$message.warning("一个需求只允许填写一个物资");
|
|
this.$message.warning("一个需求只允许填写一个物资");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (this.selectionList1.length > 1 && this.form.requirementType!='倒库') {
|
|
|
|
|
|
+ if (
|
|
|
|
+ this.selectionList1.length > 1 &&
|
|
|
|
+ this.form.requirementType != "倒库"
|
|
|
|
+ ) {
|
|
this.$message.warning("一个需求只允许填写一个物资");
|
|
this.$message.warning("一个需求只允许填写一个物资");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- 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 = "";
|
|
@@ -600,7 +600,7 @@ export default {
|
|
var addmap = {
|
|
var addmap = {
|
|
materialName:
|
|
materialName:
|
|
e.materialName + e.materialSpecification + e.materialModel,
|
|
e.materialName + e.materialSpecification + e.materialModel,
|
|
- materialId: e.materialId,
|
|
|
|
|
|
+ materialId: e.materialId
|
|
};
|
|
};
|
|
this.tableData.push(addmap);
|
|
this.tableData.push(addmap);
|
|
});
|
|
});
|
|
@@ -611,7 +611,7 @@ export default {
|
|
refreshTable() {
|
|
refreshTable() {
|
|
var arr = this.tableData;
|
|
var arr = this.tableData;
|
|
this.tableData = [];
|
|
this.tableData = [];
|
|
- arr.forEach((e) => {
|
|
|
|
|
|
+ arr.forEach(e => {
|
|
var addmap = {
|
|
var addmap = {
|
|
materialName: e.materialName,
|
|
materialName: e.materialName,
|
|
materialId: e.materialId,
|
|
materialId: e.materialId,
|
|
@@ -622,7 +622,7 @@ export default {
|
|
orderMaterialNumber: e.orderMaterialNumber,
|
|
orderMaterialNumber: e.orderMaterialNumber,
|
|
orderMaterialWeight: e.orderMaterialWeight,
|
|
orderMaterialWeight: e.orderMaterialWeight,
|
|
loadPointName: e.loadPointName,
|
|
loadPointName: e.loadPointName,
|
|
- unloadPointName: e.unloadPointName,
|
|
|
|
|
|
+ unloadPointName: e.unloadPointName
|
|
};
|
|
};
|
|
this.tableData.push(addmap);
|
|
this.tableData.push(addmap);
|
|
});
|
|
});
|
|
@@ -645,7 +645,6 @@ export default {
|
|
"&index=" +
|
|
"&index=" +
|
|
this.inputMaterial;
|
|
this.inputMaterial;
|
|
}
|
|
}
|
|
- this.inputMaterial = null;
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onclickCapacity() {
|
|
onclickCapacity() {
|
|
@@ -655,7 +654,6 @@ export default {
|
|
this.options3.requestUrl =
|
|
this.options3.requestUrl =
|
|
"/api/v1/uc/getCapacityType?apiId=460&index=" +
|
|
"/api/v1/uc/getCapacityType?apiId=460&index=" +
|
|
this.inputCapacityType;
|
|
this.inputCapacityType;
|
|
- this.inputCapacityType = null;
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//删除行
|
|
//删除行
|
|
@@ -667,15 +665,22 @@ export default {
|
|
// 返回主界面
|
|
// 返回主界面
|
|
makeSure1() {
|
|
makeSure1() {
|
|
console.log(this.tableData.length);
|
|
console.log(this.tableData.length);
|
|
- if (this.tableData.length > 0 && this.selectionList1.length > 0 && this.form.requirementType!="倒库") {
|
|
|
|
|
|
+ if (
|
|
|
|
+ this.tableData.length > 0 &&
|
|
|
|
+ this.selectionList1.length > 0 &&
|
|
|
|
+ this.form.requirementType != "倒库"
|
|
|
|
+ ) {
|
|
this.$message.warning("一个需求只允许填写一个物资");
|
|
this.$message.warning("一个需求只允许填写一个物资");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (this.selectionList1.length > 1 && this.form.requirementType!="倒库") {
|
|
|
|
|
|
+ if (
|
|
|
|
+ this.selectionList1.length > 1 &&
|
|
|
|
+ this.form.requirementType != "倒库"
|
|
|
|
+ ) {
|
|
this.$message.warning("一个需求只允许填写一个物资");
|
|
this.$message.warning("一个需求只允许填写一个物资");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- 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 = "";
|
|
@@ -686,7 +691,7 @@ export default {
|
|
var addmap = {
|
|
var addmap = {
|
|
materialName:
|
|
materialName:
|
|
e.materialName + e.materialSpecification + e.materialModel,
|
|
e.materialName + e.materialSpecification + e.materialModel,
|
|
- materialId: e.materialId,
|
|
|
|
|
|
+ materialId: e.materialId
|
|
};
|
|
};
|
|
this.tableData.push(addmap);
|
|
this.tableData.push(addmap);
|
|
});
|
|
});
|
|
@@ -696,7 +701,7 @@ export default {
|
|
refreshTable() {
|
|
refreshTable() {
|
|
var arr = this.tableData;
|
|
var arr = this.tableData;
|
|
this.tableData = [];
|
|
this.tableData = [];
|
|
- arr.forEach((e) => {
|
|
|
|
|
|
+ arr.forEach(e => {
|
|
var addmap = {
|
|
var addmap = {
|
|
materialName: e.materialName,
|
|
materialName: e.materialName,
|
|
materialId: e.materialId,
|
|
materialId: e.materialId,
|
|
@@ -707,7 +712,7 @@ export default {
|
|
orderMaterialNumber: e.orderMaterialNumber,
|
|
orderMaterialNumber: e.orderMaterialNumber,
|
|
orderMaterialWeight: e.orderMaterialWeight,
|
|
orderMaterialWeight: e.orderMaterialWeight,
|
|
loadPointName: e.loadPointName,
|
|
loadPointName: e.loadPointName,
|
|
- unloadPointName: e.unloadPointName,
|
|
|
|
|
|
+ unloadPointName: e.unloadPointName
|
|
};
|
|
};
|
|
this.tableData.push(addmap);
|
|
this.tableData.push(addmap);
|
|
});
|
|
});
|
|
@@ -797,7 +802,7 @@ export default {
|
|
// console.log("进来了");
|
|
// console.log("进来了");
|
|
// console.log(this.whether);
|
|
// console.log(this.whether);
|
|
// console.log(this.installremark);
|
|
// console.log(this.installremark);
|
|
- if (this.tableData.length > 1 && this.form.requirementType!='倒库') {
|
|
|
|
|
|
+ if (this.tableData.length > 1 && this.form.requirementType != "倒库") {
|
|
this.$message.warning("非倒库需求只允许填写一个物资");
|
|
this.$message.warning("非倒库需求只允许填写一个物资");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -846,7 +851,7 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
var i = 0;
|
|
var i = 0;
|
|
- this.tableData.forEach((e) => {
|
|
|
|
|
|
+ this.tableData.forEach(e => {
|
|
if (e.requirementPlatformId && e.requirementUnloadUnitId) {
|
|
if (e.requirementPlatformId && e.requirementUnloadUnitId) {
|
|
i++;
|
|
i++;
|
|
}
|
|
}
|
|
@@ -901,15 +906,15 @@ export default {
|
|
capacityTypeId: this.capacityTypeId,
|
|
capacityTypeId: this.capacityTypeId,
|
|
mapList: this.tableData,
|
|
mapList: this.tableData,
|
|
orgCode: getCookie("orgCode"),
|
|
orgCode: getCookie("orgCode"),
|
|
- remark: this.form.Tel + this.capacityTypeName + this.form.typeRemarks,
|
|
|
|
|
|
+ remark: this.form.Tel + this.capacityTypeName + this.form.typeRemarks
|
|
};
|
|
};
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/ams/addTruckRequirement", requiremnet)
|
|
.post("/api/v1/ams/addTruckRequirement", requiremnet)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
this.$message({
|
|
this.$message({
|
|
type: "success",
|
|
type: "success",
|
|
- message: "新增成功!",
|
|
|
|
|
|
+ message: "新增成功!"
|
|
});
|
|
});
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|
|
} else {
|
|
} else {
|
|
@@ -925,8 +930,8 @@ export default {
|
|
// 返回
|
|
// 返回
|
|
cancel() {
|
|
cancel() {
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@@ -1054,3 +1059,11 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
|
|
+<style>
|
|
|
|
+.el-drawer__body {
|
|
|
|
+ overflow: auto;
|
|
|
|
+}
|
|
|
|
+.el-drawer__container ::-webkit-scrollbar {
|
|
|
|
+ display: none;
|
|
|
|
+}
|
|
|
|
+</style>
|