Browse Source

经费开支审核添加子表展示,限制经费开支输入数字,审核意见字段必填。

新疆警官学校中职
lb01 2 years ago
parent
commit
7dc69894ea
3 changed files with 114 additions and 17 deletions
  1. +99
    -11
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue
  2. +3
    -3
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue
  3. +12
    -3
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue

+ 99
- 11
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue View File

@@ -12,15 +12,27 @@
<l-textarea v-model="formData.FundsApply.Remark" title="备注" readonly/>
<l-input v-model="formData.FundsApply.SumAmount" title="总金额" disabled></l-input>
<l-input v-model="formData.FundsApply.UpperAmount" title="人民币大写" disabled></l-input>
<!-- <l-select v-model="formData.F_IsSendFX" :range="[{value:true,text:'是'},{value:false,text:'否'}]" title="下发飞星" disabled></l-select> -->
<!-- <l-upload-file
:value="fileList"
:readonly="true"
title="标题图片"
/> -->
<!-- :number="9" -->
<!-- @input="setValue('MeetingManagement.Files', $event)" -->
<!-- <l-input title="公告内容" disabled style="border-bottom: none;"></l-input> -->
<view class="welT" style="padding-top: 10px;">
明细
</view>
<view class="welBox" id="StuInfoFreshEmergePeople" v-show="FundsApplyDetail.length != 0">
<view class="welCon" v-for="(item, i) in FundsApplyDetail" :key='i'>
<l-input v-model="item.ProjectContent" title="项目内容" placeholder="请填写" disabled right />
<l-input v-model="item.Number" type="number" @change="SumAmountChange(item)" title="数量" disabled placeholder="请填写" right />
<l-input v-model="item.Price" type="number" @change="SumAmountChange(item)" title="单价(元)" disabled placeholder="请填写" right />
<l-input v-model="item.Amount" title="金额(元)" disabled placeholder="请填写" right />
</view>
</view>
<l-workflow-action
@audit="audit"
@action="action"
@@ -67,6 +79,16 @@ export default {
ApplyUser: [],
IsFixedAssets: []
},
FundsApplyDetail: [],
FundsApplyDetails: {
ProjectContent: '',
Number: '',
Price: '',
Amount: ''
},
}
},

@@ -122,11 +144,12 @@ export default {
// this.HIDE_LOADING()
},
// 获取表单数据
getFormData(ProgressId){
return this.HTTP_GET("learun/adms/FundsApply/shList",{ProgressId},"加载数据时出错").then(async res=>{
getFormData(ProcessId){
return this.HTTP_GET("learun/adms/FundsApply/shList",{ProcessId},"加载数据时出错").then(async res=>{
if(res){
// res.F_SourceName = res.F_SourceName&&this.GET_GLOBAL('department')[res.F_SourceName]? this.GET_GLOBAL('department')[res.F_SourceName].name : res.F_SourceName
this.formData = res
this.FundsApplyDetail = res.FundsApplyDetail
let fileList = await this.getFileListById(res.F_NewsImage)
if(fileList&&fileList.length){
this.fileList = [fileList[0]]
@@ -255,3 +278,68 @@ export default {
}
}
</script>

<style lang="less" scoped>
.welT {
font-size: 16px;
line-height: 26px;
padding: 0 12px;
background-color: #ffffff;
padding-bottom: 12px;
}

.welT text {
width: 26px;
height: 26px;
line-height: 24px;
border: 1px solid #efefef;
border-radius: 4px;
float: right;
text-align: center;
color: #999;
}

.welBox {
// margin-top: 10px;
}

.welCon {
padding: 10px;
border: 1px solid #efefef;
padding-top: 18px;
border-radius: 4px;
position: relative;
// background-color: #ffffff;
margin-top: 15px;
}

.welDel {
border-radius: 50%;
position: absolute;
top: 4px;
left: 0px;
background: #fff;
}

.welDel text {
text-align: center;
width: 26px;
height: 26px;
display: block;
line-height: 24px;
border: 1px solid #efefef;
border-radius: 50%;
}

.welImgAdd {
text-align: center;
line-height: 0;
}

.passwordDes {
color: #606266;
font-size: 14px;
padding: 8px;
text-indent: 2em;
}
</style>

+ 3
- 3
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue View File

@@ -31,9 +31,9 @@

<view class="welBox" id="StuInfoFreshEmergePeople" v-show="FundsApplyDetail.length != 0">
<view class="welCon" v-for="(item, i) in FundsApplyDetail" :key='i'>
<l-input v-model="item.ProjectContent" title="项目内容" placeholder="请填写" right />
<l-input v-model="item.Number" @change="SumAmountChange(item)" title="数量" placeholder="请填写" right />
<l-input v-model="item.Price" @change="SumAmountChange(item)" title="单价(元)" placeholder="请填写" right />
<l-input v-model="item.ProjectContent" title="项目内容" placeholder="请填写" right :disabled="!edit" />
<l-input v-model="item.Number" type="number" @change="SumAmountChange(item)" title="数量" :disabled="!edit" placeholder="请填写" right />
<l-input v-model="item.Price" type="number" @change="SumAmountChange(item)" title="单价(元)" :disabled="!edit" placeholder="请填写" right />
<l-input v-model="item.Amount" title="金额(元)" disabled placeholder="请填写" right />
<view v-if="edit||create" class="welDel" @click="del('FundsApplyDetails', i)"><text
class="text-xxl cuIcon cuIcon-move"></text></view>


+ 12
- 3
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue View File

@@ -33,7 +33,7 @@
</view>
</template>

<l-textarea v-model="remark" :placeholder="`输入${typeText}意见`" title="审核意见:" />
<l-textarea v-model="remark" :placeholder="`输入${typeText}意见`" title="审核意见:" required />
<!-- 弹层 -->
<l-modal v-model="modal" @close="reviewer = ''" title="指派审核人">
@@ -142,7 +142,12 @@ export default {
this.CONFIRM('请补全必填项', '必须指定一个加签用户')
return
}

if(!this.remark){
this.TOAST(`请签署审批意见`)
return false;
}
const postData = {
operationCode: this.taskParam.code,
operationName: this.taskParam.name,
@@ -254,7 +259,11 @@ export default {
}
}

const success = await this.HTTP_POST(
this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/audit',
postData,


Loading…
Cancel
Save