From 9e9c34fe3454d7aa4cab8d4b76608d0cf9f51e74 Mon Sep 17 00:00:00 2001 From: 叶松 <2217086471@qq.com> Date: 星期三, 22 十一月 2023 10:31:28 +0800 Subject: [PATCH] 增加制作人字段 --- web/src/views/DuctpiecePLM/ProductTerminal/ReinsInfoPrint.vue | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/web/src/views/DuctpiecePLM/ProductTerminal/ReinsInfoPrint.vue b/web/src/views/DuctpiecePLM/ProductTerminal/ReinsInfoPrint.vue index 0cca7d1..4db1005 100644 --- a/web/src/views/DuctpiecePLM/ProductTerminal/ReinsInfoPrint.vue +++ b/web/src/views/DuctpiecePLM/ProductTerminal/ReinsInfoPrint.vue @@ -55,6 +55,7 @@ <el-table-column prop="blockName" label="块号" align="center"></el-table-column> <el-table-column prop="printNum" label="数量(个)" align="center"></el-table-column> <el-table-column prop="realName" label="创建人" align="center"></el-table-column> + <el-table-column prop="platUserName" label="制作人" align="center"></el-table-column> <el-table-column prop="createTime" label="创建时间" align="center" show-overflow-tooltip></el-table-column> <el-table-column label="操作" align="center" width="300"> <template #default="{ row }"> @@ -124,6 +125,16 @@ :key="item.dictId" :label="item.dictName" :value="item.dictId"> + </el-option> + </el-select> + </el-form-item> + <el-form-item label="制作人:" prop="platUserId"> + <el-select v-model="ruleForm.platUserId" placeholder="请选择制作人" clearable filterable> + <el-option + v-for="item in optionsPerson" + :key="item.userId" + :label="item.realName" + :value="item.userId"> </el-option> </el-select> </el-form-item> @@ -198,10 +209,16 @@ message: '请输入数量', trigger: 'blur' }], + platUserId: [{ + required: true, + message: '请选择制作人', + trigger: 'change' + }], }, optionsSize:[],//尺寸 optionsHass:[],//配筋 optionsBlocks:[],//块号 + optionsPerson:[],//制作人 numLists:[5,10,15,20,25,30,40,50,60,70,80,90],//数字列表 } }, @@ -221,6 +238,7 @@ } that.searchButtonInfo(true); that.getAllProjects() + that.getAllPersons() }, methods: { //执行去打印 @@ -235,6 +253,16 @@ this.rowsData = row this.showPrint = true }, + //获取所有制作人 + getAllPersons(){ + this.$api.Personnerl.GETSTAFFALLDATA().then(res=>{ + if(res.statusMsg==='ok'){ + this.optionsPerson = res.data + }else{ + this.$message.warning(res.statusMsg) + } + }) + }, //选择个数 changeNum(value){ this.$set(this.ruleForm,'printNum',value) -- Gitblit v1.9.3