Commit 32060d3d by zhaopanyu

zpy 8.16

parent 063e4e48
......@@ -5,12 +5,8 @@
<el-input v-model="queryParams.equipmentName" placeholder="请输入设备名称" clearable />
</el-form-item>
<el-form-item label="领用人" prop="recipientBy">
<el-select v-model="queryParams.recipientBy" filterable placeholder="请选择领用人" clearable>
<el-option v-for="(item, index) in userListly" :key="index" :label="item.userName" :value="item.userId">
</el-option>
</el-select>
<el-input v-model="queryParams.recipientBy" placeholder="请输入领用人" clearable />
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="getList">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
......@@ -249,6 +245,7 @@ export default {
this.loading = false;
})
},
// 0新增、1编辑、2查看
handleOption(type, item) {
this.collectionForm = {
id: '',
......@@ -285,7 +282,7 @@ export default {
}
this.dialogVisible = true
},
//获取领用人数据
getSelectUser() {
getUserList().then(res => {
......@@ -350,7 +347,7 @@ export default {
}
},
reset() {
// 这里需要重置对话框表单
this.collectionForm = {
......@@ -374,10 +371,8 @@ export default {
submitForm() {
const recipientById = this.collectionForm.recipientById;
this.collectionForm.recipientBy = recipientById == '' ? '' : this.userListly.find(item => item.userId == recipientById).userName
const receivedById = this.collectionForm.receivedById;
this.collectionForm.receivedBy = receivedById == '' ? '' : this.adminUserListjs.find(item => item.adminId == receivedById).admin
this.$refs["achievementForm"].validate(valid => {
if (valid) {
if (this.nowType == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment