Compare commits
2 Commits
c9cbceb83b
...
998b18277d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
998b18277d | ||
|
|
18c8f39d57 |
@ -37,6 +37,10 @@
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
TASK_ORGID: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
refuseApi: {
|
||||
type: String,
|
||||
default: ''
|
||||
@ -129,6 +133,9 @@
|
||||
this.dataSource.CurrentNode = currentNodes[0];
|
||||
}
|
||||
}
|
||||
if(this.TASK_ORGID&&this.TASK_ORGID.length>0){
|
||||
this.dataSource.Parameter22 = this.TASK_ORGID
|
||||
}
|
||||
const params = {
|
||||
...this.dataSource,
|
||||
CurrentNode: {
|
||||
|
||||
@ -103,7 +103,7 @@
|
||||
<!-- <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>
|
||||
</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>
|
||||
</template>
|
||||
@ -154,6 +154,7 @@
|
||||
listPropUpload: ['NOTIFY_ID'],
|
||||
listPropValUpload: [],
|
||||
ORG_ID: uni.getStorageSync('orgId'),
|
||||
TASK_ORGID:'',
|
||||
stepLoad: true,
|
||||
dataModel: {
|
||||
Nav_ApplyDepartment: {
|
||||
@ -227,6 +228,7 @@
|
||||
onLoad(option) {
|
||||
this.TaskID = option.taskID ? option.taskID : '';
|
||||
this.ID = option.ID? option.ID:''
|
||||
this.TASK_ORGID = option.TASK_ORGID? option.TASK_ORGID:''
|
||||
this.model.ID = option.ID ? option.ID : '';
|
||||
this.tableKey = option.tableKey ? option.tableKey : '0'
|
||||
this.isAudit = option.isAudit
|
||||
@ -255,6 +257,9 @@
|
||||
extendInclude(json, 'Nav_Files');
|
||||
extendInclude(json, 'Nav_Files.Nav_ImgFile');
|
||||
extendIgnoreDataRule(json)
|
||||
if(this.TASK_ORGID&& this.TASK_ORGID!=null){
|
||||
json.Parameter22 = this.TASK_ORGID
|
||||
}
|
||||
// extendRule(json, 'TASK_ID', 1, this.TaskID);
|
||||
EvaIdentifyPlanGet(json).then(res => {
|
||||
this.dataModel = res;
|
||||
|
||||
@ -7,12 +7,14 @@
|
||||
<!-- <view class="status-bar" :style="{'width': screenWidth + 'px'}"></view> -->
|
||||
<view class="main">
|
||||
<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">
|
||||
</u-swiper>
|
||||
</view>
|
||||
<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: column;height: 100%;justify-content: center;">
|
||||
<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>
|
||||
<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>
|
||||
@ -36,7 +39,8 @@
|
||||
</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: column;height: 100%;justify-content: center;">
|
||||
<text style="margin: 0px 5px;display: flex;align-items: center;margin-bottom: 5px;"
|
||||
@ -45,7 +49,8 @@
|
||||
</view>
|
||||
|
||||
<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>
|
||||
|
||||
@ -400,6 +405,8 @@
|
||||
if (item.SOURCE_FORMCODE == 'PF119') {
|
||||
const orgId = uni.getStorageSync('orgId')
|
||||
const json = initFilter(orgId)
|
||||
json.Parameter22 = item.ORG_ID
|
||||
|
||||
extendRule(json, 'ID', 1, item.SOURCE_DATA_ID);
|
||||
extendInclude(json, "Nav_ApproveDetails")
|
||||
extendInclude(json, "Nav_ApproveDetails.Nav_ApproveUser")
|
||||
@ -427,7 +434,7 @@
|
||||
item
|
||||
.SOURCE_DATA_ID + "&taskID=" +
|
||||
item.ID + '&isAudit=true&okApi=' + okApi + '&refuseApi=' + res
|
||||
.REJECT_INTERFACE
|
||||
.REJECT_INTERFACE + "&TASK_ORGID=" + item.ORG_ID
|
||||
this.$store.commit('updateAuditModel', res)
|
||||
uni.navigateTo({
|
||||
url: linkToUrl
|
||||
@ -442,7 +449,8 @@
|
||||
if (linkToUrl != '') {
|
||||
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时 添加标识
|
||||
}
|
||||
|
||||
|
||||
@ -454,6 +454,7 @@ export function initQueryFilter(OrgId, PageIndex, Limit, Sort, Order) {
|
||||
IncludeCount: 0,
|
||||
OrderCount: 0,
|
||||
FilterGroupCount: 0,
|
||||
IgnoreOrgRule: true,
|
||||
Include: [],
|
||||
Orders: [],
|
||||
FilterGroup: {
|
||||
@ -476,6 +477,7 @@ export function initFilter(OrgId, Keyword = "", Sort, Order, PageIndex = 1, Para
|
||||
OrgId,
|
||||
PageIndex,
|
||||
Limit: 10,
|
||||
IgnoreOrgRule: true,
|
||||
Start: (PageIndex - 1) * 10,
|
||||
Sort,
|
||||
Order: (Order === '' ? 0 : Order),
|
||||
|
||||
@ -7,16 +7,16 @@ export default {
|
||||
// return config.uni_app_web_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 user = uni.getStorageSync('loginUserVerify')
|
||||
// const RootOrgId = uni.getStorageSync('RootOrgId')
|
||||
const appInfoData = uni.getStorageSync('appInfo')
|
||||
const tenant = uni.getStorageSync('Tenant') || ''
|
||||
const userId = uni.getStorageSync('Userid')||''
|
||||
const userId = uni.getStorageSync('Userid') || ''
|
||||
// const userId = appInfoData?.User?.ID || ''
|
||||
const userName = appInfoData?.User?.NAME || ''
|
||||
const orgId= uni.getStorageSync('orgId')||''
|
||||
const orgId = uni.getStorageSync('orgId') || ''
|
||||
// const orgId = appInfoData?.User?.ORG_ID || ''
|
||||
const dataRule = appInfoData?.DataRule ? appInfoData?.DataRule.join(',') : ''
|
||||
const departmentId = appInfoData?.User?.DEPARTMENT_ID || ''
|
||||
@ -37,33 +37,38 @@ export default {
|
||||
// const Tenant = uni.getStorageSync('Tenant')
|
||||
// url.indexOf('OP') != 0 && !isIgnoreTenant && (headers.Tenant = Tenant)
|
||||
const Tenant = uni.getStorageSync('Tenant') || ''
|
||||
if (url.indexOf('PF/Login/Login') !== -1) {
|
||||
// Login接口使用最新的Tenant、Orgid、userid、Username值
|
||||
const latestTenant = uni.getStorageSync('Tenant') || ''
|
||||
const latestOrgid = uni.getStorageSync('orgId')
|
||||
const latestUserid = uni.getStorageSync('Userid')
|
||||
const latestUsername = uni.getStorageSync('Username')
|
||||
|
||||
|
||||
|
||||
if (latestTenant) {
|
||||
headers.Tenant = latestTenant
|
||||
}
|
||||
if (latestOrgid) {
|
||||
// 覆盖原有的orgId字段,使用最新值
|
||||
headers.orgId = latestOrgid
|
||||
}
|
||||
if (latestUserid) {
|
||||
// 覆盖原有的userid字段,使用最新值
|
||||
headers.userid = latestUserid
|
||||
}
|
||||
// if (latestUsername) {
|
||||
// // 覆盖原有的username字段,使用最新值
|
||||
// headers.username = latestUsername
|
||||
// }
|
||||
} else if (url.indexOf('OP') != 0 && !isIgnoreTenant) {
|
||||
headers.Tenant = Tenant
|
||||
}
|
||||
if (url.indexOf('PF/Login/Login') !== -1) {
|
||||
// Login接口使用最新的Tenant、Orgid、userid、Username值
|
||||
const latestTenant = uni.getStorageSync('Tenant') || ''
|
||||
const latestOrgid = uni.getStorageSync('orgId')
|
||||
const latestUserid = uni.getStorageSync('Userid')
|
||||
const latestUsername = uni.getStorageSync('Username')
|
||||
|
||||
|
||||
|
||||
if (latestTenant) {
|
||||
headers.Tenant = latestTenant
|
||||
}
|
||||
if (latestOrgid) {
|
||||
// 覆盖原有的orgId字段,使用最新值
|
||||
headers.orgId = latestOrgid
|
||||
}
|
||||
if (latestUserid) {
|
||||
// 覆盖原有的userid字段,使用最新值
|
||||
headers.userid = latestUserid
|
||||
}
|
||||
// if (latestUsername) {
|
||||
// // 覆盖原有的username字段,使用最新值
|
||||
// headers.username = latestUsername
|
||||
// }
|
||||
} else if (url.indexOf('OP') != 0 && !isIgnoreTenant) {
|
||||
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
|
||||
},
|
||||
send(options = {}, onlyData, isShowLoading) {
|
||||
@ -202,7 +207,7 @@ export default {
|
||||
return this.send({
|
||||
url: url,
|
||||
data: data,
|
||||
header: this.getRequestHeaders(url, 'get')
|
||||
header: this.getRequestHeaders(url, 'get', data)
|
||||
}, onlyData)
|
||||
},
|
||||
post(url = '', data = {}, onlyData = true, isShowLoading = true) {
|
||||
@ -218,7 +223,7 @@ export default {
|
||||
return this.send({
|
||||
url: url,
|
||||
data: data,
|
||||
header: this.getRequestHeaders(url, 'post'),
|
||||
header: this.getRequestHeaders(url, 'post', data),
|
||||
method: 'POST'
|
||||
}, onlyData, isShowLoading)
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user