|
@@ -26,7 +26,8 @@
|
|
|
<el-switch
|
|
|
v-model="matching"
|
|
|
active-color="#27d452"
|
|
|
- inactive-color="#e1e3e6">
|
|
|
+ inactive-color="#e1e3e6"
|
|
|
+ >
|
|
|
</el-switch>
|
|
|
<span class="span"></span>
|
|
|
</div>
|
|
@@ -43,12 +44,22 @@
|
|
|
</div>
|
|
|
<div class="remark from" v-if="matching">
|
|
|
<span class="text">船名/备注:</span>
|
|
|
- <el-input v-model="remark" @blur="onBlur" placeholder="可输入船名\备注重新匹配采购订单"> </el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="remark"
|
|
|
+ @blur="onBlur"
|
|
|
+ placeholder="可输入船名\备注重新匹配采购订单"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
<span class="span"></span>
|
|
|
</div>
|
|
|
<div class="purchaseOrder from" v-if="matching">
|
|
|
<span class="text">采购订单号:</span>
|
|
|
- <el-input v-model="purchaseOrderNo" placeholder="请选择物资和发货单位" disabled> </el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="purchaseOrderNo"
|
|
|
+ placeholder="请选择物资和发货单位"
|
|
|
+ disabled
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
<span class="span"></span>
|
|
|
</div>
|
|
|
|
|
@@ -66,7 +77,7 @@
|
|
|
<el-input
|
|
|
placeholder="请输入内容"
|
|
|
v-model="inputText"
|
|
|
- style="margin-top: 0.625rem; margin-left: 1.25rem"
|
|
|
+ style="margin-top: 0rem; margin-right: 0.1rem; width: 230px"
|
|
|
clearable
|
|
|
></el-input>
|
|
|
<el-button
|
|
@@ -142,12 +153,12 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
- watch:{
|
|
|
- matching(val){
|
|
|
- if(val){
|
|
|
+ watch: {
|
|
|
+ matching(val) {
|
|
|
+ if (val) {
|
|
|
this.getPurchaseOrderNo();
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
created() {
|
|
|
this.form1 = {
|
|
@@ -159,14 +170,14 @@ export default {
|
|
|
this.input = null;
|
|
|
this.materialName = selection.materialName;
|
|
|
this.materialId = selection.materialId;
|
|
|
- if(this.matching){
|
|
|
+ if (this.matching) {
|
|
|
this.getPurchaseOrderNo();
|
|
|
}
|
|
|
},
|
|
|
currentRadioChange2(selection) {
|
|
|
this.supplierName = selection.supplierName;
|
|
|
this.supplierId = selection.supplierId;
|
|
|
- if(this.matching){
|
|
|
+ if (this.matching) {
|
|
|
this.getPurchaseOrderNo();
|
|
|
}
|
|
|
},
|
|
@@ -180,12 +191,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onBlur() {
|
|
|
- if(this.matching){
|
|
|
+ if (this.matching) {
|
|
|
this.getPurchaseOrderNo();
|
|
|
}
|
|
|
},
|
|
|
getPurchaseOrderNo() {
|
|
|
- console.log(this.matching)
|
|
|
+ console.log(this.matching);
|
|
|
let map = {
|
|
|
materialId: this.materialId,
|
|
|
supplierId: this.supplierId,
|
|
@@ -264,12 +275,12 @@ export default {
|
|
|
if (this.input.length == 7) {
|
|
|
this.list.push(this.input);
|
|
|
this.input = "";
|
|
|
- } else if (this.input.length < 7){
|
|
|
+ } else if (this.input.length < 7) {
|
|
|
this.$message({
|
|
|
type: "warning",
|
|
|
message: "车皮号长度不足7位数,请重新输入!",
|
|
|
});
|
|
|
- } else if (this.input.length > 7){
|
|
|
+ } else if (this.input.length > 7) {
|
|
|
this.$message({
|
|
|
type: "warning",
|
|
|
message: "车皮号长度超过7位数,请重新输入!",
|
|
@@ -297,41 +308,41 @@ export default {
|
|
|
message: "请输入车皮号!",
|
|
|
});
|
|
|
} else {
|
|
|
- if (this.form1.sendStationId) {
|
|
|
- if (this.form1.arrivalStationId) {
|
|
|
- if (this.form1.resultLoadingDate) {
|
|
|
- if(this.supplierId){
|
|
|
- if(this.materialId){
|
|
|
- }else{
|
|
|
- this.$message({
|
|
|
- type: "warning",
|
|
|
- message: "请选择物资",
|
|
|
- });
|
|
|
- }
|
|
|
- }else{
|
|
|
+ if (this.form1.sendStationId) {
|
|
|
+ if (this.form1.arrivalStationId) {
|
|
|
+ if (this.form1.resultLoadingDate) {
|
|
|
+ if (this.supplierId) {
|
|
|
+ if (this.materialId) {
|
|
|
+ } else {
|
|
|
this.$message({
|
|
|
type: "warning",
|
|
|
- message: "请选择发货单位",
|
|
|
+ message: "请选择物资",
|
|
|
});
|
|
|
}
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: "warning",
|
|
|
- message: "请选择装车时间!",
|
|
|
+ message: "请选择发货单位",
|
|
|
});
|
|
|
}
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: "warning",
|
|
|
- message: "请选择到站!",
|
|
|
+ message: "请选择装车时间!",
|
|
|
});
|
|
|
}
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: "warning",
|
|
|
- message: "请选择发站!",
|
|
|
+ message: "请选择到站!",
|
|
|
});
|
|
|
}
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: "warning",
|
|
|
+ message: "请选择发站!",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (state == 1) {
|
|
@@ -342,21 +353,21 @@ export default {
|
|
|
resultLoadingDate: sjTime(this.form1.resultLoadingDate),
|
|
|
resultRemarks: this.form1.resultRemarks,
|
|
|
resultType: 3,
|
|
|
- sendUnitId:this.supplierId,
|
|
|
- materialId:this.materialId,
|
|
|
+ sendUnitId: this.supplierId,
|
|
|
+ materialId: this.materialId,
|
|
|
};
|
|
|
- if(this.matching){
|
|
|
- map = {
|
|
|
+ if (this.matching) {
|
|
|
+ map = {
|
|
|
wagonNoList: this.list,
|
|
|
sendStationId: this.form1.sendStationId,
|
|
|
arrivalStationId: this.form1.arrivalStationId,
|
|
|
resultLoadingDate: sjTime(this.form1.resultLoadingDate),
|
|
|
resultRemarks: this.form1.resultRemarks,
|
|
|
resultType: 3,
|
|
|
- sendUnitId:this.supplierId,
|
|
|
- materialId:this.materialId,
|
|
|
+ sendUnitId: this.supplierId,
|
|
|
+ materialId: this.materialId,
|
|
|
purchaseOrderRailPlanId: this.purchaseOrderId,
|
|
|
- }
|
|
|
+ };
|
|
|
}
|
|
|
this.axios
|
|
|
.post("/api/v1/tms/addDomesticLoadResult", map)
|
|
@@ -381,19 +392,20 @@ export default {
|
|
|
<style lang='scss'>
|
|
|
.addWagonLoad {
|
|
|
color: #606266;
|
|
|
- font-size: 0.875rem;
|
|
|
- font-weight: 600;
|
|
|
+ font-size: 0.675rem;
|
|
|
+ font-weight: 500;
|
|
|
.cp {
|
|
|
- width: 100%;
|
|
|
+ width: 49%;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
padding-top: 0.625rem;
|
|
|
padding-bottom: 0.625rem;
|
|
|
+ margin-left: 364px;
|
|
|
.cp_title {
|
|
|
.cp_top {
|
|
|
width: 3.125rem;
|
|
|
- padding-right: 1.25rem;
|
|
|
+ padding-right: 1.55rem;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -427,16 +439,16 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .matching{
|
|
|
+ .matching {
|
|
|
width: 100%;
|
|
|
height: 3.125rem;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
- .text{
|
|
|
+ .text {
|
|
|
width: 8.75rem;
|
|
|
}
|
|
|
- .span{
|
|
|
+ .span {
|
|
|
display: inline-block;
|
|
|
width: 310px;
|
|
|
height: 0.0625rem;
|
|
@@ -447,6 +459,8 @@ export default {
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
height: 3.75rem;
|
|
|
+ margin-left: 27rem;
|
|
|
+ width: 20rem;
|
|
|
.text {
|
|
|
text-align: right;
|
|
|
width: 8.125rem;
|
|
@@ -457,6 +471,8 @@ export default {
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
height: 3.75rem;
|
|
|
+ margin-left: 27rem;
|
|
|
+ width: 20rem;
|
|
|
.text {
|
|
|
text-align: right;
|
|
|
width: 8.125rem;
|
|
@@ -471,18 +487,20 @@ export default {
|
|
|
text-align: right;
|
|
|
width: 5.625rem;
|
|
|
}
|
|
|
- .span{
|
|
|
+ .span {
|
|
|
display: inline-block;
|
|
|
- width: 1.875rem;height: 1.25rem;
|
|
|
+ width: 1.875rem;
|
|
|
+ height: 1.25rem;
|
|
|
}
|
|
|
}
|
|
|
- .purchaseOrder{
|
|
|
+ .purchaseOrder {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
- .span{
|
|
|
+ .span {
|
|
|
display: inline-block;
|
|
|
- width: 1.875rem;height: 0.0625rem;
|
|
|
+ width: 1.875rem;
|
|
|
+ height: 0.0625rem;
|
|
|
}
|
|
|
}
|
|
|
.form {
|
|
@@ -494,6 +512,7 @@ export default {
|
|
|
.button-box {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
+ padding-top: 30px;
|
|
|
}
|
|
|
}
|
|
|
</style>
|