From 0844d7f271f0e036638f596706ca1b58c5d5512a Mon Sep 17 00:00:00 2001 From: chenlu <1320612696@qq.com> Date: 星期五, 22 三月 2024 10:01:56 +0800 Subject: [PATCH] 添加流程卡查询明细数据,流程卡进度报表相关代码 --- north-glass-erp/northglass-erp/src/views/pp/report/ProcessCardProgress.vue | 171 +++++++++++++++++++++++++++++---------------------------- 1 files changed, 87 insertions(+), 84 deletions(-) diff --git a/north-glass-erp/northglass-erp/src/views/pp/report/ProcessCardProgress.vue b/north-glass-erp/northglass-erp/src/views/pp/report/ProcessCardProgress.vue index f2b4c5b..cb03764 100644 --- a/north-glass-erp/northglass-erp/src/views/pp/report/ProcessCardProgress.vue +++ b/north-glass-erp/northglass-erp/src/views/pp/report/ProcessCardProgress.vue @@ -1,7 +1,22 @@ <script setup> -import {reactive, ref} from "vue"; -import {useRouter} from 'vue-router' +import request from "@/utils/request" +import deepClone from "@/utils/deepClone" +import {ElDatePicker, ElMessage} from "element-plus" +import useProductGlassTypeStore from "@/stores/sd/product/productGlassType" +import {nextTick, onMounted, onUnmounted, reactive, ref, watch} from "vue" +import {Search} from "@element-plus/icons-vue" +import GlassType from "@/components/sd/product/GlassType.vue" +import {useRouter} from 'vue-router' +import Sortable from 'sortablejs' +import BasicTable from '@/components/basic/BasicTable.vue' +import {VXETable} from "vxe-table"; +import useUserInfoStore from "@/stores/userInfo"; +import {changeFilterEvent, filterChanged} from "@/hook" +import {addListener,toolbarButtonClickEvent} from "@/hook/mouseMove"; +import { useI18n } from 'vue-i18n' +//璇█鑾峰彇 +const { t } = useI18n() let router=useRouter() const getTableRow = (row,type) =>{ switch (type) { @@ -30,8 +45,56 @@ return count.toFixed(2) } -//瀛愮粍浠舵帴鏀跺弬鏁� +//瀹氫箟婊氬姩鏉¢珮搴� +let scrollTop = ref(null) +let scrollHeight = ref(null) +let clientHeight = ref(null) +const scrollEvnt = (row) => { + // 鍐呭楂樺害 + scrollTop.value = row.$event.target.scrollTop + scrollHeight.value = row.$event.target.scrollHeight + clientHeight.value = row.$event.target.clientHeight +} +//绛涢�夋潯浠讹紝鏈夊閿渶瑕佸厛瀹氫箟鏄庣粏閲岄潰鐨勬暟鎹� +let filterData = ref({ + order: { + project: '' + }, + orderDetail: { + productId: '', + productName: '', + computeGrossArea: '', + processingNote: '', + } +}) + + +//鐐瑰嚮鏌ヨ +const getWorkOrder = () => { + let inputVal = form.orderId + + request.post(`/processCard/flowCard/${inputVal}`, filterData.value).then((res) => { + if (res.code == 200) { + + pageTotal.value = res.data.total + xGrid.value.loadData(res.data.data) + gridOptions.loading = false + } else { + ElMessage.warning(res.msg) + } + }) +} + + +/*鍚庣杩斿洖缁撴灉澶氬眰宓屽灞曠ず*/ +const hasDecimal = (value) => { + const regex = /\./; // 瀹氫箟姝e垯琛ㄨ揪寮忥紝鏌ユ壘灏忔暟鐐� + return regex.test(value); // 杩斿洖true/false +} + +//瀛愮粍浠舵帴鏀跺弬鏁� +const xGrid = ref() const gridOptions = reactive({ border: "full",//琛ㄦ牸鍔犺竟妗� keepSource: true,//淇濇寔婧愭暟鎹� @@ -62,17 +125,18 @@ },//琛ㄥご鍙傛暟 columns:[ {type:'expand',fixed:"left",slots: { content:'content' },width: 50}, - {field: '1', width: 150, title: '浜у搧鍚嶇О',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, }, - {field: '2',width: 130, title: '鍗曠墖鍚嶇О', sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, - {field: '3', width: 120,title: '璁㈠崟绫诲瀷', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, - {field: '4',width: 110, title: '娴佺▼鍗″彿',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, - {field: '5', width: 90,title: '鏍囪', sortable: true,showOverflow:"ellipsis"}, - {field: '6', width: 90,title: '鏁伴噺', sortable: true}, - {field: '7',width: 90, title: '娆$牬鏁伴噺', sortable: true}, - {field: '8',width: 120, title: '鍒囧壊', sortable: true}, - {field: '9',width: 120, title: '纾ㄨ竟', sortable: true}, - {field: '10',width: 120, title: '閽㈠寲', sortable: true}, - {field: '11',width: 120, title: '鍏ュ簱闈㈢Н', sortable: true}, + {field: '1', width: 150, title: '浜у搧鍚嶇О',filters:[{ data: '' }],slots: { filter: 'num1_filter' },filterMethod: filterChanged}, + {field: '2',width: 130, title: '鍗曠墖鍚嶇О' ,filters:[{ data: '' }],slots: { filter: 'num1_filter' },filterMethod: filterChanged}, + {field: '3', width: 120,title: '璁㈠崟绫诲瀷',filters:[{ data: '' }],slots: { filter: 'num1_filter' },filterMethod: filterChanged}, + {field: '4',width: 110, title: '娴佺▼鍗″彿',filters:[{ data: '' }],slots: { filter: 'num1_filter' },filterMethod: filterChanged}, + {field: '5', width: 90,title: '鏍囪',showOverflow:"ellipsis"}, + {field: '6', width: 90,title: '鏁伴噺'}, + {field: '7',width: 90, title: '娆$牬鏁伴噺'}, + + {field: '8',width: 120, title: '鍒囧壊'}, + {field: '9',width: 120, title: '纾ㄨ竟'}, + {field: '10',width: 120, title: '閽㈠寲'}, + {field: '11',width: 120, title: '鍏ュ簱闈㈢Н'}, ],//琛ㄥご鎸夐挳 toolbarConfig: { @@ -86,45 +150,6 @@ custom: true }, data: [ - { - 1:'10mm瓒呯櫧UD60骞抽挗(澶�)+12Ar(缁�)+10mm瓒呯櫧骞抽挗+12Ar(缁�)+10mm瓒呯櫧骞抽挗(鍐�)', - 2:'10mm瓒呯櫧UD60骞抽挗(澶�)', - 3:'鏅�氳鍗�', - 4:'NG23052602A01/1', - 5:'1', - 6:'33', - 7:'1', - 8:'22', - 9:'22', - 10:'22', - 11:'314.13', - }, - { - 1:'10mm瓒呯櫧UD60骞抽挗(澶�)+12Ar(缁�)+10mm瓒呯櫧骞抽挗+12Ar(缁�)+10mm瓒呯櫧骞抽挗(鍐�)', - 2:'10mm瓒呯櫧骞抽挗+12Ar(缁�)', - 3:'鏅�氳鍗�', - 4:'NG23052602A01/2', - 5:'2', - 6:'33', - 7:'1', - 8:'22', - 9:'22', - 10:'22', - 11:'314.13', - }, - { - 1:'10mm瓒呯櫧UD60骞抽挗(澶�)+12Ar(缁�)+10mm瓒呯櫧骞抽挗+12Ar(缁�)+10mm瓒呯櫧骞抽挗(鍐�)', - 2:'10mm瓒呯櫧骞抽挗(鍐�)', - 3:'鏅�氳鍗�', - 4:'NG23052602A01/3', - 5:'3', - 6:'33', - 7:'1', - 8:'22', - 9:'22', - 10:'22', - 11:'314.13', - }, ],//table body瀹為檯鏁版嵁 //鑴氶儴姹傚拰 // footerMethod ({ columns, data }) {//椤佃剼鍑芥暟 @@ -144,31 +169,10 @@ }) -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: '', + orderId: '', }) @@ -187,9 +191,14 @@ <div class="main-div-customer" > <div id="selectForm"> <el-row :gutter="0"> - <el-input placeholder="閿�鍞崟鍙�" v-model="form.name" value="NG23110102" style="width: 150px"/> + <el-input v-model="form.orderId" clearable :placeholder="$t('order.orderId')" style="width: 130px"></el-input> - <el-button type="primary">鏌ヨ</el-button> + <el-button + @click="getWorkOrder" + id="select" + type="primary" :icon="Search">{{$t('basicData.search')}} + + </el-button> </el-row> </div> @@ -213,12 +222,6 @@ </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> -- Gitblit v1.8.0