|
@@ -1,17 +1,25 @@
|
|
|
<template>
|
|
|
- <template-page ref="pageRef" :get-list="getList" :table-attributes="tableAttributes" :table-events="tableEvents" :operationColumnWidth="50"
|
|
|
- :options-evens-group="optionsEvensGroup" :moreParameters="moreParameters" :column-parsing="columnParsing"
|
|
|
- :operation="operation" :exportList="exportList">
|
|
|
- </template-page>
|
|
|
+ <div class="page">
|
|
|
+ <template-page v-show="!formDialog" ref="pageRef" :get-list="getList" :table-attributes="tableAttributes" :table-events="tableEvents" :operationColumnWidth="50"
|
|
|
+ :options-evens-group="optionsEvensGroup" :moreParameters="moreParameters" :column-parsing="columnParsing"
|
|
|
+ :operation="operation" :exportList="exportList">
|
|
|
+ </template-page>
|
|
|
+ <div class="detail" v-if="formDialog">
|
|
|
+ <auxiliarySalesOrderDetail v-if="goosType == 'P'" :id="id" @back="backList" :formType="2" title="辅材销售订单详情"></auxiliarySalesOrderDetail>
|
|
|
+ <attachmentSalesOrderDetail v-else :id="id" @back="backList" :formType="2" title="配件销售订单详情"></attachmentSalesOrderDetail>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
|
+import auxiliarySalesOrderDetail from '../components/auxiliarySalesOrderDetail.vue'
|
|
|
+import attachmentSalesOrderDetail from '../components/attachmentSalesOrderDetail.vue'
|
|
|
import { downloadFiles } from '@/utils/util'
|
|
|
import { listPageV2,pageExport } from "@/api/auxiliaryFittings/transaction";
|
|
|
export default {
|
|
|
- components: { TemplatePage },
|
|
|
+ components: { TemplatePage, auxiliarySalesOrderDetail, attachmentSalesOrderDetail},
|
|
|
mixins: [import_mixin],
|
|
|
data() {
|
|
|
return {
|
|
@@ -29,6 +37,9 @@ export default {
|
|
|
// 勾选选中行
|
|
|
recordSelected: [],
|
|
|
/** 表单变量 */
|
|
|
+ id: '',
|
|
|
+ goosType: 'P',
|
|
|
+ formDialog: false
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -39,7 +50,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
// 列表请求函数
|
|
|
- getList: listPageV2,
|
|
|
+ getList: listPageV2,
|
|
|
// 列表导出函数
|
|
|
exportList: pageExport,
|
|
|
// 表格列解析渲染数据更改
|
|
@@ -55,16 +66,26 @@ export default {
|
|
|
return (
|
|
|
<div class='operation-btns'>
|
|
|
<el-button type="text" onClick={() => {
|
|
|
-
|
|
|
+ this.id = row.orderId
|
|
|
+ this.goodsType = row.goodsType
|
|
|
+ this.formDialog = true
|
|
|
}}>查看</el-button>
|
|
|
</div>
|
|
|
)
|
|
|
- }
|
|
|
+ },
|
|
|
+ backList() {
|
|
|
+ this.id = ''
|
|
|
+ this.formDialog = false;
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+ .page{
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
.tab{
|
|
|
padding: 20px 20px 0 20px;
|
|
|
}
|