Parcourir la source

对接入库确认

chenrui il y a 4 ans
Parent
commit
8464cf471a

+ 32 - 0
src/api/stockPut.js

@@ -0,0 +1,32 @@
+import { axios } from '@/utils/request'
+
+//  入库确认 列表 有分页
+export const stockPutList = (params) => {
+  const url = `/stockPut/queryPage/${params.pageNo}/${params.pageSize}`
+  delete params.pageNo
+  delete params.pageSize
+  return axios({
+    url: url,
+    data: params,
+    method: 'post'
+  })
+}
+//  入库确认  添加
+export const stockPutSave = (params) => {
+  return axios({
+    url: '/stockPut/save',
+    data: params,
+    method: 'post'
+  })
+}
+//  入库确认 明细 列表 有分页
+export const stockPutDetailList = (params) => {
+  const url = `/stockPut/queryDetailPage/${params.sn}/${params.pageNo}/${params.pageSize}`
+  delete params.pageNo
+  delete params.pageSize
+  return axios({
+    url: url,
+    data: params,
+    method: 'post'
+  })
+}

+ 0 - 11
src/config/router.config.js

@@ -1393,17 +1393,6 @@ export const asyncRouterMap = [
                   hidden: true
                   // permission: 'M_goodsManage_list'
                 }
-              },
-              {
-                path: 'detail/:id',
-                name: 'warehousingConfirmationDetail',
-                component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingConfirmation/detail.vue'),
-                meta: {
-                  title: '入库确认详情',
-                  icon: 'pull-request',
-                  hidden: true
-                  // permission: 'B_goodsManage_edit'
-                }
               }
             ]
           },

+ 50 - 17
src/views/common/chooseProductsModal.vue

@@ -7,20 +7,28 @@
     title="选择产品"
     v-model="isShow"
     @cancle="isShow=false"
-    width="80%">
+    :width="1000">
     <div class="products-con">
       <div>
         <!-- 搜索条件 -->
         <div class="table-page-search-wrapper">
-          <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
+          <!-- <a-form layout="inline" @keyup.enter.native="getProductList(1)"> -->
+          <a-form-model
+            layout="inline"
+            ref="ruleForm"
+            :model="queryParam"
+            :rules="rules"
+            @keyup.enter.native="getProductList(1)"
+            :label-col="formItemLayout.labelCol"
+            :wrapper-col="formItemLayout.wrapperCol">
             <a-row :gutter="15">
               <a-col :md="6" :sm="24">
-                <a-form-item label="产品编码">
+                <a-form-model-item label="产品编码" prop="code">
                   <a-input id="chooseProducts-code" v-model.trim="queryParam.code" allowClear placeholder="请输入产品编码"/>
-                </a-form-item>
+                </a-form-model-item>
               </a-col>
               <a-col :md="6" :sm="24">
-                <a-form-item label="产品品牌">
+                <a-form-model-item label="产品品牌" prop="productBrandSn">
                   <a-select
                     placeholder="请选择产品品牌"
                     id="chooseProducts-productBrandSn"
@@ -31,28 +39,28 @@
                     :filter-option="filterOption">
                     <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
                   </a-select>
-                </a-form-item>
+                </a-form-model-item>
               </a-col>
               <a-col :md="6" :sm="24">
-                <a-form-item label="产品分类">
+                <a-form-model-item label="产品分类" prop="productType">
                   <a-cascader
                     @change="changeProductType"
                     change-on-select
-                    v-model="productType"
+                    v-model="queryParam.productType"
                     expand-trigger="hover"
                     :options="productTypeList"
                     :fieldNames="{ label: 'productTypeName', value: 'productTypeSn', children: 'children' }"
                     id="chooseProducts-productType"
                     placeholder="请选择产品分类"
                     allowClear />
-                </a-form-item>
+                </a-form-model-item>
               </a-col>
               <a-col :md="6" :sm="24">
-                <a-button style="margin-bottom: 18px;" type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="chooseProducts-refresh">查询</a-button>
+                <a-button style="margin-bottom: 18px;" type="primary" @click="handleSearch" :disabled="disabled" id="chooseProducts-refresh">查询</a-button>
                 <a-button style="margin: 0 0 18px 8px" @click="resetSearchForm" :disabled="disabled" id="chooseProducts-reset">重置</a-button>
               </a-col>
             </a-row>
-          </a-form>
+          </a-form-model></a-form>
         </div>
         <p style="font-weight: bold;">当前已选:{{ selectedRowKeys.length }}个</p>
         <!-- 列表 -->
@@ -112,13 +120,22 @@ export default {
   data () {
     return {
       isShow: this.openModal, //  是否打开弹框
+      formItemLayout: {
+        labelCol: { span: 4 },
+        wrapperCol: { span: 20 }
+      },
       queryParam: { //  查询条件
         code: '', //  产品编码
         productBrandSn: undefined, //  产品品牌
+        productType: [],
         productTypeSn1: '', //  产品一级分类
         productTypeSn2: '', //  产品二级分类
         productTypeSn3: '' //  产品三级分类
       },
+      rules: {
+        productBrandSn: [ { required: true, message: '请选择产品品牌', trigger: 'change' } ],
+        productType: [ { required: true, message: '请选择产品分类', trigger: 'change' } ]
+      },
       disabled: false, //  查询、重置按钮是否可操作
       loading: false, //  表格加载中
       columns: [
@@ -136,7 +153,7 @@ export default {
         onShowSizeChange: (current, pageSize) => this.changePageSize(current, pageSize),
         onChange: (current) => this.changePage(current)
       },
-      productType: [],
+      // productType: [],
       productBrandList: [], //  品牌下拉数据
       productTypeList: [], //  分类下拉数据
       selectedRowKeys: [],
@@ -144,15 +161,30 @@ export default {
     }
   },
   methods: {
-    //  重置
-    resetSearchForm () {
+    // 查询
+    handleSearch () {
+      const _this = this
+      _this.$refs.ruleForm.validate(valid => {
+        if (valid) {
+          _this.getProductList(1)
+        } else {
+          return false
+        }
+      })
+    },
+    // 重置数据
+    resetData () {
       this.queryParam.code = ''
       this.queryParam.productBrandSn = undefined
       this.queryParam.productTypeSn1 = ''
       this.queryParam.productTypeSn2 = ''
       this.queryParam.productTypeSn3 = ''
-      this.productType = []
-      this.$refs.table.refresh(true)
+      this.queryParam.productType = []
+    },
+    //  重置
+    resetSearchForm () {
+      this.resetData()
+      this.getProductList(1)
     },
     // 保存
     handleSave () {
@@ -187,6 +219,7 @@ export default {
         pageSize: this.pageSize
       }
       this.loading = true
+      delete this.queryParam.productType
       productList(Object.assign(params, this.queryParam)).then(res => {
         this.loading = false
         if (res.status == 200) {
@@ -258,6 +291,7 @@ export default {
     isShow (newValue, oldValue) {
       if (!newValue) {
         this.$emit('close')
+        this.resetData()
       } else {
         this.selectedRows = this.chooseData
         this.selectedRowKeys = []
@@ -270,7 +304,6 @@ export default {
         if (this.productTypeList.length == 0) {
           this.getProductType()
         }
-        this.getProductList(1)
       }
     }
   }

+ 112 - 56
src/views/dealerManagement/merchantInfoManagement/permissionSetting.vue

@@ -9,7 +9,7 @@
     <a-card size="small" :bordered="false" class="permissionSetting-main">
       <!-- 搜索条件 -->
       <div class="table-page-search-wrapper">
-        <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
+        <a-form layout="inline" @keyup.enter.native="getProductList(1)">
           <a-row :gutter="15">
             <a-col :md="6" :sm="24">
               <a-form-item label="产品名称">
@@ -52,7 +52,7 @@
               </a-col>
             </template>
             <a-col :md="6" :sm="24">
-              <a-button style="margin-bottom: 18px;" type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="permissionSetting-refresh">查询</a-button>
+              <a-button style="margin-bottom: 18px;" type="primary" @click="getProductList(1)" :disabled="disabled" id="permissionSetting-refresh">查询</a-button>
               <a-button style="margin: 0 0 18px 8px" @click="resetSearchForm" :disabled="disabled" id="permissionSetting-reset">重置</a-button>
               <a @click="advanced=!advanced" style="margin-left: 8px">
                 {{ advanced ? '收起' : '展开' }}
@@ -69,20 +69,22 @@
         <a-button id="permissionSetting-product" type="primary" class="button-success" @click="choosePModal('product')">选择产品</a-button>
       </div>
       <!-- 列表 -->
-      <s-table
+      <a-table
         class="sTable"
         ref="table"
         size="default"
         :rowKey="(record) => record.id"
         :columns="columns"
-        :data="loadData"
+        :data-source="loadData"
+        :pagination="paginationProps"
+        :loading="loading"
         :scroll="{ x: 1200, y: tableHeight }"
         bordered>
         <!-- 操作 -->
         <template slot="action" slot-scope="text, record">
           <a-button size="small" type="link" class="button-error" @click="handleDel(record)">删除</a-button>
         </template>
-      </s-table>
+      </a-table>
     </a-card>
     <!-- 选择产品品牌 -->
     <chooseBrandModal :openModal="openBrandModal" :chooseData="chooseBrand" @close="openBrandModal=false" @ok="handleBrandOk" />
@@ -100,7 +102,7 @@ import ChooseBrandModal from '@/views/common/chooseBrandModal.vue'
 import ChooseTypeModal from '@/views/common/chooseTypeModal.vue'
 import { productBrandQuery } from '@/api/productBrand'
 import { productTypeQuery } from '@/api/productType'
-import { dealerScopeList, dealerScopeDel } from '@/api/dealerScope'
+import { dealerScopeList, dealerScopeSave, dealerScopeDel } from '@/api/dealerScope'
 export default {
   components: { STable, VSelect, ChooseProductsModal, ChooseBrandModal, ChooseTypeModal },
   data () {
@@ -117,6 +119,7 @@ export default {
       },
       productType: [],
       disabled: false, //  查询、重置按钮是否可操作
+      loading: false, //  表格加载中
       columns: [
         { title: '序号', dataIndex: 'no', width: 80, align: 'center' },
         { title: '添加时间', dataIndex: 'createDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
@@ -127,20 +130,30 @@ export default {
         { title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
       ],
       // 加载数据方法 必须为 Promise 对象
-      loadData: parameter => {
-        this.disabled = true
-        if (this.tableHeight == 0) {
-          this.tableHeight = window.innerHeight - 380
-        }
-        return dealerScopeList(Object.assign(parameter, this.queryParam, { dealerSn: 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
-          }
-          this.disabled = false
-          return data
-        })
+      // loadData: parameter => {
+      //   this.disabled = true
+      //   if (this.tableHeight == 0) {
+      //     this.tableHeight = window.innerHeight - 380
+      //   }
+      //   return dealerScopeList(Object.assign(parameter, this.queryParam, { dealerSn: 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
+      //     }
+      //     this.disabled = false
+      //     return data
+      //   })
+      // },
+      loadData: [],
+      pageNo: 1, //  分页页码
+      pageSize: 10, //  分页 每页多少条
+      paginationProps: {
+        showSizeChanger: true, //  是否可以改变 pageSize
+        total: 0, //  分页总条数
+        current: 1,
+        onShowSizeChange: (current, pageSize) => this.changePageSize(current, pageSize),
+        onChange: (current) => this.changePage(current)
       },
       productBrandList: [], //  品牌下拉数据
       productTypeList: [], //  分类下拉数据
@@ -153,6 +166,48 @@ export default {
     }
   },
   methods: {
+    // 经销权 列表
+    getProductList (pageNo) {
+      this.pageNo = pageNo || this.pageNo
+      this.disabled = true
+      if (this.tableHeight == 0) {
+        this.tableHeight = window.innerHeight - 380
+      }
+      const params = {
+        pageNo: this.pageNo,
+        pageSize: this.pageSize
+      }
+      this.loading = true
+      dealerScopeList(Object.assign(params, this.queryParam, { dealerSn: this.$route.params.sn })).then(res => {
+        this.loading = false
+        if (res.status == 200) {
+          const data = res.data
+          this.paginationProps.total = Number(res.data.count) || 0
+          this.paginationProps.current = data.pageNo
+          const no = (data.pageNo - 1) * data.pageSize
+          for (var i = 0; i < data.list.length; i++) {
+            data.list[i].no = no + i + 1
+          }
+          this.loadData = data.list
+          this.disabled = false
+        } else {
+          this.paginationProps.total = 0
+          this.paginationProps.current = 1
+          this.loadData = []
+        }
+      })
+    },
+    //  分页  一页多少条change
+    changePageSize (current, pageSize) {
+      this.pageNo = current
+      this.pageSize = pageSize
+      this.getProductList()
+    },
+    //  分页 页码change
+    changePage (current) {
+      this.pageNo = current
+      this.getProductList()
+    },
     // 选择产品
     choosePModal (type) {
       const productList = []
@@ -199,7 +254,17 @@ export default {
     changeData (type) {
       const _this = this
       if (type == 'product') { //  选择产品
-
+        if (_this.chooseProducts.length > 0) {
+          _this.chooseProducts.map(item => {
+            item.goodsType = 'PRODUCT'
+            item.goodsTypeName = '产品'
+            item.goodsName = item.name
+            item.goodsSn = item.productSn
+            item.goodsCode = item.code
+            delete item.id
+          })
+          this.setData(_this.chooseProducts)
+        }
       } else if (type == 'brand') { //  选择品牌
         if (_this.chooseBrand.length > 0) {
           _this.chooseBrand.map(item => {
@@ -209,43 +274,33 @@ export default {
             item.goodsSn = item.brandSn
             delete item.id
           })
-          this.setData()
+          this.setData(_this.chooseBrand)
         }
       } else if (type == 'type') { //  选择分类
-
-      }
-      const loadData = []
-
-      if (_this.chooseType.length > 0) {
-        _this.chooseType.map(item => {
-          const obj = {
-            goodsType: 'TYPE_' + item.productTypeLevel,
-            goodsTypeName: (item.productTypeLevel == 1 ? '一级' : item.productTypeLevel == 2 ? '二级' : item.productTypeLevel == 3 ? '三级' : '') + '分类',
-            goodsName: item.productTypeName,
-            goodsSn: item.productTypeSn,
-            orderGoodsUnit: undefined,
-            orderGoodsQty: ''
-          }
-          delete item.id
-          loadData.push(Object.assign(obj, item))
-        })
+        if (_this.chooseType.length > 0) {
+          _this.chooseType.map(item => {
+            item.goodsType = 'TYPE_' + item.productTypeLevel
+            item.goodsTypeName = (item.productTypeLevel == 1 ? '一级' : item.productTypeLevel == 2 ? '二级' : item.productTypeLevel == 3 ? '三级' : '') + '分类'
+            item.goodsName = item.productTypeName
+            item.goodsSn = item.productTypeSn
+            delete item.id
+          })
+          this.setData(_this.chooseType)
+        }
       }
-      if (_this.chooseProducts.length > 0) {
-        _this.chooseProducts.map(item => {
-          const obj = {
-            goodsType: 'PRODUCT',
-            goodsTypeName: '产品',
-            goodsName: item.name,
-            name: item.name,
-            goodsCode: item.code,
-            goodsSn: item.productSn,
-            orderGoodsUnit: undefined,
-            orderGoodsQty: ''
-          }
-          delete item.id
-          loadData.push(Object.assign(obj, item))
-        })
+    },
+    // 添加经销权
+    setData (data) {
+      const _this = this
+      const params = {
+        dealerSn: _this.$route.params.sn
       }
+      dealerScopeSave(params).then(res => {
+        if (res.data == 200) {
+          _this.$message.success(res.message)
+          _this.getProductList(1)
+        }
+      })
     },
     // 删除
     handleDel (row) {
@@ -258,7 +313,7 @@ export default {
           dealerScopeDel({ sn: row.dealerScopeSn }).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)
-              _this.$refs.table.refresh()
+              _this.getProductList()
             }
           })
         }
@@ -273,7 +328,7 @@ export default {
       this.queryParam.productTypeSn2 = ''
       this.queryParam.productTypeSn3 = ''
       this.productType = []
-      this.$refs.table.refresh(true)
+      this.getProductList(1)
     },
     // 返回
     handleBack () {
@@ -313,6 +368,7 @@ export default {
   },
   beforeRouteEnter (to, from, next) {
     next(vm => {
+      vm.getProductList(1)
       vm.getProductBrand()
       vm.getProductType()
     })

+ 0 - 8
src/views/financialManagement/warehousingConfirmation/detail.vue

@@ -1,8 +0,0 @@
-<template>
-</template>
-
-<script>
-</script>
-
-<style>
-</style>

+ 118 - 0
src/views/financialManagement/warehousingConfirmation/detailModal.vue

@@ -0,0 +1,118 @@
+<template>
+  <a-modal
+    centered
+    class="confirmationDetail-modal"
+    :footer="null"
+    :maskClosable="false"
+    title="详情"
+    v-model="isShow"
+    @cancle="isShow=false"
+    width="80%">
+    <div>
+      <a-descriptions size="small" :column="3" style="margin-bottom: 10px;">
+        <a-descriptions-item label="入库单号">{{ nowData&&nowData.stockPutNo || '--' }}</a-descriptions-item>
+        <a-descriptions-item label="入库时间">{{ nowData&&nowData.putTime || '--' }}</a-descriptions-item>
+        <a-descriptions-item label="入库类型">{{ nowData&&nowData.putBizTypeDictValue || '--' }}</a-descriptions-item>
+      </a-descriptions>
+      <s-table
+        class="sTable"
+        ref="table"
+        size="small"
+        :rowKey="(record) => record.stockPutSn"
+        :columns="columns"
+        :data="loadData"
+        bordered>
+      </s-table>
+      <div class="btn-cont"><a-button id="confirmationDetail-modal-back" @click="isShow = false">返回列表</a-button></div>
+    </div>
+  </a-modal>
+</template>
+
+<script>
+import { STable } from '@/components'
+import { stockPutDetailList } from '@/api/stockPut'
+export default {
+  name: 'ConfirmationDetailModal',
+  components: { STable },
+  props: {
+    openModal: { //  弹框显示状态
+      type: Boolean,
+      default: false
+    },
+    itemSn: {
+      type: [Number, String],
+      default: ''
+    },
+    nowData: {
+      type: Object,
+      default: () => {
+        return {}
+      }
+    }
+  },
+  data () {
+    return {
+      isShow: this.openModal, //  是否打开弹框
+      detailsData: null, //  详情数据
+      columns: [
+        { title: '序号', dataIndex: 'no', width: 80, align: 'center' },
+        { title: '产品编码', dataIndex: 'putTime', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '产品名称', dataIndex: 'providerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '入库数量(个)', dataIndex: 'productTotalQty', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '入库成本(¥)', dataIndex: 'productTotalCost', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
+      ],
+      // 加载数据方法 必须为 Promise 对象
+      loadData: parameter => {
+        return stockPutDetailList(Object.assign(parameter, { stockPutSn: this.itemSn })).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
+          return data
+        })
+      }
+    }
+  },
+  methods: {},
+  watch: {
+    //  父页面传过来的弹框状态
+    openModal (newValue, oldValue) {
+      this.isShow = newValue
+    },
+    //  重定义的弹框状态
+    isShow (newValue, oldValue) {
+      if (!newValue) {
+        this.$emit('close')
+      }
+    },
+    itemSn (newValue, oldValue) {
+      if (this.isShow && newValue) {
+        this.$refs.table.refresh(true)
+      }
+    }
+  }
+}
+</script>
+
+<style lang="less">
+  .confirmationDetail-modal{
+    .ant-modal-body {
+      padding: 40px 40px 24px;
+    }
+    .productPic{
+      cursor: pointer;
+      max-width: 100px;
+      max-height: 100px;
+      margin-right: 10px;
+    }
+    .btn-cont {
+      text-align: center;
+      margin: 35px 0 10px;
+    }
+    .ant-descriptions-item-label.ant-descriptions-item-colon{
+      width: 120px;
+    }
+  }
+</style>

+ 201 - 1
src/views/financialManagement/warehousingConfirmation/list.vue

@@ -1,8 +1,208 @@
 <template>
+  <a-card size="small" :bordered="false" class="warehousingConfirmationList-wrap">
+    <!-- 搜索条件 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
+        <a-row :gutter="15">
+          <a-col :md="6" :sm="24">
+            <a-form-item label="入库单号">
+              <a-input id="warehousingConfirmationList-stockPutNo" v-model.trim="queryParam.stockPutNo" allowClear placeholder="请输入入库单号"/>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <a-form-item label="单据状态">
+              <v-select
+                v-model="queryParam.state"
+                ref="state"
+                id="warehousingConfirmationList-state"
+                code="PUT_CONFIRM_STATE"
+                placeholder="请选择单据状态"
+                allowClear></v-select>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="warehousingConfirmationList-refresh">查询</a-button>
+            <a-button style="margin: 0 0 18px 8px" @click="resetSearchForm" :disabled="disabled" id="warehousingConfirmationList-reset">重置</a-button>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <!-- 列表 -->
+    <div style="margin-bottom: 15px">
+      <a-button type="primary" id="warehousingConfirmationList-export" :loading="loading" @click="handleBatchAudit">批量确认</a-button>
+      <span style="margin-left: 8px">
+        <template v-if="hasSelected">{{ `已选 ${selectedRowKeys.length} 项` }}</template>
+      </span>
+    </div>
+    <s-table
+      class="sTable"
+      ref="table"
+      size="default"
+      :row-selection="rowSelection"
+      :rowKey="(record) => record.stockPutSn"
+      :columns="columns"
+      :data="loadData"
+      :scroll="{ x: 1530, y: tableHeight }"
+      bordered>
+      <!-- 入库单号 -->
+      <template slot="stockPutNo" slot-scope="text, record">
+        <span style="color: #ed1c24;cursor: pointer;" @click="handleDetail(record)">{{ record.stockPutNo }}</span>
+      </template>
+      <!-- 操作 -->
+      <template slot="action" slot-scope="text, record">
+        <a-button
+          size="small"
+          type="link"
+          v-if="record.state=='WAIT'"
+          class="button-warning"
+          @click="handleAudit(record)"
+          id="warehousingConfirmationList-audit-btn">入库确认</a-button>
+        <span v-else>--</span>
+      </template>
+    </s-table>
+    <!-- 查看 -->
+    <confirmation-detail-modal :openModal="openModal" :itemSn="itemSn" :nowData="nowData" @close="closeModal" />
+  </a-card>
 </template>
 
 <script>
+import { STable, VSelect } from '@/components'
+import confirmationDetailModal from './detailModal.vue'
+import { stockPutList, stockPutSave } from '@/api/stockPut'
+export default {
+  components: { STable, VSelect, confirmationDetailModal },
+  data () {
+    return {
+      queryParam: { //  查询条件
+        stockPutNo: '', //  入库单号
+        state: undefined //  状态
+      },
+      tableHeight: 0,
+      disabled: false, //  查询、重置按钮是否可操作
+      columns: [
+        { title: '入库时间', dataIndex: 'putTime', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '入库单号', scopedSlots: { customRender: 'stockPutNo' }, width: 220, align: 'center' },
+        { title: '商户名称', dataIndex: 'providerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '入库数量', dataIndex: 'productTotalQty', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '入库成本', dataIndex: 'productTotalCost', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '入库类型', dataIndex: 'putBizTypeDictValue', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '单据状态', dataIndex: 'auditStateDictValue', width: 110, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '财务审核时间', dataIndex: 'auditTime', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '备注', dataIndex: 'remark', width: 140, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
+      ],
+      selectedRowKeys: [], // Check here to configure the default column
+      loading: false,
+      // 加载数据方法 必须为 Promise 对象
+      loadData: parameter => {
+        this.disabled = true
+        if (this.tableHeight == 0) {
+          this.tableHeight = window.innerHeight - 380
+        }
+        return stockPutList(Object.assign(parameter, this.queryParam)).then(res => {
+          const data = res.data
+          this.disabled = false
+          return data
+        })
+      },
+      openModal: false,
+      itemSn: '',
+      nowData: null
+    }
+  },
+  computed: {
+    hasSelected () {
+      return this.selectedRowKeys.length > 0
+    },
+    rowSelection () {
+      return {
+        selectedRowKeys: this.selectedRowKeys,
+        onChange: (selectedRowKeys, selectedRows) => {
+          console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows)
+          this.onSelectChange(selectedRowKeys)
+        },
+        getCheckboxProps: record => ({
+          props: {
+            disabled: record.state != 'WAIT'
+          }
+        })
+      }
+    }
+  },
+  methods: {
+    //  重置
+    resetSearchForm () {
+      this.queryParam.stockPutNo = ''
+      this.queryParam.state = undefined
+      this.$refs.table.refresh(true)
+    },
+    // 详情
+    handleDetail (row) {
+      this.itemSn = row.stockPutSn
+      this.nowData = row
+      this.openModal = true
+    },
+    closeModal () {
+      this.itemSn = ''
+      this.nowData = null
+      this.openModal = false
+    },
+    // 单个审核
+    handleAudit (row) {
+      this.$confirm({
+        title: '提示',
+        content: '确认要上线审核吗?',
+        centered: true,
+        onOk () {
+          productOnlineAudit({ sn: row.productSn }).then(res => {
+            if (res.status == 200) {
+              _this.$message.success(res.message)
+              _this.$refs.table.refresh()
+            }
+          })
+        }
+      })
+    },
+    // 批量审核
+    handleBatchAudit () {
+      const _this = this
+      if (_this.selectedRowKeys.length < 1) {
+        _this.$message.warning('请在列表勾选后再进行批量操作!')
+        return
+      }
+      this.$confirm({
+        title: '提示',
+        content: '确认要批量上线审核吗?',
+        centered: true,
+        onOk () {
+          _this.loading = true
+          productBatchOnlineAudit(_this.selectedRowKeys).then(res => {
+            _this.loading = false
+            if (res.status == 200) {
+              _this.selectedRowKeys = []
+              _this.selectedRows = []
+              _this.$message.success(res.message)
+              _this.$refs.table.refresh()
+            }
+          })
+        },
+        onCancel () {
+          console.log('Cancel')
+        }
+      })
+    },
+    onSelectChange (selectedRowKeys) {
+      console.log('selectedRowKeys changed: ', selectedRowKeys)
+      this.selectedRowKeys = selectedRowKeys
+    }
+  }
+}
 </script>
 
-<style>
+<style lang="less">
+  .warehousingConfirmationList-wrap{
+    .sTable{
+      margin-top: 20px;
+    }
+  }
 </style>