总部待办传值处理
审批组件添加传参 风险辨识审批表适配
This commit is contained in:
parent
45c7476128
commit
18c8f39d57
@ -37,6 +37,10 @@
|
|||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
|
TASK_ORGID: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
refuseApi: {
|
refuseApi: {
|
||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
@ -120,6 +124,9 @@
|
|||||||
this.dataSource.CurrentNode = currentNodes[0];
|
this.dataSource.CurrentNode = currentNodes[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(this.TASK_ORGID&&this.TASK_ORGID.length>0){
|
||||||
|
this.dataSource.Parameter22 = this.TASK_ORGID
|
||||||
|
}
|
||||||
const params = {
|
const params = {
|
||||||
...this.dataSource,
|
...this.dataSource,
|
||||||
CurrentNode: {
|
CurrentNode: {
|
||||||
|
|||||||
@ -103,7 +103,7 @@
|
|||||||
<!-- <view style="padding: 10px 16px;display: flex;flex-direction: row;" class="bottom-button" v-if="isLoadOK&&tableKey==='1'&&!isAudit">
|
<!-- <view style="padding: 10px 16px;display: flex;flex-direction: row;" class="bottom-button" v-if="isLoadOK&&tableKey==='1'&&!isAudit">
|
||||||
<u-button type="primary" @click="submit" color="#3d4b70">确认</u-button>
|
<u-button type="primary" @click="submit" color="#3d4b70">确认</u-button>
|
||||||
</view> -->
|
</view> -->
|
||||||
<check-action v-if="isLoadOK && tableKey === '1'&&isAudit==='true' " :okApi="okApi" :refuseApi="refuseApi" :dataSource="$store.state.auditModel"></check-action>
|
<check-action v-if="isLoadOK && tableKey === '1'&&isAudit==='true' " :okApi="okApi" :TASK_ORGID="TASK_ORGID" :refuseApi="refuseApi" :dataSource="$store.state.auditModel"></check-action>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -154,6 +154,7 @@
|
|||||||
listPropUpload: ['NOTIFY_ID'],
|
listPropUpload: ['NOTIFY_ID'],
|
||||||
listPropValUpload: [],
|
listPropValUpload: [],
|
||||||
ORG_ID: uni.getStorageSync('orgId'),
|
ORG_ID: uni.getStorageSync('orgId'),
|
||||||
|
TASK_ORGID:'',
|
||||||
stepLoad: true,
|
stepLoad: true,
|
||||||
dataModel: {
|
dataModel: {
|
||||||
Nav_ApplyDepartment: {
|
Nav_ApplyDepartment: {
|
||||||
@ -227,6 +228,7 @@
|
|||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.TaskID = option.taskID ? option.taskID : '';
|
this.TaskID = option.taskID ? option.taskID : '';
|
||||||
this.ID = option.ID? option.ID:''
|
this.ID = option.ID? option.ID:''
|
||||||
|
this.TASK_ORGID = option.TASK_ORGID? option.TASK_ORGID:''
|
||||||
this.model.ID = option.ID ? option.ID : '';
|
this.model.ID = option.ID ? option.ID : '';
|
||||||
this.tableKey = option.tableKey ? option.tableKey : '0'
|
this.tableKey = option.tableKey ? option.tableKey : '0'
|
||||||
this.isAudit = option.isAudit
|
this.isAudit = option.isAudit
|
||||||
@ -255,6 +257,9 @@
|
|||||||
extendInclude(json, 'Nav_Files');
|
extendInclude(json, 'Nav_Files');
|
||||||
extendInclude(json, 'Nav_Files.Nav_ImgFile');
|
extendInclude(json, 'Nav_Files.Nav_ImgFile');
|
||||||
extendIgnoreDataRule(json)
|
extendIgnoreDataRule(json)
|
||||||
|
if(this.TASK_ORGID&& this.TASK_ORGID!=null){
|
||||||
|
json.Parameter22 = this.TASK_ORGID
|
||||||
|
}
|
||||||
// extendRule(json, 'TASK_ID', 1, this.TaskID);
|
// extendRule(json, 'TASK_ID', 1, this.TaskID);
|
||||||
EvaIdentifyPlanGet(json).then(res => {
|
EvaIdentifyPlanGet(json).then(res => {
|
||||||
this.dataModel = res;
|
this.dataModel = res;
|
||||||
|
|||||||
@ -7,12 +7,14 @@
|
|||||||
<!-- <view class="status-bar" :style="{'width': screenWidth + 'px'}"></view> -->
|
<!-- <view class="status-bar" :style="{'width': screenWidth + 'px'}"></view> -->
|
||||||
<view class="main">
|
<view class="main">
|
||||||
<view class="swiper-wrap">
|
<view class="swiper-wrap">
|
||||||
<u-swiper :list="banners" height="110" radius="8" circular indicator indicatorActiveColor="#2979ff" indicatorInactiveColor="#D7D7D7" indicatorMode="dot" indicatorStyle="right: 20px;"
|
<u-swiper :list="banners" height="110" radius="8" circular indicator indicatorActiveColor="#2979ff"
|
||||||
|
indicatorInactiveColor="#D7D7D7" indicatorMode="dot" indicatorStyle="right: 20px;"
|
||||||
@change="e => currentBanner = e.current">
|
@change="e => currentBanner = e.current">
|
||||||
</u-swiper>
|
</u-swiper>
|
||||||
</view>
|
</view>
|
||||||
<view style="display: flex;flex-direction: row;height: 40px;align-items: center;margin-left: 10px;">
|
<view style="display: flex;flex-direction: row;height: 40px;align-items: center;margin-left: 10px;">
|
||||||
<view @click="handleTab('1')" style="height: 100%;display: flex;border-radius: 15px;margin-right: 10px;flex-direction: column;">
|
<view @click="handleTab('1')"
|
||||||
|
style="height: 100%;display: flex;border-radius: 15px;margin-right: 10px;flex-direction: column;">
|
||||||
<view style="display: flex;flex-direction: row;height: 100%;">
|
<view style="display: flex;flex-direction: row;height: 100%;">
|
||||||
<view style="display: flex;flex-direction: column;height: 100%;justify-content: center;">
|
<view style="display: flex;flex-direction: column;height: 100%;justify-content: center;">
|
||||||
<text style="margin: 0px 5px;display: flex;align-items: center;margin-bottom: 5px;"
|
<text style="margin: 0px 5px;display: flex;align-items: center;margin-bottom: 5px;"
|
||||||
@ -20,7 +22,8 @@
|
|||||||
<view v-if="currentTab === '1'" class="bottom-widget"></view>
|
<view v-if="currentTab === '1'" class="bottom-widget"></view>
|
||||||
</view>
|
</view>
|
||||||
<view style="display: flex;align-items: flex-start;">
|
<view style="display: flex;align-items: flex-start;">
|
||||||
<u-badge type="error" max="99" :value="todoTotal" style="font-weight: bold;z-index: 999;display:flex;align-items: flex-start;"></u-badge>
|
<u-badge type="error" max="99" :value="todoTotal"
|
||||||
|
style="font-weight: bold;z-index: 999;display:flex;align-items: flex-start;"></u-badge>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -36,7 +39,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
<view @click="handleTab('3')" style="height: 100%;margin-right: 10px;display: flex;border-radius: 15px;">
|
<view @click="handleTab('3')"
|
||||||
|
style="height: 100%;margin-right: 10px;display: flex;border-radius: 15px;">
|
||||||
<view style="display: flex;flex-direction: row;height: 100%;">
|
<view style="display: flex;flex-direction: row;height: 100%;">
|
||||||
<view style="display: flex;flex-direction: column;height: 100%;justify-content: center;">
|
<view style="display: flex;flex-direction: column;height: 100%;justify-content: center;">
|
||||||
<text style="margin: 0px 5px;display: flex;align-items: center;margin-bottom: 5px;"
|
<text style="margin: 0px 5px;display: flex;align-items: center;margin-bottom: 5px;"
|
||||||
@ -45,7 +49,8 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="display: flex;align-items: flex-start;">
|
<view style="display: flex;align-items: flex-start;">
|
||||||
<u-badge type="error" max="99" :value="noticeTotal" style="font-weight: bold;z-index: 999;display:flex;align-items: flex-start;"></u-badge>
|
<u-badge type="error" max="99" :value="noticeTotal"
|
||||||
|
style="font-weight: bold;z-index: 999;display:flex;align-items: flex-start;"></u-badge>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -400,6 +405,8 @@
|
|||||||
if (item.SOURCE_FORMCODE == 'PF119') {
|
if (item.SOURCE_FORMCODE == 'PF119') {
|
||||||
const orgId = uni.getStorageSync('orgId')
|
const orgId = uni.getStorageSync('orgId')
|
||||||
const json = initFilter(orgId)
|
const json = initFilter(orgId)
|
||||||
|
json.Parameter22 = item.ORG_ID
|
||||||
|
|
||||||
extendRule(json, 'ID', 1, item.SOURCE_DATA_ID);
|
extendRule(json, 'ID', 1, item.SOURCE_DATA_ID);
|
||||||
extendInclude(json, "Nav_ApproveDetails")
|
extendInclude(json, "Nav_ApproveDetails")
|
||||||
extendInclude(json, "Nav_ApproveDetails.Nav_ApproveUser")
|
extendInclude(json, "Nav_ApproveDetails.Nav_ApproveUser")
|
||||||
@ -427,7 +434,7 @@
|
|||||||
item
|
item
|
||||||
.SOURCE_DATA_ID + "&taskID=" +
|
.SOURCE_DATA_ID + "&taskID=" +
|
||||||
item.ID + '&isAudit=true&okApi=' + okApi + '&refuseApi=' + res
|
item.ID + '&isAudit=true&okApi=' + okApi + '&refuseApi=' + res
|
||||||
.REJECT_INTERFACE
|
.REJECT_INTERFACE + "&TASK_ORGID=" + item.ORG_ID
|
||||||
this.$store.commit('updateAuditModel', res)
|
this.$store.commit('updateAuditModel', res)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: linkToUrl
|
url: linkToUrl
|
||||||
@ -442,7 +449,8 @@
|
|||||||
if (linkToUrl != '') {
|
if (linkToUrl != '') {
|
||||||
linkToUrl += "?tableKey=" + this.affairType + "&ID=" + item.SOURCE_DATA_ID + "&taskID=" + item.ID
|
linkToUrl += "?tableKey=" + this.affairType + "&ID=" + item.SOURCE_DATA_ID + "&taskID=" + item.ID
|
||||||
|
|
||||||
if (item.SOURCE_FORMCODE == 'SC034' || item.SOURCE_FORMCODE == 'SC030' || item.SOURCE_FORMCODE == 'SE050_SHOWPRINT') {
|
if (item.SOURCE_FORMCODE == 'SC034' || item.SOURCE_FORMCODE == 'SC030' || item.SOURCE_FORMCODE ==
|
||||||
|
'SE050_SHOWPRINT') {
|
||||||
linkToUrl += "&FORMCODE=" + item.SOURCE_FORMCODE //会议 纪要 load时 添加标识
|
linkToUrl += "&FORMCODE=" + item.SOURCE_FORMCODE //会议 纪要 load时 添加标识
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -454,6 +454,7 @@ export function initQueryFilter(OrgId, PageIndex, Limit, Sort, Order) {
|
|||||||
IncludeCount: 0,
|
IncludeCount: 0,
|
||||||
OrderCount: 0,
|
OrderCount: 0,
|
||||||
FilterGroupCount: 0,
|
FilterGroupCount: 0,
|
||||||
|
IgnoreOrgRule: true,
|
||||||
Include: [],
|
Include: [],
|
||||||
Orders: [],
|
Orders: [],
|
||||||
FilterGroup: {
|
FilterGroup: {
|
||||||
@ -476,6 +477,7 @@ export function initFilter(OrgId, Keyword = "", Sort, Order, PageIndex = 1, Para
|
|||||||
OrgId,
|
OrgId,
|
||||||
PageIndex,
|
PageIndex,
|
||||||
Limit: 10,
|
Limit: 10,
|
||||||
|
IgnoreOrgRule: true,
|
||||||
Start: (PageIndex - 1) * 10,
|
Start: (PageIndex - 1) * 10,
|
||||||
Sort,
|
Sort,
|
||||||
Order: (Order === '' ? 0 : Order),
|
Order: (Order === '' ? 0 : Order),
|
||||||
|
|||||||
@ -7,16 +7,16 @@ export default {
|
|||||||
// return config.uni_app_web_api_url.replace('api', '')
|
// return config.uni_app_web_api_url.replace('api', '')
|
||||||
return config.uni_app_web_local_api_url.replace('api', '')
|
return config.uni_app_web_local_api_url.replace('api', '')
|
||||||
},
|
},
|
||||||
getRequestHeaders(url, type = 'post', isIgnoreTenant) {
|
getRequestHeaders(url, type = 'post', data, isIgnoreTenant) {
|
||||||
const auth = 'Bearer ' + uni.getStorageSync('accessToken')
|
const auth = 'Bearer ' + uni.getStorageSync('accessToken')
|
||||||
// const user = uni.getStorageSync('loginUserVerify')
|
// const user = uni.getStorageSync('loginUserVerify')
|
||||||
// const RootOrgId = uni.getStorageSync('RootOrgId')
|
// const RootOrgId = uni.getStorageSync('RootOrgId')
|
||||||
const appInfoData = uni.getStorageSync('appInfo')
|
const appInfoData = uni.getStorageSync('appInfo')
|
||||||
const tenant = uni.getStorageSync('Tenant') || ''
|
const tenant = uni.getStorageSync('Tenant') || ''
|
||||||
const userId = uni.getStorageSync('Userid')||''
|
const userId = uni.getStorageSync('Userid') || ''
|
||||||
// const userId = appInfoData?.User?.ID || ''
|
// const userId = appInfoData?.User?.ID || ''
|
||||||
const userName = appInfoData?.User?.NAME || ''
|
const userName = appInfoData?.User?.NAME || ''
|
||||||
const orgId= uni.getStorageSync('orgId')||''
|
const orgId = uni.getStorageSync('orgId') || ''
|
||||||
// const orgId = appInfoData?.User?.ORG_ID || ''
|
// const orgId = appInfoData?.User?.ORG_ID || ''
|
||||||
const dataRule = appInfoData?.DataRule ? appInfoData?.DataRule.join(',') : ''
|
const dataRule = appInfoData?.DataRule ? appInfoData?.DataRule.join(',') : ''
|
||||||
const departmentId = appInfoData?.User?.DEPARTMENT_ID || ''
|
const departmentId = appInfoData?.User?.DEPARTMENT_ID || ''
|
||||||
@ -37,33 +37,38 @@ export default {
|
|||||||
// const Tenant = uni.getStorageSync('Tenant')
|
// const Tenant = uni.getStorageSync('Tenant')
|
||||||
// url.indexOf('OP') != 0 && !isIgnoreTenant && (headers.Tenant = Tenant)
|
// url.indexOf('OP') != 0 && !isIgnoreTenant && (headers.Tenant = Tenant)
|
||||||
const Tenant = uni.getStorageSync('Tenant') || ''
|
const Tenant = uni.getStorageSync('Tenant') || ''
|
||||||
if (url.indexOf('PF/Login/Login') !== -1) {
|
if (url.indexOf('PF/Login/Login') !== -1) {
|
||||||
// Login接口使用最新的Tenant、Orgid、userid、Username值
|
// Login接口使用最新的Tenant、Orgid、userid、Username值
|
||||||
const latestTenant = uni.getStorageSync('Tenant') || ''
|
const latestTenant = uni.getStorageSync('Tenant') || ''
|
||||||
const latestOrgid = uni.getStorageSync('orgId')
|
const latestOrgid = uni.getStorageSync('orgId')
|
||||||
const latestUserid = uni.getStorageSync('Userid')
|
const latestUserid = uni.getStorageSync('Userid')
|
||||||
const latestUsername = uni.getStorageSync('Username')
|
const latestUsername = uni.getStorageSync('Username')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (latestTenant) {
|
if (latestTenant) {
|
||||||
headers.Tenant = latestTenant
|
headers.Tenant = latestTenant
|
||||||
}
|
}
|
||||||
if (latestOrgid) {
|
if (latestOrgid) {
|
||||||
// 覆盖原有的orgId字段,使用最新值
|
// 覆盖原有的orgId字段,使用最新值
|
||||||
headers.orgId = latestOrgid
|
headers.orgId = latestOrgid
|
||||||
}
|
}
|
||||||
if (latestUserid) {
|
if (latestUserid) {
|
||||||
// 覆盖原有的userid字段,使用最新值
|
// 覆盖原有的userid字段,使用最新值
|
||||||
headers.userid = latestUserid
|
headers.userid = latestUserid
|
||||||
}
|
}
|
||||||
// if (latestUsername) {
|
// if (latestUsername) {
|
||||||
// // 覆盖原有的username字段,使用最新值
|
// // 覆盖原有的username字段,使用最新值
|
||||||
// headers.username = latestUsername
|
// headers.username = latestUsername
|
||||||
// }
|
// }
|
||||||
} else if (url.indexOf('OP') != 0 && !isIgnoreTenant) {
|
} else if (url.indexOf('OP') != 0 && !isIgnoreTenant) {
|
||||||
headers.Tenant = Tenant
|
headers.Tenant = Tenant
|
||||||
}
|
}
|
||||||
|
//wyw
|
||||||
|
if (Tenant && Tenant == '003' && data && data.Parameter22 && data.Parameter22.length > 20) {
|
||||||
|
//总公司 Parameter22 存入子公司的ORG_ID 自动切换数据库链接
|
||||||
|
headers.Tenant = data.Parameter22.substring(0, 3)
|
||||||
|
}
|
||||||
return headers
|
return headers
|
||||||
},
|
},
|
||||||
send(options = {}, onlyData, isShowLoading) {
|
send(options = {}, onlyData, isShowLoading) {
|
||||||
@ -202,7 +207,7 @@ export default {
|
|||||||
return this.send({
|
return this.send({
|
||||||
url: url,
|
url: url,
|
||||||
data: data,
|
data: data,
|
||||||
header: this.getRequestHeaders(url, 'get')
|
header: this.getRequestHeaders(url, 'get', data)
|
||||||
}, onlyData)
|
}, onlyData)
|
||||||
},
|
},
|
||||||
post(url = '', data = {}, onlyData = true, isShowLoading = true) {
|
post(url = '', data = {}, onlyData = true, isShowLoading = true) {
|
||||||
@ -218,7 +223,7 @@ export default {
|
|||||||
return this.send({
|
return this.send({
|
||||||
url: url,
|
url: url,
|
||||||
data: data,
|
data: data,
|
||||||
header: this.getRequestHeaders(url, 'post'),
|
header: this.getRequestHeaders(url, 'post', data),
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
}, onlyData, isShowLoading)
|
}, onlyData, isShowLoading)
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user