|
@@ -2,6 +2,18 @@
|
|
<!-- 新增运输作业页面 -->
|
|
<!-- 新增运输作业页面 -->
|
|
<div class="addPurRequirement">
|
|
<div class="addPurRequirement">
|
|
<page-title>运输预约</page-title>
|
|
<page-title>运输预约</page-title>
|
|
|
|
+ <div class="purchaseOrder from">
|
|
|
|
+ <span class="text">卸货厂区:</span>
|
|
|
|
+ <el-select v-model="purchaseOrgId" placeholder="请选择" @change="onchange()" ref="selectlb">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in purchaseOrgList"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
<div class="material from">
|
|
<div class="material from">
|
|
<span class="text">物资:</span>
|
|
<span class="text">物资:</span>
|
|
<el-input class="input" v-model="materialName" disabled> </el-input>
|
|
<el-input class="input" v-model="materialName" disabled> </el-input>
|
|
@@ -80,12 +92,6 @@
|
|
@radio-change="currentRadioChange4"
|
|
@radio-change="currentRadioChange4"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
- <div v-show="a == 5">
|
|
|
|
- <dilTable
|
|
|
|
- v-bind.sync="line"
|
|
|
|
- @radio-change="currentRadioChange5"
|
|
|
|
- ></dilTable>
|
|
|
|
- </div>
|
|
|
|
</el-drawer>
|
|
</el-drawer>
|
|
<div class="button_box">
|
|
<div class="button_box">
|
|
<el-button @click="onClickCancel">返回</el-button>
|
|
<el-button @click="onClickCancel">返回</el-button>
|
|
@@ -107,7 +113,7 @@ export default {
|
|
//车辆表格数据
|
|
//车辆表格数据
|
|
selectionList: [],
|
|
selectionList: [],
|
|
stateCarrier:null,
|
|
stateCarrier:null,
|
|
-
|
|
|
|
|
|
+ purchaseOrgId:null,
|
|
// 表单
|
|
// 表单
|
|
form1: {},
|
|
form1: {},
|
|
//采购订单号
|
|
//采购订单号
|
|
@@ -152,6 +158,16 @@ export default {
|
|
requestUrl: "",
|
|
requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
},
|
|
},
|
|
|
|
+ purchaseOrgLable:null,
|
|
|
|
+ purchaseOrgList : [
|
|
|
|
+ {
|
|
|
|
+ value:1,
|
|
|
|
+ label:'一厂'
|
|
|
|
+ },{
|
|
|
|
+ value:2,
|
|
|
|
+ label:'二厂'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -171,16 +187,28 @@ export default {
|
|
onBlur() {
|
|
onBlur() {
|
|
this.getPurchaseOrderNo();
|
|
this.getPurchaseOrderNo();
|
|
},
|
|
},
|
|
|
|
+ onchange(){
|
|
|
|
+ this.getPurchaseOrderNo();
|
|
|
|
+ console.log(this.purchaseOrgId)
|
|
|
|
+ if(this.purchaseOrgId == 1) {
|
|
|
|
+ this.purchaseOrgLable = "一厂"
|
|
|
|
+ console.log(this.purchaseOrgLable)
|
|
|
|
+ }else{
|
|
|
|
+ this.purchaseOrgLable = "二厂"
|
|
|
|
+ console.log(this.purchaseOrgLable)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
getPurchaseOrderNo() {
|
|
getPurchaseOrderNo() {
|
|
let map = {
|
|
let map = {
|
|
materialId: this.materialId,
|
|
materialId: this.materialId,
|
|
supplierId: this.supplierId,
|
|
supplierId: this.supplierId,
|
|
|
|
+ purchaseOrgId:this.purchaseOrgId
|
|
};
|
|
};
|
|
if (this.remark) {
|
|
if (this.remark) {
|
|
map.remark = this.remark;
|
|
map.remark = this.remark;
|
|
}
|
|
}
|
|
- console.log(this.map);
|
|
|
|
- if (this.materialId && this.supplierId) {
|
|
|
|
|
|
+ console.log(map);
|
|
|
|
+ if (this.materialId && this.supplierId && this.purchaseOrgId) {
|
|
this.axios.post("/api/v1/oms/selectNewOrderId", map).then((res) => {
|
|
this.axios.post("/api/v1/oms/selectNewOrderId", map).then((res) => {
|
|
console.log(res);
|
|
console.log(res);
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
@@ -189,9 +217,11 @@ export default {
|
|
message: "没有匹配的采购订单号!",
|
|
message: "没有匹配的采购订单号!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
|
|
+ this.purchaseOrderNo = null
|
|
this.form1 = [];
|
|
this.form1 = [];
|
|
} else {
|
|
} else {
|
|
console.log();
|
|
console.log();
|
|
|
|
+ console.log(res.data.data)
|
|
this.remark = res.data.data.remark;
|
|
this.remark = res.data.data.remark;
|
|
this.purchaseOrderId = res.data.data.purchaseOrderId;
|
|
this.purchaseOrderId = res.data.data.purchaseOrderId;
|
|
this.purchaseOrderNo = res.data.data.purchaseOrderNo ;
|
|
this.purchaseOrderNo = res.data.data.purchaseOrderNo ;
|
|
@@ -274,6 +304,8 @@ export default {
|
|
},
|
|
},
|
|
// 确认
|
|
// 确认
|
|
onClickConfirm() {
|
|
onClickConfirm() {
|
|
|
|
+ console.log(this.purchaseOrgLable,this.materialName,this.supplierName,this.purchaseOrderNo,this.unloadPointName,this.stateCarrier)
|
|
|
|
+ debugger
|
|
this.disabled = true
|
|
this.disabled = true
|
|
var state = 0;
|
|
var state = 0;
|
|
if (
|
|
if (
|