fix: code format
parent
e6f76c097d
commit
44eebda749
|
|
@ -1,6 +1,4 @@
|
|||
<script lang="ts" setup>
|
||||
import type { EChartsOption } from 'echarts';
|
||||
|
||||
import type { EchartsUIType } from '@vben/plugins/echarts';
|
||||
|
||||
import type { ErpPurchaseStatisticsApi } from '#/api/erp/statistics/purchase';
|
||||
|
|
@ -51,7 +49,7 @@ const chartRef = ref<EchartsUIType>();
|
|||
const { renderEcharts } = useEcharts(chartRef);
|
||||
|
||||
/** 折线图配置 */
|
||||
const lineChartOptions: EChartsOption = {
|
||||
const lineChartOptions: echarts.EChartsOption = {
|
||||
grid: {
|
||||
left: 20,
|
||||
right: 20,
|
||||
|
|
@ -138,7 +136,7 @@ watch(
|
|||
},
|
||||
series: [
|
||||
{
|
||||
...lineChartOptions.series![0],
|
||||
...(lineChartOptions.series as any)[0],
|
||||
data: seriesData,
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,17 +1,21 @@
|
|||
<script lang="ts" setup>
|
||||
import type {ErpPurchaseOrderApi} from '#/api/erp/purchase/order';
|
||||
import type {ErpPurchaseReturnApi} from '#/api/erp/purchase/return';
|
||||
import {createPurchaseReturn, getPurchaseReturn, updatePurchaseReturn} from '#/api/erp/purchase/return';
|
||||
import type { ErpPurchaseOrderApi } from '#/api/erp/purchase/order';
|
||||
import type { ErpPurchaseReturnApi } from '#/api/erp/purchase/return';
|
||||
|
||||
import {computed, nextTick, ref, watch} from 'vue';
|
||||
import { computed, nextTick, ref, watch } from 'vue';
|
||||
|
||||
import {useVbenModal} from '@vben/common-ui';
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
|
||||
import {message} from 'ant-design-vue';
|
||||
import { message } from 'ant-design-vue';
|
||||
|
||||
import {useVbenForm} from '#/adapter/form';
|
||||
import { useVbenForm } from '#/adapter/form';
|
||||
import {
|
||||
createPurchaseReturn,
|
||||
getPurchaseReturn,
|
||||
updatePurchaseReturn,
|
||||
} from '#/api/erp/purchase/return';
|
||||
|
||||
import {useFormSchema} from '../data';
|
||||
import { useFormSchema } from '../data';
|
||||
import PurchaseReturnItemForm from './purchase-return-item-form.vue';
|
||||
import SelectPurchaseOrderForm from './select-purchase-order-form.vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,17 +1,21 @@
|
|||
<script lang="ts" setup>
|
||||
import type {ErpSaleOrderApi} from '#/api/erp/sale/order';
|
||||
import type {ErpSaleReturnApi} from '#/api/erp/sale/return';
|
||||
import {createSaleReturn, getSaleReturn, updateSaleReturn} from '#/api/erp/sale/return';
|
||||
import type { ErpSaleOrderApi } from '#/api/erp/sale/order';
|
||||
import type { ErpSaleReturnApi } from '#/api/erp/sale/return';
|
||||
|
||||
import {computed, nextTick, ref, watch} from 'vue';
|
||||
import { computed, nextTick, ref, watch } from 'vue';
|
||||
|
||||
import {useVbenModal} from '@vben/common-ui';
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
|
||||
import {message} from 'ant-design-vue';
|
||||
import { message } from 'ant-design-vue';
|
||||
|
||||
import {useVbenForm} from '#/adapter/form';
|
||||
import { useVbenForm } from '#/adapter/form';
|
||||
import {
|
||||
createSaleReturn,
|
||||
getSaleReturn,
|
||||
updateSaleReturn,
|
||||
} from '#/api/erp/sale/return';
|
||||
|
||||
import {useFormSchema} from '../data';
|
||||
import { useFormSchema } from '../data';
|
||||
import SaleReturnItemForm from './sale-return-item-form.vue';
|
||||
import SelectSaleOrderForm from './select-sale-order-form.vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -195,10 +195,9 @@ const [Grid] = useVbenVxeGrid({
|
|||
</ElTag>
|
||||
</div>
|
||||
<div class="order-item-info">
|
||||
<span>原价:{{ fenToYuan(item.price) }} 元 / 数量:{{
|
||||
item.count
|
||||
}}
|
||||
个</span>
|
||||
<span>
|
||||
原价:{{ fenToYuan(item.price) }} 元 / 数量:{{ item.count }} 个
|
||||
</span>
|
||||
<DictTag
|
||||
:type="DICT_TYPE.TRADE_ORDER_ITEM_AFTER_SALE_STATUS"
|
||||
:value="item.afterSaleStatus"
|
||||
|
|
|
|||
Loading…
Reference in New Issue