From 025dafb9892a8ff8f8a855343660f837a0f231d3 Mon Sep 17 00:00:00 2001 From: haoyahui <2032914783@qq.com> Date: 星期一, 20 十一月 2023 16:31:11 +0800 Subject: [PATCH] 库存管理前端 --- admin-web/src/views/stock/accessStock/outbound/detail.vue | 36 +++++++++++++++++++++--------------- 1 files changed, 21 insertions(+), 15 deletions(-) diff --git a/admin-web/src/views/stock/accessStock/outbound/detail.vue b/admin-web/src/views/stock/accessStock/outbound/detail.vue index c973e30..0cd965a 100644 --- a/admin-web/src/views/stock/accessStock/outbound/detail.vue +++ b/admin-web/src/views/stock/accessStock/outbound/detail.vue @@ -1,5 +1,5 @@ <template> - <win-md class="stock-detail" :title="setting.title" @close="close" :width="'800px'"> + <win-md class="stock-detail" :title="setting.title" @close="close" :width="'800px'" :loading="loading"> <el-row :gutter="20"> <el-col :span="8"> <span>鍑哄簱鍗曞彿锛�</span> @@ -17,28 +17,28 @@ <el-row :gutter="20" style="margin-top: 20px"> <el-col :span="8"> <span>鍒涘缓浜猴細</span> - <span>{{ detail.buyerName }}</span> + <span>{{ detail.operatorName }}</span> </el-col> <el-col :span="8"> <span>鍑哄簱鏃堕棿锛�</span> - <span>{{ detail.incomeTime | formatTime }}</span> + <span>{{ detail.dealTime | formatTime }}</span> </el-col> </el-row> - <el-row :gutter="20" style="margin-top: 20px"> + <el-row v-if="detail.procureDoc" :gutter="20" style="margin-top: 20px"> <el-col class="img-row" :span="24"> <span>鍑哄簱鎵嬬画锛�</span> <div class="img-box"></div> </el-col> </el-row> - <div class="goods-card" v-for="(goodsItem, goodsIndex) in detail.procureGoods" :key="goodsIndex"> + <div class="goods-card" v-for="(goodsItem, goodsIndex) in detail.fromOutputGoods" :key="goodsIndex"> <el-row :gutter="20"> <el-col :span="8"> <span>鐗╁搧鍒嗙被锛�</span> - <span>{{ goodsItem.baseCategoryName }}</span> + <span>{{ goodsItem.categoryName }}</span> </el-col> <el-col :span="8"> <span>鐗╁搧鍚嶇О锛�</span> - <span>{{ goodsItem.goodsTemplateName }}</span> + <span>{{ goodsItem.goodsName }}</span> </el-col> </el-row> <el-table :data="goodsItem.models" :stripe="true" style="margin-top: 20px"> @@ -59,7 +59,7 @@ </el-table-column> <el-table-column prop="counts" label="閲戦" align="center"> <template slot-scope="scope"> - {{ (scope.row.price * scope.row.counts).toFixed(2) }} + {{ scope.row.price * scope.row.counts | formatPrice}} </template> </el-table-column> </el-table> @@ -67,7 +67,7 @@ </win-md> </template> <script> -import { procureDetail } from '@/api/stock/procure/purchaseOrder'; +import { outputDetail } from '@/api/stock/accessStock'; import winMd from '@/components/win/win-md'; import * as DateFormatter from '@/utils/DateFormatter'; @@ -82,16 +82,16 @@ }, data() { return { + loading:true, detail: { - baseCategoryName: '', + categoryName: '', businessFormCode: '', - goodsTemplateName: '', + goodsName: '', agencyId: '', agencyName: '', states: '', createName: '', - time: '', - procureGoods: [{}, {}], + fromOutputGoods: [], }, }; }, @@ -100,14 +100,20 @@ if (!time) return; return DateFormatter.LongToDateTime(time); }, + formatPrice(price) { + return price / 100 + } }, created() { - procureDetail({ id: this.setting.id }).then((res) => { + outputDetail({ id: this.setting.id }).then((res) => { this.detail = res; + this.loading = false }); }, methods: { - close() {}, + close() { + this.$emit('close') + }, }, }; </script> -- Gitblit v1.9.1