chenrui 4 năm trước cách đây
mục cha
commit
d4f54194c7

+ 58 - 130
src/config/router.config.js

@@ -247,136 +247,64 @@ export const asyncRouterMap = [
               }
             ]
           },
-          {
-            path: '/salesManagement/quotation',
-            redirect: '/salesManagement/quotation/list',
-            name: 'quotation',
-            component: RouteView,
-            meta: {
-              title: '报价单',
-              icon: 'idcard'
-              // permission: 'M_goodsManage_list'
-            },
-            hideChildrenInMenu: true,
-            children: [
-              {
-                path: 'list',
-                name: 'quotationList',
-                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/list.vue'),
-                meta: {
-                  title: '报价单列表',
-                  icon: 'idcard',
-                  hidden: true
-                  // permission: 'M_goodsManage_list'
-                }
-              },
-              {
-                path: 'add',
-                name: 'quotationAdd',
-                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/edit.vue'),
-                meta: {
-                  title: '新增报价单',
-                  icon: 'idcard',
-                  hidden: true
-                  // permission: 'M_goodsManage_list'
-                }
-              },
-              {
-                path: 'edit/:id',
-                name: 'quotationEdit',
-                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/edit.vue'),
-                meta: {
-                  title: '编辑报价单',
-                  icon: 'idcard',
-                  hidden: true
-                  // permission: 'M_goodsManage_list'
-                }
-              },
-              {
-                path: 'detail/:id',
-                name: 'quotationDetail',
-                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/detail.vue'),
-                meta: {
-                  title: '报价单详情',
-                  icon: 'idcard',
-                  hidden: true
-                  // permission: 'M_goodsManage_list'
-                }
-              }
-            ]
-          },
-          {
-            path: '/salesManagement/backorder',
-            redirect: '/salesManagement/backorder/list',
-            name: 'backorder',
-            component: RouteView,
-            meta: {
-              title: '缺货单',
-              icon: 'exception'
-              // permission: 'M_goodsManage_list'
-            },
-            hideChildrenInMenu: true,
-            children: [
-              {
-                path: 'list',
-                name: 'backorderList',
-                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/backorder/list.vue'),
-                meta: {
-                  title: '缺货单列表',
-                  icon: 'exception',
-                  hidden: true
-                  // permission: 'M_goodsManage_list'
-                }
-              },
-              {
-                path: 'detail/:id',
-                name: 'backorderDetail',
-                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/backorder/detail.vue'),
-                meta: {
-                  title: '缺货单详情',
-                  icon: 'exception',
-                  hidden: true
-                  // permission: 'M_goodsManage_list'
-                }
-              }
-            ]
-          },
-          {
-            path: '/salesManagement/examineVerify',
-            redirect: '/salesManagement/examineVerify/list',
-            name: 'examineVerify',
-            component: RouteView,
-            meta: {
-              title: '备货审核',
-              icon: 'audit'
-              // permission: 'M_outboundOrder'
-            },
-            hideChildrenInMenu: true,
-            children: [
-              {
-                path: 'list',
-                name: 'examineVerifyList',
-                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/examineVerify/list.vue'),
-                meta: {
-                  title: '备货审核列表',
-                  icon: 'audit',
-                  hidden: true
-                  // permission: 'M_outboundOrder_list'
-                }
-              },
-              {
-                path: 'detail/:id',
-                name: 'examineVerifyDetail',
-                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/examineVerify/detail.vue'),
-                meta: {
-                  title: '备货审核详情',
-                  icon: 'audit',
-                  hidden: true
-                  // permission: 'B_goodsManage_edit'
-                }
-              }
-            ]
-          },
+          // {    二期
+          //   path: '/salesManagement/quotation',
+          //   redirect: '/salesManagement/quotation/list',
+          //   name: 'quotation',
+          //   component: RouteView,
+          //   meta: {
+          //     title: '报价单',
+          //     icon: 'idcard'
+          //     // permission: 'M_goodsManage_list'
+          //   },
+          //   hideChildrenInMenu: true,
+          //   children: [
+          //     {
+          //       path: 'list',
+          //       name: 'quotationList',
+          //       component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/list.vue'),
+          //       meta: {
+          //         title: '报价单列表',
+          //         icon: 'idcard',
+          //         hidden: true
+          //         // permission: 'M_goodsManage_list'
+          //       }
+          //     },
+          //     {
+          //       path: 'add',
+          //       name: 'quotationAdd',
+          //       component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/edit.vue'),
+          //       meta: {
+          //         title: '新增报价单',
+          //         icon: 'idcard',
+          //         hidden: true
+          //         // permission: 'M_goodsManage_list'
+          //       }
+          //     },
+          //     {
+          //       path: 'edit/:id',
+          //       name: 'quotationEdit',
+          //       component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/edit.vue'),
+          //       meta: {
+          //         title: '编辑报价单',
+          //         icon: 'idcard',
+          //         hidden: true
+          //         // permission: 'M_goodsManage_list'
+          //       }
+          //     },
+          //     {
+          //       path: 'detail/:id',
+          //       name: 'quotationDetail',
+          //       component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/detail.vue'),
+          //       meta: {
+          //         title: '报价单详情',
+          //         icon: 'idcard',
+          //         hidden: true
+          //         // permission: 'M_goodsManage_list'
+          //       }
+          //     }
+          //   ]
+          // },
           {
             path: '/salesManagement/giftRecord',
             redirect: '/salesManagement/giftRecord/list',

+ 0 - 128
src/views/salesManagement/backorder/detail.vue

@@ -1,128 +0,0 @@
-<template>
-  <div class="backorderDetail-wrap">
-    <a-page-header :ghost="false" @back="handleBack" class="backorderDetail-back">
-      <!-- 自定义的二级文字标题 -->
-      <template slot="subTitle">
-        <a id="backorderDetail-back-btn" href="javascript:;" @click="handleBack">返回列表</a>
-      </template>
-    </a-page-header>
-    <a-card size="small" :bordered="false" class="backorderDetail-cont">
-      <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="收款方式">箭冠营销中心</a-descriptions-item>
-            <a-descriptions-item label="联系手机">箭冠营销中心</a-descriptions-item>
-            <a-descriptions-item label="联系电话">箭冠营销中心</a-descriptions-item>
-            <a-descriptions-item label="销售单号">箭冠营销中心</a-descriptions-item>
-          </a-descriptions>
-        </a-collapse-panel>
-      </a-collapse>
-    </a-card>
-    <a-card size="small" :bordered="false" class="backorderDetail-cont">
-      <!-- 总计 -->
-      <a-alert type="info" showIcon style="margin-bottom:15px">
-        <div slot="message">缺货总款数:<strong>1</strong>,缺货总数量:<strong>1</strong>,缺货总售价:<strong>0</strong></div>
-      </a-alert>
-      <!-- 列表 -->
-      <s-table
-        class="sTable"
-        ref="table"
-        size="default"
-        :rowKey="(record) => record.id"
-        :columns="columns"
-        :data="loadData"
-        :scroll="{ x: 960 }"
-        bordered></s-table>
-    </a-card>
-  </div>
-</template>
-
-<script>
-import { STable, VSelect } from '@/components'
-export default {
-  components: { STable, VSelect },
-  data () {
-    return {
-      queryParam: {
-
-      },
-      disabled: false, //  查询、重置按钮是否可操作
-      brandData: [], //  产品品牌  下拉数据
-      typeData: [], //  产品类别  下拉数据
-      // 表头
-      columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '产品编码', dataIndex: 'productCode', width: 140, align: 'center' },
-        { title: '产品名称', dataIndex: 'productName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '原厂编码', dataIndex: 'productOrigCode', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '售价', dataIndex: 'price', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '缺货数量', dataIndex: 'qty', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '单位', dataIndex: 'productOrigUnit', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '售价小计', dataIndex: 'salePriceSubtotal', width: 100, align: 'center' }
-      ],
-      // 加载数据方法 必须为 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
-        //   }
-        //   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
-          }
-          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
-          resolve(data)
-        })
-      }
-    }
-  },
-  methods: {
-    //  重置
-    resetSearchForm () {
-      this.queryParam.orderBundleNo = ''
-      this.queryParam.orderBundle.custMobile = ''
-      this.queryParam.bundleName = ''
-      this.queryParam.itemName = ''
-      this.oldTime = undefined
-      this.newTime = undefined
-      this.$refs.table.refresh(true)
-    },
-    //  提交
-    handleSubmit () {},
-    //  返回列表
-    handleBack () {
-      this.$router.push({ path: '/salesManagement/backorder/list' })
-    }
-  }
-}
-</script>
-
-<style lang="less">
-  .backorderDetail-wrap{
-    .backorderDetail-back{
-      margin-bottom: 15px;
-    }
-    .backorderDetail-cont{
-      margin-bottom: 15px;
-    }
-  }
-</style>

+ 0 - 166
src/views/salesManagement/backorder/list.vue

@@ -1,166 +0,0 @@
-<template>
-  <a-card size="small" :bordered="false" class="backorderList-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-range-picker
-                style="width:100%"
-                id="backorderList-creatTime"
-                :disabledDate="disabledDate"
-                v-model="time"
-                :format="dateFormat"
-                :placeholder="['开始时间', '结束时间']" />
-            </a-form-item>
-            </a-form-item>
-          </a-col>
-          <a-col :md="6" :sm="24">
-            <a-form-item label="客户名称">
-              <a-select
-                id="backorderList-bundleName"
-                placeholder="请选择"
-                allowClear
-                v-model="queryParam.dataSourceNo"
-                :showSearch="true"
-                option-filter-prop="children"
-                :filter-option="filterOption">
-                <a-select-option v-for="item in brandData" :key="item.salesChannelNo" :value="item.salesChannelNo">{{ item.salesChannelName }}</a-select-option>
-              </a-select>
-            </a-form-item>
-          </a-col>
-          <a-col :md="6" :sm="24">
-            <a-form-item label="销售单号">
-              <a-input id="backorderList-bundleName" v-model.trim="queryParam.bundleName" allowClear placeholder="请输入销售单号"/>
-            </a-form-item>
-          </a-col>
-          <template v-if="advanced">
-            <a-col :md="6" :sm="24">
-              <a-form-item label="采购单号">
-                <a-input id="backorderList-bundleName" v-model.trim="queryParam.bundleName" allowClear placeholder="请输入采购单号"/>
-              </a-form-item>
-            </a-col>
-          </template>
-          <a-col :md="6" :sm="24">
-            <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="backorderList-refresh">查询</a-button>
-            <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="backorderList-reset">重置</a-button>
-            <a @click="advanced=!advanced" style="margin-left: 8px">
-              {{ advanced ? '收起' : '展开' }}
-              <a-icon :type="advanced ? 'up' : 'down'"/>
-            </a>
-          </a-col>
-        </a-row>
-      </a-form>
-    </div>
-    <!-- 列表 -->
-    <s-table
-      class="sTable"
-      ref="table"
-      size="default"
-      :rowKey="(record) => record.id"
-      :columns="columns"
-      :data="loadData"
-      :scroll="{ x: 1120 }"
-      bordered>
-      <!-- 操作 -->
-      <template slot="action" slot-scope="text, record">
-        <a-button size="small" type="link" @click="handleDetail(record)" id="backorderList-detail-btn">详情</a-button>
-      </template>
-    </s-table>
-  </a-card>
-</template>
-
-<script>
-// import { getProvince, getCityByPro, getDistrictByCity } from '@/api/data'
-import { STable, VSelect } from '@/components'
-export default {
-  components: { STable, VSelect },
-  data () {
-    return {
-      advanced: false, // 高级搜索 展开/关闭
-      queryParam: { //  查询条件
-        bundleName: '', //  供应商名称
-        state: undefined //  状态
-      },
-      disabled: false, //  查询、重置按钮是否可操作
-      dateFormat: 'YYYY-MM-DD',
-      time: [], //  创建时间
-      columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center' },
-        { title: '销售单号', dataIndex: 'salesBillNo', width: 140, align: 'center' },
-        { title: '采购单号', dataIndex: 'purchaseBillNo', width: 140, align: 'center' },
-        { title: '客户名称', dataIndex: 'buyerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '缺货款数', dataIndex: 'totalCategory', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '缺货数量', dataIndex: 'totalQty', width: 100, 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: 'auditTime', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
-      ],
-      // 加载数据方法 必须为 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
-        //   }
-        //   this.disabled = false
-        //   return data
-        // })
-        const _this = this
-        return new Promise(function (resolve, reject) {
-          const data = {
-            pageNo: 1,
-            pageSize: 10,
-            list: [
-              { id: '1', productNum: 'jgqp11111111111', productName: '产品1', productOldNum: 'jgqp111123545', productBrand: '箭冠品牌', productType: '产品分类1', inventoryNum: '5', inventoryMoney: '122' }
-            ]
-          }
-          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
-          resolve(data)
-        })
-      },
-      brandData: []
-    }
-  },
-  methods: {
-    // 不可选日期
-    disabledDate (date, dateStrings) {
-      return date && date.valueOf() > Date.now()
-    },
-    filterOption (input, option) {
-    	return (
-    		option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
-    	)
-    },
-    //  重置
-    resetSearchForm () {
-      this.queryParam.orderBundleNo = ''
-      this.queryParam.orderBundle.custMobile = ''
-      this.queryParam.bundleName = ''
-      this.queryParam.itemName = ''
-      this.oldTime = undefined
-      this.newTime = undefined
-      this.$refs.table.refresh(true)
-    },
-    //  详情
-    handleDetail (row) {
-      this.$router.push({ path: `/salesManagement/backorder/detail/${row.id}` })
-    }
-  }
-}
-</script>
-
-<style lang="less">
-  .backorderList-wrap{
-    .sTable{
-      margin-top: 20px;
-    }
-  }
-</style>

+ 0 - 182
src/views/salesManagement/examineVerify/detail.vue

@@ -1,182 +0,0 @@
-<template>
-  <div class="examineVerifyDetail-page-wrapper">
-    <!-- 操作 -->
-    <a-page-header :ghost="false" @back="handleBack" class="examineVerifyDetail-operation-wrapper">
-      <!-- 自定义的二级文字标题 -->
-      <template slot="subTitle">
-        <a id="examineVerifyDetail-btn-back" href="javascript:;" @click="handleBack">返回列表</a>
-      </template>
-      <!-- 操作区,位于 title 行的行尾 -->
-      <template slot="extra">
-        <a-button key="2" @click="handlePreview" id="examineVerifyDetail-btn-preview">打印预览</a-button>
-        <a-button key="1" type="primary" @click="handlePrint" id="examineVerifyDetail-btn-print">快速打印</a-button>
-      </template>
-    </a-page-header>
-    <!-- 急件单信息 -->
-    <a-card size="small" :bordered="false" class="examineVerifyDetail-info-wrapper">
-      <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="收款方式">名称思密达</a-descriptions-item>
-            <a-descriptions-item label="联系手机">名称思密达</a-descriptions-item>
-            <a-descriptions-item label="联系电话">名称思密达</a-descriptions-item>
-            <a-descriptions-item label="备注" span="2">名称思密达名称思密达名称思密达名称思密达名称思密达名称思密达名称思密达名称思密达名称思密达</a-descriptions-item>
-            <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="审核状态">名称思密达</a-descriptions-item>
-            <a-descriptions-item label="完结状态">名称思密达</a-descriptions-item>
-          </a-descriptions>
-        </a-collapse-panel>
-      </a-collapse>
-    </a-card>
-    <!-- 表格 -->
-    <a-card size="small" :bordered="false" class="examineVerifyDetail-table-wrapper">
-      <!-- 合计 -->
-      <a-alert type="info" showIcon style="margin-bottom:15px">
-        <div slot="message">
-          总款数:<strong>998</strong>;总数量:<strong>2009</strong>;总数量:<strong>2009</strong>;急件总款数:<strong>2009</strong>;急件总数量:<strong>2009</strong>。<br/>
-          总售价:<strong>998</strong>;总成本:<strong>2009</strong>;总毛利:<strong>2009</strong>;折后总售价:<strong>2009</strong>;折扣:<strong>2009%</strong>;折扣金额:<strong>2009</strong>。
-        </div>
-      </a-alert>
-      <s-table
-        class="sTable"
-        ref="table"
-        size="default"
-        :rowKey="(record) => record.id"
-        :columns="columns"
-        :data="loadData"
-        :scroll="{ x: 1660 }"
-        bordered>
-        <!-- 库存数量 -->
-        <template slot="inventoryQuantity" slot-scope="text, record">
-          <span :class="[record.inventoryQuantity < record.quantityNotOffset ? 'red' : '']">{{ record.inventoryQuantity }}</span>
-        </template>
-      </s-table>
-    </a-card>
-  </div>
-
-</template>
-
-<script>
-import { STable, VSelect } from '@/components'
-export default {
-  components: { STable, VSelect },
-  data () {
-    return {
-      columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '产品编码', dataIndex: 'productCode', width: 140, align: 'center' },
-        { title: '产品名称', dataIndex: 'productName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '原厂编码', dataIndex: 'productOrigCode', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '成本价', dataIndex: 'costPrice', width: 100, 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: 'discountedPrice', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '销售数量', dataIndex: 'qty', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '单位', dataIndex: 'productOrigUnit', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '售价小计', dataIndex: 'salePriceSubtotal', width: 100, align: 'center' },
-        { title: '折后小计', dataIndex: 'discountedAmount', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '折扣金额', dataIndex: 'discountAmount', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '仓库', dataIndex: 'warehouseName', width: 100, align: 'center' },
-        { title: '仓位', dataIndex: 'warehouseLocationName', width: 100, align: 'center' },
-        { title: '销售类型', dataIndex: 'salesBillType', width: 100, align: 'center', customRender: function (text) { return text || '--' } }
-      ],
-      // 加载数据方法 必须为 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
-        //   }
-        //   this.disabled = false
-        //   return data
-        // })
-        const _this = this
-        return new Promise(function (resolve, reject) {
-          const data = {
-            pageNo: 1,
-            pageSize: 10,
-            list: [
-              { id: '1', productNum: 'jgqp11111111111', inventoryQuantity: 0, quantityNotOffset: 3, productName: '产品1', productOldNum: 'jgqp111123545', productBrand: '箭冠品牌', productType: '产品分类1', inventoryNum: '5', inventoryMoney: '122' }
-            ]
-          }
-          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
-          resolve(data)
-        })
-      }
-    }
-  },
-  methods: {
-    //  返回
-    handleBack () {
-      this.$router.push({ path: '/salesManagement/examineVerify/list' })
-    },
-    //  冲减
-    handleSubmit () {
-      const _this = this
-      this.$confirm({
-        title: '提示',
-        content: '确定要进行冲减吗?',
-        okText: '确定',
-        cancelText: '取消',
-        centered: true,
-        onOk () {
-          // delectRolePower({
-          //   id: row.id
-          // }).then(res => {
-          //   console.log(res, 'res1111')
-          //   if (res.status == 200) {
-          //     _this.$message.success(res.message)
-          //     _this.$refs.table.refresh()
-          //   }
-          // })
-        }
-      })
-    },
-    //  快速打印
-    handlePrint () {
-
-    },
-    //  打印预览
-    handlePreview () {
-
-    }
-  }
-}
-</script>
-
-<style lang="less">
-  .examineVerifyDetail-page-wrapper{
-    .examineVerifyDetail-info-wrapper{
-      margin: 15px 0;
-      .item-cont {
-        margin-bottom: 15px;
-        display: flex;
-        .item-label {
-          width: 115px;
-          font-size: 14px;
-          color: rgba(0, 0, 0, 0.85);
-          flex-shrink: 0;
-        }
-        .item-main {
-          flex-grow: 1;
-          word-break: break-all;
-        }
-      }
-    }
-    .examineVerifyDetail-table-wrapper{
-      .red{
-        color: #ed1c24;
-      }
-    }
-  }
-</style>

+ 0 - 232
src/views/salesManagement/examineVerify/list.vue

@@ -1,232 +0,0 @@
-<template>
-  <a-card size="small" :bordered="false" class="examineVerifyList-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-range-picker
-                style="width:100%"
-                id="examineVerifyList-bundleNamesss"
-                :disabledDate="disabledDate"
-                v-model="queryParam.brand"
-                :format="dateFormat"
-                :placeholder="['开始时间', '结束时间']" />
-            </a-form-item>
-            </a-form-item>
-          </a-col>
-          <a-col :md="6" :sm="24">
-            <a-form-item label="客户名称">
-              <a-select
-                placeholder="请选择"
-                allowClear
-                v-model="queryParam.name"
-                :showSearch="true"
-                option-filter-prop="children"
-                :filter-option="filterOption">
-                <a-select-option v-for="item in custData" :key="item.id" :value="item.id">{{ item.name }}</a-select-option>
-              </a-select>
-            </a-form-item>
-          </a-col>
-          <a-col :md="6" :sm="24">
-            <a-form-item label="出库类型">
-              <v-select
-                v-model="queryParam.billStatus"
-                ref="billStatus"
-                id="examineVerifyList-billStatus"
-                code="PAYMENT_TYPE"
-                placeholder="请选择出库类型"
-                allowClear></v-select>
-            </a-form-item>
-          </a-col>
-          <template v-if="advanced">
-            <a-col :md="6" :sm="24">
-              <a-form-item label="单据状态">
-                <v-select
-                  v-model="queryParam.billStatus"
-                  ref="billStatus"
-                  id="examineVerifyList-billStatus"
-                  code="PAYMENT_TYPE"
-                  placeholder="请选择单据状态"
-                  allowClear></v-select>
-              </a-form-item>
-            </a-col>
-          </template>
-          <a-col :md="6" :sm="24" style="margin-bottom: 24px;">
-            <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="examineVerifyList-refresh">查询</a-button>
-            <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="examineVerifyList-reset">重置</a-button>
-            <a @click="advanced=!advanced" style="margin-left: 8px">
-              {{ advanced ? '收起' : '展开' }}
-              <a-icon :type="advanced ? 'up' : 'down'"/>
-            </a>
-          </a-col>
-        </a-row>
-      </a-form>
-    </div>
-    <!-- 列表 -->
-    <div style="margin-bottom: 15px">
-      <a-button type="primary" id="examineVerifyList-export" :disabled="!hasSelected" :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="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
-      :rowKey="(record) => record.id"
-      :columns="columns"
-      :data="loadData"
-      :showPagination="false"
-      :scroll="{ x: 1680 }"
-      bordered>
-      <!-- 状态 -->
-      <template slot="status" slot-scope="text, record">
-        <span :class="record.status==1?'green':'red'"> {{ record.status==1? '待入库': '待审核' }} </span>
-      </template>
-      <!-- 操作 -->
-      <template slot="action" slot-scope="text, record">
-        <a-button size="small" type="link" @click="handleExamine(record)" id="examineVerifyList-examine-btn" style="margin: 0 0 10px 8px;">备货审核</a-button>
-        <a-divider type="vertical" style="margin: 0;" />
-        <a-button size="small" type="link" @click="handleDetail(record)" id="examineVerifyList-detail-btn" style="margin: 0 0 0 8px;">详情</a-button>
-      </template>
-    </s-table>
-  </a-card>
-</template>
-
-<script>
-// import { customerBundleDelayList, customerBundleExportDelay } from '@/api/FinancialManagement'
-import { STable, VSelect } from '@/components'
-export default {
-  components: { STable, VSelect },
-  data () {
-    return {
-      advanced: false, // 高级搜索 展开/关闭
-      queryParam: { //  查询条件
-        bundleName: '', //  品牌名称
-        state: undefined //  状态
-      },
-      disabled: false, //  查询、重置按钮是否可操作
-      dateFormat: 'YYYY-MM-DD',
-      columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center' },
-        { title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center' },
-        { title: '单据来源', dataIndex: 'creasteDate', width: 100, align: 'center' },
-        { title: '销售单号', dataIndex: 'salesBillNo', width: 140, align: 'center' },
-        { title: '客户名称', dataIndex: 'buyerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '总数量', dataIndex: 'totalQty', width: 100, 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: 'auditTime', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '备货时间', dataIndex: 'audsitTime', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '状态', scopedSlots: { customRender: 'status' }, width: 110, align: 'center' },
-        { title: '打印状态', dataIndex: 'audsitTime', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '打印次数', dataIndex: 'audsitTsime', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '操作', scopedSlots: { customRender: 'action' }, width: 170, align: 'center', fixed: 'right' }
-      ],
-      selectedRowKeys: [], // Check here to configure the default column
-      loading: false,
-      // 加载数据方法 必须为 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
-        //   }
-        //   this.disabled = false
-        //   return data
-        // })
-        const _this = this
-        return new Promise(function (resolve, reject) {
-          const data = {
-            pageNo: 1,
-            pageSize: 10,
-            list: [
-              { id: '1', productNum: 'jgqp11111111111', productName: '产品1', productOldNum: 'jgqp111123545', productBrand: '箭冠品牌', productType: '产品分类1', inventoryNum: '5', inventoryMoney: '122' }
-            ]
-          }
-          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
-          resolve(data)
-        })
-      },
-      custData: [] //  客户 下拉数据
-    }
-  },
-  computed: {
-    hasSelected () {
-      return this.selectedRowKeys.length > 0
-    }
-  },
-  methods: {
-    // 不可选日期
-    disabledDate (date, dateStrings) {
-      return date && date.valueOf() > Date.now()
-    },
-    filterOption (input, option) {
-      return (
-        option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
-      )
-    },
-    //  重置
-    resetSearchForm () {
-      this.queryParam.orderBundleNo = ''
-      this.queryParam.orderBundle.custMobile = ''
-      this.queryParam.bundleName = ''
-      this.queryParam.itemName = ''
-      this.oldTime = undefined
-      this.newTime = undefined
-      this.$refs.table.refresh(true)
-    },
-    //  批量审核
-    handleExamine () {
-      const _this = this
-      this.$confirm({
-        title: '提示',
-        content: '确认要审核通过吗?',
-        okText: '确定',
-        cancelText: '取消',
-        centered: true,
-        onOk () {
-          // delectRolePower({
-          //   id: row.id
-          // }).then(res => {
-          //   console.log(res, 'res1111')
-          //   if (res.status == 200) {
-          //     _this.$message.success(res.message)
-          //     _this.$refs.table.refresh()
-          //   }
-          // })
-        }
-      })
-    },
-    //  详情
-    handleDetail (row) {
-      this.$router.push({ path: `/salesManagement/examineVerify/detail/${row.id}` })
-    },
-    // 批量审核
-    handleBatchAudit () {
-      this.loading = true
-      // ajax request after empty completing
-      setTimeout(() => {
-        this.loading = false
-        this.selectedRowKeys = []
-      }, 1000)
-    },
-    onSelectChange (selectedRowKeys) {
-      console.log('selectedRowKeys changed: ', selectedRowKeys)
-      this.selectedRowKeys = selectedRowKeys
-    }
-  }
-}
-</script>