|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
<script setup lang="ts">
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { iskFormat } from '@/utils';
|
|
|
|
import { iskFormater } from '@/utils';
|
|
|
|
import { ref } from 'vue';
|
|
|
|
import { ref } from 'vue';
|
|
|
|
import ReprocessInput from './ReprocessInput.vue';
|
|
|
|
import ReprocessInput from './ReprocessInput.vue';
|
|
|
|
import { ReprocessItemValues, reprocess } from './reprocess';
|
|
|
|
import { ReprocessItemValues, reprocess } from './reprocess';
|
|
|
|
@@ -33,19 +33,19 @@ const send = async () => result.value = await reprocess(items.value, minerals.va
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<th class="border bg-slate-200">Item</th>
|
|
|
|
<th class="border bg-slate-200">Item</th>
|
|
|
|
<th class="border bg-slate-200">buy</th>
|
|
|
|
<th class="border bg-slate-200">Buy</th>
|
|
|
|
<th class="border bg-slate-200">buy reprocess</th>
|
|
|
|
<th class="border bg-slate-200">Buy reprocess</th>
|
|
|
|
<th class="border bg-slate-200">sell</th>
|
|
|
|
<th class="border bg-slate-200">Sell</th>
|
|
|
|
<th class="border bg-slate-200">sell reprocess</th>
|
|
|
|
<th class="border bg-slate-200">Sell reprocess</th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
|
<tr v-for="r in result" :key="r.typeID" :class="{'bg-green-200': r.buy_reprocess >= r.sell}">
|
|
|
|
<tr v-for="r in result" :key="r.typeID" :class="{'bg-green-200': r.buy_reprocess >= r.sell}">
|
|
|
|
<td class="border px-1">{{ r.typeID }}</td>
|
|
|
|
<td class="border px-1">{{ r.typeID }}</td>
|
|
|
|
<td class="border text-right px-1">{{ iskFormat(r.buy) }}</td>
|
|
|
|
<td class="border text-right px-1">{{ iskFormater.format(r.buy) }}</td>
|
|
|
|
<td class="border text-right px-1">{{ iskFormat(r.buy_reprocess) }}</td>
|
|
|
|
<td class="border text-right px-1">{{ iskFormater.format(r.buy_reprocess) }}</td>
|
|
|
|
<td class="border text-right px-1">{{ iskFormat(r.sell) }}</td>
|
|
|
|
<td class="border text-right px-1">{{ iskFormater.format(r.sell) }}</td>
|
|
|
|
<td class="border text-right px-1">{{ iskFormat(r.sell_reprocess) }}</td>
|
|
|
|
<td class="border text-right px-1">{{ iskFormater.format(r.sell_reprocess) }}</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
|