|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<ele-modal
|
|
<ele-modal
|
|
|
- title="入库单"
|
|
|
|
|
|
|
+ title="来料报检单"
|
|
|
:visible.sync="QRvisible"
|
|
:visible.sync="QRvisible"
|
|
|
v-if="QRvisible"
|
|
v-if="QRvisible"
|
|
|
width="80%"
|
|
width="80%"
|
|
@@ -100,8 +100,8 @@
|
|
|
</tbody>
|
|
</tbody>
|
|
|
</table>
|
|
</table>
|
|
|
<div style="display: flex; justify-content: space-between; width: 100%; font-size: 13px;">
|
|
<div style="display: flex; justify-content: space-between; width: 100%; font-size: 13px;">
|
|
|
- <span style="flex: 1">报检人/日期:{{formData.qualityName}}/{{ formData.qualityReportUploadTime }}</span>
|
|
|
|
|
- <span style="flex: 1">签收人/日期:{{formData.makerName}}/{{ formData.createTime }}</span>
|
|
|
|
|
|
|
+ <span style="flex: 1">报检人/日期:{{formData.makerName}}/{{ formData.createTime }}</span>
|
|
|
|
|
+ <span style="flex: 1">签收人/日期:</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div slot="footer">
|
|
<div slot="footer">
|
|
@@ -131,48 +131,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
- numToChinese(num) {
|
|
|
|
|
- const digits = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
|
|
|
|
|
- const units = ['', '拾', '佰', '仟', '万', '拾', '佰', '仟', '亿'];
|
|
|
|
|
- const decimalUnits = ['角', '分'];
|
|
|
|
|
-
|
|
|
|
|
- num = Number(num).toFixed(2);
|
|
|
|
|
- const [integerStr, decimalStr] = num.split('.');
|
|
|
|
|
- let result = '';
|
|
|
|
|
-
|
|
|
|
|
- const integerLen = integerStr.length;
|
|
|
|
|
- if (integerLen === 0 || (integerLen === 1 && integerStr === '0')) {
|
|
|
|
|
- result += '零元';
|
|
|
|
|
- } else {
|
|
|
|
|
- for (let i = 0; i < integerLen; i++) {
|
|
|
|
|
- const digit = parseInt(integerStr[i]);
|
|
|
|
|
- const unitIndex = integerLen - 1 - i;
|
|
|
|
|
-
|
|
|
|
|
- if (digit === 0) {
|
|
|
|
|
- if (i < integerLen - 1 && parseInt(integerStr[i + 1]) !== 0) {
|
|
|
|
|
- result += '零';
|
|
|
|
|
- }
|
|
|
|
|
- } else {
|
|
|
|
|
- if (!(unitIndex === 1 && digit === 1 && i === 0)) {
|
|
|
|
|
- result += digits[digit];
|
|
|
|
|
- }
|
|
|
|
|
- result += units[unitIndex];
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- result += '元';
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- const jiao = parseInt(decimalStr[0]);
|
|
|
|
|
- const fen = parseInt(decimalStr[1]);
|
|
|
|
|
- if (jiao === 0 && fen === 0) {
|
|
|
|
|
- result += '整';
|
|
|
|
|
- } else {
|
|
|
|
|
- if (jiao !== 0) result += digits[jiao] + decimalUnits[0];
|
|
|
|
|
- if (fen !== 0) result += digits[fen] + decimalUnits[1];
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- return result;
|
|
|
|
|
- },
|
|
|
|
|
async open(id) {
|
|
async open(id) {
|
|
|
this.formData = await getReceiveSaleOrderrecordDetail(id);
|
|
this.formData = await getReceiveSaleOrderrecordDetail(id);
|
|
|
this.QRvisible = true;
|
|
this.QRvisible = true;
|