chenrui 4 lat temu
rodzic
commit
304514b5e5

+ 7 - 0
src/api/receiving.js

@@ -19,6 +19,13 @@ export const receivingCount = (params) => {
     method: 'post'
     method: 'post'
   })
   })
 }
 }
+//  入库 详情
+export const receivingDetailSn = (params) => {
+  return axios({
+    url: `/receiving/findBySn/${params.sn}`,
+    method: 'get'
+  })
+}
 //  入库 入库
 //  入库 入库
 export const receivingStockIn = (params) => {
 export const receivingStockIn = (params) => {
   return axios({
   return axios({

+ 17 - 18
src/views/financialManagement/warehousingAudit/detail.vue

@@ -4,7 +4,7 @@
       <!-- 自定义的二级文字标题 -->
       <!-- 自定义的二级文字标题 -->
       <template slot="subTitle">
       <template slot="subTitle">
         <a id="warehousingAuditDetail-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
         <a id="warehousingAuditDetail-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
-        <p style=" display: inline-block;margin: 0 0 0 60px;color: #000;font-size: 16px;font-weight: 600;">单号:{{ (basicInfoData&&basicInfoData.sparePartsPurchaseNo) || '--' }}</p>
+        <p style=" display: inline-block;margin: 0 0 0 60px;color: #000;font-size: 16px;font-weight: 600;">单号:{{ (basicInfoData&&basicInfoData.receivingBillNo) || '--' }}</p>
       </template>
       </template>
       <!-- 操作区,位于 title 行的行尾 -->
       <!-- 操作区,位于 title 行的行尾 -->
       <template slot="extra">
       <template slot="extra">
@@ -17,17 +17,17 @@
       <a-collapse :activeKey="['1']">
       <a-collapse :activeKey="['1']">
         <a-collapse-panel key="1" header="基础信息">
         <a-collapse-panel key="1" header="基础信息">
           <a-descriptions :column="3">
           <a-descriptions :column="3">
-            <a-descriptions-item label="供应商">箭冠营销中心</a-descriptions-item>
-            <a-descriptions-item label="入库时间">箭冠营销中心</a-descriptions-item>
-            <a-descriptions-item label="采购单号">箭冠营销中心</a-descriptions-item>
+            <a-descriptions-item label="供应商">{{ basicInfoData&&basicInfoData.dealerName ? basicInfoData.dealerName : '--' }}</a-descriptions-item>
+            <a-descriptions-item label="入库时间">{{ basicInfoData&&basicInfoData.stockPutTime ? basicInfoData.stockPutTime : '--' }}</a-descriptions-item>
+            <a-descriptions-item label="采购单号">{{ basicInfoData&&basicInfoData.purchaseBillNo ? basicInfoData.purchaseBillNo : '--' }}</a-descriptions-item>
           </a-descriptions>
           </a-descriptions>
           <a-descriptions :column="3" bordered>
           <a-descriptions :column="3" bordered>
-            <a-descriptions-item label="采购总款数">2</a-descriptions-item>
-            <a-descriptions-item label="采购总数量">20</a-descriptions-item>
-            <a-descriptions-item label="采购总成本">¥120.36</a-descriptions-item>
-            <a-descriptions-item label="入库总款数">{{ (bizInfo&&bizInfo.productTotalCategory!=0) ? bizInfo.productTotalCategory : 0 }}</a-descriptions-item>
-            <a-descriptions-item label="入库总数量">{{ (bizInfo&&bizInfo.productTotalQty!=0) ? bizInfo.productTotalQty : 0 }}</a-descriptions-item>
-            <a-descriptions-item label="入库总成本">¥{{ (bizInfo&&bizInfo.productTotalCost!=0) ? bizInfo.productTotalCost : 0 }}</a-descriptions-item>
+            <a-descriptions-item label="采购总款数">{{ (basicInfoData&&basicInfoData.totalQty!=0) ? basicInfoData.totalQty : 0 }}</a-descriptions-item>
+            <a-descriptions-item label="采购总数量">{{ (basicInfoData&&basicInfoData.totalQty!=0) ? basicInfoData.totalQty : 0 }}</a-descriptions-item>
+            <a-descriptions-item label="采购总成本">¥{{ (basicInfoData&&basicInfoData.totalAmount!=0) ? basicInfoData.totalAmount : 0 }}</a-descriptions-item>
+            <a-descriptions-item label="入库总款数">{{ (basicInfoData&&basicInfoData.totalQty!=0) ? basicInfoData.totalQty : 0 }}</a-descriptions-item>
+            <a-descriptions-item label="入库总数量">{{ (basicInfoData&&basicInfoData.totalQty!=0) ? basicInfoData.totalQty : 0 }}</a-descriptions-item>
+            <a-descriptions-item label="入库总成本">¥{{ (basicInfoData&&basicInfoData.totalPutAmount!=0) ? basicInfoData.totalPutAmount : 0 }}</a-descriptions-item>
           </a-descriptions>
           </a-descriptions>
         </a-collapse-panel>
         </a-collapse-panel>
       </a-collapse>
       </a-collapse>
@@ -56,7 +56,7 @@
 <script>
 <script>
 import { getOperationalPrecision } from '@/libs/tools.js'
 import { getOperationalPrecision } from '@/libs/tools.js'
 import { STable, VSelect } from '@/components'
 import { STable, VSelect } from '@/components'
-import { receivingDetailList } from '@/api/receiving'
+import { receivingDetailList, receivingDetailSn } from '@/api/receiving'
 export default {
 export default {
   components: { STable, VSelect },
   components: { STable, VSelect },
   data () {
   data () {
@@ -90,8 +90,7 @@ export default {
           return data
           return data
         })
         })
       },
       },
-      basicInfoData: null, //  基本信息
-      bizInfo: null
+      basicInfoData: null //  基本信息
     }
     }
   },
   },
   methods: {
   methods: {
@@ -99,19 +98,19 @@ export default {
     handleBack () {
     handleBack () {
       this.$router.push({ path: '/financialManagement/warehousingAudit/list' })
       this.$router.push({ path: '/financialManagement/warehousingAudit/list' })
     },
     },
-    getBizInfoDetail () {
-      stockPutBizInfo({ putBizSn: this.$route.params.sn, putBizType: this.$route.params.type }).then(res => {
+    getDetail () {
+      receivingDetailSn({ sn: this.$route.params.sn }).then(res => {
         if (res.status == 200) {
         if (res.status == 200) {
-          this.bizInfo = res.data
+          this.basicInfoData = res.data
         } else {
         } else {
-          this.bizInfo = null
+          this.basicInfoData = null
         }
         }
       })
       })
     }
     }
   },
   },
   beforeRouteEnter (to, from, next) {
   beforeRouteEnter (to, from, next) {
     next(vm => {
     next(vm => {
-      vm.getBizInfoDetail()
+      vm.getDetail()
     })
     })
   }
   }
 }
 }

+ 2 - 1
src/views/financialManagement/warehousingAudit/list.vue

@@ -53,7 +53,7 @@
     </div>
     </div>
     <!-- alert -->
     <!-- alert -->
     <a-alert type="info" showIcon style="margin-bottom:15px">
     <a-alert type="info" showIcon style="margin-bottom:15px">
-      <div slot="message">共 <strong>6</strong> 条记录,其中待审核 <strong>14</strong> 条 </div>
+      <div slot="message">共 <strong>{{ (productTotal&&productTotal.totalRecord) || 0 }}</strong> 条记录,其中待审核 <strong>{{ (productTotal&&productTotal.waitAuditRecord) || 0 }}</strong> 条 </div>
     </a-alert>
     </a-alert>
     <!-- 列表 -->
     <!-- 列表 -->
     <s-table
     <s-table
@@ -150,6 +150,7 @@ export default {
             data.list[i].no = no + i + 1
             data.list[i].no = no + i + 1
           }
           }
           this.disabled = false
           this.disabled = false
+          this.getTotal(params)
           return data
           return data
         })
         })
       }
       }