|
|
|
@ -9,14 +9,16 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item-content-style clearfix" title="点击查看详情" @click.stop="showBusinessDetail">
|
|
|
|
|
<div class="item-title-style">
|
|
|
|
|
您有一条新的<span style="color: rgba(0,0,0,1);font-weight: bold">{{business.biz_name}}</span>{{getItemTitleAfter()}}
|
|
|
|
|
您有一条新的<span
|
|
|
|
|
style="color: rgba(0,0,0,1);font-weight: bold">{{business.biz_name}}</span>{{getItemTitleAfter()}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-for="content,index in business.showData" :key="business.id + '-' + index" class="content-style"
|
|
|
|
|
:style="{width:content.one_line === true?'100%':'50%'}">
|
|
|
|
|
<div v-if="content.title && content.title !== ''" class="content-title-style">
|
|
|
|
|
{{content.title}}:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="content-text-style" :style="{width:content.title && content.title !== ''?'calc(100% - 80px)':'100%'}">
|
|
|
|
|
<div class="content-text-style"
|
|
|
|
|
:style="{width:content.title && content.title !== ''?'calc(100% - 80px)':'100%'}">
|
|
|
|
|
{{content.text}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -34,6 +36,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import interConfig from '../modulComponent/interConfig';
|
|
|
|
|
export default {
|
|
|
|
|
name: "BusinessItem",
|
|
|
|
|
props: {
|
|
|
|
@ -110,8 +113,54 @@
|
|
|
|
|
this.$emit("clickContent", this.businessData)
|
|
|
|
|
},
|
|
|
|
|
noPass: function () {
|
|
|
|
|
|
|
|
|
|
console.log(this.typeData)
|
|
|
|
|
console.log(this.businessData)
|
|
|
|
|
let bizCode = this.businessData.biz_code;
|
|
|
|
|
let param = {};//提交参数
|
|
|
|
|
switch (bizCode) {
|
|
|
|
|
case "105001001"://请假申请
|
|
|
|
|
this.checkLeave(this.businessData.data_infomation);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//请假审批
|
|
|
|
|
checkLeave:function (info) {
|
|
|
|
|
this.getInfo(info.run_id).then((result)=>{
|
|
|
|
|
console.log(result)
|
|
|
|
|
let submitParam = {
|
|
|
|
|
check_id: info.check_id,
|
|
|
|
|
status_id: -1,
|
|
|
|
|
person_id: this.BaseConfig.userInfo.person_id_cookie,
|
|
|
|
|
check_opinion: "申请未通过",
|
|
|
|
|
has_next: result.has_next,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getInfo:function (runId) {
|
|
|
|
|
var _this = this;
|
|
|
|
|
var p = new Promise((resolve,reject)=>{
|
|
|
|
|
let params = {
|
|
|
|
|
run_id: runId,
|
|
|
|
|
level_check: 1,
|
|
|
|
|
need_next: 1,
|
|
|
|
|
person_id: _this.BaseConfig.userInfo.person_id
|
|
|
|
|
}
|
|
|
|
|
_this.InterfaceConfig.callInterface([{
|
|
|
|
|
url: interConfig.getLeaveApplyDetail.url,
|
|
|
|
|
params: params,
|
|
|
|
|
method: interConfig.getLeaveApplyDetail.method,
|
|
|
|
|
isTestLogin: interConfig.getLeaveApplyDetail.isTestLogin
|
|
|
|
|
}], (result) => {
|
|
|
|
|
let res = result[0].data;
|
|
|
|
|
if (res.code === 2000) {
|
|
|
|
|
resolve(res.data)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
return p;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
typeData: function (newData) {
|
|
|
|
|