Commit 00026475 authored by zhoumaotao's avatar zhoumaotao

增加部门字段

parent 56217ac4
......@@ -18,8 +18,8 @@
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="所在公司" ref="bmid" prop="bmid">
<RelSelect style="width: 100%;" :readonly="readonly" src='jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect>
<el-form-item label="所在公司" ref="gsid" prop="gsid">
<RelSelect style="width: 100%;" :readonly="readonly" src='jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
......@@ -31,6 +31,11 @@
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="所在部门" ref="bmid" prop="bmid">
<RelSelect hasValue :optionsData='optionsData' style="width: 100%;" :params="{}" src='/kzzx/bm/query' clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="违章日期" ref="wzrq" prop="wzrq">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
......@@ -288,7 +293,11 @@
},
/* form提交时的规则,具体规则参考官网*/
rules: {
bmid: [{
/* bmid: [{
required: true,
trigger: 'blur'
}, ],
gsid: [{
required: true,
trigger: 'blur'
}, ],
......@@ -303,7 +312,7 @@
wzrq: [{
required: true,
trigger: 'blur'
}, ]
}, ]*/
}
}
},
......@@ -311,6 +320,7 @@
wgrSelected(row){
this.form.userid=row.id
this.form.phone=row.phone||''
this.form.bmid=row.bmid||''
}
}
}
......
......@@ -79,7 +79,8 @@
//{label: "状态", prop: "ztName", fieldType: "ftString",width:90},
{label: "工号", prop: "wzrcode", fieldType: "ftString",width:120},
{label: "姓名", prop: "wzr", fieldType: "ftString",width:160},
{label: "所在公司", prop: "bmName", fieldType: "ftString",width:160},
{label: "所在部门", prop: "bmName", fieldType: "ftString",width:160},
{label: "所在公司", prop: "gsName", fieldType: "ftString",width:160},
{label: "所在班组", prop: "bzName", fieldType: "ftString",width:160},
{label: "联系手机", prop: "phone", fieldType: "ftString",width:120},
{label: "违章日期", prop: "wzrq", fieldType: "ftDate"},
......
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