|
@@ -98,9 +98,15 @@
|
|
:scroll="{ y:tableHeight }"
|
|
:scroll="{ y:tableHeight }"
|
|
:defaultLoadData="false"
|
|
:defaultLoadData="false"
|
|
bordered>
|
|
bordered>
|
|
- <!-- 下推单号 -->
|
|
|
|
|
|
+
|
|
|
|
+ <!-- 销售单号 -->
|
|
|
|
+ <template slot="salesBillNo" slot-scope="text, record">
|
|
|
|
+ <span class="link-bule" v-if="$hasPermissions('B_salesDetail')" @click="handleDetail(record,0)">{{ record.salesBillNo }}</span>
|
|
|
|
+ <span v-else>{{ record.salesBillNo }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 备货单号 -->
|
|
<template slot="dispatchBillNo" slot-scope="text, record">
|
|
<template slot="dispatchBillNo" slot-scope="text, record">
|
|
- <span class="link-bule" v-if="$hasPermissions('B_dispatchDetail')" @click="handleDetail(record)">{{ record.dispatchBillNo }}</span>
|
|
|
|
|
|
+ <span class="link-bule" v-if="$hasPermissions('B_dispatchDetail')" @click="handleDetail(record,1)">{{ record.dispatchBillNo }}</span>
|
|
<span v-else>{{ record.dispatchBillNo }}</span>
|
|
<span v-else>{{ record.dispatchBillNo }}</span>
|
|
</template>
|
|
</template>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
@@ -131,12 +137,26 @@
|
|
:itemData="auditInfo"
|
|
:itemData="auditInfo"
|
|
@close="visibleAuditReject=false"
|
|
@close="visibleAuditReject=false"
|
|
@ok="auditReject" />
|
|
@ok="auditReject" />
|
|
|
|
+ <!-- 查看销售单或备货单详情 -->
|
|
|
|
+ <commonModal
|
|
|
|
+ :modalTit="detailType?'备货单详情':'销售单详情'"
|
|
|
|
+ bodyPadding="10px"
|
|
|
|
+ width="70%"
|
|
|
|
+ :showFooter="false"
|
|
|
|
+ :openModal="showDetailModal"
|
|
|
|
+ @cancel="cancelDetail">
|
|
|
|
+ <salesDetail v-if="detailType==0" ref="salesDetail" :bizSn="bizSn"></salesDetail>
|
|
|
|
+ <dispatchDetail v-if="detailType==1" ref="dispatchDetail" :bizSn="bizSn"></dispatchDetail>
|
|
|
|
+ </commonModal>
|
|
</a-card>
|
|
</a-card>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import moment from 'moment'
|
|
import moment from 'moment'
|
|
|
|
+import commonModal from '@/views/common/commonModal.vue'
|
|
|
|
+import salesDetail from '@/views/salesManagement/salesQuery/detail.vue'
|
|
|
|
+import dispatchDetail from '@/views/salesManagement/pushOrderManagement/detail.vue'
|
|
import getDate from '@/libs/getDate.js'
|
|
import getDate from '@/libs/getDate.js'
|
|
import subarea from '@/views/common/subarea.js'
|
|
import subarea from '@/views/common/subarea.js'
|
|
import Area from '@/views/common/area.js'
|
|
import Area from '@/views/common/area.js'
|
|
@@ -149,12 +169,15 @@ import { dispatchlBhshList, dispatchQueryBhshCount, dispatchStockUpAduit } from
|
|
export default {
|
|
export default {
|
|
name: 'ExamineVerifyList',
|
|
name: 'ExamineVerifyList',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
- components: { STable, VSelect, dealerSubareaScopeList, rangeDate, auditModal, subarea, auditRejectModal, Area },
|
|
|
|
|
|
+ components: { STable, VSelect, dealerSubareaScopeList, rangeDate, commonModal, salesDetail, dispatchDetail, auditModal, subarea, auditRejectModal, Area },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
spinning: false,
|
|
spinning: false,
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
tableHeight: 0,
|
|
tableHeight: 0,
|
|
|
|
+ showDetailModal: false,
|
|
|
|
+ detailType: 2,
|
|
|
|
+ bizSn: null,
|
|
time: [
|
|
time: [
|
|
moment(getDate.getThreeMonthDays().starttime, 'YYYY-MM-DD'),
|
|
moment(getDate.getThreeMonthDays().starttime, 'YYYY-MM-DD'),
|
|
moment(getDate.getCurrMonthDays().endtime, 'YYYY-MM-DD')
|
|
moment(getDate.getCurrMonthDays().endtime, 'YYYY-MM-DD')
|
|
@@ -214,8 +237,8 @@ export default {
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '7%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '7%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单据来源', dataIndex: 'salesBillEntity.salesBillSourceDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单据来源', dataIndex: 'salesBillEntity.salesBillSourceDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '销售单号', dataIndex: 'salesBillNo', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '备货单号', scopedSlots: { customRender: 'dispatchBillNo' }, width: '12%', align: 'center' },
|
|
|
|
|
|
+ { title: '销售单号', scopedSlots: { customRender: 'salesBillNo' }, width: '10%', align: 'center' },
|
|
|
|
+ { title: '备货单号', scopedSlots: { customRender: 'dispatchBillNo' }, width: '10%', align: 'center' },
|
|
{ title: '出库单号', dataIndex: 'stockOutNo', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '出库单号', dataIndex: 'stockOutNo', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '客户名称', dataIndex: 'buyerName', width: '11%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '客户名称', dataIndex: 'buyerName', width: '11%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '数量', dataIndex: 'totalQty', width: '5%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '数量', dataIndex: 'totalQty', width: '5%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
@@ -308,9 +331,18 @@ export default {
|
|
}
|
|
}
|
|
this.auditFun(params)
|
|
this.auditFun(params)
|
|
},
|
|
},
|
|
- // 详情
|
|
|
|
- handleDetail (row) {
|
|
|
|
- this.$router.push({ name: 'pushOrderDetail', params: { sn: row.dispatchBillSn, type: 'examineVerify' } })
|
|
|
|
|
|
+ // 详情
|
|
|
|
+ handleDetail (row, type) {
|
|
|
|
+ this.detailType = type
|
|
|
|
+ this.bizSn = type == 0 ? row.salesBillSn : row.dispatchBillSn
|
|
|
|
+ this.$store.state.app.curActionPermission = type == 0 ? 'B_salesDetail' : 'B_dispatchDetail'
|
|
|
|
+ this.showDetailModal = true
|
|
|
|
+ },
|
|
|
|
+ cancelDetail () {
|
|
|
|
+ this.showDetailModal = false
|
|
|
|
+ this.detailType = 2
|
|
|
|
+ this.bizSn = null
|
|
|
|
+ this.$store.state.app.curActionPermission = ''
|
|
},
|
|
},
|
|
pageInit () {
|
|
pageInit () {
|
|
const _this = this
|
|
const _this = this
|