|
@@ -34,6 +34,7 @@
|
|
<script>
|
|
<script>
|
|
import PageTitle from "@/components/Page/Title";
|
|
import PageTitle from "@/components/Page/Title";
|
|
import { sjTime,isNumber } from "@/utils/sharedJsFile";
|
|
import { sjTime,isNumber } from "@/utils/sharedJsFile";
|
|
|
|
+import { getCookie } from "@/utils/util.js";
|
|
export default {
|
|
export default {
|
|
components: { PageTitle },
|
|
components: { PageTitle },
|
|
data() {
|
|
data() {
|
|
@@ -41,7 +42,7 @@ export default {
|
|
input:'',
|
|
input:'',
|
|
drawer:false,
|
|
drawer:false,
|
|
direction:"rtl",
|
|
direction:"rtl",
|
|
- batchId:0,
|
|
|
|
|
|
+ batchId:"",
|
|
form1: {},
|
|
form1: {},
|
|
options:{
|
|
options:{
|
|
requestUrl:"/api/v1/tms/getBatchListForAttorney?apiId=375",
|
|
requestUrl:"/api/v1/tms/getBatchListForAttorney?apiId=375",
|
|
@@ -71,11 +72,12 @@ export default {
|
|
done();
|
|
done();
|
|
},
|
|
},
|
|
makeSure() {
|
|
makeSure() {
|
|
- // purchaseId:this.form1.purchaseId,
|
|
|
|
- // noticeId:this.form1.noticeId,
|
|
|
|
- // cargoId:this.form1.cargoId,
|
|
|
|
- // cargoTransferResultId:this.form1.cargoTransferResultId,
|
|
|
|
- let AmsshipDeliveryNotice = {
|
|
|
|
|
|
+ // 判断批次号选择是否为空
|
|
|
|
+ if(this.batchId==""||this.batchId==undefined){
|
|
|
|
+ this.$message.warning("请选择批次号")
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ let map = {
|
|
carrierId:this.form1.carrierId,
|
|
carrierId:this.form1.carrierId,
|
|
requesterGroupId:this.form1.requesterGroupId,
|
|
requesterGroupId:this.form1.requesterGroupId,
|
|
noticeCommerceMethod:this.form1.noticeCommerceMethod,
|
|
noticeCommerceMethod:this.form1.noticeCommerceMethod,
|
|
@@ -84,7 +86,6 @@ export default {
|
|
noticePortConstructionFee:this.form1.noticePortConstructionFee,
|
|
noticePortConstructionFee:this.form1.noticePortConstructionFee,
|
|
noticeDeliveryTime:sjTime(this.form1.noticeDeliveryTime),
|
|
noticeDeliveryTime:sjTime(this.form1.noticeDeliveryTime),
|
|
noticePileFreeDays:this.form1.noticePileFreeDays,
|
|
noticePileFreeDays:this.form1.noticePileFreeDays,
|
|
- noticeDistructionStatus:this.form1.noticeDistructionStatus,
|
|
|
|
batchId:this.batchId,
|
|
batchId:this.batchId,
|
|
purchaseContractUnitPrice:this.form1.purchaseContractUnitPrice,
|
|
purchaseContractUnitPrice:this.form1.purchaseContractUnitPrice,
|
|
purchaseContractMoisture:this.form1.purchaseContractMoisture,
|
|
purchaseContractMoisture:this.form1.purchaseContractMoisture,
|
|
@@ -95,8 +96,10 @@ export default {
|
|
aluminaContent:this.form1.aluminaContent,
|
|
aluminaContent:this.form1.aluminaContent,
|
|
phosphorusContent:this.form1.phosphorusContent,
|
|
phosphorusContent:this.form1.phosphorusContent,
|
|
manganeseContent:this.form1.manganeseContent,
|
|
manganeseContent:this.form1.manganeseContent,
|
|
|
|
+ userId:getCookie("userId")
|
|
|
|
|
|
};
|
|
};
|
|
|
|
+ console.log(map)
|
|
if (
|
|
if (
|
|
// AmsshipDeliveryAttorney.attorneyId==null||
|
|
// AmsshipDeliveryAttorney.attorneyId==null||
|
|
// AmsshipDeliveryAttorney.downSwimPortId==null||
|
|
// AmsshipDeliveryAttorney.downSwimPortId==null||
|
|
@@ -104,13 +107,13 @@ export default {
|
|
// AmsshipDeliveryAttorney.attorneyContactTelephone==null||
|
|
// AmsshipDeliveryAttorney.attorneyContactTelephone==null||
|
|
// AmsshipDeliveryAttorney.attorneyTime==null||
|
|
// AmsshipDeliveryAttorney.attorneyTime==null||
|
|
// AmsshipDeliveryAttorney.attorneyPdffile==null
|
|
// AmsshipDeliveryAttorney.attorneyPdffile==null
|
|
- AmsshipDeliveryNotice.noticeHandoverMethod==null
|
|
|
|
|
|
+ map.noticeHandoverMethod==null
|
|
) this.$message.error("存在空值!");
|
|
) this.$message.error("存在空值!");
|
|
else
|
|
else
|
|
this.axios
|
|
this.axios
|
|
.post(
|
|
.post(
|
|
"/api/v1/tms/insertDeliveryNotice",
|
|
"/api/v1/tms/insertDeliveryNotice",
|
|
- AmsshipDeliveryNotice
|
|
|
|
|
|
+ map
|
|
)
|
|
)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|