| | |
| | |
|
| | | .sidebar-logo-container {
|
| | | position: relative;
|
| | | width: 100%;
|
| | | height: 50px;
|
| | | width: 100% !important;
|
| | | height: 50px !important;
|
| | | line-height: 50px;
|
| | | background: #fff;
|
| | | text-align: center;
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div class="search_form"> |
| | | <div> |
| | | <span class="search_title">å§åï¼</span> |
| | | <el-input |
| | | v-model="searchForm.customerName" |
| | | style="width: 240px" |
| | | placeholder="请è¾å
¥åç§°æç´¢" |
| | | @change="handleQuery" |
| | | clearable |
| | | :prefix-icon="Search" |
| | | /> |
| | | <el-button type="primary" @click="handleQuery" style="margin-left: 10px">æç´¢</el-button> |
| | | </div> |
| | | <div> |
| | | <el-button type="primary" @click="openForm">æ°å¢å
¥è</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table_list"> |
| | | <PIMTable :column="tableColumn" :tableData="tableData" :page="page" :isSelection="true" |
| | | :handleSelectionChange="handleSelectionChange" :tableLoading="tableLoading" @pagination="pagination" |
| | | :total="total"></PIMTable> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import {Search} from "@element-plus/icons-vue"; |
| | | import {ref} from "vue"; |
| | | |
| | | const data = reactive({ |
| | | searchForm: { |
| | | customerName: '', |
| | | }, |
| | | form: { |
| | | salesLedgerId: '', |
| | | customerName: '', |
| | | salesman: '', |
| | | projectName: '', |
| | | productData: [] |
| | | }, |
| | | rules: { |
| | | salesLedgerId: [{ required: true, message: "è¯·éæ©", trigger: "change" }] |
| | | } |
| | | }) |
| | | const { searchForm, form, rules } = toRefs(data) |
| | | const tableColumn = ref([ |
| | | { |
| | | label: 'ç¶æ', |
| | | prop: 'paymentDate', |
| | | dataType: 'tag', |
| | | formatData: (params) => { |
| | | if (params == 0) { |
| | | return 'å¨è'; |
| | | } else if (params == 1) { |
| | | return '离è'; |
| | | } else { |
| | | return null |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 0) { |
| | | return 'primary'; |
| | | } else if (params == 1) { |
| | | return 'danger'; |
| | | } else { |
| | | return null |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | label: 'åå·¥ç¼å·', |
| | | prop: 'supplierName', |
| | | }, |
| | | { |
| | | label: 'å§å', |
| | | prop: 'currentPaymentAmount', |
| | | }, |
| | | { |
| | | label: 'æ§å«', |
| | | prop: 'paymentMethod' |
| | | }, |
| | | { |
| | | label: 'ç±è´¯', |
| | | prop: 'registrant' |
| | | }, |
| | | { |
| | | label: 'å²ä½', |
| | | prop: 'registrationtDate' |
| | | }, |
| | | { |
| | | label: 'å®¶åºä½å', |
| | | prop: 'registrationtDate' |
| | | }, |
| | | { |
| | | label: '第ä¸å¦å', |
| | | prop: 'registrationtDate' |
| | | }, |
| | | { |
| | | label: 'ä¸ä¸', |
| | | prop: 'registrationtDate' |
| | | }, |
| | | { |
| | | label: '身份è¯å·', |
| | | prop: 'registrationtDate' |
| | | }, |
| | | { |
| | | label: 'å¹´é¾', |
| | | prop: 'registrationtDate' |
| | | }, |
| | | { |
| | | label: 'èç³»çµè¯', |
| | | prop: 'registrationtDate' |
| | | }, |
| | | { |
| | | label: 'ç´§æ¥è系人', |
| | | prop: 'registrationtDate' |
| | | }, |
| | | { |
| | | label: 'èç³»çµè¯', |
| | | prop: 'registrationtDate' |
| | | }, |
| | | { |
| | | label: 'ååå¹´é', |
| | | prop: 'registrationtDate' |
| | | }, |
| | | { |
| | | label: 'ååå¼å§æ¥æ', |
| | | prop: 'registrationtDate' |
| | | }, |
| | | { |
| | | label: 'ååç»ææ¥æ', |
| | | prop: 'registrationtDate' |
| | | }, |
| | | ]) |
| | | const tableData = ref([]) |
| | | const selectedRows = ref([]) |
| | | const tableLoading = ref(false) |
| | | const page = reactive({ |
| | | current: 1, |
| | | size: 100, |
| | | }) |
| | | const total = ref(0) |
| | | |
| | | |
| | | // æ¥è¯¢å表 |
| | | /** æç´¢æé®æä½ */ |
| | | const handleQuery = () => { |
| | | page.current = 1 |
| | | getList() |
| | | } |
| | | const pagination = (obj) => { |
| | | page.current = obj.page; |
| | | page.size = obj.limit; |
| | | getList() |
| | | } |
| | | const getList = () => { |
| | | tableLoading.value = true |
| | | ledgerListPage({...searchForm.value, ...page}).then(res => { |
| | | tableLoading.value = false |
| | | tableData.value = res.records; |
| | | total.value = res.total |
| | | }) |
| | | } |
| | | // è¡¨æ ¼éæ©æ°æ® |
| | | const handleSelectionChange = (selection) => { |
| | | console.log('selection', selection) |
| | | selectedRows.value = selection.filter(item => item.salesContractNo !== undefined); |
| | | } |
| | | |
| | | // æå¼å¼¹æ¡ |
| | | const openForm = () => { |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |