feat: ofm-seal 修改form 表单
This commit is contained in:
parent
3af6cba243
commit
be9db47732
|
|
@ -27,10 +27,10 @@
|
|||
</el-form-item>
|
||||
<el-form-item label="是否借出">
|
||||
<el-radio-group v-model="localForm.is_lending" :disabled="localMode ==='show'">
|
||||
<el-radio label="true">是</el-radio>
|
||||
<el-radio label="fasle">否</el-radio>
|
||||
<el-radio :label="true">是</el-radio>
|
||||
<el-radio :label="false">否</el-radio>
|
||||
</el-radio-group>
|
||||
|
||||
<div style="margin-top: 10px; width: 100%;">
|
||||
<el-date-picker v-if="localForm.is_lending===true"
|
||||
v-model="timeRange"
|
||||
type="daterange"
|
||||
|
|
@ -43,6 +43,7 @@
|
|||
:disabled="localMode ==='show'"
|
||||
@change="handleDateChange">
|
||||
</el-date-picker>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="实际归还日期"
|
||||
v-if="['借用中', '结束'].includes(localForm.ticket_?.state_?.name)">
|
||||
|
|
@ -66,8 +67,6 @@
|
|||
:disabled="localMode ==='show'">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item label="文件内容">
|
||||
<sc-upload-file
|
||||
v-model="localForm.file"
|
||||
|
|
@ -141,14 +140,7 @@ export default {
|
|||
let that = this;
|
||||
if (that.t_id) {
|
||||
that.getTid();
|
||||
}else {
|
||||
if(that.lending_type == 'outer'){
|
||||
that.localForm.is_lending = true;
|
||||
}else{
|
||||
that.localForm.is_lending = false;
|
||||
}
|
||||
}
|
||||
that.initTimeRange();
|
||||
},
|
||||
watch: {
|
||||
'localForm.actual_return_date'(val) {
|
||||
|
|
@ -175,6 +167,7 @@ export default {
|
|||
if (that.t_id) {
|
||||
that.$API.ofm.lendingseal.item.req(that.t_id).then(res=>{
|
||||
that.localForm = res;
|
||||
that.initTimeRange();
|
||||
if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) {
|
||||
that.localMode = "edit";
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Reference in New Issue