|
@@ -89,7 +89,7 @@
|
|
|
</div>
|
|
|
</a-card>
|
|
|
<!-- 订单数据明细 抽屉 -->
|
|
|
- <orderDetail-drawer ref="orderDetailDrawer" @ok="modalFormOk"></orderDetail-drawer>
|
|
|
+ <orderDetail-drawer ref="orderDetailDrawer" :fatherList="getOrderList" @ok="modalFormOk"></orderDetail-drawer>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -113,10 +113,11 @@ export default {
|
|
|
orderLIstColumns: [
|
|
|
{
|
|
|
title: '订单号',
|
|
|
- width: 140,
|
|
|
+ width: 180,
|
|
|
dataIndex: 'orderNumber',
|
|
|
fixed: 'left',
|
|
|
className: 'replacecolor',
|
|
|
+ // customRender: t => ellipsis(t),
|
|
|
customCell: this.showDrawer,
|
|
|
scopedSlots: { customRender: 'orderNumber' }
|
|
|
},
|
|
@@ -212,7 +213,7 @@ export default {
|
|
|
orderList(this.queryParam).then(res => {
|
|
|
if (res.success) {
|
|
|
this.orderListData = res.result.records
|
|
|
- console.log('订单数据列表', this.orderListData)
|
|
|
+ // console.log('订单数据列表', this.orderListData)s
|
|
|
this.pagination = {
|
|
|
total: res.result.total,
|
|
|
current: res.result.current,
|
|
@@ -222,11 +223,13 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
// 查询按钮
|
|
|
searchQuery() {
|
|
|
this.getOrderList()
|
|
|
console.log('发货状态', this.queryParam.dilivery)
|
|
|
},
|
|
|
+
|
|
|
searchReset() {
|
|
|
// console.log('>>>>重置')
|
|
|
this.queryParam = {}
|
|
@@ -238,18 +241,33 @@ export default {
|
|
|
return {
|
|
|
on: {
|
|
|
click: event => {
|
|
|
- console.log('点击的订单号', record.orderNumber)
|
|
|
+ // console.log('点击的订单号', record.orderNumber)
|
|
|
this.$refs.orderDetailDrawer.visible = true
|
|
|
+ this.$refs.orderDetailDrawer.record = record
|
|
|
+ this.$refs.orderDetailDrawer.getOrderChild()
|
|
|
+ console.log('---', this.$refs.orderDetailDrawer.record)
|
|
|
+ console.log('打开订单详情')
|
|
|
// 子表信息获取
|
|
|
- orderByNum({ orderNumber: record.orderNumber }).then(res => {
|
|
|
- if (res.success) {
|
|
|
- console.log('子表详情', res.result)
|
|
|
- // 子表信息赋值
|
|
|
- this.$refs.orderDetailDrawer.childData = res.result
|
|
|
- console.log('主表信息', record)
|
|
|
- this.$refs.orderDetailDrawer.orderDetail = record
|
|
|
- }
|
|
|
- })
|
|
|
+ // orderByNum({ orderNumber: record.orderNumber }).then(res => {
|
|
|
+ // if (res.success) {
|
|
|
+ // // 子表信息赋值
|
|
|
+ // this.$refs.orderDetailDrawer.childData = res.result.records
|
|
|
+ // this.$refs.orderDetailDrawer.pagination = {
|
|
|
+ // total: res.result.total,
|
|
|
+ // current: res.result.current,
|
|
|
+ // pageSize: res.result.size
|
|
|
+ // }
|
|
|
+ // console.log('childData', this.$refs.orderDetailDrawer.childData)
|
|
|
+ // console.log(
|
|
|
+ // '分页信息:',
|
|
|
+ // this.$refs.orderDetailDrawer.pagination.total,
|
|
|
+ // this.$refs.orderDetailDrawer.pagination.current,
|
|
|
+ // this.$refs.orderDetailDrawer.pagination.pageSize
|
|
|
+ // )
|
|
|
+ // // console.log('主表信息', record)
|
|
|
+ // this.$refs.orderDetailDrawer.orderDetail = record
|
|
|
+ // }
|
|
|
+ // })
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -262,7 +280,7 @@ export default {
|
|
|
},
|
|
|
// 同步
|
|
|
synchronization() {
|
|
|
- console.log('订单数据--同步');
|
|
|
+ console.log('订单数据--同步')
|
|
|
},
|
|
|
|
|
|
// 分页变化时触发
|
|
@@ -273,7 +291,9 @@ export default {
|
|
|
this.isorter.order = sorter.order == 'ascend' ? 'asc' : 'desc'
|
|
|
}
|
|
|
this.queryParam.pageNo = pagination.current
|
|
|
+ // console.log('00');
|
|
|
this.getOrderList() //重新渲染
|
|
|
+ // console.log('\\\\');
|
|
|
}
|
|
|
},
|
|
|
computed: {},
|