| | |
| | | import { ref} from "vue" |
| | | import request from "@/utils/request" |
| | | import {useI18n} from "vue-i18n"; |
| | | import {filterChanged} from "@/hook"; |
| | | |
| | | const { t } = useI18n() |
| | | const childrenData = ref({ |
| | |
| | | {field: 'productId',width:120, title: t('order.productId'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'productName',width:120, title: t('order.product'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'orderNumber',width:120, title: t('order.OrderNum'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | // {field: 'buildingNumber',width:120, title: '楼号',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'buildingNumber',width:120, title: t('order.buildingNumber'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'width',width:120, title: t('order.width'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'height',width:120, title: t('order.height'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'quantity',width:120, title: t('order.quantity'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | |
| | | url :'/order/getOrderReport', |
| | | exportUrl :'/order/exportOrderReport', |
| | | exportName:t('order.orderDetailsReport'), |
| | | footList:['quantity','grossArea','computeGrossArea','perimeter','price','grossAmount','weight'] |
| | | }) |
| | | footList:['quantity','grossArea','computeGrossArea','perimeter','price','grossAmount','weight'], |
| | | model:0,//0:精确查询 1:模糊查询 |
| | | scope:10 |
| | | |
| | | }) |
| | | const changeModel = () => { |
| | | childrenData.value.model = childrenData.value.model === 0 ? 1 : 0 |
| | | } |
| | | |
| | | </script> |
| | | |
| | | <template> |
| | | <basic-table |
| | | :childrenData="childrenData"/> |
| | | :childrenData="childrenData"> |
| | | <template #buttons> |
| | | <el-button |
| | | @click="changeModel" |
| | | type="primary" |
| | | > |
| | | {{childrenData.model === 0 ? $t('order.preciseMode') : $t('order.ambiguityModels')}}</el-button> |
| | | <el-input |
| | | v-model="childrenData.scope" |
| | | type="number" |
| | | v-show="childrenData.model===1" |
| | | style="width: 140px;margin-left: 5px" |
| | | :placeholder="$t('order.glassSizeRange')"/> |
| | | </template> |
| | | |
| | | </basic-table> |
| | | </template> |
| | | |
| | | <style scoped> |