|
@@ -24,17 +24,17 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="8">
|
|
<a-col :span="8">
|
|
<a-form-item label="创建人" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
<a-form-item label="创建人" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
- <a-input v-decorator="[ 'creater', validatorRules.creater]" placeholder="请输入创建人"></a-input>
|
|
|
|
|
|
+ <a-input v-decorator="[ 'creater', validatorRules.creater]" placeholder="请输入创建人" disabled></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="8">
|
|
<a-col :span="8">
|
|
<a-form-item label="创建部门" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
<a-form-item label="创建部门" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
- <a-input v-decorator="[ 'createrDept', validatorRules.createrDept]" placeholder="请输入创建部门"></a-input>
|
|
|
|
|
|
+ <a-input v-decorator="[ 'createrDept', validatorRules.createrDept]" placeholder="请输入创建部门" disabled></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="8">
|
|
<a-col :span="8">
|
|
<a-form-item label="创建时间" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
<a-form-item label="创建时间" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
- <j-date placeholder="请选择创建时间" v-decorator="[ 'createDate']" :trigger-change="true" style="width: 100%"/>
|
|
|
|
|
|
+ <j-date placeholder="请选择创建时间" v-decorator="[ 'createDate']" :trigger-change="true" style="width: 100%" disabled/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="8">
|
|
<a-col :span="8">
|
|
@@ -89,6 +89,7 @@
|
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
|
import { validateDuplicateValue } from '@/utils/util'
|
|
import { validateDuplicateValue } from '@/utils/util'
|
|
import JDate from '@/components/jeecg/JDate'
|
|
import JDate from '@/components/jeecg/JDate'
|
|
|
|
+ import moment from 'moment'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'AssetInModal',
|
|
name: 'AssetInModal',
|
|
@@ -122,10 +123,12 @@
|
|
createrDept: {rules: [
|
|
createrDept: {rules: [
|
|
]},
|
|
]},
|
|
operator: {rules: [
|
|
operator: {rules: [
|
|
|
|
+ {required: true, message: '请选择入库人 !'},
|
|
]},
|
|
]},
|
|
operatorDept: {rules: [
|
|
operatorDept: {rules: [
|
|
]},
|
|
]},
|
|
operatorDate: {rules: [
|
|
operatorDate: {rules: [
|
|
|
|
+ {required: true, message: '请选择入库日期 !'},
|
|
]},
|
|
]},
|
|
},
|
|
},
|
|
refKeys: ['assetInDetail', ],
|
|
refKeys: ['assetInDetail', ],
|
|
@@ -157,8 +160,14 @@
|
|
key: 'assetsCategory',
|
|
key: 'assetsCategory',
|
|
type: FormTypes.input,
|
|
type: FormTypes.input,
|
|
width:"200px",
|
|
width:"200px",
|
|
- placeholder: '请输入${title}',
|
|
|
|
- defaultValue: '',
|
|
|
|
|
|
+ type: FormTypes.select,
|
|
|
|
+ options: [ // 下拉选项
|
|
|
|
+ { title: '办公家具', value: '办公家具' },
|
|
|
|
+ { title: '办公设备', value: '办公设备' },
|
|
|
|
+ { title: '不动产', value: '不动产' },
|
|
|
|
+ { title: '车辆', value: '车辆' },
|
|
|
|
+ { title: '其他', value: '其他' },
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '品牌',
|
|
title: '品牌',
|
|
@@ -245,8 +254,8 @@
|
|
key: 'user',
|
|
key: 'user',
|
|
type: FormTypes.popup,
|
|
type: FormTypes.popup,
|
|
popupCode:"user_dept",
|
|
popupCode:"user_dept",
|
|
- destFields:"user,userDept",
|
|
|
|
- orgFieldse:"realname,depart_name",
|
|
|
|
|
|
+ destFields:"user,userDept,state",
|
|
|
|
+ orgFieldse:"realname,depart_name,state",
|
|
width:"200px",
|
|
width:"200px",
|
|
placeholder: '请输入${title}',
|
|
placeholder: '请输入${title}',
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
@@ -300,6 +309,15 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ init(){
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.form.setFieldsValue({
|
|
|
|
+ creater: this.$store.getters.userInfo.realname,
|
|
|
|
+ createrDept: this.$store.getters.userInfo.deptName,
|
|
|
|
+ createDate: moment().format('YYYY-MM-DD')
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
getAllTable() {
|
|
getAllTable() {
|
|
let values = this.tableKeys.map(key => getRefPromise(this, key))
|
|
let values = this.tableKeys.map(key => getRefPromise(this, key))
|
|
return Promise.all(values)
|
|
return Promise.all(values)
|