|
@@ -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>
|