|
|
|
|
@ -175,6 +175,7 @@ const statusOptions = computed(() => getIntDictOptions(DICT_TYPE.ERP_MOLD_STATUS
|
|
|
|
|
const counters = reactive({
|
|
|
|
|
allCount: 0,
|
|
|
|
|
onMachineCount: 0,
|
|
|
|
|
inStockCount: 0,
|
|
|
|
|
standbyCount: 0,
|
|
|
|
|
repairingCount: 0,
|
|
|
|
|
scrappedCount: 0
|
|
|
|
|
@ -216,6 +217,7 @@ const onKeywordClear = () => {
|
|
|
|
|
const statusCards = computed(() => [
|
|
|
|
|
{ key: 'all', label: t('MoldManagement.MoldBrandPage.all'), value: counters.allCount, status: undefined },
|
|
|
|
|
{ key: 'onMachine', label: t('MoldManagement.MoldBrandPage.onMachine'), value: counters.onMachineCount, status: 1 },
|
|
|
|
|
{ key: 'inStock', label: t('MoldManagement.MoldBrandPage.inStock'), value: counters.inStockCount, status: 4 },
|
|
|
|
|
{ key: 'standby', label: t('MoldManagement.MoldBrandPage.standby'), value: counters.standbyCount, status: 0 },
|
|
|
|
|
{ key: 'repairing', label: t('MoldManagement.MoldBrandPage.repairing'), value: counters.repairingCount, status: 2 },
|
|
|
|
|
{ key: 'scrapped', label: t('MoldManagement.MoldBrandPage.scrapped'), value: counters.scrappedCount, status: 3 }
|
|
|
|
|
@ -235,6 +237,7 @@ const normalizePageResult = (data: any) => {
|
|
|
|
|
total.value = pageResult.total ?? 0
|
|
|
|
|
counters.allCount = Number(data?.allCount ?? pageResult.total ?? 0)
|
|
|
|
|
counters.onMachineCount = Number(data?.onMachineCount ?? 0)
|
|
|
|
|
counters.inStockCount = Number(data?.inStockCount ?? 0)
|
|
|
|
|
counters.standbyCount = Number(data?.standbyCount ?? 0)
|
|
|
|
|
counters.repairingCount = Number(data?.repairingCount ?? 0)
|
|
|
|
|
counters.scrappedCount = Number(data?.scrappedCount ?? 0)
|
|
|
|
|
@ -398,7 +401,7 @@ onMounted(async () => {
|
|
|
|
|
<style scoped>
|
|
|
|
|
.mold-brand-page__header {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(5, 10vw);
|
|
|
|
|
grid-template-columns: repeat(6, 10vw);
|
|
|
|
|
gap: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|