|
@@ -2,34 +2,56 @@
|
|
|
<!-- 添加发货通知 -->
|
|
|
<div class="shipTransport">
|
|
|
<page-title>返回</page-title>
|
|
|
- <div class="mofrom">
|
|
|
+ <!-- <div class="mofrom">
|
|
|
<span class="motext">物资</span>
|
|
|
<el-input class="moinput" v-model="materialName" disabled> </el-input>
|
|
|
- <el-button class="mobutton" type="primary" @click="ondrawer(1)">浏览</el-button>
|
|
|
- </div>
|
|
|
+ <el-button class="mobutton" type="primary" @click="ondrawer(1)"
|
|
|
+ >浏览</el-button
|
|
|
+ >
|
|
|
+ </div> -->
|
|
|
<!-- 货权转移送达单位 -->
|
|
|
<div class="mofrom">
|
|
|
<span class="motext">货权转移送达单位</span>
|
|
|
<el-input class="moinput" v-model="cargo" disabled> </el-input>
|
|
|
- <el-button class="mobutton" type="primary" @click="ondrawer(2)">浏览</el-button>
|
|
|
+ <el-button class="mobutton" type="primary" @click="ondrawer(2)"
|
|
|
+ >浏览</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
|
|
|
<!--大品类 -->
|
|
|
<div class="mofrom">
|
|
|
<span class="motext">大品类</span>
|
|
|
<el-input class="moinput" v-model="materialType" disabled> </el-input>
|
|
|
- <el-button class="mobutton" type="primary" @click="ondrawer(4)">浏览</el-button>
|
|
|
+ <el-button class="mobutton" type="primary" @click="ondrawer(4)"
|
|
|
+ >浏览</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
|
|
|
<!-- 货权转移送达单位 -->
|
|
|
<div class="mofrom">
|
|
|
<span class="motext">收货人</span>
|
|
|
<el-input class="moinput" v-model="receiver" disabled> </el-input>
|
|
|
- <el-button class="mobutton" type="primary" @click="ondrawer(3)">浏览</el-button>
|
|
|
+ <el-button class="mobutton" type="primary" @click="ondrawer(3)"
|
|
|
+ >浏览</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 批次 -->
|
|
|
+ <div class="mofrom">
|
|
|
+ <span class="motext">批次</span>
|
|
|
+ <el-input class="moinput" v-model="batchIds" disabled> </el-input>
|
|
|
+ <el-button class="mobutton" type="primary" @click="ondrawer(5)"
|
|
|
+ >浏览</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="form">
|
|
|
<div class="form_box">
|
|
|
- <dil-form :formId="112" v-model="form1" ref="from1" @change="onchange"></dil-form>
|
|
|
+ <dil-form
|
|
|
+ :formId="112"
|
|
|
+ v-model="form1"
|
|
|
+ ref="from1"
|
|
|
+ @change="onchange"
|
|
|
+ ></dil-form>
|
|
|
</div>
|
|
|
<!-- <div class="liulan">
|
|
|
<el-button type="primary" class="btn" @click="ondrawer(4)">浏览</el-button>
|
|
@@ -37,40 +59,103 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 模态框 -->
|
|
|
- <el-drawer :visible.sync="drawer" :direction="direction" :before-close="handleClose" size="50%">
|
|
|
- <el-input placeholder="请输入内容" v-model="input" style="margin-top: 10px; margin-left: 20px; width: 250px" clearable>
|
|
|
+ <el-drawer
|
|
|
+ :visible.sync="drawer"
|
|
|
+ :direction="direction"
|
|
|
+ :before-close="handleClose"
|
|
|
+ size="50%"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ placeholder="请输入内容"
|
|
|
+ v-model="input"
|
|
|
+ style="margin-top: 10px; margin-left: 20px; width: 250px"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
</el-input>
|
|
|
- <el-button type="primary" class="btn" @click="onclick(a)" style="margin-bottom: 15px">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ class="btn"
|
|
|
+ @click="onclick(a)"
|
|
|
+ style="margin-bottom: 15px"
|
|
|
+ >
|
|
|
<i class="el-icon-search"></i>查询
|
|
|
</el-button>
|
|
|
<!-- <div v-show="a == 4">
|
|
|
<dilTable v-bind.sync="options" @radio-change="currentRadioChange6"></dilTable>
|
|
|
</div> -->
|
|
|
- <div v-show="a == 1">
|
|
|
- <dilTable v-bind.sync="second" @radio-change="currentRadioChange1"></dilTable>
|
|
|
- </div>
|
|
|
+ <!-- <div v-show="a == 1">
|
|
|
+ <dilTable
|
|
|
+ v-bind.sync="second"
|
|
|
+ @radio-change="currentRadioChange1"
|
|
|
+ ></dilTable>
|
|
|
+ </div> -->
|
|
|
<div v-show="a == 2">
|
|
|
- <dilTable v-bind.sync="second1" @radio-change="currentRadioChange2"></dilTable>
|
|
|
+ <dilTable
|
|
|
+ v-bind.sync="second1"
|
|
|
+ @radio-change="currentRadioChange2"
|
|
|
+ ></dilTable>
|
|
|
</div>
|
|
|
<div v-show="a == 3">
|
|
|
- <dilTable v-bind.sync="second2" @radio-change="currentRadioChange3"></dilTable>
|
|
|
+ <dilTable
|
|
|
+ v-bind.sync="second2"
|
|
|
+ @radio-change="currentRadioChange3"
|
|
|
+ ></dilTable>
|
|
|
</div>
|
|
|
<div v-show="a == 4">
|
|
|
- <dilTable v-bind.sync="second3" @radio-change="currentRadioChange4"></dilTable>
|
|
|
+ <dilTable
|
|
|
+ v-bind.sync="second3"
|
|
|
+ @radio-change="currentRadioChange4"
|
|
|
+ ></dilTable>
|
|
|
+ </div>
|
|
|
+ <div v-show="a == 5">
|
|
|
+ <dilTable
|
|
|
+ v-bind.sync="second5"
|
|
|
+ @radio-change="currentRadioChange5"
|
|
|
+ ></dilTable>
|
|
|
</div>
|
|
|
</el-drawer>
|
|
|
- <el-form :inline="true" class="demo-form-inline" label-width="80px" style="margin-left:450px;display:flex;">
|
|
|
+ <el-form
|
|
|
+ :inline="true"
|
|
|
+ class="demo-form-inline"
|
|
|
+ label-width="80px"
|
|
|
+ style="margin-left: 450px; display: flex"
|
|
|
+ >
|
|
|
<el-form-item label="上传货权转移附件">
|
|
|
- <el-upload class="upload-demo" style="width:270px;" ref="upload1" action="/api/v1/rms/uploadCarrier1"
|
|
|
- :before-upload="beforeUpload" :multiple="false" list-type="picture" :show-file-list="false"
|
|
|
- :on-success="handleAvatarSuccess" :on-error="onError(1)">
|
|
|
+ <el-upload
|
|
|
+ class="upload-demo"
|
|
|
+ style="width: 270px"
|
|
|
+ ref="upload1"
|
|
|
+ action="/api/v1/rms/uploadCarrier1"
|
|
|
+ :before-upload="beforeUpload"
|
|
|
+ :multiple="false"
|
|
|
+ list-type="picture"
|
|
|
+ :show-file-list="false"
|
|
|
+ :on-success="handleAvatarSuccess"
|
|
|
+ :on-error="onError(1)"
|
|
|
+ >
|
|
|
<span class="span"></span>
|
|
|
- <el-input class="shippingCertificate" style="width:270px;display:flex;" placeholder="请选择货权附件(必填项)"
|
|
|
- v-model="shippingCertificate" disabled>
|
|
|
+ <el-input
|
|
|
+ class="shippingCertificate"
|
|
|
+ style="width: 270px; display: flex"
|
|
|
+ placeholder="请选择货权附件(必填项)"
|
|
|
+ v-model="shippingCertificate"
|
|
|
+ disabled
|
|
|
+ >
|
|
|
</el-input>
|
|
|
- <el-button size="small" type="primary"
|
|
|
- style="width:115px;height:35px;margin-left: 275px;margin-top:-35px;display:flex;" @click="upCLick(1)">
|
|
|
- 点击上传附件</el-button>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ style="
|
|
|
+ width: 115px;
|
|
|
+ height: 35px;
|
|
|
+ margin-left: 275px;
|
|
|
+ margin-top: -35px;
|
|
|
+ display: flex;
|
|
|
+ "
|
|
|
+ @click="upCLick(1)"
|
|
|
+ >
|
|
|
+ 点击上传附件</el-button
|
|
|
+ >
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -93,7 +178,7 @@ export default {
|
|
|
a: 1,
|
|
|
cargoPictureUrl: "",
|
|
|
shippingCertificate: "",
|
|
|
- materialName: "",
|
|
|
+
|
|
|
materialType: "",
|
|
|
cargo: "",
|
|
|
receiver: "",
|
|
@@ -102,11 +187,6 @@ export default {
|
|
|
direction: "rtl",
|
|
|
batchId: null,
|
|
|
form1: {},
|
|
|
- second: {
|
|
|
- requestUrl: "/api/v1/uc/queryMaterialByLike?apiId=244",
|
|
|
- selectionType: "radio",
|
|
|
- mapList1: [],
|
|
|
- },
|
|
|
second1: {
|
|
|
requestUrl: "/api/v1/tms/selectShippeByName?apiId=215",
|
|
|
selectionType: "radio",
|
|
@@ -122,6 +202,11 @@ export default {
|
|
|
selectionType: "radio",
|
|
|
mapList4: [],
|
|
|
},
|
|
|
+ second5: {
|
|
|
+ requestUrl: "/api/v1/tms/getBatchIdByForeign?apiId=489",
|
|
|
+ selectionType: "radio",
|
|
|
+ mapList5: [],
|
|
|
+ },
|
|
|
|
|
|
value: undefined,
|
|
|
value2: undefined,
|
|
@@ -130,7 +215,7 @@ export default {
|
|
|
value6: undefined,
|
|
|
value7: undefined,
|
|
|
value8: undefined,
|
|
|
-
|
|
|
+ batchIds:null,
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -185,10 +270,10 @@ export default {
|
|
|
// 清空当前输入框中的数据
|
|
|
this.input = "";
|
|
|
},
|
|
|
- currentRadioChange1(selection) {
|
|
|
- (this.second.mapList1 = selection),
|
|
|
- (this.materialName = selection.materialName);
|
|
|
- },
|
|
|
+ // currentRadioChange1(selection) {
|
|
|
+ // (this.second.mapList1 = selection),
|
|
|
+ // (this.materialName = selection.materialName);
|
|
|
+ // },
|
|
|
currentRadioChange2(selection) {
|
|
|
(this.second1.mapList2 = selection), (this.cargo = selection.cargoName);
|
|
|
},
|
|
@@ -196,14 +281,16 @@ export default {
|
|
|
(this.second2.mapList3 = selection), (this.receiver = selection.pierName);
|
|
|
},
|
|
|
currentRadioChange4(selection) {
|
|
|
- (this.second3.mapList4 = selection), (this.materialType = selection.materialTypeName);
|
|
|
+ (this.second3.mapList4 = selection),
|
|
|
+ (this.materialType = selection.materialTypeName);
|
|
|
},
|
|
|
- onchange(val) { },
|
|
|
+ currentRadioChange5(selection) {
|
|
|
+ (this.second5.mapList5 = selection),
|
|
|
+ (this.batchIds = selection.foreignShipName+""+selection.materialName);
|
|
|
+ },
|
|
|
+ onchange(val) {},
|
|
|
onclick(a) {
|
|
|
- if (a == 1) {
|
|
|
- this.second.requestUrl =
|
|
|
- "/api/v1/uc/queryMaterialByLike?apiId=244&index=" + this.input;
|
|
|
- } else if (a == 2) {
|
|
|
+ if (a == 2) {
|
|
|
this.second1.requestUrl =
|
|
|
"/api/v1/tms/selectShippeByName?apiId=215&con=" + this.input;
|
|
|
} else if (a == 3) {
|
|
@@ -213,38 +300,35 @@ export default {
|
|
|
// console.log("aaaa");
|
|
|
this.second3.requestUrl =
|
|
|
"/api/v1/rms/getMaterialTypeList?apiId=376&con=" + this.input;
|
|
|
+ }else if(a==5){
|
|
|
+ this.second5.requestUrl =
|
|
|
+ "/api/v1/tms/getBatchIdByForeign?apiId=489&con=" + this.input;
|
|
|
}
|
|
|
},
|
|
|
- // currentRadioChange6(selection) {
|
|
|
- // this.maplist = selection;
|
|
|
- // if (JSON.stringify(this.maplist).length > 2) {
|
|
|
- // this.$set(
|
|
|
- // this.form1,
|
|
|
- // "batchId",
|
|
|
- // selection.resultForeignShipName + selection.materialName
|
|
|
- // );
|
|
|
- // this.batchId = selection.batchId;
|
|
|
- // }
|
|
|
- // },
|
|
|
+
|
|
|
handleClose(done) {
|
|
|
done();
|
|
|
},
|
|
|
makeSure() {
|
|
|
- if (this.second.mapList1.length == 0) {
|
|
|
- this.$message.warning("请选择物资")
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (this.second.mapList1.length == 0) {
|
|
|
+ // this.$message.warning("请选择物资");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
if (this.second1.mapList2.length == 0) {
|
|
|
- this.$message.warning("请选择送达单位")
|
|
|
- return
|
|
|
+ this.$message.warning("请选择送达单位");
|
|
|
+ return;
|
|
|
}
|
|
|
if (this.second2.mapList3.length == 0) {
|
|
|
- this.$message.warning("请选择收货人")
|
|
|
- return
|
|
|
+ this.$message.warning("请选择收货人");
|
|
|
+ return;
|
|
|
}
|
|
|
if (this.second3.mapList4.length == 0) {
|
|
|
- this.$message.warning("请选择物资品类")
|
|
|
- return
|
|
|
+ this.$message.warning("请选择物资品类");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.second5.mapList5.length == 0) {
|
|
|
+ this.$message.warning("请选择批次");
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
//判断是否为电话号码
|
|
@@ -270,7 +354,7 @@ export default {
|
|
|
noticePortConstructionFee: this.form1.noticePortConstructionFee,
|
|
|
noticeDeliveryTime: sjTime(this.form1.noticeDeliveryTime),
|
|
|
noticePileFreeDays: this.form1.noticePileFreeDays,
|
|
|
- // batchId: this.batchId,
|
|
|
+ batchIds:this.second5.mapList5.batchId,
|
|
|
purchaseContractUnitPrice: this.form1.purchaseContractUnitPrice,
|
|
|
purchaseContractMoisture: this.form1.purchaseContractMoisture,
|
|
|
//微元素含量
|
|
@@ -287,15 +371,15 @@ export default {
|
|
|
cargoId: this.second1.mapList2.cargoId,
|
|
|
groupId: this.second2.mapList3.id,
|
|
|
inFactoryShipName: this.form1.inFactoryShipName,
|
|
|
- foreignShipName: this.form1.foreignShipName,
|
|
|
- materialId: this.second.mapList1.materialId,
|
|
|
+ foreignShipName: this.second5.mapList5.foreignShipName,
|
|
|
+ materialId: this.second5.mapList5.materialId,
|
|
|
materialTypeId: this.second3.mapList4.materialTypeId,
|
|
|
isNeedPortDisCharge: this.form1.isNeedPortDisCharge,
|
|
|
isNeedPortFee: this.form1.isNeedPortFee,
|
|
|
cargoPictureUrl: this.cargoPictureUrl,
|
|
|
- userId: getCookie("userId")
|
|
|
+ userId: getCookie("userId"),
|
|
|
};
|
|
|
- console.log("mapaaa" +map);
|
|
|
+ console.log("mapaaa" + map);
|
|
|
//判断放货数量是否为数字
|
|
|
if (
|
|
|
map.noticeCommerceMethod == null ||
|
|
@@ -336,17 +420,14 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if (
|
|
|
typeof map.purchaseContractUnitPrice != "undefined" &&
|
|
|
!isNumber(map.purchaseContractUnitPrice)
|
|
|
) {
|
|
|
this.$message.error("单价得为数字");
|
|
|
return;
|
|
|
- } if (
|
|
|
- typeof map.tfeContent != "undefined" &&
|
|
|
- !isNumber(map.tfeContent)
|
|
|
- ) {
|
|
|
+ }
|
|
|
+ if (typeof map.tfeContent != "undefined" && !isNumber(map.tfeContent)) {
|
|
|
this.$message.error("tfe含量得为数字");
|
|
|
return;
|
|
|
}
|
|
@@ -377,18 +458,17 @@ export default {
|
|
|
) {
|
|
|
this.$message.error("放货数量得为数字");
|
|
|
return;
|
|
|
- }
|
|
|
- else
|
|
|
- this.axios.post("/api/v1/tms/insertDeliveryNotice", map).then(res => {
|
|
|
+ } else
|
|
|
+ this.axios.post("/api/v1/tms/insertDeliveryNotice", map).then((res) => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.$message({
|
|
|
type: "success",
|
|
|
- message: "新增成功"
|
|
|
+ message: "新增成功",
|
|
|
});
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: "warning",
|
|
|
- message: res.data.data
|
|
|
+ message: res.data.data,
|
|
|
});
|
|
|
}
|
|
|
this.$router.go(-1);
|
|
@@ -397,8 +477,8 @@ export default {
|
|
|
// 取消
|
|
|
cancel() {
|
|
|
this.$router.go(-1);
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss">
|
|
@@ -465,7 +545,6 @@ export default {
|
|
|
margin-top: 30px;
|
|
|
|
|
|
.el-button {
|
|
|
-
|
|
|
margin: auto;
|
|
|
}
|
|
|
|