|
@@ -72,14 +72,7 @@
|
|
|
|
|
|
<!-- 自定义操作菜单 -->
|
|
|
<template slot-scope="{row}" slot="menu">
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- icon="el-icon-document"
|
|
|
- @click="handleItemManagement(row)"
|
|
|
- >
|
|
|
- 明细管理
|
|
|
- </el-button>
|
|
|
+ <!-- 明细管理按钮已移除 -->
|
|
|
</template>
|
|
|
|
|
|
<!-- 行展开插槽 - 显示订单明细 -->
|
|
@@ -96,25 +89,7 @@
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
|
|
|
- <!-- 订单明细管理弹窗 -->
|
|
|
- <el-dialog
|
|
|
- title="订单明细管理"
|
|
|
- :visible.sync="itemDialogVisible"
|
|
|
- width="1200px"
|
|
|
- :close-on-click-modal="false"
|
|
|
- :close-on-press-escape="false"
|
|
|
- :modal="true"
|
|
|
- :modal-append-to-body="true"
|
|
|
- :append-to-body="true"
|
|
|
- custom-class="order-item-dialog"
|
|
|
- >
|
|
|
- <order-item-management
|
|
|
- v-if="itemDialogVisible"
|
|
|
- :order-info="currentOrderInfo"
|
|
|
- :visible="itemDialogVisible"
|
|
|
- @close="handleItemDialogClose"
|
|
|
- />
|
|
|
- </el-dialog>
|
|
|
+ <!-- 订单明细管理弹窗已移除 -->
|
|
|
</basic-container>
|
|
|
</template>
|
|
|
|
|
@@ -129,7 +104,6 @@ import {
|
|
|
getOrderStatusLabel,
|
|
|
getOrderStatusTagType
|
|
|
} from '@/constants'
|
|
|
-import OrderItemManagement from '@/components/order-item-management'
|
|
|
import OrderItemTable from '@/components/order-item-table'
|
|
|
import OrderForm from '@/components/order-form/order-form.vue'
|
|
|
import { ORDER_FORM_EVENTS } from '@/components/order-form/events'
|
|
@@ -138,7 +112,6 @@ import { mapGetters } from 'vuex'
|
|
|
export default {
|
|
|
name: 'OrderAvue',
|
|
|
components: {
|
|
|
- OrderItemManagement,
|
|
|
OrderItemTable,
|
|
|
OrderForm
|
|
|
},
|
|
@@ -154,9 +127,7 @@ export default {
|
|
|
currentPage: 1,
|
|
|
total: 0
|
|
|
},
|
|
|
- itemDialogVisible: false,
|
|
|
- currentOrderId: null,
|
|
|
- currentOrderInfo: null,
|
|
|
+
|
|
|
// 订单表单相关状态
|
|
|
orderFormVisible: false,
|
|
|
isEditMode: false,
|
|
@@ -329,32 +300,7 @@ export default {
|
|
|
this.orderFormVisible = true
|
|
|
},
|
|
|
|
|
|
- /**
|
|
|
- * 处理订单明细管理
|
|
|
- * @param {OrderRecord} row - 订单行数据
|
|
|
- * @returns {void}
|
|
|
- */
|
|
|
-
|
|
|
- handleItemManagement(row) {
|
|
|
- this.currentOrderId = row.id
|
|
|
- this.currentOrderInfo = {
|
|
|
- id: row.id,
|
|
|
- orderCode: row.orderCode,
|
|
|
- customerName: row.customerName,
|
|
|
- status: row.status
|
|
|
- }
|
|
|
- this.itemDialogVisible = true
|
|
|
- },
|
|
|
|
|
|
- /**
|
|
|
- * 处理订单明细弹窗关闭
|
|
|
- * @returns {void}
|
|
|
- */
|
|
|
- handleItemDialogClose() {
|
|
|
- this.itemDialogVisible = false
|
|
|
- this.currentOrderId = null
|
|
|
- this.currentOrderInfo = null
|
|
|
- },
|
|
|
|
|
|
/**
|
|
|
* 处理表单返回
|