shish 3 жил өмнө
parent
commit
dc671649f3

+ 2 - 19
pt/src/views/item-cat-relate/list.vue

@@ -16,7 +16,8 @@
 			</template>
 
 			<template #table-column-unit="{scope}">
-				<span>{{ scope.row.bigUnit }} / {{scope.row.smallUnit}}</span>
+				<span v-if="scope.row.ratioType == 0">{{ scope.row.ratio }}{{scope.row.smallUnit}}/{{ scope.row.bigUnit }}</span>
+				<span v-else>若干{{scope.row.smallUnit}}/{{ scope.row.bigUnit }}</span>
 			</template>
 
 			<template #table-column-inTurn="{ scope }">
@@ -97,18 +98,6 @@ export default {
 							align: 'center',
 							'min-width': 100,
 						},
-						{
-							prop: 'cost',
-							label: '成本价',
-							align: 'center',
-							'min-width': 100,
-						},
-						{
-							prop: 'addPrice',
-							label: '加价',
-							align: 'center',
-							'min-width': 100,
-						},
 						{
 							prop: 'weight',
 							label: '重量(公斤)',
@@ -121,12 +110,6 @@ export default {
 							align: 'center',
 							minWidth: 100,
 						},
-						{
-							prop: 'ratio',
-							label: '单位比',
-							align: 'center',
-							minWidth: 60,
-						},
 						{
 							prop: 'inTurn',
 							label: '排序',

+ 2 - 1
pt/src/views/item/list.vue

@@ -32,7 +32,8 @@
 			</template>
 
 			<template #table-column-unit="{scope}">
-				<span>{{ scope.row.ratio }}{{ scope.row.bigUnit }}/{{scope.row.smallUnit}}</span>
+				<span v-if="scope.row.ratioType == 0">{{ scope.row.ratio }}{{scope.row.smallUnit}}/{{ scope.row.bigUnit }}</span>
+				<span v-else>若干{{scope.row.smallUnit}}/{{ scope.row.bigUnit }}</span>
 			</template>
 
 			<template #table-column-inTurn="{ scope }">