|
@@ -48,14 +48,20 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="forwardingUnit from">
|
|
|
|
+ <span class="text">装货点:</span>
|
|
|
|
+ <el-input class="input" v-model="loadPointName" disabled> </el-input>
|
|
|
|
+ <el-button type="primary" @click="ondrawer(5)">浏览</el-button>
|
|
|
|
+ </div>
|
|
<div class="forwardingUnit from">
|
|
<div class="forwardingUnit from">
|
|
<span class="text">卸货点:</span>
|
|
<span class="text">卸货点:</span>
|
|
<el-input class="input" v-model="unloadPointName" disabled> </el-input>
|
|
<el-input class="input" v-model="unloadPointName" disabled> </el-input>
|
|
<el-button type="primary" @click="ondrawer(4)">浏览</el-button>
|
|
<el-button type="primary" @click="ondrawer(4)">浏览</el-button>
|
|
</div>
|
|
</div>
|
|
- <div class="purchaseOrderNo from">
|
|
|
|
|
|
+ <div class="forwardingUnit from">
|
|
<span class="text">采购订单号:</span>
|
|
<span class="text">采购订单号:</span>
|
|
<el-input class="input" v-model="purchaseOrderNo" disabled> </el-input>
|
|
<el-input class="input" v-model="purchaseOrderNo" disabled> </el-input>
|
|
|
|
+ <el-button type="primary" @click="ondrawer(6)">浏览</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="carrier from">
|
|
<div class="carrier from">
|
|
<el-form :inline="true" class="demo-form-inline" label-width="80px">
|
|
<el-form :inline="true" class="demo-form-inline" label-width="80px">
|
|
@@ -112,6 +118,18 @@
|
|
@radio-change="currentRadioChange4"
|
|
@radio-change="currentRadioChange4"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div v-show="a == 5">
|
|
|
|
+ <dilTable
|
|
|
|
+ v-bind.sync="loadPoint"
|
|
|
|
+ @radio-change="currentRadioChange5"
|
|
|
|
+ ></dilTable>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-show="a == 6">
|
|
|
|
+ <dilTable
|
|
|
|
+ v-bind.sync="purchaseOrder"
|
|
|
|
+ @radio-change="currentRadioChange6"
|
|
|
|
+ ></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>
|
|
@@ -160,6 +178,9 @@ export default {
|
|
unloadPointId: "",
|
|
unloadPointId: "",
|
|
//卸货点名称
|
|
//卸货点名称
|
|
unloadPointName: "",
|
|
unloadPointName: "",
|
|
|
|
+ //装货点id
|
|
|
|
+ loadPointId: null,
|
|
|
|
+ loadPointName: null,
|
|
a: 1,
|
|
a: 1,
|
|
direction: "rtl",
|
|
direction: "rtl",
|
|
input: "",
|
|
input: "",
|
|
@@ -183,6 +204,14 @@ export default {
|
|
requestUrl: "",
|
|
requestUrl: "",
|
|
selectionType: "radio"
|
|
selectionType: "radio"
|
|
},
|
|
},
|
|
|
|
+ loadPoint: {
|
|
|
|
+ requestUrl: "",
|
|
|
|
+ selectionType: "radio"
|
|
|
|
+ },
|
|
|
|
+ purchaseOrder: {
|
|
|
|
+ requestUrl: "",
|
|
|
|
+ selectionType: "radio"
|
|
|
|
+ },
|
|
purchaseOrgLable: null,
|
|
purchaseOrgLable: null,
|
|
purchaseOrgList: [
|
|
purchaseOrgList: [
|
|
{
|
|
{
|
|
@@ -203,9 +232,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
- this.unloadPoint.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=374";
|
|
|
|
- },
|
|
|
|
|
|
+ created() {},
|
|
methods: {
|
|
methods: {
|
|
onClick(index) {
|
|
onClick(index) {
|
|
this.selectionList.splice(index, 1);
|
|
this.selectionList.splice(index, 1);
|
|
@@ -236,8 +263,8 @@ export default {
|
|
supplierId: this.supplierId,
|
|
supplierId: this.supplierId,
|
|
purchaseOrgId: this.purchaseOrgId
|
|
purchaseOrgId: this.purchaseOrgId
|
|
};
|
|
};
|
|
- if (this.remark) {
|
|
|
|
- map.remark = this.remark;
|
|
|
|
|
|
+ if (this.stateConsignee) {
|
|
|
|
+ map.remark = this.stateConsignee;
|
|
}
|
|
}
|
|
console.log(map);
|
|
console.log(map);
|
|
if (this.materialId && this.supplierId && this.purchaseOrgId) {
|
|
if (this.materialId && this.supplierId && this.purchaseOrgId) {
|
|
@@ -250,11 +277,14 @@ export default {
|
|
type: "warning"
|
|
type: "warning"
|
|
});
|
|
});
|
|
this.purchaseOrderNo = null;
|
|
this.purchaseOrderNo = null;
|
|
|
|
+ this.purchaseOrderId = null;
|
|
|
|
+ this.remark = null;
|
|
|
|
+ this.stateConsignee = null;
|
|
this.form1 = [];
|
|
this.form1 = [];
|
|
} else {
|
|
} else {
|
|
console.log();
|
|
console.log();
|
|
console.log(res.data.data);
|
|
console.log(res.data.data);
|
|
- this.remark = res.data.data.remark;
|
|
|
|
|
|
+ this.stateConsignee = 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;
|
|
}
|
|
}
|
|
@@ -281,6 +311,20 @@ export default {
|
|
this.input +
|
|
this.input +
|
|
"&i=" +
|
|
"&i=" +
|
|
new Date();
|
|
new Date();
|
|
|
|
+ } else if (a == 5) {
|
|
|
|
+ this.loadPoint.requestUrl =
|
|
|
|
+ "/api/v1/uc/getUnloadingMesByLike?apiId=374&index=" +
|
|
|
|
+ this.input +
|
|
|
|
+ "&i=" +
|
|
|
|
+ new Date();
|
|
|
|
+ } else if (a == 6) {
|
|
|
|
+ this.purchaseOrder.requestUrl =
|
|
|
|
+ "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId=" +
|
|
|
|
+ this.supplierId +
|
|
|
|
+ "&con=" +
|
|
|
|
+ this.input +
|
|
|
|
+ "&i=" +
|
|
|
|
+ new Date();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
ondrawer(num) {
|
|
ondrawer(num) {
|
|
@@ -289,7 +333,21 @@ export default {
|
|
if (num == 2) {
|
|
if (num == 2) {
|
|
this.secend.requestUrl =
|
|
this.secend.requestUrl =
|
|
"/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
|
|
"/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
|
|
- this.materialId;
|
|
|
|
|
|
+ this.materialId +
|
|
|
|
+ "&i=" +
|
|
|
|
+ new Date();
|
|
|
|
+ } else if (num == 4) {
|
|
|
|
+ this.unloadPoint.requestUrl =
|
|
|
|
+ "/api/v1/uc/getUnloadingMesByLike?apiId=374" + "&i=" + new Date();
|
|
|
|
+ } else if (num == 5) {
|
|
|
|
+ this.loadPoint.requestUrl =
|
|
|
|
+ "/api/v1/uc/getUnloadingMesByLike?apiId=374" + "&i=" + new Date();
|
|
|
|
+ } else if (num == 6) {
|
|
|
|
+ this.purchaseOrder.requestUrl =
|
|
|
|
+ "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId=" +
|
|
|
|
+ this.supplierId +
|
|
|
|
+ "&i=" +
|
|
|
|
+ new Date();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//承运商弹出层
|
|
//承运商弹出层
|
|
@@ -327,20 +385,46 @@ export default {
|
|
onClickCancel() {
|
|
onClickCancel() {
|
|
this.$router.push("/purInwardRequirement");
|
|
this.$router.push("/purInwardRequirement");
|
|
},
|
|
},
|
|
|
|
+ //选择物资
|
|
currentRadioChange1(selection) {
|
|
currentRadioChange1(selection) {
|
|
this.materialName = selection.materialName;
|
|
this.materialName = selection.materialName;
|
|
this.materialId = selection.materialId;
|
|
this.materialId = selection.materialId;
|
|
this.getPurchaseOrderNo();
|
|
this.getPurchaseOrderNo();
|
|
},
|
|
},
|
|
|
|
+ //选择发货单位
|
|
currentRadioChange2(selection) {
|
|
currentRadioChange2(selection) {
|
|
this.supplierName = selection.supplierName;
|
|
this.supplierName = selection.supplierName;
|
|
this.supplierId = selection.supplierId;
|
|
this.supplierId = selection.supplierId;
|
|
this.getPurchaseOrderNo();
|
|
this.getPurchaseOrderNo();
|
|
},
|
|
},
|
|
|
|
+ //选择卸货点
|
|
currentRadioChange4(selection) {
|
|
currentRadioChange4(selection) {
|
|
this.unloadPointId = selection.warehouseId;
|
|
this.unloadPointId = selection.warehouseId;
|
|
this.unloadPointName = selection.warehouseName;
|
|
this.unloadPointName = selection.warehouseName;
|
|
},
|
|
},
|
|
|
|
+ //选择装货点
|
|
|
|
+ currentRadioChange5(selection) {
|
|
|
|
+ this.loadPointId = selection.warehouseId;
|
|
|
|
+ this.loadPointName = selection.warehouseName;
|
|
|
|
+ },
|
|
|
|
+ //选择采购订单
|
|
|
|
+ currentRadioChange6(selection) {
|
|
|
|
+ console.log(selection);
|
|
|
|
+ if (selection.orgId == 1) {
|
|
|
|
+ this.purchaseOrgLable = "一厂";
|
|
|
|
+ this.purchaseOrgId = 1;
|
|
|
|
+ } else {
|
|
|
|
+ this.purchaseOrgLable = "二厂";
|
|
|
|
+ this.purchaseOrgId = 2;
|
|
|
|
+ }
|
|
|
|
+ this.materialName = selection.materialName;
|
|
|
|
+ this.materialId = selection.materialId;
|
|
|
|
+ this.supplierId = selection.supplierId;
|
|
|
|
+ this.supplierName = selection.supplierName;
|
|
|
|
+ this.purchaseOrderNo = selection.purchaseOrderNo;
|
|
|
|
+ this.purchaseOrderId = selection.purchaseOrderId;
|
|
|
|
+ this.stateConsignee = selection.resultForeignShipName;
|
|
|
|
+ },
|
|
currentRadioChange3(selection) {
|
|
currentRadioChange3(selection) {
|
|
this.selectionList = [];
|
|
this.selectionList = [];
|
|
this.selectionList = selection;
|
|
this.selectionList = selection;
|
|
@@ -396,6 +480,7 @@ export default {
|
|
this.supplierName,
|
|
this.supplierName,
|
|
this.purchaseOrderNo,
|
|
this.purchaseOrderNo,
|
|
this.unloadPointName,
|
|
this.unloadPointName,
|
|
|
|
+ this.loadPointName,
|
|
this.stateCarrier
|
|
this.stateCarrier
|
|
);
|
|
);
|
|
this.disabled = true;
|
|
this.disabled = true;
|
|
@@ -439,6 +524,7 @@ export default {
|
|
materialId: this.materialId,
|
|
materialId: this.materialId,
|
|
purchaseOrderId: this.purchaseOrderId,
|
|
purchaseOrderId: this.purchaseOrderId,
|
|
unloadPointId: this.unloadPointId,
|
|
unloadPointId: this.unloadPointId,
|
|
|
|
+ loadPointId: this.loadPointId,
|
|
carrierId: this.carrierId,
|
|
carrierId: this.carrierId,
|
|
rangeId: this.rangeId,
|
|
rangeId: this.rangeId,
|
|
userId: getCookie("orgCode")
|
|
userId: getCookie("orgCode")
|