fix:车间出入库不要编号,默认登录人
This commit is contained in:
parent
f890ca086d
commit
fdffd8a4ef
|
|
@ -33,11 +33,11 @@
|
||||||
style="margin: 40px"
|
style="margin: 40px"
|
||||||
>
|
>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :md="12" :sm="24">
|
<!-- <el-col :md="12" :sm="24">
|
||||||
<el-form-item label="编号" prop="number">
|
<el-form-item label="编号" prop="number">
|
||||||
<el-input v-model="form.number" placeholder="编号" />
|
<el-input v-model="form.number" placeholder="编号" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col> -->
|
||||||
<el-col :md="12" :sm="24">
|
<el-col :md="12" :sm="24">
|
||||||
<el-form-item label="出入库日期">
|
<el-form-item label="出入库日期">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
|
|
@ -407,8 +407,21 @@ export default {
|
||||||
//车间人员
|
//车间人员
|
||||||
getDeptUsers() {
|
getDeptUsers() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
let userInfo = that.$TOOL.data.get("USER_INFO");
|
||||||
that.$API.system.user.list.req({ depts: that.deptId, page: 0 }).then((res) => {
|
that.$API.system.user.list.req({ depts: that.deptId, page: 0 }).then((res) => {
|
||||||
that.userOptions = res;
|
that.userOptions = res;
|
||||||
|
let arr = res.filter(item=>{
|
||||||
|
return item.id==userInfo.id;
|
||||||
|
})
|
||||||
|
if(arr.length>0){
|
||||||
|
that.form.do_user = userInfo.id;
|
||||||
|
}else{
|
||||||
|
let obj = {};
|
||||||
|
obj.id = userInfo.id;
|
||||||
|
obj.name = userInfo.name;
|
||||||
|
that.userList.push(obj)
|
||||||
|
that.form.do_user = userInfo.id;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//仓库人员
|
//仓库人员
|
||||||
|
|
@ -477,6 +490,7 @@ export default {
|
||||||
table_submit() {
|
table_submit() {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.inm.mio.submit.req(that.mioId).then((res) => {
|
that.$API.inm.mio.submit.req(that.mioId).then((res) => {
|
||||||
|
that.$emit('closed')
|
||||||
that.$message.success("提交成功");
|
that.$message.success("提交成功");
|
||||||
that.visible = false;
|
that.visible = false;
|
||||||
// that.$emit("closed");
|
// that.$emit("closed");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue