|
|
@@ -341,12 +341,14 @@
|
|
|
<el-tab-pane label="MB/L信息" name="third">
|
|
|
<mbinformation :assemblyForm="form" :detailData="detailData" :disabled="showLock"> </mbinformation>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane
|
|
|
- label="报表管理"
|
|
|
- name="fourth"
|
|
|
- v-if="roleName.indexOf('admin') != -1 ? true : roleName.indexOf('报表管理') != -1 ? true : false"
|
|
|
- >
|
|
|
- <reports :id="form.id" :assemblyForm="form" :disabled="detailData.seeDisabled || showLock" businessValue="HYCK"></reports>
|
|
|
+ <el-tab-pane label="报表管理" name="fourth" v-if="roleName.indexOf('admin') >= 0 || roleName.indexOf('报表管理') >= 0">
|
|
|
+ <reports
|
|
|
+ ref="reports"
|
|
|
+ :id="form.id"
|
|
|
+ :assemblyForm="form"
|
|
|
+ :disabled="detailData.seeDisabled || showLock"
|
|
|
+ businessValue="HYCK"
|
|
|
+ ></reports>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="EDI 及其他" name="sixth">
|
|
|
<edicode :assemblyForm="form" :detailData="detailData" :disabled="detailData.seeDisabled || showLock"> </edicode>
|
|
|
@@ -482,14 +484,7 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog
|
|
|
- title="EDI 发送确认"
|
|
|
- append-to-body
|
|
|
- v-dialogDrag
|
|
|
- :visible.sync="ediFilesConfirm"
|
|
|
- class="avue-dialog avue-dialog--top"
|
|
|
- width="30%"
|
|
|
- >
|
|
|
+ <el-dialog title="EDI 发送确认" append-to-body v-dialogDrag :visible.sync="ediFilesConfirm" class="avue-dialog avue-dialog--top" width="30%">
|
|
|
<span>请确认是否继续发送 EDI!</span>
|
|
|
<br />
|
|
|
<br />
|
|
|
@@ -591,7 +586,7 @@ import {
|
|
|
createAndAdd,
|
|
|
beforeSendingEdi,
|
|
|
} from "@/api/iosBasicData/bills";
|
|
|
-import { dateFormat, getCurrentDate } from "@/util/date";
|
|
|
+import { customToUpper, dateFormat, getCurrentDate } from "@/util/date";
|
|
|
import checkSchedule from "@/components/checkH/checkSchedule.vue";
|
|
|
import { auditProcessListHD } from "@/api/check/check";
|
|
|
import { getBvesselsList } from "@/api/iosBasicData/bvessels";
|
|
|
@@ -1198,13 +1193,10 @@ export default {
|
|
|
this.getLazylistfun(); // 获取审核数据
|
|
|
this.mpaymodeWorkDictsfun(); // 获取 付款方式字典
|
|
|
this.srcTypeWorkDictsfun();
|
|
|
- // 获取EDI 数据
|
|
|
- this.editypesListfun();
|
|
|
+ // 获取EDI 数据,提取详情后列出
|
|
|
+ // this.editypesListfun();
|
|
|
// 获取所属团队数据
|
|
|
this.postSelectByUserfun();
|
|
|
-
|
|
|
- // console.log("sysitemData", localStorage.getItem('sysitemData'))
|
|
|
- // console.log("created", "form", this.form)
|
|
|
},
|
|
|
methods: {
|
|
|
async lastPage() {
|
|
|
@@ -1321,7 +1313,12 @@ export default {
|
|
|
},
|
|
|
// 主要信息是否更改
|
|
|
mainDataChanged() {
|
|
|
- console.log("mainDataChanged", contrastObj(this.form.preContainersList, this.oldForm.preContainersList), this.form.preContainersList, this.oldForm.preContainersList)
|
|
|
+ // console.log(
|
|
|
+ // "mainDataChanged",
|
|
|
+ // contrastObj(this.form.preContainersList, this.oldForm.preContainersList),
|
|
|
+ // this.form.preContainersList,
|
|
|
+ // this.oldForm.preContainersList
|
|
|
+ // );
|
|
|
let changed = {
|
|
|
changed: false,
|
|
|
main: false,
|
|
|
@@ -1361,10 +1358,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- console.log(changed);
|
|
|
- console.log(this.form.hmmEdi);
|
|
|
- console.log(this.oldForm.hmmEdi);
|
|
|
-
|
|
|
return changed;
|
|
|
},
|
|
|
addEdit() {
|
|
|
@@ -1437,6 +1430,21 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ // ICS2
|
|
|
+ if (this.form.hmmEdi) {
|
|
|
+ fldNames = "sellerDetails,buyerDetails,hblShipperDetails,hblConsigneeDetails,hblNotifyDetails".split(",");
|
|
|
+ fldDescs = "卖方,买方,HBL 发货人,HBL 收货人,HBL 通知人".split(",");
|
|
|
+ fldNames.forEach((fld, idx) => {
|
|
|
+ const cfs = checkFullWidthSymbols(this.form.hmmEdi[fld]);
|
|
|
+ if (cfs.hasFullWidth) {
|
|
|
+ if (cfs.isResetText) {
|
|
|
+ this.$set(this.form.hmmEdi, fld, cfs.resetText);
|
|
|
+ }
|
|
|
+ msgsList.push("ICS2 " + fldDescs[idx] + ": " + cfs.message);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
if (msgsList.length > 0) {
|
|
|
this.$message({
|
|
|
dangerouslyUseHTMLString: true,
|
|
|
@@ -1480,6 +1488,18 @@ export default {
|
|
|
if (!verifyEnglish(this.form.forwarding)) {
|
|
|
msgsList.push("FORWARDING");
|
|
|
}
|
|
|
+
|
|
|
+ // ICS2
|
|
|
+ if (this.form.hmmEdi) {
|
|
|
+ fldNames = "sellerDetails,buyerDetails,hblShipperDetails,hblConsigneeDetails,hblNotifyDetails".split(",");
|
|
|
+ fldDescs = "卖方,买方,HBL 发货人,HBL 收货人,HBL 通知人".split(",");
|
|
|
+ fldNames.forEach((fld, idx) => {
|
|
|
+ if (!verifyEnglish(this.form.hmmEdi[fld])) {
|
|
|
+ msgsList.push("ICS2 " + fldDescs[idx]);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
if (msgsList.length > 0) {
|
|
|
// this.$message.error(`请正确输入${msgsList.join(",")}的英文`);
|
|
|
this.$message.error(`${msgsList.join(",")}存在非英文字符,如汉字等,请修正后再保存!`);
|
|
|
@@ -1494,6 +1514,13 @@ export default {
|
|
|
this.form.detail.mmarks = this.getTextTrim(this.form.detail.mmarks);
|
|
|
this.form.detail.mcommodityDescr = this.getTextTrim(this.form.detail.mcommodityDescr);
|
|
|
this.form.forwarding = this.getTextTrim(this.form.forwarding);
|
|
|
+ // ICS2
|
|
|
+ if (this.form.hmmEdi) {
|
|
|
+ let s = "sellerDetails,buyerDetails,hblShipperDetails,hblConsigneeDetails,hblNotifyDetails".split(",");
|
|
|
+ s.forEach((fld, idx) => {
|
|
|
+ this.form.hmmEdi[fld] = this.getTextTrim(this.form.hmmEdi[fld]);
|
|
|
+ });
|
|
|
+ }
|
|
|
// 赋值 ETD 日期
|
|
|
this.form.billDate = this.form.etd ? this.form.etd.slice(0, 10) + " 00:00:00" : null; // 单据日期
|
|
|
// 调用保存接口
|
|
|
@@ -1507,8 +1534,9 @@ export default {
|
|
|
}
|
|
|
// 3 用户选择保存,收发通校验
|
|
|
if (rb.status == 3) {
|
|
|
+ let changed = false;
|
|
|
this.sftVerifyData = {
|
|
|
- status: status,
|
|
|
+ status: rb.status,
|
|
|
remark: rb.remark, // .replaceAll("<br />", "\n"),
|
|
|
hshipperId: rb.hshipperId == 1,
|
|
|
hshipperDetails: rb.hshipperDetails,
|
|
|
@@ -1520,37 +1548,98 @@ export default {
|
|
|
marks: rb.marks,
|
|
|
reserve2: rb.reserve2 == "1",
|
|
|
commodityDescr: rb.commodityDescr,
|
|
|
+ reserve3: rb.reserve3 == "1",
|
|
|
+ bookingRemarks: rb.bookingRemarks,
|
|
|
+ reserve4: rb.reserve4 == "1",
|
|
|
+ siRemarks: rb.siRemarks,
|
|
|
+ // ICS2
|
|
|
+ ics2_sellerFlag: rb.hmmEdi ? rb.hmmEdi.sellerFlag == "1" : false,
|
|
|
+ ics2_sellerDetails: rb.hmmEdi ? rb.hmmEdi.sellerDetails : "",
|
|
|
+ ics2_buyerFlag: rb.hmmEdi ? rb.hmmEdi.buyerFlag == "1" : false,
|
|
|
+ ics2_buyerDetails: rb.hmmEdi ? rb.hmmEdi.buyerDetails : "",
|
|
|
+ ics2_hblShipperFlag: rb.hmmEdi ? rb.hmmEdi.hblShipperFlag == "1" : false,
|
|
|
+ ics2_hblShipperDetails: rb.hmmEdi ? rb.hmmEdi.hblShipperDetails : "",
|
|
|
+ ics2_hblConsigneeFlag: rb.hmmEdi ? rb.hmmEdi.hblConsigneeFlag == "1" : false,
|
|
|
+ ics2_hblConsigneeDetails: rb.hmmEdi ? rb.hmmEdi.hblConsigneeDetails : "",
|
|
|
+ ics2_hblNotifyFlag: rb.hmmEdi ? rb.hmmEdi.hblNotifyFlag == "1" : false,
|
|
|
+ ics2_hblNotifyDetails: rb.hmmEdi ? rb.hmmEdi.hblNotifyDetails : "",
|
|
|
};
|
|
|
- console.log(this.sftVerifyData);
|
|
|
if (this.sftVerifyData.hshipperId === true) {
|
|
|
this.form.detail.hshipperDetails = this.sftVerifyData.hshipperDetails;
|
|
|
+ changed = true;
|
|
|
}
|
|
|
if (this.sftVerifyData.mshipperId === true) {
|
|
|
this.form.detail.mshipperDetails = this.sftVerifyData.mshipperDetails;
|
|
|
+ changed = true;
|
|
|
}
|
|
|
if (this.sftVerifyData.hconsigneeId === true) {
|
|
|
this.form.detail.hconsigneeDetails = this.sftVerifyData.hconsigneeDetails;
|
|
|
+ changed = true;
|
|
|
}
|
|
|
if (this.sftVerifyData.mconsigneeId === true) {
|
|
|
this.form.detail.mconsigneeDetails = this.sftVerifyData.mconsigneeDetails;
|
|
|
+ changed = true;
|
|
|
}
|
|
|
if (this.sftVerifyData.hnotifyId === true) {
|
|
|
this.form.detail.hnotifyDetails = this.sftVerifyData.hnotifyDetails;
|
|
|
+ changed = true;
|
|
|
}
|
|
|
if (this.sftVerifyData.mnotifyId === true) {
|
|
|
this.form.detail.mnotifyDetails = this.sftVerifyData.mnotifyDetails;
|
|
|
+ changed = true;
|
|
|
}
|
|
|
if (this.sftVerifyData.reserve1 === true) {
|
|
|
this.form.marks = this.sftVerifyData.marks;
|
|
|
+ changed = true;
|
|
|
}
|
|
|
if (this.sftVerifyData.reserve2 === true) {
|
|
|
this.form.commodityDescr = this.sftVerifyData.commodityDescr;
|
|
|
+ changed = true;
|
|
|
+ }
|
|
|
+ if (this.sftVerifyData.reserve3 === true) {
|
|
|
+ this.form.bookingRemarks = this.sftVerifyData.bookingRemarks;
|
|
|
+ changed = true;
|
|
|
+ }
|
|
|
+ if (this.sftVerifyData.reserve4 === true) {
|
|
|
+ this.form.siRemarks = this.sftVerifyData.siRemarks;
|
|
|
+ changed = true;
|
|
|
+ }
|
|
|
+ if (this.sftVerifyData.ics2_sellerFlag === true) {
|
|
|
+ this.form.hmmEdi.sellerDetails = this.sftVerifyData.ics2_sellerDetails;
|
|
|
+ changed = true;
|
|
|
+ }
|
|
|
+ if (this.sftVerifyData.ics2_buyerFlag === true) {
|
|
|
+ this.form.hmmEdi.buyerDetails = this.sftVerifyData.ics2_buyerDetails;
|
|
|
+ changed = true;
|
|
|
+ }
|
|
|
+ if (this.sftVerifyData.ics2_hblShipperFlag === true) {
|
|
|
+ this.form.hmmEdi.hblShipperDetails = this.sftVerifyData.ics2_hblShipperDetails;
|
|
|
+ changed = true;
|
|
|
+ }
|
|
|
+ if (this.sftVerifyData.ics2_hblConsigneeFlag === true) {
|
|
|
+ this.form.hmmEdi.hblConsigneeDetails = this.sftVerifyData.ics2_hblConsigneeDetails;
|
|
|
+ changed = true;
|
|
|
+ }
|
|
|
+ if (this.sftVerifyData.ics2_hblNotifyFlag === true) {
|
|
|
+ this.form.hmmEdi.hblNotifyDetails = this.sftVerifyData.ics2_hblNotifyDetails;
|
|
|
+ changed = true;
|
|
|
}
|
|
|
|
|
|
- if (this.form.id) {
|
|
|
+ if (rb.reserve10) {
|
|
|
+ this.$alert(rb.reserve10, "温馨提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ type: "warning",
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ if (changed && this.form.id) {
|
|
|
await this.billsSubmitfun();
|
|
|
}
|
|
|
}
|
|
|
+ // 错误提示
|
|
|
+ if (rb.status == 4) {
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
CopyDocumentsfun() {
|
|
|
@@ -1694,7 +1783,7 @@ export default {
|
|
|
},
|
|
|
// 获取EDI列表数据
|
|
|
editypesListfun() {
|
|
|
- editypesList(1, 1000, { type: "HYCK", status: 0 }).then((res) => {
|
|
|
+ editypesList(1, 1000, { type: "HYCK", status: 0, branchId: this.form.branchId }).then((res) => {
|
|
|
this.ediData = res.data.data.records;
|
|
|
this.ediData_SO = res.data.data.records
|
|
|
.filter((r) => r.groupName == "SO")
|
|
|
@@ -1718,7 +1807,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
async editypesSendingEdifun(row) {
|
|
|
- let ret = await this.editCustomer("goto");
|
|
|
+ let ret = await this.editCustomer(""); // goto
|
|
|
if (!ret) return;
|
|
|
|
|
|
let sendToRemote = 1;
|
|
|
@@ -2231,7 +2320,6 @@ export default {
|
|
|
// this.columnforfun("srcCnName").dicData = res.data.data;
|
|
|
// });
|
|
|
selectSalesNames({ positionType: "业务员", status: 0, whetherEmployedOrNot: "1" }).then((res) => {
|
|
|
- console.log(res.data.data.records);
|
|
|
res.data.data.records.forEach((record) => {
|
|
|
record.name = record.cname;
|
|
|
});
|
|
|
@@ -2276,7 +2364,6 @@ export default {
|
|
|
},
|
|
|
// 下拉多选弹窗的确认
|
|
|
eldialogConfirm(name) {
|
|
|
- console.log("eldialogConfirm", name, this.$refs.bcorps[0].isShow);
|
|
|
if (name == "bcorps") {
|
|
|
if (this.$refs.bcorps[0].isShow) {
|
|
|
this.form.corpCnName = this.$refs.bcorps[0].selectionList[0].cnName;
|
|
|
@@ -2370,7 +2457,6 @@ export default {
|
|
|
// 下拉多选弹窗数据多选回调
|
|
|
eldialogMultipleChoice(list, name) {
|
|
|
if (name == "bcorps") {
|
|
|
- console.log("eldialogMultipleChoice", list);
|
|
|
let arr = [];
|
|
|
if (list.length > 1) {
|
|
|
this.$refs.bcorps[0].$refs.crud.toggleSelection(); // 先清空所以选择的数据
|
|
|
@@ -2994,14 +3080,18 @@ export default {
|
|
|
this.detailData.seeDisabled = false;
|
|
|
},
|
|
|
//去除文本框的空格
|
|
|
- getTextTrim(data) {
|
|
|
+ getTextTrim(data, up) {
|
|
|
if (data) {
|
|
|
let obj = data.split("\n");
|
|
|
let res = [];
|
|
|
obj.forEach((item) => {
|
|
|
res.push(_.trimEnd(item));
|
|
|
});
|
|
|
- return res.join("\n");
|
|
|
+ if (up === true) {
|
|
|
+ return customToUpper(res.join("\n"));
|
|
|
+ } else {
|
|
|
+ return res.join("\n");
|
|
|
+ }
|
|
|
} else {
|
|
|
return null;
|
|
|
}
|
|
|
@@ -3053,7 +3143,6 @@ export default {
|
|
|
await this.billsDetailfun(this.form.id);
|
|
|
}
|
|
|
ret = true;
|
|
|
- console.log("set ret", ret);
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
@@ -3302,10 +3391,10 @@ export default {
|
|
|
let msgsList = [];
|
|
|
fldNames.forEach((fld, idx) => {
|
|
|
const cfs = checkFullWidthSymbols(this.form.detail[fld]);
|
|
|
+ if (cfs.isResetText) {
|
|
|
+ this.$set(this.form.detail, fld, cfs.resetText);
|
|
|
+ }
|
|
|
if (cfs.hasFullWidth) {
|
|
|
- if (cfs.isResetText) {
|
|
|
- this.$set(this.form.detail, fld, cfs.resetText);
|
|
|
- }
|
|
|
msgsList.push(fldDescs[idx] + ": " + cfs.message);
|
|
|
}
|
|
|
});
|
|
|
@@ -3336,14 +3425,29 @@ export default {
|
|
|
fldDescs = "收货地,装货港,卸货港,目的地,交货地,中转港".split(",");
|
|
|
fldNames.forEach((fld, idx) => {
|
|
|
const cfs = checkFullWidthSymbols(this.form[fld]);
|
|
|
+ if (cfs.isResetText) {
|
|
|
+ this.$set(this.form, fld, cfs.resetText);
|
|
|
+ }
|
|
|
if (cfs.hasFullWidth) {
|
|
|
- if (cfs.isResetText) {
|
|
|
- this.$set(this.form, fld, cfs.resetText);
|
|
|
- }
|
|
|
msgsList.push(fldDescs[idx] + ": " + cfs.message);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ // ICS2
|
|
|
+ if (this.form.hmmEdi) {
|
|
|
+ fldNames = "sellerDetails,buyerDetails,hblShipperDetails,hblConsigneeDetails,hblNotifyDetails".split(",");
|
|
|
+ fldDescs = "卖方,买方,HBL 发货人,HBL 收货人,HBL 通知人".split(",");
|
|
|
+ fldNames.forEach((fld, idx) => {
|
|
|
+ const cfs = checkFullWidthSymbols(this.form.hmmEdi[fld]);
|
|
|
+ if (cfs.isResetText) {
|
|
|
+ this.$set(this.form.hmmEdi, fld, cfs.resetText);
|
|
|
+ }
|
|
|
+ if (cfs.hasFullWidth) {
|
|
|
+ msgsList.push("ICS2 " + fldDescs[idx] + ": " + cfs.message);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
if (msgsList.length > 0) {
|
|
|
this.$message({
|
|
|
dangerouslyUseHTMLString: true,
|
|
|
@@ -3387,6 +3491,18 @@ export default {
|
|
|
if (!verifyEnglish(this.form.forwarding)) {
|
|
|
msgsList.push("FORWARDING");
|
|
|
}
|
|
|
+
|
|
|
+ // ICS2
|
|
|
+ if (this.form.hmmEdi) {
|
|
|
+ fldNames = "sellerDetails,buyerDetails,hblShipperDetails,hblConsigneeDetails,hblNotifyDetails".split(",");
|
|
|
+ fldDescs = "卖方,买方,HBL 发货人,HBL 收货人,HBL 通知人".split(",");
|
|
|
+ fldNames.forEach((fld, idx) => {
|
|
|
+ if (!verifyEnglish(this.form.hmmEdi[fld])) {
|
|
|
+ msgsList.push("ICS2 " + fldDescs[idx]);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
if (msgsList.length > 0) {
|
|
|
// this.$message.error(`请正确输入${msgsList.join(",")}的英文`);
|
|
|
this.$message.error(`${msgsList.join(",")}存在非英文字符,如汉字等,请修正后再保存!`);
|
|
|
@@ -3401,6 +3517,14 @@ export default {
|
|
|
this.form.detail.mmarks = this.getTextTrim(this.form.detail.mmarks);
|
|
|
this.form.detail.mcommodityDescr = this.getTextTrim(this.form.detail.mcommodityDescr);
|
|
|
this.form.forwarding = this.getTextTrim(this.form.forwarding);
|
|
|
+ // ICS2
|
|
|
+ if (this.form.hmmEdi) {
|
|
|
+ let s = "sellerDetails,buyerDetails,hblShipperDetails,hblConsigneeDetails,hblNotifyDetails".split(",");
|
|
|
+ s.forEach((fld, idx) => {
|
|
|
+ this.form.hmmEdi[fld] = this.getTextTrim(this.form.hmmEdi[fld], true);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
// 赋值 ETD 日期
|
|
|
this.form.billDate = this.form.etd ? this.form.etd.slice(0, 10) + " 00:00:00" : null; // 单据日期
|
|
|
// 调用保存接口
|
|
|
@@ -3448,7 +3572,6 @@ export default {
|
|
|
reserve2: rb.reserve2 == "1",
|
|
|
commodityDescr: rb.commodityDescr,
|
|
|
};
|
|
|
- console.log(this.sftVerifyData);
|
|
|
this.sftVerifyDataCallback = callback;
|
|
|
this.showSftVerifyDlg = true;
|
|
|
/*
|
|
|
@@ -3484,7 +3607,6 @@ export default {
|
|
|
await this.billsSubmitfun(status, undefined, callback);
|
|
|
|
|
|
ret = true;
|
|
|
- console.log("set ret", ret);
|
|
|
return true;
|
|
|
}
|
|
|
} else {
|
|
|
@@ -3493,7 +3615,6 @@ export default {
|
|
|
}
|
|
|
// });
|
|
|
|
|
|
- console.log("ret 1", ret);
|
|
|
return ret;
|
|
|
},
|
|
|
// 主表保存接口大保存
|
|
|
@@ -3662,7 +3783,6 @@ export default {
|
|
|
this.pageLoading = false;
|
|
|
|
|
|
// 保存箱号
|
|
|
- console.log(this.form.containersList, this.oldForm.containersList);
|
|
|
if (contrastList(this.form.containersList, this.oldForm.containersList)) {
|
|
|
await containersSubmitList(this.form.containersList);
|
|
|
}
|
|
|
@@ -3904,7 +4024,6 @@ export default {
|
|
|
},
|
|
|
// 详情接口
|
|
|
async billsDetailfun(id, status, callback) {
|
|
|
- // console.log("bills.billsDetailfun", id, status);
|
|
|
const res = await billsDetail(id);
|
|
|
|
|
|
if (status === "containersList") {
|
|
|
@@ -3917,6 +4036,8 @@ export default {
|
|
|
// this.form = res.data.data;
|
|
|
this.$set(this, "form", res.data.data);
|
|
|
|
|
|
+ this.editypesListfun();
|
|
|
+
|
|
|
if (this.form.hmmEdi) {
|
|
|
if (!this.form.hmmEdi.emsDeclarationIdentification) {
|
|
|
this.form.hmmEdi.emsDeclarationIdentification = "B";
|
|
|
@@ -3943,8 +4064,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- console.log(this.form);
|
|
|
-
|
|
|
// 如果已经请核就禁用按钮
|
|
|
if (this.form.status == 1 || this.form.status == 2 || this.form.status == 3) {
|
|
|
this.detailData.seeDisabled = true;
|
|
|
@@ -3955,7 +4074,6 @@ export default {
|
|
|
}
|
|
|
// if (res.data.data.etd && this.overdueJudgment(res.data.data.locked == 0 ? res.data.data.etd : res.data.data.lockedDate)) {
|
|
|
if (res.data.data.etd && this.overdueJudgment(res.data.data.etd, res.data.data.lockedDate)) {
|
|
|
- console.log(res.data.data.etd, res.data.data.locked, res.data.data.lockedDate);
|
|
|
this.detailData.seeDisabled = true;
|
|
|
this.$message.error("已锁账,请申请解锁");
|
|
|
this.lockBtn = true;
|
|
|
@@ -4057,11 +4175,18 @@ export default {
|
|
|
}
|
|
|
item.edit = false;
|
|
|
}
|
|
|
+
|
|
|
+ if (this.$refs.reports) {
|
|
|
+ this.$refs.reports.getData(res.data.data);
|
|
|
+ }
|
|
|
// 文件中心
|
|
|
this.$refs.filescenter.getData(res.data.data);
|
|
|
for (let item of this.form.filesList) {
|
|
|
this.$set(item, "edit", false);
|
|
|
}
|
|
|
+ // 文件
|
|
|
+ this.$refs.documentCenter.reportsListfun(res.data.data);
|
|
|
+
|
|
|
if (status == "toAddEdit") {
|
|
|
this.$emit(status);
|
|
|
}
|
|
|
@@ -4089,10 +4214,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- console.log("detailData.seeDisabled", this.detailData.seeDisabled, "showLock", this.showLock);
|
|
|
-
|
|
|
if (typeof callback === "function") {
|
|
|
- console.log("do callback", callback);
|
|
|
callback();
|
|
|
}
|
|
|
|