From 2ad00b6623beac3b504105beba9cb56143f7db13 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期一, 22 一月 2024 08:29:45 +0800
Subject: [PATCH] 实体类相关文件提交
---
north-glass-erp/northglass-erp/src/views/pp/report/TeamOutput.vue | 291 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 291 insertions(+), 0 deletions(-)
diff --git a/north-glass-erp/northglass-erp/src/views/pp/report/TeamOutput.vue b/north-glass-erp/northglass-erp/src/views/pp/report/TeamOutput.vue
new file mode 100644
index 0000000..6e3103f
--- /dev/null
+++ b/north-glass-erp/northglass-erp/src/views/pp/report/TeamOutput.vue
@@ -0,0 +1,291 @@
+<script setup>
+
+import {reactive, ref} from "vue";
+import {useRouter} from 'vue-router'
+let router=useRouter()
+const getTableRow = (row,type) =>{
+ switch (type) {
+ case 'edit' :{
+ //alert('鎴戞帴鏀跺埌瀛愮粍浠朵紶閫佺殑缂栬緫淇℃伅')
+ router.push({path: '/main/reportingWorks/ReportingWorkDetail', query: { id: row.id }})
+ break
+ }
+ case 'delete':{
+ alert('鎴戞帴鏀跺埌瀛愮粍浠朵紶閫佺殑鍒犻櫎淇℃伅')
+ break
+ }
+ case 'setType':{
+ alert('鎴戞帴鏀跺埌瀛愮粍浠朵紶閫佺殑鍙嶅鐘舵��')
+ break
+ }
+ }
+}
+
+//琛ㄥ熬姹傚拰
+const sumNum = (list, field) => {
+ let count = 0
+ list.forEach(item => {
+ count += Number(item[field])
+ })
+ return count.toFixed(2)
+}
+
+//瀛愮粍浠舵帴鏀跺弬鏁�
+
+const gridOptions = reactive({
+ border: "full",//琛ㄦ牸鍔犺竟妗�
+ keepSource: true,//淇濇寔婧愭暟鎹�
+ align: 'center',//鏂囧瓧灞呬腑
+ stripe:true,//鏂戦┈绾�
+ rowConfig: {isCurrent: true, isHover: true,height: 50},//榧犳爣绉诲姩鎴栭�夋嫨楂樹寒
+ id: 'CustomerList',
+ showFooter: true,//鏄剧ず鑴�
+ printConfig: {},
+ importConfig: {},
+ exportConfig: {},
+ scrollY:{ enabled: true },//寮�鍚櫄鎷熸粴鍔�
+ showOverflow:true,
+ columnConfig: {
+ resizable: true,
+ useKey: true
+ },
+ filterConfig: { //绛涢�夐厤缃」
+ remote: true
+ },
+ customConfig: {
+ storage: true
+ },
+ editConfig: {
+ trigger: 'click',
+ mode: 'row',
+ showStatus: true
+ },//琛ㄥご鍙傛暟
+ columns:[
+ {type:'expand',fixed:"left",slots: { content:'content' },width: 50},
+ { type: 'seq',fixed:"left", title: '鑷簭', width: 50 },
+ {field: '1', width: 120, title: '鎶ュ伐鏃堕棿',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, },
+ {field: '2',width: 120, title: '宸ュ簭', sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }},
+ {field: '3', width: 130,title: '鐝粍鍚嶇О', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }},
+ {field: '4',width: 120, title: '椤圭洰鍚嶇О',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true},
+ {field: '5', width: 100,title: '娴佺▼鍗″彿', filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true},
+ {field: '6', width: 100,title: '浜у搧澶х被', sortable: true},
+ {field: '7',width: 100, title: '浜у搧灏忕被', sortable: true},
+ {field: '8',width: 120, title: '鍦ㄥ埗鍝佸悕绉�', sortable: true,showOverflow:"ellipsis"},
+ {field: '9', width: 110,title: '纾ㄨ竟绫诲瀷', sortable: true},
+ {field: '10', width: 100,title: '褰㈢姸', sortable: true},
+ {field: '11',width: 100, title: '鍘氬害', sortable: true},
+ {field: '12',width: 110, title: '瀹屽伐鏁伴噺', sortable: true},
+ {field: '13',width: 110, title: '瀹屽伐闈㈢Н', sortable: true},
+ {field: '14',width: 110, title: '骞虫柟姣背(澶�)', sortable: true},
+ {field: '15',width: 110, title: '鍖呰鏂瑰紡', sortable: true},
+ ],//琛ㄥご鎸夐挳
+
+ toolbarConfig: {
+ // buttons: [{
+ //
+ // }],
+ import: false,
+ export: true,
+ print: true,
+ zoom: true,
+ custom: true
+ },
+ data: [
+ {
+ 1:'2023-01-01',
+ 2:'閽㈠寲',
+ 3:'閽㈠寲涓�鐝�',
+ 4:'閾跺窛澶фゼ',
+ 5:'NG23010121A01',
+ 6:'涓┖鐜荤拑',
+ 7:'骞充腑绌哄す鑳�',
+ 8:'5mmLYE-70骞抽挗(澶�)+20mmA(瀵�)+5mm瓒呯櫧骞抽挗(鍐�)',
+ 9:'绮剧(',
+ 10:'鏅瀷',
+ 11:'5',
+ 12:'11',
+ 13:'41.14',
+ 14:'123.33',
+ 15:'',
+
+ },
+ {
+ 1:'2023-01-01',
+ 2:'閽㈠寲',
+ 3:'閽㈠寲涓�鐝�',
+ 4:'閾跺窛澶фゼ',
+ 5:'NG23010121A01',
+ 6:'涓┖鐜荤拑',
+ 7:'骞充腑绌哄す鑳�',
+ 8:'5mmLYE-70骞抽挗(澶�)+20mmA(瀵�)+5mm瓒呯櫧骞抽挗(鍐�)',
+ 9:'绮剧(',
+ 10:'鏅瀷',
+ 11:'5',
+ 12:'11',
+ 13:'41.14',
+ 14:'123.33',
+ 15:'',
+
+ },
+ {
+ 1:'2023-01-01',
+ 2:'閽㈠寲',
+ 3:'閽㈠寲涓�鐝�',
+ 4:'閾跺窛澶фゼ',
+ 5:'NG23010121A01',
+ 6:'涓┖鐜荤拑',
+ 7:'骞充腑绌哄す鑳�',
+ 8:'5mmLYE-70骞抽挗(澶�)+20mmA(瀵�)+5mm瓒呯櫧骞抽挗(鍐�)',
+ 9:'绮剧(',
+ 10:'鏅瀷',
+ 11:'5',
+ 12:'11',
+ 13:'41.14',
+ 14:'123.33',
+ 15:'',
+
+ },
+ {
+ 1:'2023-01-01',
+ 2:'閽㈠寲',
+ 3:'閽㈠寲涓�鐝�',
+ 4:'閾跺窛澶фゼ',
+ 5:'NG23010121A01',
+ 6:'涓┖鐜荤拑',
+ 7:'骞充腑绌哄す鑳�',
+ 8:'5mmLYE-70骞抽挗(澶�)+20mmA(瀵�)+5mm瓒呯櫧骞抽挗(鍐�)',
+ 9:'绮剧(',
+ 10:'鏅瀷',
+ 11:'5',
+ 12:'11',
+ 13:'41.14',
+ 14:'123.33',
+ 15:'',
+
+ },
+ ],//table body瀹為檯鏁版嵁
+ //鑴氶儴姹傚拰
+ footerMethod ({ columns, data }) {//椤佃剼鍑芥暟
+ let footList=['12','13','14']
+ return[
+ columns.map((column, columnIndex) => {
+ if (columnIndex === 0) {
+ return '鍚堣:'
+ }
+ if (footList.includes(column.field)) {
+ return sumNum(data, column.field)
+ }
+ return ''
+ })
+ ]
+ }
+
+})
+
+const value = ref('')
+const options = [
+ {
+ value: 'Option1',
+ label: 'Option1',
+ },
+ {
+ value: 'Option2',
+ label: 'Option2',
+ },
+ {
+ value: 'Option3',
+ label: 'Option3',
+ },
+]
+
+const form = reactive({
+ name: '',
+ region: '',
+ date1: '',
+ date2: '',
+ delivery: false,
+ type: [],
+ resource: '',
+ desc: '',
+
+})
+
+</script>
+
+<template>
+ <div class="main-div-customer">
+ <div id="selectForm">
+ <el-row :gutter="0">
+ <!-- <el-input placeholder="閿�鍞崟鍙�" v-model="form.name" style="width: 150px"/>-->
+ <!-- <el-input placeholder="椤圭洰鍚嶇О" v-model="form.name" style="width: 150px"/>-->
+
+ <el-date-picker
+ v-model="form.date1"
+ type="daterange"
+ start-placeholder="寮�濮嬫椂闂�"
+ end-placeholder="缁撴潫鏃堕棿"
+ :default-time="defaultTime"
+ style="width: 100px"
+ />
+
+ <el-select v-model="value" class="m-2" placeholder="鏌ヨ绫诲瀷">
+ <el-option
+ v-for="item in options"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ />
+ </el-select>
+ <el-button type="primary">鏌ヨ</el-button>
+ </el-row>
+
+ </div>
+ <vxe-grid
+ max-height="100%"
+ @filter-change="filterChanged"
+ class="mytable-scrollbar"
+ ref="xGrid"
+ v-bind="gridOptions"
+
+ >
+ <!-- @toolbar-button-click="toolbarButtonClickEvent"-->
+ <!-- 涓嬫媺鏄剧ず鎵�鏈変俊鎭彃妲�-->
+ <template #content="{ row }">
+ <ul class="expand-wrapper">
+ <li v-for="(item,index) in gridOptions.columns" v-show="item.field!=undefined ">
+ <span style="font-weight: bold">{{item.title+': '}}</span>
+ <span>{{ row[item.field] }}</span>
+ </li>
+ </ul>
+ </template>
+
+ <!--宸﹁竟鍥哄畾鏄剧ず鐨勬彃妲�-->
+ <template #button_slot="{ row }">
+ <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">缂栬緫</el-button>
+ <el-button @click="getTableRow(row,'setType')" link type="primary" size="small">鍙嶅</el-button>
+ <el-button @click="getTableRow(row,'delete')" link type="primary" size="small">鍒犻櫎</el-button>
+ </template>
+
+ <template #num1_filter="{ column, $panel }">
+ <div>
+ <div v-for="(option, index) in column.filters" :key="index">
+ <input type="type" v-model="option.data" @input="changeFilterEvent($event, option, $panel)"/>
+ </div>
+ </div>
+ </template>
+
+
+ </vxe-grid>
+ </div>
+</template>
+
+<style scoped>
+.main-div-customer{
+ width: 99%;
+ height: 100%;
+}
+#selectForm {
+ width: 60%;
+ text-align: center;
+}
+</style>
\ No newline at end of file
--
Gitblit v1.8.0