Commit 32060d3d by zhaopanyu

zpy 8.16

parent 063e4e48
...@@ -5,12 +5,8 @@ ...@@ -5,12 +5,8 @@
<el-input v-model="queryParams.equipmentName" placeholder="请输入设备名称" clearable /> <el-input v-model="queryParams.equipmentName" placeholder="请输入设备名称" clearable />
</el-form-item> </el-form-item>
<el-form-item label="领用人" prop="recipientBy"> <el-form-item label="领用人" prop="recipientBy">
<el-select v-model="queryParams.recipientBy" filterable placeholder="请选择领用人" clearable> <el-input v-model="queryParams.recipientBy" placeholder="请输入领用人" clearable />
<el-option v-for="(item, index) in userListly" :key="index" :label="item.userName" :value="item.userId">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="getList">搜索</el-button> <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> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
...@@ -249,6 +245,7 @@ export default { ...@@ -249,6 +245,7 @@ export default {
this.loading = false; this.loading = false;
}) })
}, },
// 0新增、1编辑、2查看
handleOption(type, item) { handleOption(type, item) {
this.collectionForm = { this.collectionForm = {
id: '', id: '',
...@@ -374,10 +371,8 @@ export default { ...@@ -374,10 +371,8 @@ export default {
submitForm() { submitForm() {
const recipientById = this.collectionForm.recipientById; const recipientById = this.collectionForm.recipientById;
this.collectionForm.recipientBy = recipientById == '' ? '' : this.userListly.find(item => item.userId == recipientById).userName this.collectionForm.recipientBy = recipientById == '' ? '' : this.userListly.find(item => item.userId == recipientById).userName
const receivedById = this.collectionForm.receivedById; const receivedById = this.collectionForm.receivedById;
this.collectionForm.receivedBy = receivedById == '' ? '' : this.adminUserListjs.find(item => item.adminId == receivedById).admin this.collectionForm.receivedBy = receivedById == '' ? '' : this.adminUserListjs.find(item => item.adminId == receivedById).admin
this.$refs["achievementForm"].validate(valid => { this.$refs["achievementForm"].validate(valid => {
if (valid) { if (valid) {
if (this.nowType == 1) { 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