| | |
| | | <template> |
| | | <div> |
| | | <el-bus-crud |
| | | <!-- <el-bus-crud |
| | | ref="crud" |
| | | v-bind="tableConfig" |
| | | :extra-query="{ levelDown: checkedLevelDown }" |
| | |
| | | >未处理的质检异常订单</el-checkbox |
| | | > |
| | | </template> |
| | | </el-bus-crud> |
| | | </el-bus-crud>--> |
| | | <el-bus-crud |
| | | ref="crud" |
| | | v-bind="tableConfig" |
| | | ></el-bus-crud> |
| | | <div id="print-container"> |
| | | <print-list ref="printList" :order-list="orderList" /> |
| | | </div> |
| | |
| | | // 组件内部不会修改这个prop直接修改可忽略警告 |
| | | statusComp.extraQuery = { ...params, statusBackend: '' } |
| | | statusComp.getOtherOptions() |
| | | } |
| | | const abnormalOrderStatusComp = searchForm.getComponentById('abnormalOrderStatus') |
| | | if (abnormalOrderStatusComp) { |
| | | // 组件内部不会修改这个prop直接修改可忽略警告 |
| | | abnormalOrderStatusComp.extraQuery = { ...params, abnormalOrderStatus: '' } |
| | | abnormalOrderStatusComp.getOtherOptions() |
| | | } |
| | | } |
| | | }, |
| | |
| | | }, |
| | | }, |
| | | { |
| | | label: '异常订单:', |
| | | id: 'abnormalOrderStatus', |
| | | type: 'bus-radio', |
| | | el: { |
| | | hasAll: true, |
| | | otherInterfaceUri: 'flower/api/order/abnormal/status/count', |
| | | childType: 'el-radio-button', |
| | | filterOptions: (list) => { |
| | | return list.map((item) => { |
| | | return { |
| | | ...item, |
| | | label: `${item.label}(${item.orderCount})`, |
| | | } |
| | | }) |
| | | }, |
| | | // code: 'ORDER_STATUS_BACKEND', |
| | | }, |
| | | default: this.$route.query.abnormalOrderStatus || '', |
| | | span: 24, |
| | | searchImmediately: true, |
| | | on: { |
| | | optionsChange: (e, updateForm, { currentComp }) => { |
| | | if (Array.isArray(e[0]) && e[0].length > 0) { |
| | | const totalCount = e[0].reduce((total, current) => { |
| | | return (total += current.orderCount) |
| | | }, 0) |
| | | // 组件内部不会修改这个prop直接修改可忽略警告 |
| | | currentComp.props = { |
| | | allLabel: `不限(${totalCount})`, |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | }, |
| | | { |
| | | label: '下单日期:', |
| | | id: 'dateType', |
| | | component: CustomDateRange, |