|
|
@ -17,6 +17,34 @@ const FnnoBill = ref([])
|
|
|
|
getDictOption('no_bill').then((res) => {
|
|
|
|
getDictOption('no_bill').then((res) => {
|
|
|
|
FnnoBill.value = res
|
|
|
|
FnnoBill.value = res
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
const removeTrailingSpaces = (text) => {
|
|
|
|
|
|
|
|
return text.replace(/ \s*$/gm, '')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function ToCDB(str: any) {
|
|
|
|
|
|
|
|
if (!str) return
|
|
|
|
|
|
|
|
var tmp = ''
|
|
|
|
|
|
|
|
for (var i = 0; i < str.length; i++) {
|
|
|
|
|
|
|
|
if (str.charCodeAt(i) > 65248 && str.charCodeAt(i) < 65375) {
|
|
|
|
|
|
|
|
tmp += String.fromCharCode(str.charCodeAt(i) - 65248)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
tmp += String.fromCharCode(str.charCodeAt(i))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
tmp = tmp.replace(/,/gi, ',')
|
|
|
|
|
|
|
|
tmp = tmp.replace(/。/gi, '.')
|
|
|
|
|
|
|
|
tmp = tmp.replace(/;/gi, ';')
|
|
|
|
|
|
|
|
tmp = tmp.replace(/:/gi, ':')
|
|
|
|
|
|
|
|
tmp = tmp.replace(/?/gi, '?')
|
|
|
|
|
|
|
|
tmp = tmp.replace(/!/gi, '!')
|
|
|
|
|
|
|
|
tmp = tmp.replace(/《/gi, '<<')
|
|
|
|
|
|
|
|
tmp = tmp.replace(/》/gi, '>>')
|
|
|
|
|
|
|
|
tmp = tmp.replace(/‘/gi, "'")
|
|
|
|
|
|
|
|
tmp = tmp.replace(/’/gi, "'")
|
|
|
|
|
|
|
|
tmp = tmp.replace(/、/gi, ',')
|
|
|
|
|
|
|
|
// tab键转换暂时屏蔽,看后台转换的效果,再放开
|
|
|
|
|
|
|
|
tmp = tmp.replace(/\t/gi, ' ')
|
|
|
|
|
|
|
|
return tmp
|
|
|
|
|
|
|
|
}
|
|
|
|
// 上面的表单1
|
|
|
|
// 上面的表单1
|
|
|
|
export const formSchema1: FormSchema[] = [
|
|
|
|
export const formSchema1: FormSchema[] = [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -75,6 +103,11 @@ export const formSchema1: FormSchema[] = [
|
|
|
|
slice: [30, 35, 40],
|
|
|
|
slice: [30, 35, 40],
|
|
|
|
onCut: (v) => {
|
|
|
|
onCut: (v) => {
|
|
|
|
formModel.shipperContent = v
|
|
|
|
formModel.shipperContent = v
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
oninput: () => {
|
|
|
|
|
|
|
|
formModel.shipperContent = ToCDB(formModel.shipperContent)
|
|
|
|
|
|
|
|
formModel.shipperContent = formModel.shipperContent.toUpperCase()
|
|
|
|
|
|
|
|
formModel.shipperContent = removeTrailingSpaces(formModel.shipperContent)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -130,6 +163,11 @@ export const formSchema1: FormSchema[] = [
|
|
|
|
onCut: (v) => {
|
|
|
|
onCut: (v) => {
|
|
|
|
formModel.consigneeContent = v
|
|
|
|
formModel.consigneeContent = v
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
oninput: () => {
|
|
|
|
|
|
|
|
formModel.consigneeContent = ToCDB(formModel.consigneeContent)
|
|
|
|
|
|
|
|
formModel.consigneeContent = formModel.consigneeContent.toUpperCase()
|
|
|
|
|
|
|
|
formModel.consigneeContent = removeTrailingSpaces(formModel.consigneeContent)
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -187,6 +225,11 @@ export const formSchema1: FormSchema[] = [
|
|
|
|
onCut: (v) => {
|
|
|
|
onCut: (v) => {
|
|
|
|
formModel.notifyPartyContent = v
|
|
|
|
formModel.notifyPartyContent = v
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
oninput: () => {
|
|
|
|
|
|
|
|
formModel.notifyPartyContent = ToCDB(formModel.notifyPartyContent)
|
|
|
|
|
|
|
|
formModel.notifyPartyContent = formModel.notifyPartyContent.toUpperCase()
|
|
|
|
|
|
|
|
formModel.notifyPartyContent = removeTrailingSpaces(formModel.notifyPartyContent)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|