|
@@ -527,11 +527,12 @@
|
|
|
>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width="120px" label="合计金额(大写)">
|
|
|
- <el-input
|
|
|
+ <!-- <el-input
|
|
|
v-model="formData.saleAmountInWords"
|
|
|
size="small"
|
|
|
clearable
|
|
|
- ></el-input>
|
|
|
+ ></el-input> -->
|
|
|
+ {{ formData.saleAmountInWords }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -786,12 +787,14 @@ import OutBound from "@/views/orderMange/components/dialogForm/OutBound.vue";
|
|
|
import outBoundPrint from "@/utils/print/outBoundPrint";
|
|
|
import { listCustomer } from "@/api/system/customer";
|
|
|
import OutStock from "@/views/orderMange/components/dialogForm/OutStock.vue";
|
|
|
+import { numToCapital } from "@/utils/other";
|
|
|
export default {
|
|
|
name: "listInfo",
|
|
|
dicts: ["payment_method", "direction_of_twist"],
|
|
|
components: { Queryfrom, Menu, DialogTemplate, Deliver, OutBound, OutStock },
|
|
|
data() {
|
|
|
return {
|
|
|
+ totalMoney: "", //总金额 小写
|
|
|
outStockShow: false, //出库详情
|
|
|
selection: [], //勾选的数据
|
|
|
// 出库单 start
|
|
@@ -1038,7 +1041,20 @@ export default {
|
|
|
// 得到当前展示的table的唯一标识
|
|
|
this.tableKey = this.$route.query.tableKey;
|
|
|
},
|
|
|
- watch: {},
|
|
|
+ watch: {
|
|
|
+ totalMoney: {
|
|
|
+ handler(newVal, oldVal) {
|
|
|
+ if (isNaN(Number(newVal))) {
|
|
|
+ this.formData.saleAmountInWords = "零";
|
|
|
+ } else {
|
|
|
+ const ntc = new numToCapital();
|
|
|
+ this.formData.saleAmountInWords = ntc.uppercase(newVal);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ deep: true,
|
|
|
+ immediate: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
async mounted() {
|
|
|
await this.getDropDownData();
|
|
|
},
|
|
@@ -1194,7 +1210,9 @@ export default {
|
|
|
return prev;
|
|
|
}
|
|
|
}, 0);
|
|
|
- sums[index];
|
|
|
+ if (index == 4) {
|
|
|
+ this.totalMoney = sums[index];
|
|
|
+ }
|
|
|
} else {
|
|
|
sums[index] = "N/A";
|
|
|
}
|