Kaynağa Gözat

报名处理加维修人姓名

塔里木分支
wwp 11 ay önce
ebeveyn
işleme
521f70ea54
4 değiştirilmiş dosya ile 53 ekleme ve 17 silme
  1. +12
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/RepairReportStudent/handle/single.vue
  2. +10
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/RepairReportStudent/single.vue
  3. +26
    -16
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/RepairReportTeacher/handle/single.vue
  4. +5
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/RepairReportTeacher/single.vue

+ 12
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/RepairReportStudent/handle/single.vue Dosyayı Görüntüle

@@ -131,6 +131,13 @@
title="维修图片"
/>
<uploadFile @input="inputValue" :number="5" :folderId="folderId2" :value="fileList2" :readonly="!edit" :title="fileTitle2" :required="true"></uploadFile>
<l-input
@input="setValue('RepairReportStudenthandle.Repairname', $event)"
:value="getValue('RepairReportStudenthandle.Repairname')"
:disabled="!edit"
title="维修人姓名"
required
/>
</view>
<view class="maintenancetitle" v-if="mode=='evaluate' || mode=='view'">
评价
@@ -236,7 +243,7 @@ export default {
Reason: { type:'text', title: '故障原因' },
Material: { type:'text', title: '耗材信息' },
RepairImg: { type: "text", title: "维修图片" },
Repairname: { type: "text", title: "维修人姓名" },
},
},
// 数据源
@@ -372,6 +379,10 @@ export default {
this.TOAST("维修图片不能为空!")
return
}
if (!this.getValue('RepairReportStudenthandle.Repairname')) {
this.TOAST("维修人姓名不能为空!")
return
}
if (!(await this.CONFIRM('提交确认', '确定要提交本页表单内容吗?', true))) {
return
}


+ 10
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/RepairReportStudent/single.vue Dosyayı Görüntüle

@@ -137,6 +137,13 @@
title="维修图片"
/>
<uploadFile @input="inputValue" :number="5" :folderId="folderId2" :value="fileList2" readonly :title="fileTitle2" :required="true"></uploadFile>
<l-input
@input="setValue('RepairReportStudent.Repairname', $event)"
:value="getValue('RepairReportStudent.Repairname')"
disabled
title="维修人姓名"
required
/>
</view>
<view class="maintenancetitle" v-if="mode=='evaluate' || mode=='view'">
评价
@@ -241,6 +248,7 @@ export default {
Reason: { type:'text', title: '故障原因' },
Material: { type:'text', title: '耗材信息' },
RepairImg: { type: "text", title: "维修图片" },
Repairname: { type:'text', title: '维修人姓名' },
Evaluate: { type:'text', title: '评价' },
},
},
@@ -408,6 +416,7 @@ export default {
delete strEntity.Material
delete strEntity.RepairImg
delete strEntity.Evaluate
delete strEntity.Repairname
postData.strEntity = JSON.stringify(strEntity)
}else if(this.mode == 'edit') {
// strEntity.ID = this.origin.RepairReportStudent.ID
@@ -418,6 +427,7 @@ export default {
delete strEntity.Material
delete strEntity.RepairImg
delete strEntity.Evaluate
delete strEntity.Repairname
postData.strEntity = JSON.stringify(strEntity)
}else if(this.mode === 'evaluate') {
strEntity.ID = this.origin.RepairReportStudent.ID


+ 26
- 16
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/RepairReportTeacher/handle/single.vue Dosyayı Görüntüle

@@ -17,7 +17,8 @@
:value="getValue('RepairReportTeacherhandle.ServiceType')" :disabled="!add"
:range="dataSource.RepairReportTeacherhandle.ServiceType" title="报修类型" required />
<l-textarea @input="setValue('RepairReportTeacherhandle.Remark', $event)"
:value="getValue('RepairReportTeacherhandle.Remark')" :readonly="!add" title="故障描述" required placeholder="请填写故障描述(具体损坏部位,故障原因)例如:马桶故障,不上水;课桌损坏,断腿。" />
:value="getValue('RepairReportTeacherhandle.Remark')" :readonly="!add" title="故障描述" required
placeholder="请填写故障描述(具体损坏部位,故障原因)例如:马桶故障,不上水;课桌损坏,断腿。" />


<!-- <l-upload-file
@@ -42,7 +43,8 @@
title="照片"
/> -->
<l-textarea @input="setValue('RepairReportTeacherhandle.LeaveMsg', $event)"
:value="getValue('RepairReportTeacherhandle.LeaveMsg')" :readonly="!add" required title="给维修人留言" placeholder="请填写给维修人员留言,如约定维修时间。详细描述宿舍什么时间有人,教室什么时候没课,维修人员可以过去维修。" />
:value="getValue('RepairReportTeacherhandle.LeaveMsg')" :readonly="!add" required title="给维修人留言"
placeholder="请填写给维修人员留言,如约定维修时间。详细描述宿舍什么时间有人,教室什么时候没课,维修人员可以过去维修。" />


</view>
@@ -59,8 +61,10 @@
<l-input @input="setValue('RepairReportTeacherhandle.RepairImg', $event)"
:value="getValue('RepairReportTeacherhandle.RepairImg')" disabled="disabled" v-show="false"
title="维修图片" />
<uploadFile @input="inputValue" :number="5" :folderId="folderId2" :value="fileList2" :readonly="!edit" :title="fileTitle2"
:required="true"></uploadFile>
<uploadFile @input="inputValue" :number="5" :folderId="folderId2" :value="fileList2" :readonly="!edit"
:title="fileTitle2" :required="true"></uploadFile>
<l-input @input="setValue('RepairReportTeacherhandle.Repairname', $event)"
:value="getValue('RepairReportTeacherhandle.Repairname')" :disabled="!edit" title="维修人姓名" required />
</view>
<view class="maintenancetitle" v-if="mode=='evaluate' || mode=='view'">
评价
@@ -202,7 +206,10 @@
type: "text",
title: "维修图片"
},

Repairname: {
type: "text",
title: "维修人姓名"
},
},
},
// 数据源
@@ -233,10 +240,10 @@

methods: {
inputValue(val) {
if(this.mode == 'create' || this.mode == 'edit') {
if (this.mode == 'create' || this.mode == 'edit') {
this.fileList2 = val;
}
},
// 页面初始化
async init(type, id) {
@@ -337,22 +344,25 @@
return
}
if (!this.getValue('RepairReportTeacherhandle.RepairTime')) {
this.TOAST("处理日期不能为空!")
return
this.TOAST("处理日期不能为空!")
return
}
if (!this.getValue('RepairReportTeacherhandle.Reason')) {
this.TOAST("故障原因不能为空!")
return
this.TOAST("故障原因不能为空!")
return
}
if (!this.getValue('RepairReportTeacherhandle.Material')) {
this.TOAST("耗材信息不能为空!")
return
this.TOAST("耗材信息不能为空!")
return
}
if (this.fileList2.length <= 0) {
this.TOAST("维修图片不能为空!")
return
this.TOAST("维修图片不能为空!")
return
}
if (!this.getValue('RepairReportTeacherhandle.Repairname')) {
this.TOAST("维修人姓名不能为空!")
return
}

if (!(await this.CONFIRM('提交确认', '确定要提交本页表单内容吗?', true))) {
return
}


+ 5
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/RepairReportTeacher/single.vue Dosyayı Görüntüle

@@ -115,6 +115,8 @@
title="维修图片"
/>
<uploadFile :number="5" :folderId="folderId2" :value="fileList2" readonly :title="fileTitle2" :required="true"></uploadFile>
<l-input @input="setValue('RepairReportTeacher.Repairname', $event)"
:value="getValue('RepairReportTeacher.Repairname')" disabled title="维修人姓名" required />
<!-- <l-upload-file
@input="setValue('RepairReportTeacher.RepairImg', $event)"
:value="getValue('RepairReportTeacher.RepairImg')"
@@ -226,6 +228,7 @@ export default {
Reason: { type:'text', title: '故障原因' },
Material: { type:'text', title: '耗材信息' },
RepairImg: { type: "text", title: "维修图片" },
Repairname: { type:'text', title: '维修人姓名' },
Evaluate: { type:'text', title: '评价' },
},
},
@@ -395,6 +398,7 @@ export default {
delete strEntity.Material
delete strEntity.RepairImg
delete strEntity.Evaluate
delete strEntity.Repairname
postData.strEntity = JSON.stringify(strEntity)
}else if(this.mode == 'edit') {
strEntity.ID = this.origin.RepairReportTeacher.ID
@@ -405,6 +409,7 @@ export default {
delete strEntity.Material
delete strEntity.RepairImg
delete strEntity.Evaluate
delete strEntity.Repairname
postData.strEntity = JSON.stringify(strEntity)
}else if(this.mode === 'evaluate') {
strEntity.ID = this.origin.RepairReportTeacher.ID


Yükleniyor…
İptal
Kaydet