|
@@ -2,10 +2,6 @@
|
|
<template>
|
|
<template>
|
|
<div id="endMaintenance">
|
|
<div id="endMaintenance">
|
|
<page-title>新增需求</page-title>
|
|
<page-title>新增需求</page-title>
|
|
- <div class="main">
|
|
|
|
- <span class="text">新增</span>
|
|
|
|
- <span class="a"></span>
|
|
|
|
- </div>
|
|
|
|
<div>
|
|
<div>
|
|
<div class="form-box f2">
|
|
<div class="form-box f2">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
@@ -20,7 +16,30 @@
|
|
<div class="form-box f3">
|
|
<div class="form-box f3">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
<el-form-item label="外轮船名">
|
|
<el-form-item label="外轮船名">
|
|
- <el-input v-model="foreignShipName" disabled> </el-input>
|
|
|
|
|
|
+ <el-input v-model="foreignShipName" disabled>浏览</el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button type="primary" disabled>船名</el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-box f2">
|
|
|
|
+ <el-form :inline="true" class="demo-form-inline">
|
|
|
|
+ <el-form-item label="发货单位">
|
|
|
|
+ <el-input v-model="supplierName" disabled> </el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button type="primary" disabled>发货单位</el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-box f2">
|
|
|
|
+ <el-form :inline="true" class="demo-form-inline">
|
|
|
|
+ <el-form-item label="收货单位">
|
|
|
|
+ <el-input v-model="shipperName" disabled> </el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button type="primary" disabled>收货单位</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
@@ -29,11 +48,14 @@
|
|
<el-form-item label="物资名称">
|
|
<el-form-item label="物资名称">
|
|
<el-input v-model="materialName" disabled> </el-input>
|
|
<el-input v-model="materialName" disabled> </el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button type="primary" disabled>物资</el-button>
|
|
|
|
+ </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<div class="form-box f5">
|
|
<div class="form-box f5">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
- <el-form-item label="用车地点">
|
|
|
|
|
|
+ <el-form-item label="装车点">
|
|
<el-input v-model="truckPoint" disabled> </el-input>
|
|
<el-input v-model="truckPoint" disabled> </el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
@@ -43,7 +65,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="form-box f5">
|
|
<div class="form-box f5">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
- <el-form-item label="卸货地点">
|
|
|
|
|
|
+ <el-form-item label="卸车点">
|
|
<el-input v-model="truckPoint1" disabled> </el-input>
|
|
<el-input v-model="truckPoint1" disabled> </el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
@@ -51,16 +73,6 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
- <div class="form-box f5">
|
|
|
|
- <el-form :inline="true" class="demo-form-inline">
|
|
|
|
- <el-form-item label="装货月台">
|
|
|
|
- <el-input v-model="requirementPlatformName" disabled> </el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-button type="primary" @click="ondrawer(4)">浏览</el-button>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- </div>
|
|
|
|
<div class="form-box">
|
|
<div class="form-box">
|
|
<dil-form :formId="300" v-model="form"></dil-form>
|
|
<dil-form :formId="300" v-model="form"></dil-form>
|
|
</div>
|
|
</div>
|
|
@@ -73,7 +85,7 @@
|
|
<el-input
|
|
<el-input
|
|
placeholder="请输入内容"
|
|
placeholder="请输入内容"
|
|
v-model="input"
|
|
v-model="input"
|
|
- style="margin-top: 10px; margin-left: 20px"
|
|
|
|
|
|
+ style="margin-top: 10px ;width:50%"
|
|
clearable
|
|
clearable
|
|
>
|
|
>
|
|
</el-input>
|
|
</el-input>
|
|
@@ -125,15 +137,16 @@ export default {
|
|
components: { PageTitle },
|
|
components: { PageTitle },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- purchaseOrder: "",
|
|
|
|
- foreignShipName: "",
|
|
|
|
- materialName: "",
|
|
|
|
|
|
+ purchaseOrder: null,
|
|
|
|
+ foreignShipName: null,
|
|
|
|
+ materialName:null,
|
|
|
|
+ shipperName:null,
|
|
|
|
+ supplierName:null,
|
|
a: 1,
|
|
a: 1,
|
|
direction: "rtl",
|
|
direction: "rtl",
|
|
input: "",
|
|
input: "",
|
|
- truckPoint: "",
|
|
|
|
- truckPoint1:'',
|
|
|
|
- requirementPlatformName: "",
|
|
|
|
|
|
+ truckPoint: null,
|
|
|
|
+ truckPoint1:null,
|
|
drawer: false,
|
|
drawer: false,
|
|
form: {},
|
|
form: {},
|
|
second: {
|
|
second: {
|
|
@@ -162,12 +175,14 @@ export default {
|
|
ondrawer(num) {
|
|
ondrawer(num) {
|
|
this.drawer = true;
|
|
this.drawer = true;
|
|
this.a = num;
|
|
this.a = num;
|
|
|
|
+ console.log(this.a)
|
|
},
|
|
},
|
|
handleClose(done) {
|
|
handleClose(done) {
|
|
done();
|
|
done();
|
|
},
|
|
},
|
|
onclick(a) {
|
|
onclick(a) {
|
|
if (a == 1) {
|
|
if (a == 1) {
|
|
|
|
+ console.log(a);
|
|
this.second.requestUrl =
|
|
this.second.requestUrl =
|
|
"/api/v1/ams/getPurchaseIdByBatch?apiId=252&con=" + this.input;
|
|
"/api/v1/ams/getPurchaseIdByBatch?apiId=252&con=" + this.input;
|
|
} else {
|
|
} else {
|
|
@@ -179,22 +194,37 @@ export default {
|
|
this.mapList1 = selection
|
|
this.mapList1 = selection
|
|
this.purchaseOrder = this.mapList1.purchaseOrderNo
|
|
this.purchaseOrder = this.mapList1.purchaseOrderNo
|
|
this.foreignShipName = this.mapList1.resultForeignShipName
|
|
this.foreignShipName = this.mapList1.resultForeignShipName
|
|
|
|
+ this.supplierName = this.mapList1.supplierName
|
|
|
|
+ this.shipperName = this.mapList1.shipperName
|
|
this.materialName = this.mapList1.materialName;
|
|
this.materialName = this.mapList1.materialName;
|
|
},
|
|
},
|
|
currentRadioChange2(selection) {
|
|
currentRadioChange2(selection) {
|
|
this.mapList2 = selection
|
|
this.mapList2 = selection
|
|
- this.truckPoint = this.mapList2.wareHouseName;
|
|
|
|
|
|
+ console.log(this.mapList2)
|
|
|
|
+ var s1 = "";
|
|
|
|
+ this.truckPoint= s1.concat(this.mapList2.companyBranchName,this.mapList2.companyBranchName,this.mapList2.wareHouseName)
|
|
|
|
+ this.mapList2.companyBranchName+' '+this.mapList2.companyBranchName+this.mapList2.wareHouseName
|
|
},
|
|
},
|
|
currentRadioChange3(selection) {
|
|
currentRadioChange3(selection) {
|
|
this.mapList3 = selection
|
|
this.mapList3 = selection
|
|
- this.truckPoint1 = this.mapList3.wareHouseName;
|
|
|
|
|
|
+ this.truckPoint1 = this.mapList3.companyBranchName+this.mapList3.companyBranchName+this.mapList3.wareHouseName
|
|
},
|
|
},
|
|
- currentRadioChange4(selection) {
|
|
|
|
- this.mapList4 = selection
|
|
|
|
- this.requirementPlatformName = this.mapList4.wareHouseName;
|
|
|
|
},
|
|
},
|
|
// 新增
|
|
// 新增
|
|
makeSure() {
|
|
makeSure() {
|
|
|
|
+ console.log(this.form.materialNumber)
|
|
|
|
+ console.log(this.form.materialWeight);
|
|
|
|
+ console.log(typeof(this.form.materialNumber));
|
|
|
|
+ if(this.purchaseOrder == null){
|
|
|
|
+ this.$alert('没有选择采购订单,请点击浏览选择采购订单')
|
|
|
|
+ }else if(this.truckPoint == null){
|
|
|
|
+ this.$alert('没有选择用车地点,请点击浏览选择用车地点')
|
|
|
|
+ }else if(this.truckPoint1 == null){
|
|
|
|
+ this.$alert('没有选择卸货点,请点击浏览选择卸货点')
|
|
|
|
+ }
|
|
|
|
+ // }else if(typeof(this.form.materialNumber) =="undefined"&typeof(this.form.materialWeight) =="undefined"){
|
|
|
|
+ // this.$alert('请输入物资数量或者物资重量')
|
|
|
|
+ // }
|
|
let requiremnet = {
|
|
let requiremnet = {
|
|
purchaseOrderId: this.mapList1.purchaseOrderId,
|
|
purchaseOrderId: this.mapList1.purchaseOrderId,
|
|
requiremntUnitId: this.mapList2.wareHouseId,
|
|
requiremntUnitId: this.mapList2.wareHouseId,
|
|
@@ -209,8 +239,7 @@ export default {
|
|
requirementWorkContent: this.form.requirementWorkContent,
|
|
requirementWorkContent: this.form.requirementWorkContent,
|
|
requirementWorkEnvironment: this.form.requirementWorkEnvironment,
|
|
requirementWorkEnvironment: this.form.requirementWorkEnvironment,
|
|
requirementWorkType: this.form.requirementWorkType,
|
|
requirementWorkType: this.form.requirementWorkType,
|
|
- requirementUnloadUnitId:this.mapList3.wareHouseId,
|
|
|
|
- requirementPlatformId: this.mapList4.wareHouseId
|
|
|
|
|
|
+ requirementUnloadUnitId:this.mapList3.wareHouseId
|
|
};
|
|
};
|
|
console.log(requiremnet);
|
|
console.log(requiremnet);
|
|
this.axios
|
|
this.axios
|
|
@@ -231,7 +260,7 @@ export default {
|
|
cancel() {
|
|
cancel() {
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|
|
},
|
|
},
|
|
- },
|
|
|
|
|
|
+
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|