| | |
| | | <script setup> |
| | | import { getCurrentInstance, ref, computed, reactive, defineProps } from 'vue'; |
| | | import { useRouter } from "vue-router"; |
| | | import { get, post, postBlob } from '@/utils/request.js' |
| | | import { get, post, postBlob, postForm } from '@/utils/request.js' |
| | | import { message, Modal } from 'ant-design-vue'; |
| | | import { globalState, logout } from '@/config.js'; |
| | | import EditView from './edit.vue' |
| | |
| | | let currentPage = 1; |
| | | let pageSize = 10; |
| | | const searchInput = ref("") |
| | | const searchParam = ref({ |
| | | orderNo: null, |
| | | orderType: null, |
| | | orderSettle: null, |
| | | }) |
| | | const editChild = ref(null) |
| | | const showOrderDetlChild = ref(null) |
| | | |
| | |
| | | current: currentPage, |
| | | pageSize: pageSize, |
| | | condition: searchInput.value, |
| | | _param: searchParam.value, |
| | | }).then((resp) => { |
| | | let result = resp.data; |
| | | if (result.code == 200) { |
| | |
| | | }) |
| | | } |
| | | |
| | | const orderTypeQueryList = ref(null); |
| | | orderTypeQuery(); |
| | | function orderTypeQuery() { |
| | | postForm('/api/orderType/query', { |
| | | type: 2 |
| | | }).then(resp => { |
| | | let result = resp.data; |
| | | orderTypeQueryList.value = result.data; |
| | | }) |
| | | } |
| | | const orderSettleQueryList = ref(null); |
| | | orderSettleQuery(); |
| | | function orderSettleQuery() { |
| | | postForm('/api/orderSettle/query', {}).then(resp => { |
| | | let result = resp.data; |
| | | orderSettleQueryList.value = result.data; |
| | | }) |
| | | } |
| | | |
| | | </script> |
| | | |
| | | <script> |
| | |
| | | <div class="table-header"> |
| | | <div style="display: flex;"> |
| | | <div style="margin-right: 10px;"> |
| | | <a-input v-model:value="searchParam.orderNo" |
| | | :placeholder="formatMessage('page.order.orderNo.input', '请输入订单编号')" |
| | | style="width: 140px;margin-right: 10px;" /> |
| | | <a-select v-model:value="searchParam.orderSettle" |
| | | :placeholder="formatMessage('page.order.orderSettle.select', '请选择单据状态')" |
| | | style="width: 140px;margin-right: 10px;" show-search allowClear :options="orderSettleQueryList" |
| | | optionFilterProp="label" optionLabelProp="label"> |
| | | </a-select> |
| | | <a-select v-model:value="searchParam.orderType" |
| | | :placeholder="formatMessage('page.order.orderType.select', '请选择单据类型')" |
| | | style="width: 140px;margin-right: 10px;" show-search allowClear :options="orderTypeQueryList" |
| | | optionFilterProp="label" optionLabelProp="label"> |
| | | </a-select> |
| | | |
| | | <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '请输入')" |
| | | style="width: 200px;" @search="onSearch" /> |
| | | </div> |