|
@@ -95,7 +95,7 @@
|
|
|
bordered>
|
|
|
<!-- 单号 -->
|
|
|
<template slot="allocateNo" slot-scope="text, record">
|
|
|
- <span v-if="$hasPermissions('M_tfoPrint_detail')" class="link-bule" @click="handleDetail(record)">{{ record.allocateNo }}</span>
|
|
|
+ <span v-if="$hasPermissions('M_transferOut_detail')" class="link-bule" @click="handleDetail(record)">{{ record.allocateNo }}</span>
|
|
|
<span v-else>{{ record.allocateNo }}</span>
|
|
|
</template>
|
|
|
<!-- 打印状态 -->
|
|
@@ -152,6 +152,16 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</commonModal>
|
|
|
+ <!-- 查看详情 -->
|
|
|
+ <commonModal
|
|
|
+ modalTit="调拨单详情"
|
|
|
+ bodyPadding="10px"
|
|
|
+ width="70%"
|
|
|
+ :showFooter="false"
|
|
|
+ :openModal="showDetailModal"
|
|
|
+ @cancel="cancelDetail">
|
|
|
+ <allocationDetailModal v-if="showDetailModal" :outBizSn="bizSn" />
|
|
|
+ </commonModal>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -165,22 +175,25 @@ import Area from '@/views/common/area.js'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
|
|
|
import printModal from '@/views/allocationManagement/transferOut/printModal.vue'
|
|
|
-import recordModal from './recordModal.vue'
|
|
|
import commonModal from '@/views/common/commonModal.vue'
|
|
|
+import allocationDetailModal from '@/views/allocationManagement/transferOut/detail.vue'
|
|
|
+import recordModal from './recordModal.vue'
|
|
|
import { allocateBillList, allocateBillDetailPrint, updatePrintState } from '@/api/allocateBill'
|
|
|
import { printFun } from '@/libs/JGPrint.js'
|
|
|
export default {
|
|
|
name: 'TransfersPrintList',
|
|
|
mixins: [commonMixin],
|
|
|
- components: { STable, VSelect, rangeDate, dealerSubareaScopeList, printModal, commonModal, recordModal, subarea, Area },
|
|
|
+ components: { STable, VSelect, rangeDate, dealerSubareaScopeList, printModal, commonModal, recordModal, subarea, Area, commonModal, allocationDetailModal },
|
|
|
data () {
|
|
|
return {
|
|
|
spinning: false,
|
|
|
advanced: true, // 高级搜索 展开/关闭
|
|
|
tableHeight: 0,
|
|
|
itemData: null,
|
|
|
+ bizSn: '',
|
|
|
showRecordModal: false,
|
|
|
showPrintModal: false,
|
|
|
+ showDetailModal: false,
|
|
|
time: [
|
|
|
moment(getDate.getThreeMonthDays().starttime, 'YYYY-MM-DD'),
|
|
|
moment(getDate.getCurrMonthDays().endtime, 'YYYY-MM-DD')
|
|
@@ -336,10 +349,14 @@ export default {
|
|
|
},
|
|
|
// 详情
|
|
|
handleDetail (row) {
|
|
|
- if (this.$hasPermissions('M_tfoPrint_detail')) {
|
|
|
- this.$store.state.app.curActionPermission = 'M_tfoPrint_detail'
|
|
|
- this.$router.push({ path: `/allocationManagement/transferOut/detail/${row.allocateSn}` })
|
|
|
- }
|
|
|
+ this.$store.state.app.curActionPermission = 'M_transferOut_detail'
|
|
|
+ this.bizSn = row.allocateSn
|
|
|
+ this.showDetailModal = true
|
|
|
+ },
|
|
|
+ cancelDetail () {
|
|
|
+ this.$store.state.app.curActionPermission = ''
|
|
|
+ this.showDetailModal = false
|
|
|
+ this.bizSn = null
|
|
|
},
|
|
|
pageInit () {
|
|
|
const _this = this
|