From ef092275e5a6307622bb17a5e647cb180b6261f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E9=9B=AA?= <1617763071@qq.com> Date: Thu, 26 Mar 2026 11:05:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A8=A1=E7=B3=8A=E6=A3=80?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tankSolutionSystem/info.vue | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/views/qualityManagement/tankSolutionSystem/info.vue b/src/views/qualityManagement/tankSolutionSystem/info.vue index e7b717f..9e4f9a5 100644 --- a/src/views/qualityManagement/tankSolutionSystem/info.vue +++ b/src/views/qualityManagement/tankSolutionSystem/info.vue @@ -95,7 +95,7 @@ import dispatcherDialog from './components/dispatcherDialog.vue' import addEditInfoDialog from './components/addEditInfoDialog.vue' import basicImport from '@/components/basic-import/main.vue' // import calculateNeedValuesByFormula fro/m '@/utils/calculateNeedValuesByFormula' -import {getList,getDetail,deleteInfo,getManager,getPerson,getTeam,setBatch} from '@/api/tankSolutionSystem/info' +import {getList,getDetail,deleteInfo,getManager,getPerson,getTeam,setBatch,getWorkCenter} from '@/api/tankSolutionSystem/info' export default { components: { dispatcherDialog, addEditInfoDialog,basicImport }, data() { @@ -169,7 +169,7 @@ export default { type: 'select', sortable: true, width: 150, - filter: true, + filterable: true, span: 8, search: true, rules: [ @@ -179,8 +179,7 @@ export default { trigger: 'blur', }, ], - // dicUrl: '/blade-desk/bsWorkCenter/getList', - dicUrl:'/blade-desk/BA/WorkCenter/listForSelect', + dicData: [], props: { label: 'wcName', value: 'id', @@ -693,6 +692,7 @@ export default { managerList:[], teamList:[], personList:[], + workCenterList:[], // data1:[ // {addPoint:1,testValue:15,volume:10,name:"CUCN",actualValue:20,needValue:30}, @@ -704,6 +704,7 @@ export default { this.getManagerList() this.getTeamList() this.getPersonList() + this.getWorkCenterList() }, methods: { // 主管工艺下拉 @@ -724,6 +725,17 @@ export default { this.teamList = res.data.data }) }, + // 作业中心下拉 + getWorkCenterList(){ + getWorkCenter().then(res =>{ + this.workCenterList = res.data.data + // 动态设置dicData + const column = this.option.column.find(col => col.prop === 'wcName') + if(column) { + column.dicData = res.data.data + } + }) + }, addInfo(){ this.infoType = 'add' this.rowId = null