|
@@ -8,11 +8,20 @@
|
|
<a id="allocateBillEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
<a id="allocateBillEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
</template>
|
|
</template>
|
|
<!-- 操作区,位于 title 行的行尾 -->
|
|
<!-- 操作区,位于 title 行的行尾 -->
|
|
- <template v-if="$hasPermissions('B_transferOut_print')" slot="extra">
|
|
|
|
|
|
+ <template slot="extra">
|
|
|
|
+ <a-button
|
|
|
|
+ key="3"
|
|
|
|
+ type="primary"
|
|
|
|
+ class="button-warning"
|
|
|
|
+ v-if="$hasPermissions('B_transferOut_detail_export')"
|
|
|
|
+ id="allocateBillEdit-export-btn"
|
|
|
|
+ :disabled="localDataSource.length==0"
|
|
|
|
+ @click="handleExcel">导出Excel</a-button>
|
|
<a-button
|
|
<a-button
|
|
key="2"
|
|
key="2"
|
|
type="primary"
|
|
type="primary"
|
|
class="button-error"
|
|
class="button-error"
|
|
|
|
+ v-if="$hasPermissions('B_transferOut_print')"
|
|
id="allocateBillEdit-db-print-btn"
|
|
id="allocateBillEdit-db-print-btn"
|
|
:disabled="localDataSource.length==0"
|
|
:disabled="localDataSource.length==0"
|
|
@click="handlePrint('dbPrint')">调拨打印</a-button>
|
|
@click="handlePrint('dbPrint')">调拨打印</a-button>
|
|
@@ -20,6 +29,7 @@
|
|
key="1"
|
|
key="1"
|
|
type="primary"
|
|
type="primary"
|
|
class="button-info"
|
|
class="button-info"
|
|
|
|
+ v-if="$hasPermissions('B_transferOut_print')"
|
|
id="allocateBillEdit-dbfl-print-btn"
|
|
id="allocateBillEdit-dbfl-print-btn"
|
|
:disabled="localDataSource.length==0"
|
|
:disabled="localDataSource.length==0"
|
|
@click="handlePrint('dbflPrint')">调拨分类打印</a-button>
|
|
@click="handlePrint('dbflPrint')">调拨分类打印</a-button>
|
|
@@ -217,10 +227,11 @@
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
import ImportGuideModal from './importGuideModal.vue'
|
|
import ImportGuideModal from './importGuideModal.vue'
|
|
import printModal from './printModal.vue'
|
|
import printModal from './printModal.vue'
|
|
|
|
+import { hdExportExcel } from '@/libs/exportExcel'
|
|
import { queryStockProductPage } from '@/api/stock'
|
|
import { queryStockProductPage } from '@/api/stock'
|
|
import { productPriceInfo } from '@/api/product'
|
|
import { productPriceInfo } from '@/api/product'
|
|
import AllocateType from '@/views/common/allocateType.js'
|
|
import AllocateType from '@/views/common/allocateType.js'
|
|
-import { allocateBillSave, allocateBillDetailList, allocateBillDetailCount, allocateBillDetail, allocateBillDetailSave, allocateBillSubmit, allocateBillDetailDel, allocateBillDetailDelAll, allocateBillDetailPrint, allocateBillBatchInsert } from '@/api/allocateBill'
|
|
|
|
|
|
+import { allocateBillSave, allocateBillDetailList, allocateBillDetailCount, allocateBillDetail, allocateBillDetailSave, allocateBillSubmit, allocateBillDetailDel, allocateBillDetailDelAll, allocateBillDetailPrint, allocateBillBatchInsert, allocateBillDetailExcel } from '@/api/allocateBill'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: { STable, VSelect, ImportGuideModal, AllocateType, printModal },
|
|
components: { STable, VSelect, ImportGuideModal, AllocateType, printModal },
|
|
@@ -510,6 +521,14 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 导出
|
|
|
|
+ handleExcel () {
|
|
|
|
+ const _this = this
|
|
|
|
+ this.spinning = true
|
|
|
|
+ hdExportExcel(allocateBillDetailExcel, { allocateSn: this.$route.params.sn }, '调拨明细', function () {
|
|
|
|
+ _this.spinning = false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 打印预览/快捷打印
|
|
// 打印预览/快捷打印
|
|
handlePrint (type) {
|
|
handlePrint (type) {
|
|
this.nowType = type
|
|
this.nowType = type
|