Jelajahi Sumber

Merge branch 'deploy' of http://git.chelingzhu.com/jianguan-web/qpls-md-html into deploy

lilei 4 tahun lalu
induk
melakukan
21cec60b22

+ 55 - 0
src/api/receiving.js

@@ -0,0 +1,55 @@
+import { axios } from '@/utils/request'
+
+//  入库 列表  有分页
+export const receivingList = (params) => {
+  const url = `/receiving/queryPage/${params.pageNo}/${params.pageSize}`
+  delete params.pageNo
+  delete params.pageSize
+  return axios({
+    url: url,
+    data: params,
+    method: 'post'
+  })
+}
+//  入库 列表  合计
+export const receivingCount = (params) => {
+  return axios({
+    url: '/receiving/queryCount',
+    data: params,
+    method: 'post'
+  })
+}
+//  入库 详情
+export const receivingDetailSn = (params) => {
+  return axios({
+    url: `/receiving/findBySn/${params.sn}`,
+    method: 'get'
+  })
+}
+//  入库 入库
+export const receivingStockIn = (params) => {
+  return axios({
+    url: '/receiving/stockIn',
+    data: params,
+    method: 'post'
+  })
+}
+//  入库 入库审核
+export const receivingStockInAudit = (params) => {
+  return axios({
+    url: '/receiving/stockInAudit',
+    data: params,
+    method: 'post'
+  })
+}
+//  入库 详情  有分页
+export const receivingDetailList = (params) => {
+  const url = `/receivingDetail/queryPage/${params.pageNo}/${params.pageSize}`
+  delete params.pageNo
+  delete params.pageSize
+  return axios({
+    url: url,
+    data: params,
+    method: 'post'
+  })
+}

+ 2 - 2
src/config/router.config.js

@@ -1284,7 +1284,7 @@ export const asyncRouterMap = [
                 }
               },
               {
-                path: 'detail/:sn/:type',
+                path: 'detail/:sn',
                 name: 'warehousingAuditDetail',
                 component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/detail.vue'),
                 meta: {
@@ -1498,7 +1498,7 @@ export const asyncRouterMap = [
                 }
               },
               {
-                path: 'detail/:id',
+                path: 'detail/:id/:sn',
                 name: 'companyCollectionPaymentDetail',
                 component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/detail.vue'),
                 meta: {

+ 9 - 8
src/views/financialManagement/companyCollectionPayment/detail.vue

@@ -36,16 +36,17 @@
         <a-collapse-panel key="1" header="收款明细">
           <!-- alert -->
           <a-alert type="info" showIcon style="margin-bottom:15px">
-            <div slot="message">共 <strong>{{ total }}</strong> 条明细,金额合计 <strong>¥{{ (basicInfoData&&basicInfoData.totalAmount) || 0 }}</strong> ,结算金额合计 <strong>¥{{ (basicInfoData&&basicInfoData.realSettleAmount) || 0 }}</strong> </div>
+            <div slot="message">共 <strong>{{ total }}</strong> 条明细,金额合计 <strong>¥{{ (basicInfoData&&basicInfoData.totalSettleAmount) || 0 }}</strong> ,结算金额合计 <strong>¥{{ (basicInfoData&&basicInfoData.realSettleAmount) || 0 }}</strong> </div>
           </a-alert>
           <!-- 列表 -->
           <s-table
             class="sTable"
             ref="table"
-            size="default"
+            size="small"
             :rowKey="(record) => record.id"
             :columns="columns"
             :data="loadData"
+            :scroll="{ x: 640 }"
             bordered>
           </s-table>
         </a-collapse-panel>
@@ -63,16 +64,16 @@ export default {
     return {
       // 表头
       columns: [
-        { title: '序号', dataIndex: 'no', align: 'center' },
-        { title: '单据号', dataIndex: 'bizNo', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '类型', dataIndex: 'bizTypeDictValue', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '金额', dataIndex: 'totalAmount', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '结算金额', dataIndex: 'settleAmount', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
+        { title: '序号', dataIndex: 'no', align: 'center', width: 80 },
+        { title: '单据号', dataIndex: 'bizNo', align: 'center', width: 220, customRender: function (text) { return text || '--' } },
+        { title: '类型', dataIndex: 'bizTypeDictValue', align: 'center', width: 140, customRender: function (text) { return text || '--' } },
+        { title: '金额', dataIndex: 'totalAmount', align: 'center', width: 100, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '结算金额', dataIndex: 'settleAmount', align: 'center', width: 100, customRender: function (text) { return ((text || text == 0) ? text : '--') } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
         this.disabled = true
-        return settleUnitDetailList(Object.assign(parameter, this.queryParam)).then(res => {
+        return settleUnitDetailList(Object.assign(parameter, { unitSettleSn: this.$route.params.sn })).then(res => {
           const data = res.data
           const no = (data.pageNo - 1) * data.pageSize
           for (var i = 0; i < data.list.length; i++) {

+ 2 - 2
src/views/financialManagement/companyCollectionPayment/list.vue

@@ -120,7 +120,7 @@ export default {
         { title: '单位类型', dataIndex: 'settleClientTypeDictValue', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '结算类型', dataIndex: 'settleTypeDictValue', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '结算单号', scopedSlots: { customRender: 'unitSettleNo' }, width: 220, align: 'center' },
-        { title: '结算金额', dataIndex: 'settleAmount', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '结算金额', dataIndex: 'realSettleAmount', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '结算时间', dataIndex: 'createDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '操作人', dataIndex: 'operateName', width: 140, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '结算方式', dataIndex: 'settleStyleName', width: 140, align: 'center', customRender: function (text) { return text || '--' } }
@@ -163,7 +163,7 @@ export default {
     },
     //  详情
     handleDetail (row) {
-      this.$router.push({ path: `/financialManagement/companyCollectionPayment/detail/${row.id}` })
+      this.$router.push({ path: `/financialManagement/companyCollectionPayment/detail/${row.id}/${row.unitSettleSn}` })
     },
     // 合计
     getTotal (param) {

+ 6 - 5
src/views/financialManagement/companyReceivablePayable/detail.vue

@@ -57,10 +57,11 @@
       <s-table
         class="sTable"
         ref="table"
-        size="default"
+        size="small"
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
+        :scroll="{ x: 800 }"
         bordered>
         <!-- 采购数量 -->
         <template slot="purchaseNum" slot-scope="text, record">
@@ -94,11 +95,11 @@ export default {
       // 表头
       columns: [
         { title: '序号', dataIndex: 'no', width: 80, align: 'center' },
-        { title: '单据号', dataIndex: 'bizNo', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '类型', dataIndex: 'bizTypeDictValue', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '单据号', dataIndex: 'bizNo', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '类型', dataIndex: 'bizTypeDictValue', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '审核时间', dataIndex: 'auditTime', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '金额', dataIndex: 'totalAmount', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '余额', dataIndex: 'unsettleAmount', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
+        { title: '金额', dataIndex: 'totalAmount', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '余额', dataIndex: 'unsettleAmount', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 34 - 62
src/views/financialManagement/warehousingAudit/detail.vue

@@ -4,7 +4,7 @@
       <!-- 自定义的二级文字标题 -->
       <template slot="subTitle">
         <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>
       <!-- 操作区,位于 title 行的行尾 -->
       <template slot="extra">
@@ -17,17 +17,17 @@
       <a-collapse :activeKey="['1']">
         <a-collapse-panel key="1" header="基础信息">
           <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 :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-collapse-panel>
       </a-collapse>
@@ -40,11 +40,11 @@
           <s-table
             class="sTable"
             ref="table"
-            size="default"
+            size="small"
             :rowKey="(record) => record.id"
             :columns="columns"
             :data="loadData"
-            :scroll="{ x: 1290 }"
+            :scroll="{ x: 1520 }"
             bordered>
           </s-table>
         </a-collapse-panel>
@@ -56,7 +56,7 @@
 <script>
 import { getOperationalPrecision } from '@/libs/tools.js'
 import { STable, VSelect } from '@/components'
-import { stockPutBizInfo } from '@/api/stockPut'
+import { receivingDetailList, receivingDetailSn } from '@/api/receiving'
 export default {
   components: { STable, VSelect },
   data () {
@@ -64,61 +64,33 @@ export default {
       // 表头
       columns: [
         { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '产品编码', dataIndex: 'productCode', width: 160, align: 'center' },
-        { title: '产品名称', dataIndex: 'productName', align: 'center', ellipsis: true },
-        { title: '原厂编码', dataIndex: 'productOrigCode', width: 200, align: 'center' },
+        { title: '产品编码', dataIndex: 'dealerProductEntity.code', width: 220, align: 'center' },
+        { title: '产品名称', dataIndex: 'dealerProductEntity.name', align: 'center', ellipsis: true },
+        { title: '原厂编码', dataIndex: 'dealerProductEntity.origCode', width: 220, align: 'center' },
         { title: '采购数量', dataIndex: 'qty', width: 110, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '入库数量', dataIndex: 'qtsy', width: 110, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '成本价', dataIndex: 'price', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '单位', dataIndex: 'productOrigUnit', width: 100, align: 'center' },
-        { title: '入库小计', dataIndex: 'warehousingSubtotal', width: 100, align: 'center' },
-        { title: '仓库', dataIndex: 'warehouseName', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '仓位', dataIndex: 'warehouseLocationName', width: 100, align: 'center', customRender: function (text) { return text || '--' } }
+        { title: '入库数量', dataIndex: 'putQty', width: 110, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '成本价', dataIndex: 'totalAmount', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '单位', dataIndex: 'dealerProductEntity.unit', width: 100, align: 'center' },
+        { title: '入库小计', dataIndex: 'totalAmount', width: 100, align: 'center' },
+        { title: '仓库', dataIndex: 'warehouseName', width: 140, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '仓位', dataIndex: 'warehouseLocationName', width: 140, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
         this.disabled = true
-        // return customerBundleDelayList(Object.assign(parameter, this.queryParam)).then(res => {
-        //   const data = res.data
-        //   const no = (data.pageNo - 1) * data.pageSize
-        //   for (var i = 0; i < data.list.length; i++) {
-        //     data.list[i].no = no + i + 1
-        //     const productCode = (data.list[i].productEntity && data.list[i].productEntity.code) || (data.list[i].dealerProductEntity && data.list[i].dealerProductEntity.code)
-        //     const productName = (data.list[i].productEntity && data.list[i].productEntity.name) || (data.list[i].dealerProductEntity && data.list[i].dealerProductEntity.name)
-        //     const productOrigCode = (data.list[i].productEntity && data.list[i].productEntity.origCode) || (data.list[i].dealerProductEntity && data.list[i].dealerProductEntity.origCode)
-        //     const productOrigUnit = (data.list[i].productEntity && data.list[i].productEntity.unit) || (data.list[i].dealerProductEntity && data.list[i].dealerProductEntity.unit)
-        //     data.list[i].productCode = productCode || '--'
-        //     data.list[i].productName = productName || '--'
-        //     data.list[i].productOrigCode = productOrigCode || '--'
-        //     data.list[i].productOrigUnit = productOrigUnit || '--'
-        //     data.list[i].warehouseName = data.list[i].warehouseEntity && data.list[i].warehouseEntity.name || '--'
-        //     data.list[i].warehouseLocationName = data.list[i].warehouseLocationEntity && data.list[i].warehouseLocationEntity.name || '--'
-        //     // 入库小计  由于数据库内小数位数为4位,页面则需显示2位。因此会做小数运算精度处理
-        //     data.list[i].warehousingSubtotal = getOperationalPrecision(data.list[i].price, data.list[i].qty)
-        //   }
-        //   this.disabled = false
-        //   return data
-        // })
-        const _this = this
-        return new Promise(function (resolve, reject) {
-          const data = {
-            pageNo: 1,
-            pageSize: 10,
-            list: [
-              { id: '1', purchaseNo: 'jgqp11111111111', creatDate: '产品1', custName: 'jgqp111123545', totalP: '箭冠品牌', totalNums: '产品分类1', totalPrice: '5', payType: '122' }
-            ],
-            count: 10
-          }
+        return receivingDetailList(Object.assign(parameter, { receivingBillSn: this.$route.params.sn })).then(res => {
+          const data = res.data
           const no = (data.pageNo - 1) * data.pageSize
           for (var i = 0; i < data.list.length; i++) {
             data.list[i].no = no + i + 1
+            // 入库小计  由于数据库内小数位数为4位,页面则需显示2位。因此会做小数运算精度处理
+            data.list[i].warehousingSubtotal = getOperationalPrecision(data.list[i].price, data.list[i].qty)
           }
-          _this.disabled = false
-          resolve(data)
+          this.disabled = false
+          return data
         })
       },
-      basicInfoData: null, //  基本信息
-      bizInfo: null
+      basicInfoData: null //  基本信息
     }
   },
   methods: {
@@ -126,19 +98,19 @@ export default {
     handleBack () {
       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) {
-          this.bizInfo = res.data
+          this.basicInfoData = res.data
         } else {
-          this.bizInfo = null
+          this.basicInfoData = null
         }
       })
     }
   },
   beforeRouteEnter (to, from, next) {
     next(vm => {
-      vm.getBizInfoDetail()
+      vm.getDetail()
     })
   }
 }

+ 52 - 27
src/views/financialManagement/warehousingAudit/list.vue

@@ -6,12 +6,12 @@
         <a-row :gutter="15">
           <a-col :md="6" :sm="24">
             <a-form-item label="采购单号">
-              <a-input id="warehousingAuditList-putBizNo" v-model.trim="queryParam.putBizNo" allowClear placeholder="请输入采购单号"/>
+              <a-input id="warehousingAuditList-purchaseBillNo" v-model.trim="queryParam.purchaseBillNo" allowClear placeholder="请输入采购单号"/>
             </a-form-item>
           </a-col>
           <a-col :md="6" :sm="24">
             <a-form-item label="采购入库单号">
-              <a-input id="warehousingAuditList-stockPutNo" v-model.trim="queryParam.stockPutNo" allowClear placeholder="请输入采购入库单号"/>
+              <a-input id="warehousingAuditList-receivingBillNo" v-model.trim="queryParam.receivingBillNo" allowClear placeholder="请输入采购入库单号"/>
             </a-form-item>
           </a-col>
           <a-col :md="6" :sm="24">
@@ -32,7 +32,7 @@
                   v-model="queryParam.auditState"
                   ref="auditState"
                   id="warehousingAuditList-auditState"
-                  code="PAYMENT_TYPE"
+                  code="RECEIVING_BILL_STATUS"
                   placeholder="请选择财务审核状态"
                   allowClear></v-select>
               </a-form-item>
@@ -53,7 +53,7 @@
     </div>
     <!-- alert -->
     <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>
     <!-- 列表 -->
     <s-table
@@ -66,14 +66,27 @@
       :scroll="{ x: 1420, y: tableHeight }"
       bordered>
       <!-- 采购入库单号 -->
-      <template slot="stockPutNo" slot-scope="text, record">
-        <span v-if="record.stockPutNo" style="color: #ed1c24;cursor: pointer;" @click="handleDetail(record)">{{ record.stockPutNo }}</span>
+      <template slot="receivingBillNo" slot-scope="text, record">
+        <span v-if="record.receivingBillNo" style="color: #ed1c24;cursor: pointer;" @click="handleDetail(record)">{{ record.receivingBillNo }}</span>
         <span v-else>--</span>
       </template>
       <!-- 操作 -->
       <template slot="action" slot-scope="text, record">
-        <a-button size="small" type="link" class="button-info" @click="handleExamine(record, 1)" id="warehousingAudit-adopt-btn">通过</a-button>
-        <a-button size="small" type="link" class="button-warning" @click="handleExamine(record, 2)" id="warehousingAudit-unadopt-btn">不通过</a-button>
+        <a-button
+          size="small"
+          v-if="record.auditState=='WAIT_PUT_WAREHOUSE_AUDIT'"
+          type="link"
+          class="button-info"
+          @click="handleExamine(record, 1)"
+          id="warehousingAudit-adopt-btn">通过</a-button>
+        <a-button
+          size="small"
+          v-if="record.auditState=='WAIT_PUT_WAREHOUSE_AUDIT'"
+          type="link"
+          class="button-warning"
+          @click="handleExamine(record, 2)"
+          id="warehousingAudit-unadopt-btn">不通过</a-button>
+        <span v-if="record.auditState!='WAIT_PUT_WAREHOUSE_AUDIT'">--</span>
       </template>
     </s-table>
   </a-card>
@@ -83,7 +96,7 @@
 import moment from 'moment'
 import { STable, VSelect } from '@/components'
 import getDate from '@/libs/getDate'
-import { stockPutList } from '@/api/stockPut'
+import { receivingList, receivingStockInAudit, receivingCount } from '@/api/receiving'
 export default {
   components: { STable, VSelect },
   data () {
@@ -98,19 +111,19 @@ export default {
       tableHeight: 0,
       // 查询参数
       queryParam: {
-        putBizNo: '',
-        stockPutNo: '',
+        purchaseBillNo: '',
+        receivingBillNo: '',
         auditState: undefined
       },
       // 表头
       columns: [
         { title: '序号', dataIndex: 'no', width: 80, align: 'center' },
-        { title: '采购单号', dataIndex: 'putBizNo', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '采购入库单号', scopedSlots: { customRender: 'stockPutNo' }, width: 220, align: 'center' },
-        { title: '总款数', dataIndex: 'productTotalCategory', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '入库总数量', dataIndex: 'productTotalQty', width: 110, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '入库总成本', dataIndex: 'productTotalCost', width: 110, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '入库时间', dataIndex: 'putTime', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '采购单号', dataIndex: 'purchaseBillNo', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '采购入库单号', scopedSlots: { customRender: 'receivingBillNo' }, width: 220, align: 'center' },
+        { title: '总款数', dataIndex: 'totalCategory', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '入库总数量', dataIndex: 'totalQty', width: 110, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '入库总成本', dataIndex: 'totalPutAmount', width: 110, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '入库时间', dataIndex: 'stockPutTime', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '财务审核时间', dataIndex: 'auditTime', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '财务审核状态', dataIndex: 'auditStateDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: 140, align: 'center', fixed: 'right' }
@@ -129,13 +142,15 @@ export default {
           this.queryParam.beginDate = undefined
           this.queryParam.endDate = undefined
         }
-        return stockPutList(Object.assign(parameter, this.queryParam)).then(res => {
+        const params = Object.assign(parameter, this.queryParam)
+        return receivingList(params).then(res => {
           const data = res.data
           const no = (data.pageNo - 1) * data.pageSize
           for (var i = 0; i < data.list.length; i++) {
             data.list[i].no = no + i + 1
           }
           this.disabled = false
+          this.getTotal(params)
           return data
         })
       }
@@ -146,9 +161,19 @@ export default {
     disabledDate (date, dateStrings) {
       return date && date.valueOf() > Date.now()
     },
+    // 合计
+    getTotal (param) {
+      receivingCount(param).then(res => {
+        if (res.status == 200 && res.data) {
+          this.productTotal = res.data
+        } else {
+          this.productTotal = null
+        }
+      })
+    },
     //  详情
     handleDetail (row) {
-      this.$router.push({ path: `/financialManagement/warehousingAudit/detail/${row.putBizSn}/${row.putBizType}` })
+      this.$router.push({ path: `/financialManagement/warehousingAudit/detail/${row.receivingBillSn}` })
     },
     //  审核
     handleExamine (row, type) {
@@ -158,19 +183,19 @@ export default {
         content: '确定要进行' + (type == 1 ? ' 通过 ' : ' 不通过 ') + '操作吗?',
         centered: true,
         onOk () {
-          // delectRolePower({ id: row.id }).then(res => {
-          //   if (res.status == 200) {
-          //     _this.$message.success(res.message)
-          //     _this.$refs.table.refresh()
-          //   }
-          // })
+          receivingStockInAudit({ id: row.id, auditState: type == 1 ? 'FINISH' : 'PUT_WAREHOUSE_AUDIT_REJECT' }).then(res => {
+            if (res.status == 200) {
+              _this.$message.success(res.message)
+              _this.$refs.table.refresh()
+            }
+          })
         }
       })
     },
     //  重置
     resetSearchForm () {
-      this.queryParam.putBizNo = ''
-      this.queryParam.stockPutNo = ''
+      this.queryParam.purchaseBillNo = ''
+      this.queryParam.receivingBillNo = ''
       this.queryParam.auditState = undefined
       this.auditTime = []
       this.$refs.table.refresh(true)