소스 검색

经费审报新增按钮修改,经费审报审核签章修改

新疆警官学校中职
lb01 1 년 전
부모
커밋
21796e67b3
3개의 변경된 파일47개의 추가작업 그리고 47개의 파일을 삭제
  1. +0
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/list.vue
  2. +21
    -16
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue
  3. +26
    -29
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue

+ 0
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/list.vue 파일 보기

@@ -195,14 +195,12 @@
// 拉取加载列表和数据源 // 拉取加载列表和数据源
await Promise.all([ await Promise.all([
this.FETCH_DATASOURCE('teacheruserdata').then(result => { this.FETCH_DATASOURCE('teacheruserdata').then(result => {
// console.log(result.data)
this.dataSource.ApplyUser = result.data.map(t => ({ this.dataSource.ApplyUser = result.data.map(t => ({
text: t.f_realname, text: t.f_realname,
value: t.f_userid value: t.f_userid
})); }));
}), }),
this.FETCH_DATASOURCE('classdata').then(result => { this.FETCH_DATASOURCE('classdata').then(result => {
// console.log(result.data)
this.dataSource.ApplyDept = result.data.map(t => ({ this.dataSource.ApplyDept = result.data.map(t => ({
text: t.name, text: t.name,
value: t.id value: t.id


+ 21
- 16
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue 파일 보기

@@ -47,6 +47,10 @@
<l-input v-model="item.Amount" title="金额(元)" disabled placeholder="请填写" right /> <l-input v-model="item.Amount" title="金额(元)" disabled placeholder="请填写" right />
<view v-if="edit||create" class="welDel" @click="del('FundsApplyDetails', i)"><text <view v-if="edit||create" class="welDel" @click="del('FundsApplyDetails', i)"><text
class="text-xxl cuIcon cuIcon-move"></text></view> class="text-xxl cuIcon cuIcon-move"></text></view>
<view v-if="edit||create" class="welAdd" @click="add('FundsApplyDetails')">
<text class="text-xxl cuIcon cuIcon-add"></text>
</view>
</view> </view>
</view> </view>
@@ -231,7 +235,6 @@
// this.dataSource.FundsApply.CheckStatus = result.data.map(t => ({ text: t.name, value: t.id })) // this.dataSource.FundsApply.CheckStatus = result.data.map(t => ({ text: t.name, value: t.id }))
// }), // }),
]) ])
// console.log(this.dataSource.FundsApply.ApplyUser)
await this.fetchForm() await this.fetchForm()


this.ready = true this.ready = true
@@ -242,8 +245,6 @@
async fetchForm() { async fetchForm() {
if (this.mode === 'create') { if (this.mode === 'create') {
const result = await this.HTTP_GET('/learun/adms/FundsApply/getEnCode') const result = await this.HTTP_GET('/learun/adms/FundsApply/getEnCode')
// console.log(result.EnCode)
// this.EnCode = result.EnCode
const source = { const source = {
ApplyDept: this.user.departmentId, ApplyDept: this.user.departmentId,
ApplyUser: this.user.userId, ApplyUser: this.user.userId,
@@ -284,7 +285,6 @@
break break


case 'save': case 'save':
console.log(this.current, this.FundsApplyDetail)
const verifyResult = this.verifyForm() const verifyResult = this.verifyForm()
if (verifyResult.length > 0) { if (verifyResult.length > 0) {
@@ -383,16 +383,10 @@
add(str) { add(str) {
let jsons = this.COPY(this[str]); let jsons = this.COPY(this[str]);
this.FundsApplyDetail.push(jsons) this.FundsApplyDetail.push(jsons)
console.log(this.FundsApplyDetail)
// let jsons = this.COPY(this[str]);
// this.queryData[str].push(jsons)
// console.log(this.queryData[str])
}, },
del(str, num) { del(str, num) {
console.log(str)
let _this = this let _this = this
this.FundsApplyDetail.splice(num, 1) this.FundsApplyDetail.splice(num, 1)
console.log(this.FundsApplyDetail)
let Amounts = _this.FundsApplyDetail.map(item => { let Amounts = _this.FundsApplyDetail.map(item => {
return item.Amount return item.Amount
}) })
@@ -401,7 +395,6 @@
_this.current.FundsApply.UpperAmount = _this.smalltoBIG(_this.current.FundsApply.SumAmount) _this.current.FundsApply.UpperAmount = _this.smalltoBIG(_this.current.FundsApply.SumAmount)
}, },
blurChange(item){ blurChange(item){
console.log(item)
let _this = this let _this = this
item.Price = Number(item.Price).toFixed(2) item.Price = Number(item.Price).toFixed(2)
if (item.Number && item.Price) { if (item.Number && item.Price) {
@@ -412,11 +405,9 @@
}) })
_this.current.FundsApply.SumAmount = Number(_this.sum(Amounts)).toFixed(2) _this.current.FundsApply.SumAmount = Number(_this.sum(Amounts)).toFixed(2)
_this.current.FundsApply.UpperAmount = _this.smalltoBIG(_this.current.FundsApply.SumAmount) _this.current.FundsApply.UpperAmount = _this.smalltoBIG(_this.current.FundsApply.SumAmount)
// console.log(_this.smalltoBIG(_this.current.FundsApply.SumAmount))
} }
}, },
SumAmountChange(item) { SumAmountChange(item) {
console.log(item)
let _this = this let _this = this
if (item.Number && item.Price) { if (item.Number && item.Price) {
@@ -427,7 +418,6 @@
}) })
_this.current.FundsApply.SumAmount = Number(_this.sum(Amounts)).toFixed(2) _this.current.FundsApply.SumAmount = Number(_this.sum(Amounts)).toFixed(2)
_this.current.FundsApply.UpperAmount = _this.smalltoBIG(_this.current.FundsApply.SumAmount) _this.current.FundsApply.UpperAmount = _this.smalltoBIG(_this.current.FundsApply.SumAmount)
// console.log(_this.smalltoBIG(_this.current.FundsApply.SumAmount))
} }


}, },
@@ -499,7 +489,6 @@


created() { created() {
this.user = this.GET_GLOBAL('loginUser'); this.user = this.GET_GLOBAL('loginUser');
console.log(this.user)
} }
} }
</script> </script>
@@ -555,7 +544,23 @@
border: 1px solid #efefef; border: 1px solid #efefef;
border-radius: 50%; border-radius: 50%;
} }

.welAdd{
border-radius: 50%;
position: absolute;
top: 4px;
right: 0px;
background: #fff;
}
.welAdd text {
text-align: center;
width: 26px;
height: 26px;
display: block;
line-height: 24px;
border: 1px solid #efefef;
border-radius: 50%;
}
.welImgAdd { .welImgAdd {
text-align: center; text-align: center;
line-height: 0; line-height: 0;


+ 26
- 29
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue 파일 보기

@@ -40,19 +40,20 @@
class="sign-canvas" class="sign-canvas"
></canvas> ></canvas>
</view> </view>
<view class="sign-action padding-bottom text-right">
<l-button @click="clearSign" color="red" style="margin-right: 15px;">清空签名板</l-button>
</view>
<view class="cu-form-group"><view class="title">签章:</view></view>
<view v-if="" class="Signwrap">
<image style="width: 50px;height: 50px;margin: 15px;" :src="Signimg"></image>
</view>
<view class="sign-action padding-bottom text-right"> <view class="sign-action padding-bottom text-right">
<!-- <l-button @click="Signature" color="" style="color: #FFFFFF; background: #0081ff; margin-right: 15px;">签章</l-button> --> <!-- <l-button @click="Signature" color="" style="color: #FFFFFF; background: #0081ff; margin-right: 15px;">签章</l-button> -->
<picker class="cu-btn df" style="background-color: #0081ff;color: #ffffff;margin-right: 15px;border-radius: 5px;" @change="Signature" :range="Signaitem" range-key="F_StampName">个人签章</picker> <picker class="cu-btn df" style="background-color: #0081ff;color: #ffffff;margin-right: 15px;border-radius: 5px;" @change="Signature" :range="Signaitem" range-key="F_StampName">个人签章</picker>
<picker v-if="ComStatus" class="cu-btn df" style="background-color: #fe955c;color: #ffffff;margin-right: 15px;border-radius: 5px;" @change="Commonture" :range="Commonseal" range-key="F_StampName">学校签章</picker> <picker v-if="ComStatus" class="cu-btn df" style="background-color: #fe955c;color: #ffffff;margin-right: 15px;border-radius: 5px;" @change="Commonture" :range="Commonseal" range-key="F_StampName">学校签章</picker>
<l-button @click="clearSign" color="red" style="margin-right: 15px;">清空签名板</l-button>
<l-button @click="clearcom" color="red" style="margin-right: 15px;">清空签章</l-button>
</view> </view>
</template> </template>
<!-- <view>
<image style="width: 100px;height: 100px;" :src="Signimg"></image>
</view> -->
<l-textarea v-model="remark" :placeholder="`输入${typeText}意见`" title="审核意见:" required /> <l-textarea v-model="remark" :placeholder="`输入${typeText}意见`" title="审核意见:" required />
<!-- 弹层 --> <!-- 弹层 -->
@@ -133,7 +134,9 @@ export default {
password:'', password:'',
PitchonSign:'', PitchonSign:'',
canvasW:'', canvasW:'',
canvasH:''
canvasH:'',
signshow:false,
ConfirmSign:''
} }
}, },


@@ -141,14 +144,12 @@ export default {
await this.init() await this.init()
// this.Signimg = this.API + `/learun/adms/user/img?data=${'System'}` // this.Signimg = this.API + `/learun/adms/user/img?data=${'System'}`
// this.Signimg = this.API + `/learun/adms/StampPersonal/img?data=${'47201f98-7611-4052-b271-bb99bd7b1d3c'}` // this.Signimg = this.API + `/learun/adms/StampPersonal/img?data=${'47201f98-7611-4052-b271-bb99bd7b1d3c'}`
// console.log(this.Signimg)
}, },


methods: { methods: {
// 页面初始化 // 页面初始化
async init() { async init() {
this.taskParam = this.GET_PARAM() this.taskParam = this.GET_PARAM()
console.log(this.taskParam)
this.type = this.taskParam.type this.type = this.taskParam.type
this.typeText = this.taskParam.type === 'sign' ? '加签' : '审核' this.typeText = this.taskParam.type === 'sign' ? '加签' : '审核'
await this.getComstatus() await this.getComstatus()
@@ -164,7 +165,6 @@ export default {
getSigna(){ getSigna(){
return this.HTTP_GET("learun/adms/StampPersonal/list",{},"加载数据时出错").then(async res=>{ return this.HTTP_GET("learun/adms/StampPersonal/list",{},"加载数据时出错").then(async res=>{
if(res){ if(res){
console.log(res)
this.Signaitem = res this.Signaitem = res
} }
}) })
@@ -174,7 +174,6 @@ export default {
getComstatus(){ getComstatus(){
return this.HTTP_GET("learun/adms/StampPersonal/ishaveright",{},"加载数据时出错").then(async res=>{ return this.HTTP_GET("learun/adms/StampPersonal/ishaveright",{},"加载数据时出错").then(async res=>{
if(res){ if(res){
console.log(res)
this.ComStatus = res.result this.ComStatus = res.result
} }
}) })
@@ -184,7 +183,6 @@ export default {
getCommonseal(){ getCommonseal(){
return this.HTTP_GET("learun/adms/StampPersonal/schoollist",{},"加载数据时出错").then(async res=>{ return this.HTTP_GET("learun/adms/StampPersonal/schoollist",{},"加载数据时出错").then(async res=>{
if(res){ if(res){
console.log(res)
this.Commonseal = res this.Commonseal = res
} }
}) })
@@ -218,26 +216,19 @@ export default {
cancelpswd(){ cancelpswd(){
this.passshow = false this.passshow = false
this.password = '' this.password = ''
// this.pitchon = ''
// this.PitchonSign = ''
}, },
// 确认 // 确认
confirmpswd(){ confirmpswd(){
console.log(this.pitchon)
let _this = this let _this = this
this.HTTP_POST('learun/adms/StampPersonal/equalPassword', { this.HTTP_POST('learun/adms/StampPersonal/equalPassword', {
F_StampId:this.pitchon.F_StampId, F_StampId:this.pitchon.F_StampId,
F_Password: this.MD5(this.password) F_Password: this.MD5(this.password)
}).then(async res=>{ }).then(async res=>{
if(res.result){ if(res.result){
console.log(res)
console.log(_this.pitchon.F_StampId)
_this.ConfirmSign = _this.PitchonSign
let imgurl = _this.API + `/learun/adms/StampPersonal/img?data=${_this.pitchon.F_StampId}` let imgurl = _this.API + `/learun/adms/StampPersonal/img?data=${_this.pitchon.F_StampId}`
// console.log(imgurl)
context.clearRect(250,150,100,100)
// _this.clearSign()
_this.SignaApply(imgurl)
_this.Signimg = imgurl _this.Signimg = imgurl
_this.signshow = true
_this.passshow = false _this.passshow = false
_this.password = '' _this.password = ''
_this.pitchon = '' _this.pitchon = ''
@@ -254,7 +245,6 @@ export default {
uni.getImageInfo({ uni.getImageInfo({
src:goodsImg, src:goodsImg,
success:function(image){ success:function(image){
// console.log(image)
_this.canvasW = image.width / 5;//因为需要所以缩放了8倍 _this.canvasW = image.width / 5;//因为需要所以缩放了8倍
_this.canvasH = image.height / 5; _this.canvasH = image.height / 5;
} }
@@ -284,7 +274,6 @@ export default {
this.submitPostData.auditors = JSON.stringify({[this.reviewerListId]:this.reviewer.toString()}) this.submitPostData.auditors = JSON.stringify({[this.reviewerListId]:this.reviewer.toString()})
delete this.submitPostData.formreq delete this.submitPostData.formreq
// this.submitPostData.auditors[this.reviewerListId] = this.reviewer // this.submitPostData.auditors[this.reviewerListId] = this.reviewer
console.log(this.submitPostData)
const success = await this.HTTP_POST( const success = await this.HTTP_POST(
this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/auditors', this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/auditors',
this.submitPostData, this.submitPostData,
@@ -320,10 +309,9 @@ export default {
taskId: this.taskParam.taskId, taskId: this.taskParam.taskId,
des: this.remark, des: this.remark,
formreq: this.taskParam.formreq, formreq: this.taskParam.formreq,
stamp: this.PitchonSign
stamp: this.ConfirmSign
} }
console.log(postData)
if (this.type === 'sign') { if (this.type === 'sign') {
postData.userId = this.staff postData.userId = this.staff
@@ -397,7 +385,6 @@ export default {
// } // }
if(Object.keys(userList).length==0){ if(Object.keys(userList).length==0){
console.log('为空')
const success = await this.HTTP_POST( const success = await this.HTTP_POST(
this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/audit', this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/audit',
postData, postData,
@@ -464,7 +451,7 @@ export default {
signEnd(e) { signEnd(e) {
touchs = [] touchs = []
}, },
// 手写板事件(绘出线型) // 手写板事件(绘出线型)
drawLine() { drawLine() {
if (touchs.length < 2) { if (touchs.length < 2) {
@@ -498,7 +485,11 @@ export default {
this.canvasInit() this.canvasInit()
}) })
// #endif // #endif
}
},
clearcom(){
this.Signimg = ''
this.ConfirmSign = ''
}
} }
} }
</script> </script>
@@ -605,4 +596,10 @@ export default {
} }


.Signwrap{
margin: 11px;
border: 1px dashed #444444;
background: #ffffff;
}

</style> </style>

불러오는 중...
취소
저장