|
@@ -34,27 +34,26 @@
|
|
<div class="mofrom">
|
|
<div class="mofrom">
|
|
<span class="motext">批次</span>
|
|
<span class="motext">批次</span>
|
|
<el-input class="moinput" v-model="batchId" disabled> </el-input>
|
|
<el-input class="moinput" v-model="batchId" disabled> </el-input>
|
|
- <el-button class="mobutton" type="primary" @click="ondrawer(5)"
|
|
|
|
- disabled>浏览</el-button
|
|
|
|
|
|
+ <el-button class="mobutton" type="primary" @click="ondrawer(5)" disabled
|
|
|
|
+ >浏览</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form">
|
|
<div class="form">
|
|
<div class="form_box">
|
|
<div class="form_box">
|
|
- <el-form>
|
|
|
|
|
|
+ <el-form>
|
|
<div class="preview-group">
|
|
<div class="preview-group">
|
|
- <el-form-item label="发货港口:">
|
|
|
|
- <el-select
|
|
|
|
- v-model="portId"
|
|
|
|
- filterable >
|
|
|
|
- <el-option
|
|
|
|
- v-for="port in ports"
|
|
|
|
- :key="port.portId"
|
|
|
|
- :label="port.portName"
|
|
|
|
- :value="port.portId">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item label="发货港口:">
|
|
|
|
+ <el-select v-model="portId" filterable>
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="port in ports"
|
|
|
|
+ :key="port.portId"
|
|
|
|
+ :label="port.portName"
|
|
|
|
+ :value="port.portId"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
</div>
|
|
</div>
|
|
</el-form>
|
|
</el-form>
|
|
<dil-form :formId="112" v-model="form1"></dil-form>
|
|
<dil-form :formId="112" v-model="form1"></dil-form>
|
|
@@ -175,17 +174,17 @@ export default {
|
|
return {
|
|
return {
|
|
form1: {},
|
|
form1: {},
|
|
a: 1,
|
|
a: 1,
|
|
- portId:"",
|
|
|
|
- ports:[],
|
|
|
|
|
|
+ portId: "",
|
|
|
|
+ ports: [],
|
|
cargoPictureUrl: "",
|
|
cargoPictureUrl: "",
|
|
shippingCertificate: "",
|
|
shippingCertificate: "",
|
|
materialName: "",
|
|
materialName: "",
|
|
materialType: "",
|
|
materialType: "",
|
|
- foreignShipName:"",
|
|
|
|
|
|
+ foreignShipName: "",
|
|
materialId: "",
|
|
materialId: "",
|
|
batchIds: "",
|
|
batchIds: "",
|
|
cargo: "",
|
|
cargo: "",
|
|
- disabled:null,
|
|
|
|
|
|
+ disabled: null,
|
|
receiver: "",
|
|
receiver: "",
|
|
input: "",
|
|
input: "",
|
|
drawer: false,
|
|
drawer: false,
|
|
@@ -223,18 +222,18 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//查询所有港口
|
|
//查询所有港口
|
|
- getPorts(){
|
|
|
|
|
|
+ getPorts() {
|
|
this.axios.post("/api/v1/rms/getPortName?index=").then((res) => {
|
|
this.axios.post("/api/v1/rms/getPortName?index=").then((res) => {
|
|
- if (res.data.code == 200) {
|
|
|
|
- //赋值
|
|
|
|
- this.ports=res.data.data;
|
|
|
|
- } else {
|
|
|
|
- this.$message({
|
|
|
|
- type: "warning",
|
|
|
|
- message: res.data.data,
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ //赋值
|
|
|
|
+ this.ports = res.data.data;
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: "warning",
|
|
|
|
+ message: res.data.data,
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
},
|
|
},
|
|
information() {
|
|
information() {
|
|
this.axios
|
|
this.axios
|
|
@@ -243,11 +242,11 @@ export default {
|
|
res.data.data.forEach((e) => {
|
|
res.data.data.forEach((e) => {
|
|
console.log("aaa", e);
|
|
console.log("aaa", e);
|
|
this.form1 = e;
|
|
this.form1 = e;
|
|
- this.portId=e.portId;
|
|
|
|
- this.batchId = e.foreignShipName + e.materialName;
|
|
|
|
- this.batchIds=e.batchId;
|
|
|
|
- this.foreignShipName=e.foreignShipName;
|
|
|
|
- this.materialId=e.materialId;
|
|
|
|
|
|
+ this.portId = e.portId;
|
|
|
|
+ this.batchId = e.foreignShipName + e.materialName;
|
|
|
|
+ this.batchIds = e.batchId;
|
|
|
|
+ this.foreignShipName = e.foreignShipName;
|
|
|
|
+ this.materialId = e.materialId;
|
|
// this.materialId = e.materialId;
|
|
// this.materialId = e.materialId;
|
|
this.cargo = e.cargoName;
|
|
this.cargo = e.cargoName;
|
|
this.cargoId = e.cargoId;
|
|
this.cargoId = e.cargoId;
|
|
@@ -327,14 +326,12 @@ export default {
|
|
(this.second5.mapList5 = selection),
|
|
(this.second5.mapList5 = selection),
|
|
(this.batchIds =
|
|
(this.batchIds =
|
|
selection.foreignShipName + "" + selection.materialName);
|
|
selection.foreignShipName + "" + selection.materialName);
|
|
- (this.batchIds =
|
|
|
|
- selection.batchId);
|
|
|
|
- (this.foreignShipName =
|
|
|
|
- selection.foreignShipName);
|
|
|
|
|
|
+ this.batchIds = selection.batchId;
|
|
|
|
+ this.foreignShipName = selection.foreignShipName;
|
|
},
|
|
},
|
|
onchange(val) {},
|
|
onchange(val) {},
|
|
onclick(a) {
|
|
onclick(a) {
|
|
- if (a == 2) {
|
|
|
|
|
|
+ if (a == 2) {
|
|
this.second1.requestUrl =
|
|
this.second1.requestUrl =
|
|
"/api/v1/tms/selectShippeByName?apiId=215&con=" + this.input;
|
|
"/api/v1/tms/selectShippeByName?apiId=215&con=" + this.input;
|
|
} else if (a == 3) {
|
|
} else if (a == 3) {
|
|
@@ -344,7 +341,7 @@ export default {
|
|
// console.log("aaaa");
|
|
// console.log("aaaa");
|
|
this.second3.requestUrl =
|
|
this.second3.requestUrl =
|
|
"/api/v1/rms/getMaterialTypeList?apiId=376&con=" + this.input;
|
|
"/api/v1/rms/getMaterialTypeList?apiId=376&con=" + this.input;
|
|
- }else if(a==5){
|
|
|
|
|
|
+ } else if (a == 5) {
|
|
this.second5.requestUrl =
|
|
this.second5.requestUrl =
|
|
"/api/v1/tms/getBatchIdByForeign?apiId=489&con=" + this.input;
|
|
"/api/v1/tms/getBatchIdByForeign?apiId=489&con=" + this.input;
|
|
}
|
|
}
|
|
@@ -379,8 +376,8 @@ export default {
|
|
cargoId: this.second1.mapList2.cargoId,
|
|
cargoId: this.second1.mapList2.cargoId,
|
|
groupId: this.second2.mapList3.id,
|
|
groupId: this.second2.mapList3.id,
|
|
inFactoryShipName: this.form1.inFactoryShipName,
|
|
inFactoryShipName: this.form1.inFactoryShipName,
|
|
- foreignShipName: this.foreignShipName,
|
|
|
|
- batchIds:this.batchIds,
|
|
|
|
|
|
+ foreignShipName: this.foreignShipName,
|
|
|
|
+ batchIds: this.batchIds,
|
|
materialId: this.materialId,
|
|
materialId: this.materialId,
|
|
materialTypeId: this.second3.mapList4.materialTypeId,
|
|
materialTypeId: this.second3.mapList4.materialTypeId,
|
|
isNeedPortDisCharge: this.form1.isNeedPortDisCharge,
|
|
isNeedPortDisCharge: this.form1.isNeedPortDisCharge,
|
|
@@ -388,6 +385,19 @@ export default {
|
|
cargoPictureUrl: this.cargoPictureUrl,
|
|
cargoPictureUrl: this.cargoPictureUrl,
|
|
userId: getCookie("userId"),
|
|
userId: getCookie("userId"),
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ if (this.second2.mapList3.length == 0) {
|
|
|
|
+ this.$message.warning("请选择收货人");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (this.second3.mapList4.length == 0) {
|
|
|
|
+ this.$message.warning("请选择物资品类");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (this.second5.mapList5.length == 0) {
|
|
|
|
+ this.$message.warning("请选择批次");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
//判断是否为电话号码
|
|
//判断是否为电话号码
|
|
function isTelePhone() {
|
|
function isTelePhone() {
|
|
var value2 = map.resultTelephoneFax;
|
|
var value2 = map.resultTelephoneFax;
|
|
@@ -401,7 +411,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var val = this.value;
|
|
var val = this.value;
|
|
- if (
|
|
|
|
|
|
+ if (
|
|
map.noticeCommerceMethod == null ||
|
|
map.noticeCommerceMethod == null ||
|
|
map.noticeHandoverMethod == null ||
|
|
map.noticeHandoverMethod == null ||
|
|
map.noticePortConstructionFee == null ||
|
|
map.noticePortConstructionFee == null ||
|
|
@@ -499,8 +509,7 @@ export default {
|
|
) {
|
|
) {
|
|
this.$message.error("放货数量得为数字");
|
|
this.$message.error("放货数量得为数字");
|
|
return;
|
|
return;
|
|
- } else{
|
|
|
|
-
|
|
|
|
|
|
+ } else {
|
|
}
|
|
}
|
|
this.axios.post("/api/v1/tms/editDeliveryNotice", map).then((res) => {
|
|
this.axios.post("/api/v1/tms/editDeliveryNotice", map).then((res) => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|