|
|
|
@ -45,14 +45,6 @@
|
|
|
|
|
:default-time="['00:00:00', '23:59:59']"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="立档单位名称" prop="organizationName">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.organizationName"
|
|
|
|
|
placeholder="请输入立档单位名称"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item> -->
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery"
|
|
|
|
|
>搜索</el-button
|
|
|
|
@ -94,7 +86,6 @@
|
|
|
|
|
|
|
|
|
|
<!-- 列表 -->
|
|
|
|
|
<el-table v-loading="loading" :data="list">
|
|
|
|
|
<!-- <el-table-column label="主键ID" align="center" prop="id" /> -->
|
|
|
|
|
<el-table-column label="库房名称" align="center" prop="name" />
|
|
|
|
|
<el-table-column label="库房编号" align="center" prop="code" />
|
|
|
|
|
<el-table-column label="库房地址" align="center" prop="address" />
|
|
|
|
@ -179,21 +170,23 @@
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="管理者姓名" prop="manegerName">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="manegerName"
|
|
|
|
|
filterable
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.manegerName"
|
|
|
|
|
placeholder="请选择管理者"
|
|
|
|
|
value-key="id"
|
|
|
|
|
@change="handleSelectUser"
|
|
|
|
|
readonly
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in userOptions"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="item"
|
|
|
|
|
:label="item.username"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-button
|
|
|
|
|
slot="append"
|
|
|
|
|
@click="handleSelectUser"
|
|
|
|
|
icon="el-icon-search"
|
|
|
|
|
style="
|
|
|
|
|
border-color: #46a6ff;
|
|
|
|
|
background-color: #46a6ff;
|
|
|
|
|
color: white;
|
|
|
|
|
"
|
|
|
|
|
></el-button>
|
|
|
|
|
</el-input>
|
|
|
|
|
<UserSelect ref="UserSelect" @onSelected="onUserSelected" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
@ -242,11 +235,11 @@ import {
|
|
|
|
|
exportDepotExcel,
|
|
|
|
|
} from "@/api/setting/depot";
|
|
|
|
|
import { getOrganizationPage } from "@/api/setting/organization";
|
|
|
|
|
import { listUser } from "@/api/system/user";
|
|
|
|
|
import UserSelect from "@/components/UserSelect/single.vue";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "Depot",
|
|
|
|
|
components: {},
|
|
|
|
|
components: { UserSelect },
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
// 遮罩层
|
|
|
|
@ -280,9 +273,7 @@ export default {
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {},
|
|
|
|
|
organizationList: [], //立档单位数据
|
|
|
|
|
userOptions: [], //用户数据
|
|
|
|
|
organizationName: null,
|
|
|
|
|
manegerName: null,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
@ -312,17 +303,6 @@ export default {
|
|
|
|
|
this.form.organizationId = val.id;
|
|
|
|
|
this.form.organizationName = val.organizationName;
|
|
|
|
|
},
|
|
|
|
|
//获取用户
|
|
|
|
|
getUserList() {
|
|
|
|
|
listUser().then((response) => {
|
|
|
|
|
this.userOptions = response.data.list;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
handleSelectUser(val) {
|
|
|
|
|
console.log(val);
|
|
|
|
|
this.form.manegerId = val.id;
|
|
|
|
|
this.form.manegerName = val.username;
|
|
|
|
|
},
|
|
|
|
|
/** 取消按钮 */
|
|
|
|
|
cancel() {
|
|
|
|
|
this.open = false;
|
|
|
|
@ -346,7 +326,6 @@ export default {
|
|
|
|
|
company: undefined,
|
|
|
|
|
remark: undefined,
|
|
|
|
|
};
|
|
|
|
|
this.manegerName = undefined;
|
|
|
|
|
this.organizationName = undefined;
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
},
|
|
|
|
@ -373,7 +352,6 @@ export default {
|
|
|
|
|
getDepot(id).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
this.organizationName = response.data.organizationName;
|
|
|
|
|
this.manegerName = response.data.manegerName;
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "修改库房管理";
|
|
|
|
|
});
|
|
|
|
@ -433,6 +411,17 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
// 人员选择弹窗
|
|
|
|
|
handleSelectUser() {
|
|
|
|
|
this.$refs.UserSelect.showFlag = true;
|
|
|
|
|
},
|
|
|
|
|
// 管理人选择
|
|
|
|
|
onUserSelected(obj) {
|
|
|
|
|
console.log(obj);
|
|
|
|
|
if (obj != undefined && obj != null) {
|
|
|
|
|
this.form.manegerName = obj.username;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|