|
|
|
@ -56,7 +56,12 @@
|
|
|
|
|
:show-time="true" date-format="YYYY-MM-DD HH:mm:ss" style="width: 100%"/> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
<a-col :span="8"> |
|
|
|
|
<a-form-item label="序号" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-input-number v-decorator="['sort',validatorRules.sort]" placeholder="请输入序号" |
|
|
|
|
style="width: 100%" /> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="8"> |
|
|
|
|
<a-form-item label="文件" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<j-upload v-decorator="['fileId']" :trigger-change="true"></j-upload> |
|
|
|
@ -532,7 +537,8 @@
|
|
|
|
|
// 'blur'是鼠标失去焦点的时候会触发验证 |
|
|
|
|
materialType: { rules: [{ required: true, message: '请选择物资类型!' }] }, |
|
|
|
|
needTime: { rules: [{ required: true, message: '请选择需求时间!' }] }, |
|
|
|
|
processPlan: { rules: [{ required: true, message: '请选择流程计划!' }] } |
|
|
|
|
processPlan: { rules: [{ required: true, message: '请选择流程计划!' }] }, |
|
|
|
|
sort: { rules: [{ required: true, message: '请输入序号!' }] } |
|
|
|
|
}, |
|
|
|
|
isBu: undefined, |
|
|
|
|
planType: '' |
|
|
|
@ -1230,7 +1236,7 @@
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
console.log(this.data, '数据回显') |
|
|
|
|
let fieldval = pick(this.data, 'id', 'company', 'createTime', 'departId', 'createBy', 'materialType', 'processPlan', 'needTime', 'orderNumber', 'fileId', 'opinion') |
|
|
|
|
let fieldval = pick(this.data, 'id','planType', 'company', 'createTime', 'departId', 'createBy', 'materialType', 'processPlan', 'needTime','sort', 'orderNumber', 'fileId', 'opinion') |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.form.setFieldsValue(fieldval) |
|
|
|
|
}) |
|
|
|
|