|
@@ -51,7 +51,7 @@
|
51
|
51
|
</template>
|
52
|
52
|
|
53
|
53
|
<script>
|
54
|
|
-import { getcode,addstorehouse,updatestorehouse,getusername,updatestatus } from "@/api/warehouse";
|
|
54
|
+import { getcode,addstorehouse,updatestorehouse,getusername,updatestatus,getcreaterid } from "@/api/warehouse";
|
55
|
55
|
import login from '../../../../mock/login'
|
56
|
56
|
export default {
|
57
|
57
|
data() {
|
|
@@ -90,6 +90,9 @@ export default {
|
90
|
90
|
trigger: "change",
|
91
|
91
|
},],
|
92
|
92
|
desc: [{ required: true, message: "请填写活动形式", trigger: "blur" }],
|
|
93
|
+ admin_id:[{
|
|
94
|
+ required:true,message:"管理员不能为空",trigger: "change"
|
|
95
|
+ }],
|
93
|
96
|
},
|
94
|
97
|
type:"",
|
95
|
98
|
// storehouse:{
|
|
@@ -126,6 +129,7 @@ export default {
|
126
|
129
|
this.title = "新增仓库";
|
127
|
130
|
this.dialogVisible = true;
|
128
|
131
|
this.usernamelist()
|
|
132
|
+ this.getcreater()
|
129
|
133
|
} else if (type == 2) {
|
130
|
134
|
this.show_type = 2;
|
131
|
135
|
this.storehouse_id = data.ID;
|
|
@@ -140,6 +144,14 @@ export default {
|
140
|
144
|
this.usernamelist()
|
141
|
145
|
}
|
142
|
146
|
},
|
|
147
|
+ //获取当前登录人的id
|
|
148
|
+ getcreater(){
|
|
149
|
+ getcreaterid().then((res) => {
|
|
150
|
+ if (res.data.state == 1){
|
|
151
|
+ this.ruleForm.admin_id = res.data.data.list;
|
|
152
|
+ }
|
|
153
|
+ })
|
|
154
|
+ },
|
143
|
155
|
// 获取仓库编码接口
|
144
|
156
|
initstorehouseData() {
|
145
|
157
|
getcode().then((res) => {
|