|
@@ -108,7 +108,7 @@ $(document).ready(function () {
|
|
|
}
|
|
|
const prev_amount = prevAdvance && prevAdvance.prev_total_amount || 0
|
|
|
const prev_total_amount = ZhCalc.add(cur_amount, prev_amount)
|
|
|
- const remark = $('#ad-remark').val().replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').replace(/\s/g, ' ') || null
|
|
|
+ const remark = $('#ad-remark').val().replace(/(\r\n)|(\n)/g, '<br/>').replace(/\s/g, ' ') || null
|
|
|
const data = {pay_ratio, cur_amount, prev_amount, prev_total_amount, remark, status: auditConst.status.checking}
|
|
|
postData(preUrl + '/audit/start', data, (data) => {
|
|
|
window.location.reload()
|
|
@@ -203,7 +203,7 @@ $(document).ready(function () {
|
|
|
|
|
|
function filterText(text) {
|
|
|
if (!text) return null
|
|
|
- return text.replace(/(\r\n)|(\n)/g, '<br/>')
|
|
|
+ return text.replace(/(\r\n)|(\n)/g, '<br/>').replace(/\s/g, ' ')
|
|
|
}
|
|
|
function update(data) {
|
|
|
postData(preUrl + '/update', data)
|
|
@@ -236,7 +236,7 @@ $(document).ready(function () {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- function handleFileList(files) {
|
|
|
+ function handleFileList(files = []) {
|
|
|
$('#file-content').empty()
|
|
|
const { uncheck, checkNo } = auditConst.status
|
|
|
const newFiles = files.map(file => {
|