|
@@ -87,7 +87,7 @@
|
|
|
@click="applyforfun(item[0].label)">{{ item[0].label }}
|
|
|
</span>
|
|
|
<span v-else style="color: #1e9fff">{{ item[0].label
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
</span>
|
|
|
<span v-if="item[0].type == 'button'"></span>
|
|
|
<!--<el-button v-if="item[0].type == 'button'" :disabled="detailData.seeDisabled || item[0].disabled"-->
|
|
@@ -313,7 +313,7 @@ import { getDeptLazyTree, getDeptTree, getLazyList } from "@/api/system/dept";
|
|
|
import {
|
|
|
billsCheckBills, billsCopyBills,
|
|
|
billsDetail,
|
|
|
- billsGetBillNo,removeHblNo,
|
|
|
+ billsGetBillNo, removeHblNo,
|
|
|
billsListAll, billsRevokeCheckBills, editypesSendingEdi,
|
|
|
billsSubmit,
|
|
|
billsAdd,
|
|
@@ -327,9 +327,10 @@ import businessReports from "@/views/iosBasicData/SeafreightExportF/bills/assemb
|
|
|
import { popupReminder } from "@/util/messageReminder";
|
|
|
import editypes from "@/views/iosBasicData/editypes/index.vue";
|
|
|
import { editypesList } from "@/api/iosBasicData/editypes";
|
|
|
-import { verifyEnglish, verifySymbol, checkFullWidthSymbols } from "@/util/date";
|
|
|
+import { verifyEnglish, checkFullWidthSymbols } from "@/util/date";
|
|
|
import { contrastObj, contrastList } from "@/util/contrastData";
|
|
|
import { selectListLos } from "@/api/approval/processConfig";
|
|
|
+import { isProcurement } from "@/api/basicData/configuration";
|
|
|
import _ from "lodash";
|
|
|
export default {
|
|
|
components: {
|
|
@@ -358,6 +359,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ verifySymbolStatus: 0,
|
|
|
showLock: false,
|
|
|
ediData: [], // edi 列表数据
|
|
|
previewDialog: false, // 预览报表弹窗开启
|
|
@@ -825,6 +827,9 @@ export default {
|
|
|
this.saberTenantId = Obj ? Obj.content : 0;
|
|
|
this.saberUserInfo = JSON.parse(localStorage.getItem('saber-userInfo')).content
|
|
|
this.roleName = localStorage.getItem('roleName').split(',')
|
|
|
+ isProcurement({ "param": "verify.symbol" }).then(res => {
|
|
|
+ this.verifySymbolStatus = res.data.data
|
|
|
+ })
|
|
|
// 判断是否员id, 有id 就不显示
|
|
|
if (!this.form.id) {
|
|
|
this.deptGetDetailPolfun() // 收货地 装货港 当前登录人的默认
|
|
@@ -1611,9 +1616,9 @@ export default {
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(res => {
|
|
|
-
|
|
|
- removeHblNo({id:this.form.id}).then(res=>{
|
|
|
- this.form.hblno=null
|
|
|
+
|
|
|
+ removeHblNo({ id: this.form.id }).then(res => {
|
|
|
+ this.form.hblno = null
|
|
|
this.billsSubmitfun()
|
|
|
})
|
|
|
})
|
|
@@ -1820,30 +1825,116 @@ export default {
|
|
|
})
|
|
|
return;
|
|
|
}
|
|
|
+ if (this.verifySymbolStatus == 1) {
|
|
|
+ let msgsList = []
|
|
|
+ if (checkFullWidthSymbols(this.form.detail.hshipperDetails).hasFullWidth) {
|
|
|
+ let msg = []
|
|
|
+ for (let item of checkFullWidthSymbols(this.form.detail.hshipperDetails).positions) {
|
|
|
+ msg.push(`第${item.row}行的"${item.symbol}"`)
|
|
|
+ }
|
|
|
+ if (msg.length > 0) {
|
|
|
+ this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: `发货人:<br>${msg.join(";<br>")}<br>存在全角或汉字符号,请确认`,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- // let msgsList = []
|
|
|
- // if (!verifyEnglish(this.form.hshipperDetails)) {
|
|
|
- // msgsList.push('发货人')
|
|
|
- // }
|
|
|
- // if (!verifyEnglish(this.form.hconsigneeDetails)) {
|
|
|
- // msgsList.push('收货人')
|
|
|
- // }
|
|
|
- // if (!verifyEnglish(this.form.hnotifyDetails)) {
|
|
|
- // msgsList.push('通知人')
|
|
|
- // }
|
|
|
- // if (!verifyEnglish(this.form.marks)) {
|
|
|
- // msgsList.push('唛头')
|
|
|
- // }
|
|
|
- // if (!verifyEnglish(this.form.commodityDescr)) {
|
|
|
- // msgsList.push('货描')
|
|
|
- // }
|
|
|
- // if (!verifyEnglish(this.form.forwarding)) {
|
|
|
- // msgsList.push('FORWARDING')
|
|
|
- // }
|
|
|
- // if (msgsList.length > 0) {
|
|
|
- // this.$message.error(`请正确输入${msgsList.join(",")}的英文和英文符号`);
|
|
|
- // return;
|
|
|
- // }
|
|
|
+ if (checkFullWidthSymbols(this.form.detail.hconsigneeDetails).hasFullWidth) {
|
|
|
+ let msg = []
|
|
|
+ for (let item of checkFullWidthSymbols(this.form.detail.hconsigneeDetails).positions) {
|
|
|
+ msg.push(`第${item.row}行的"${item.symbol}"`)
|
|
|
+ }
|
|
|
+ if (msg.length > 0) {
|
|
|
+ this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: `收货人:<br>${msg.join(";<br>")}<br>存在全角或汉字符号,请确认`,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (checkFullWidthSymbols(this.form.detail.hnotifyDetails).hasFullWidth) {
|
|
|
+ let msg = []
|
|
|
+ for (let item of checkFullWidthSymbols(this.form.detail.hnotifyDetails).positions) {
|
|
|
+ msg.push(`第${item.row}行的"${item.symbol}"`)
|
|
|
+ }
|
|
|
+ if (msg.length > 0) {
|
|
|
+ this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: `通知人:<br>${msg.join(";<br>")}<br>存在全角或汉字符号,请确认`,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (checkFullWidthSymbols(this.form.marks).hasFullWidth) {
|
|
|
+ let msg = []
|
|
|
+ for (let item of checkFullWidthSymbols(this.form.marks).positions) {
|
|
|
+ msg.push(`第${item.row}行的"${item.symbol}"`)
|
|
|
+ }
|
|
|
+ if (msg.length > 0) {
|
|
|
+ this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: `唛头:<br>${msg.join(";<br>")}<br>存在全角或汉字符号,请确认`,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (checkFullWidthSymbols(this.form.commodityDescr).hasFullWidth) {
|
|
|
+ let msg = []
|
|
|
+ for (let item of checkFullWidthSymbols(this.form.commodityDescr).positions) {
|
|
|
+ msg.push(`第${item.row}行的"${item.symbol}"`)
|
|
|
+ }
|
|
|
+ if (msg.length > 0) {
|
|
|
+ this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: `货描:<br>${msg.join(";<br>")}<br>存在全角或汉字符号,请确认`,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (checkFullWidthSymbols(this.form.forwarding).hasFullWidth) {
|
|
|
+ let msg = []
|
|
|
+ for (let item of checkFullWidthSymbols(this.form.forwarding).positions) {
|
|
|
+ msg.push(`第${item.row}行的"${item.symbol}"`)
|
|
|
+ }
|
|
|
+ if (msg.length > 0) {
|
|
|
+ this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: `FORWARDING:<br>${msg.join(";<br>")}<br>存在全角或汉字符号,请确认`,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!verifyEnglish(this.form.detail.hshipperDetails)) {
|
|
|
+ msgsList.push('发货人')
|
|
|
+ }
|
|
|
+ if (!verifyEnglish(this.form.detail.hconsigneeDetails)) {
|
|
|
+ msgsList.push('收货人')
|
|
|
+ }
|
|
|
+ if (!verifyEnglish(this.form.detail.hnotifyDetails)) {
|
|
|
+ msgsList.push('通知人')
|
|
|
+ }
|
|
|
+ if (!verifyEnglish(this.form.marks)) {
|
|
|
+ msgsList.push('唛头')
|
|
|
+ }
|
|
|
+ if (!verifyEnglish(this.form.commodityDescr)) {
|
|
|
+ msgsList.push('货描')
|
|
|
+ }
|
|
|
+ if (!verifyEnglish(this.form.forwarding)) {
|
|
|
+ msgsList.push('FORWARDING')
|
|
|
+ }
|
|
|
+ if (msgsList.length > 0) {
|
|
|
+ this.$message.error(`请正确输入${msgsList.join(",")}的英文`);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
this.form.detail.hshipperDetails = this.getTextTirim(this.form.detail.hshipperDetails)
|
|
|
this.form.detail.hconsigneeDetails = this.getTextTirim(this.form.detail.hconsigneeDetails)
|
|
|
this.form.detail.hnotifyDetails = this.getTextTirim(this.form.detail.hnotifyDetails)
|