Browse Source

企业台账字典翻译

CzRger 9 months ago
parent
commit
8d3ad87cee
1 changed files with 23 additions and 3 deletions
  1. 23 3
      snowy-admin-web/src/views/yqyc/zero/enterprise-ledger/detail.vue

+ 23 - 3
snowy-admin-web/src/views/yqyc/zero/enterprise-ledger/detail.vue

@@ -154,7 +154,7 @@
 						</a-col>
 						<a-col :span="8">
 							<a-form-item label="币制:" name="currency">
-								<a-input v-model:value="bodyData.currency" :disabled="isView" placeholder="请输入币制" allow-clear />
+								<a-select v-model:value="bodyData.currency" :disabled="isView" placeholder="请选择币制" :options="currencyOptions" show-search allow-clear option-filter-prop="label" />
 							</a-form-item>
 						</a-col>
 						<a-col :span="8">
@@ -184,12 +184,12 @@
 						</a-col>
 						<a-col :span="8">
 							<a-form-item label="毛重(KG):" name="grossWeight">
-								<a-input v-model:value="bodyData.grossWeight" :disabled="isView" placeholder="请输入毛重(KG)" allow-clear />
+								<a-input-number v-model:value="bodyData.grossWeight" :disabled="isView" :min="0" style="width: 100%;" placeholder="请输入毛重(KG)" />
 							</a-form-item>
 						</a-col>
 						<a-col :span="8">
 							<a-form-item label="净重(KG):" name="netWeight">
-								<a-input v-model:value="bodyData.netWeight" :disabled="isView" placeholder="请输入净重(KG)" allow-clear />
+								<a-input v-model:value="bodyData.netWeight" :disabled="isView" :min="0" style="width: 100%;" placeholder="请输入净重(KG)" />
 							</a-form-item>
 						</a-col>
 						<a-col :span="8">
@@ -287,6 +287,24 @@
 					:row-selection="bodyOptions.rowSelection"
 				>
 					<template #bodyCell="{ column, record, index }">
+						<template v-if="column.dataIndex === 'recordUnit'">
+							{{ $TOOL.dictTypeData('measurement unit', record.recordUnit) }}
+						</template>
+						<template v-if="column.dataIndex === 'declareUnit'">
+							{{ $TOOL.dictTypeData('measurement unit', record.declareUnit) }}
+						</template>
+						<template v-if="column.dataIndex === 'legalUnit'">
+							{{ $TOOL.dictTypeData('measurement unit', record.legalUnit) }}
+						</template>
+						<template v-if="column.dataIndex === 'legalSecondUnit'">
+							{{ $TOOL.dictTypeData('measurement unit', record.legalSecondUnit) }}
+						</template>
+						<template v-if="column.dataIndex === 'originCountry'">
+							{{ $TOOL.dictTypeData('address', record.originCountry) }}
+						</template>
+						<template v-if="column.dataIndex === 'currency'">
+							{{ $TOOL.dictTypeData('hbdm', record.currency) }}
+						</template>
 						<template v-if="column.dataIndex === 'action'">
 							<template v-if="isView">
 								<a-button type="link" primary size="small" @click="onBodyReset(), bodyData = cloneDeep(record)">查看</a-button>
@@ -381,6 +399,7 @@ const bodyList = ref([])
 const userInfo = tool.data.get('USER_INFO')
 const legalUnitOptions = ref([])
 const originCountryOptions = ref([])
+const currencyOptions = ref([])
 
 // 列表选择配置
 const bodyOptions = {
@@ -427,6 +446,7 @@ const onOpen = (record, view = false, type) => {
 	companyTypeOptions.value = tool.dictList('qylx')
 	legalUnitOptions.value = tool.dictList('measurement unit')
 	originCountryOptions.value = tool.dictList('address')
+	currencyOptions.value = tool.dictList('hbdm')
 
 }
 // 关闭抽屉