From 6bbceeae0a692ef60f429dbca889752fcb09ec9a Mon Sep 17 00:00:00 2001 From: houshuai <17802598606@163.com> Date: 星期四, 03 七月 2025 19:42:01 +0800 Subject: [PATCH] 线边库和订单 基本页面搭建 --- src/views/qms/modules/inspectionItem/JSelectMultiInspectionTools.vue | 63 +++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-) diff --git a/src/views/qms/modules/inspectionItem/JSelectMultiInspectionTools.vue b/src/views/qms/modules/inspectionItem/JSelectMultiInspectionTools.vue new file mode 100644 index 0000000..c1de5e1 --- /dev/null +++ b/src/views/qms/modules/inspectionItem/JSelectMultiInspectionTools.vue @@ -0,0 +1,63 @@ +<template> + <!-- 瀹氫箟鍦ㄨ繖閲岀殑鍙傛暟閮芥槸涓嶅彲鍦ㄥ閮ㄨ鐩栫殑锛岄槻姝㈠嚭鐜伴棶棰� --> + <j-select-biz-component + :value="value" + :ellipsisLength="25" + :listUrl="url.list" + :columns="columns" + v-on="$listeners" + v-bind="attrs" + /> +</template> + +<script> + import JDate from '@comp/jeecg/JDate' + import JSelectBizComponent from '../../../../components/jeecgbiz/JSelectBizComponent' + + export default { + name: 'JSelectMultiInspectionTools', + components: {JDate, JSelectBizComponent}, + props: { + value: null, // any type + queryConfig: { + type: Array, + default: () => [] + }, + }, + data() { + return { + url: { list: '/qms/inspectionTools/list' }, + columns: [ + { title: '宸ュ叿缂栫爜', align: 'center', width: '25%', widthRight: '70%', dataIndex: 'toolCode' }, + { title: '宸ュ叿鍚嶇О', align: 'center', width: '25%', dataIndex: 'toolName' }, + { title: '宸ュ叿鐘舵��', align: 'center', width: '20%', dataIndex: 'toolStatus' }, + { title: '澶囨敞', align: 'center', width: '20%', dataIndex: 'remark' } + ], + // 瀹氫箟鍦ㄨ繖閲岀殑鍙傛暟閮芥槸鍙互鍦ㄥ閮ㄤ紶閫掕鐩栫殑锛屽彲浠ユ洿鐏垫椿鐨勫畾鍒跺寲浣跨敤鐨勭粍浠� + default: { + name: '宸ュ叿', + width: 1200, + displayKey: 'toolCode', + returnKeys: ['id', 'toolName'], + queryParamText: '宸ュ叿缂栫爜', + }, + // 澶氭潯浠舵煡璇㈤厤缃� + queryConfigDefault: [ + { + key: 'toolName', + label: '妫�楠屽伐鍏峰悕绉�', + }, + ], + } + }, + computed: { + attrs() { + return Object.assign(this.default, this.$attrs, { + queryConfig: this.queryConfigDefault.concat(this.queryConfig) + }) + } + } + } +</script> + +<style lang="less" scoped></style> \ No newline at end of file -- Gitblit v1.9.3