|
@@ -3,14 +3,14 @@
|
|
|
<div class="shipTransport">
|
|
|
<page-title>返回</page-title>
|
|
|
|
|
|
- <!-- 货权转移送达单位 -->
|
|
|
+ <!-- 货权转移送达单位
|
|
|
<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
|
|
|
>
|
|
|
- </div>
|
|
|
+ </div>-->
|
|
|
|
|
|
<!--大品类 -->
|
|
|
<div class="mofrom">
|
|
@@ -102,7 +102,7 @@
|
|
|
label-width="80px"
|
|
|
style="margin-left: 450px; display: flex"
|
|
|
>
|
|
|
- <el-form-item label="上传货权转移图片">
|
|
|
+ <el-form-item label="上传货权转移附件">
|
|
|
<el-upload
|
|
|
class="upload-demo"
|
|
|
style="width: 270px"
|
|
@@ -119,7 +119,7 @@
|
|
|
<el-input
|
|
|
class="shippingCertificate"
|
|
|
style="width: 270px; display: flex"
|
|
|
- placeholder="请选择货权转移图片(必填项,可支持重新上传)"
|
|
|
+ placeholder="请选择货权转移附件(必填项,可支持重新上传)"
|
|
|
v-model="shippingCertificate"
|
|
|
disabled
|
|
|
>
|
|
@@ -136,7 +136,7 @@
|
|
|
"
|
|
|
@click="upCLick(1)"
|
|
|
>
|
|
|
- 点击上传图片</el-button
|
|
|
+ 点击上传附件</el-button
|
|
|
>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
@@ -151,7 +151,7 @@
|
|
|
|
|
|
<script>
|
|
|
import PageTitle from "@/components/Page/Title";
|
|
|
-import { sjTime } from "@/utils/sharedJsFile";
|
|
|
+import { sjTime, isNumber } from "@/utils/sharedJsFile";
|
|
|
import { getCookie } from "@/utils/util.js";
|
|
|
export default {
|
|
|
components: { PageTitle },
|
|
@@ -320,8 +320,8 @@ export default {
|
|
|
onClickConfirm() {
|
|
|
let map = {
|
|
|
noticeId: this.$route.params.noticeId,
|
|
|
- carrierId: this.form1.carrierId,
|
|
|
- requesterGroupId: this.form1.requesterGroupId,
|
|
|
+ // carrierId: this.form1.carrierId,
|
|
|
+ // requesterGroupId: this.form1.requesterGroupId,
|
|
|
noticeCommerceMethod: this.form1.noticeCommerceMethod,
|
|
|
noticeHandoverMethod: this.form1.noticeHandoverMethod,
|
|
|
portId: this.form1.portId,
|
|
@@ -354,26 +354,120 @@ export default {
|
|
|
cargoPictureUrl: this.cargoPictureUrl,
|
|
|
userId: getCookie("userId"),
|
|
|
};
|
|
|
+ //判断是否为电话号码
|
|
|
+ function isTelePhone() {
|
|
|
+ var value2 = map.resultTelephoneFax;
|
|
|
+ //验证是否为数字
|
|
|
+ var patrn = /^1[3-9]\d{9}$/;
|
|
|
+ // var patrn2 = /^(\d{3,4}-)?\d{7,8}$/;
|
|
|
+ if (patrn.exec(value2) == null || value2 == "") {
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var val = this.value;
|
|
|
+ if (
|
|
|
+ map.noticeCommerceMethod == null ||
|
|
|
+ map.noticeHandoverMethod == null ||
|
|
|
+ map.noticePortConstructionFee == null ||
|
|
|
+ map.noticeDeliveryTime == null ||
|
|
|
+ map.noticePileFreeDays == null ||
|
|
|
+ map.purchaseContractUnitPrice == null ||
|
|
|
+ map.purchaseContractMoisture == null ||
|
|
|
+ map.tfeContent == null ||
|
|
|
+ map.silicaContent == null ||
|
|
|
+ map.aluminaContent == null ||
|
|
|
+ map.phosphorusContent == null ||
|
|
|
+ map.manganeseContent == null ||
|
|
|
+ map.resultContactPerson == null ||
|
|
|
+ map.resultTelephoneFax == null ||
|
|
|
+ map.resultNumberOfLoans == null ||
|
|
|
+ //map.carrierId == null ||
|
|
|
+ //map.groupId == null ||
|
|
|
+ map.inFactoryShipName == null ||
|
|
|
+ map.isNeedPortDisCharge == null ||
|
|
|
+ map.isNeedPortFee == null
|
|
|
+ // map.foreignShipName==null||
|
|
|
+ // map.materialId==null
|
|
|
+ ) {
|
|
|
+ this.$message.error("存在空值!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!isTelePhone(val)) {
|
|
|
+ this.$message.warning("电话号码或传真格式不正确");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ typeof map.noticePortConstructionFee != "undefined" &&
|
|
|
+ !isNumber(map.noticePortConstructionFee)
|
|
|
+ ) {
|
|
|
+ this.$message.error("港建费金额得为数字");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ typeof map.purchaseContractMoisture != "undefined" &&
|
|
|
+ !isNumber(map.purchaseContractMoisture)
|
|
|
+ ) {
|
|
|
+ this.$message.error("合同水分得为数字");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ typeof map.noticePortConstructionFee != "undefined" &&
|
|
|
+ !isNumber(map.noticePortConstructionFee)
|
|
|
+ ) {
|
|
|
+ this.$message.error("港建费金额得为数字");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ typeof map.noticePileFreeDays != "undefined" &&
|
|
|
+ !isNumber(map.noticePileFreeDays)
|
|
|
+ ) {
|
|
|
+ this.$message.error("免堆天数得为数字");
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
- // function isNumber() {
|
|
|
- // var value = AmsshipCargoTransferResult.resultTelephoneFax;
|
|
|
- // //验证是否为数字
|
|
|
- // var patrn = /^(-)?\d+(\.\d+)?$/;
|
|
|
- // if (patrn.exec(value) == null || value == "") {
|
|
|
- // return false;
|
|
|
- // } else {
|
|
|
- // return true;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // var val = this.value;
|
|
|
- // if (
|
|
|
- // AmsshipCargoTransferResult.resultTelephoneFax==null||
|
|
|
- // AmsshipCargoTransferResult.resultContactPerson==null
|
|
|
- // ) this.$message.error("存在空值!");
|
|
|
- // else
|
|
|
- // if (!isNumber(val)) this.$message.error("联系电话必须是数字!");
|
|
|
- // else
|
|
|
-
|
|
|
+ if (
|
|
|
+ typeof map.purchaseContractUnitPrice != "undefined" &&
|
|
|
+ !isNumber(map.purchaseContractUnitPrice)
|
|
|
+ ) {
|
|
|
+ this.$message.error("单价得为数字");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (typeof map.tfeContent != "undefined" && !isNumber(map.tfeContent)) {
|
|
|
+ this.$message.error("tfe含量得为数字");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ typeof map.silicaContent != "undefined" &&
|
|
|
+ !isNumber(map.silicaContent)
|
|
|
+ ) {
|
|
|
+ this.$message.error("二氧化硅含量得为数字");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ typeof map.aluminaContent != "undefined" &&
|
|
|
+ !isNumber(map.aluminaContent)
|
|
|
+ ) {
|
|
|
+ this.$message.error("氧化铝含量得为数字");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ typeof map.phosphorusContent != "undefined" &&
|
|
|
+ !isNumber(map.phosphorusContent)
|
|
|
+ ) {
|
|
|
+ this.$message.error("含磷量得为数字");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ typeof map.resultNumberOfLoans != "undefined" &&
|
|
|
+ !isNumber(map.resultNumberOfLoans)
|
|
|
+ ) {
|
|
|
+ this.$message.error("放货数量得为数字");
|
|
|
+ return;
|
|
|
+ } else{
|
|
|
+
|
|
|
+ }
|
|
|
this.axios.post("/api/v1/tms/editDeliveryNotice", map).then((res) => {
|
|
|
if (res.data.code == "200") {
|
|
|
this.$message({
|