|
@@ -48,6 +48,16 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="ipad是否封禁" prop="ipadDeactivate">
|
|
|
|
|
+ <el-select v-model="queryParams.ipadDeactivate" placeholder="请选择类型" clearable size="small">
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="dict in ipadDeactivate"
|
|
|
|
|
+ :key="dict.dictValue"
|
|
|
|
|
+ :label="dict.dictLabel"
|
|
|
|
|
+ :value="dict.dictValue"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
@@ -136,6 +146,12 @@
|
|
|
</el-tag>
|
|
</el-tag>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column label="ipad是否封禁" align="center">
|
|
|
|
|
+ <template v-slot="scope">
|
|
|
|
|
+ <el-tag v-if="scope.row.ipadDeactivate == 0" type="success">否</el-tag>
|
|
|
|
|
+ <el-tag v-else type="danger">是</el-tag>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="备注" align="center" prop="remark"/>
|
|
<el-table-column label="备注" align="center" prop="remark"/>
|
|
|
<el-table-column label="主小程序" align="center" prop="masterAppName"/>
|
|
<el-table-column label="主小程序" align="center" prop="masterAppName"/>
|
|
|
<el-table-column label="备小程序" align="center" prop="backupAppName"/>
|
|
<el-table-column label="备小程序" align="center" prop="backupAppName"/>
|
|
@@ -193,6 +209,16 @@
|
|
|
@click="handleRevenue(scope.row)"
|
|
@click="handleRevenue(scope.row)"
|
|
|
v-hasPermi="['his:companyDivConfig:set']"
|
|
v-hasPermi="['his:companyDivConfig:set']"
|
|
|
>分账配置</el-button>
|
|
>分账配置</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
|
+ @click="oneClickIpad(scope.row)"
|
|
|
|
|
+ v-hasPermi="['his:company:oneClickDisable']"
|
|
|
|
|
+ >
|
|
|
|
|
+ <span v-if="scope.row.ipadDeactivate == 0">一键停用ipad</span>
|
|
|
|
|
+ <span v-else>一键启用ipad</span>
|
|
|
|
|
+ </el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -603,7 +629,9 @@ import {
|
|
|
resetPwd,
|
|
resetPwd,
|
|
|
getDivConfig,
|
|
getDivConfig,
|
|
|
setDiv,
|
|
setDiv,
|
|
|
- exitMiniProgram
|
|
|
|
|
|
|
+ exitMiniProgram,
|
|
|
|
|
+ oneClickDisable,
|
|
|
|
|
+ oneClickEnable
|
|
|
} from '@/api/his/company'
|
|
} from '@/api/his/company'
|
|
|
import { getFollowDoctorList } from '@/api/his/doctor'
|
|
import { getFollowDoctorList } from '@/api/his/doctor'
|
|
|
import { docList } from '@/api/his/doctor'
|
|
import { docList } from '@/api/his/doctor'
|
|
@@ -613,19 +641,21 @@ import { cateList } from '@/api/his/packageCate'
|
|
|
import { getConfigByKey } from '@/api/system/config'
|
|
import { getConfigByKey } from '@/api/system/config'
|
|
|
import { listDept } from '@/api/system/dept'
|
|
import { listDept } from '@/api/system/dept'
|
|
|
import { listAll } from '@/api/course/coursePlaySourceConfig'
|
|
import { listAll } from '@/api/course/coursePlaySourceConfig'
|
|
|
|
|
+import Template from '@/views/his/complaint/template.vue'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'Company',
|
|
name: 'Company',
|
|
|
|
|
+ components: { Template },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- signProjectName:"",
|
|
|
|
|
|
|
+ signProjectName: "",
|
|
|
redSubmit: false,
|
|
redSubmit: false,
|
|
|
//分账参数
|
|
//分账参数
|
|
|
- revenue:{
|
|
|
|
|
|
|
+ revenue: {
|
|
|
open: false,
|
|
open: false,
|
|
|
title: '分账配置'
|
|
title: '分账配置'
|
|
|
},
|
|
},
|
|
|
- revenueForm:{
|
|
|
|
|
|
|
+ revenueForm: {
|
|
|
companyId: null,
|
|
companyId: null,
|
|
|
companyName: '',
|
|
companyName: '',
|
|
|
divFlag: '0',
|
|
divFlag: '0',
|
|
@@ -667,6 +697,13 @@ export default {
|
|
|
open: false,
|
|
open: false,
|
|
|
// 状态字典
|
|
// 状态字典
|
|
|
statusOptions: [],
|
|
statusOptions: [],
|
|
|
|
|
+ ipadDeactivate:[{
|
|
|
|
|
+ dictValue:0,
|
|
|
|
|
+ dictLabel:'否'
|
|
|
|
|
+ },{
|
|
|
|
|
+ dictValue:1,
|
|
|
|
|
+ dictLabel:'是'
|
|
|
|
|
+ }],
|
|
|
// 企业类型字典
|
|
// 企业类型字典
|
|
|
companyTypeOptions: [],
|
|
companyTypeOptions: [],
|
|
|
//部门字典
|
|
//部门字典
|
|
@@ -681,7 +718,8 @@ export default {
|
|
|
companyType: null,
|
|
companyType: null,
|
|
|
limitUserCount: null,
|
|
limitUserCount: null,
|
|
|
maxPadNum: -1,
|
|
maxPadNum: -1,
|
|
|
- queryAppName:null,
|
|
|
|
|
|
|
+ queryAppName: null,
|
|
|
|
|
+ ipadDeactivate:null
|
|
|
},
|
|
},
|
|
|
voiceApis: [],
|
|
voiceApis: [],
|
|
|
// 表单参数
|
|
// 表单参数
|
|
@@ -795,7 +833,7 @@ export default {
|
|
|
this.deptOptions = response.data
|
|
this.deptOptions = response.data
|
|
|
})
|
|
})
|
|
|
getConfigByKey("medicalMall.func.switch").then(response => {
|
|
getConfigByKey("medicalMall.func.switch").then(response => {
|
|
|
- if(response.data && response.data.configValue) {
|
|
|
|
|
|
|
+ if (response.data && response.data.configValue) {
|
|
|
this.medicalMallConfig = JSON.parse(response.data.configValue);
|
|
this.medicalMallConfig = JSON.parse(response.data.configValue);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -825,7 +863,7 @@ export default {
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- handleRevenue(row){
|
|
|
|
|
|
|
+ handleRevenue(row) {
|
|
|
const companyId = row.companyId
|
|
const companyId = row.companyId
|
|
|
// 重置表单数据,避免保留上次的数据
|
|
// 重置表单数据,避免保留上次的数据
|
|
|
this.revenueForm = {
|
|
this.revenueForm = {
|
|
@@ -836,31 +874,31 @@ export default {
|
|
|
percentageFlag: 'N',
|
|
percentageFlag: 'N',
|
|
|
iscCleanSplit: 'N',
|
|
iscCleanSplit: 'N',
|
|
|
acctInfos: [],
|
|
acctInfos: [],
|
|
|
- isAdd: 1
|
|
|
|
|
|
|
+ isAdd: 1,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//查询配置
|
|
//查询配置
|
|
|
getDivConfig(companyId).then(response => {
|
|
getDivConfig(companyId).then(response => {
|
|
|
- if(response.data){
|
|
|
|
|
|
|
+ if (response.data) {
|
|
|
this.revenueForm = {
|
|
this.revenueForm = {
|
|
|
...response.data,
|
|
...response.data,
|
|
|
companyId: companyId,
|
|
companyId: companyId,
|
|
|
companyName: row.companyName,
|
|
companyName: row.companyName,
|
|
|
isAdd: 0 // 已有配置,设置为更新操作
|
|
isAdd: 0 // 已有配置,设置为更新操作
|
|
|
}
|
|
}
|
|
|
- if(response.data.acctInfos == null){
|
|
|
|
|
|
|
+ if (response.data.acctInfos == null) {
|
|
|
this.revenueForm.acctInfos = []
|
|
this.revenueForm.acctInfos = []
|
|
|
}
|
|
}
|
|
|
- if(response.data.divFlag != null){
|
|
|
|
|
|
|
+ if (response.data.divFlag != null) {
|
|
|
this.revenueForm.divFlag = String(response.data.divFlag)
|
|
this.revenueForm.divFlag = String(response.data.divFlag)
|
|
|
}
|
|
}
|
|
|
- if(!response.data.delayAcctFlag){
|
|
|
|
|
|
|
+ if (!response.data.delayAcctFlag) {
|
|
|
this.revenueForm.delayAcctFlag = 'N'
|
|
this.revenueForm.delayAcctFlag = 'N'
|
|
|
}
|
|
}
|
|
|
- if(!response.data.percentageFlag){
|
|
|
|
|
|
|
+ if (!response.data.percentageFlag) {
|
|
|
this.revenueForm.percentageFlag = 'N'
|
|
this.revenueForm.percentageFlag = 'N'
|
|
|
}
|
|
}
|
|
|
- if(!response.data.iscCleanSplit){
|
|
|
|
|
|
|
+ if (!response.data.iscCleanSplit) {
|
|
|
this.revenueForm.iscCleanSplit = 'N'
|
|
this.revenueForm.iscCleanSplit = 'N'
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -884,11 +922,11 @@ export default {
|
|
|
this.deductForm.money = null
|
|
this.deductForm.money = null
|
|
|
this.deduct.open = true
|
|
this.deduct.open = true
|
|
|
},
|
|
},
|
|
|
- submitRevenueForm(){
|
|
|
|
|
|
|
+ submitRevenueForm() {
|
|
|
// 使用深拷贝,避免影响其他数据
|
|
// 使用深拷贝,避免影响其他数据
|
|
|
var param = JSON.parse(JSON.stringify(this.revenueForm));
|
|
var param = JSON.parse(JSON.stringify(this.revenueForm));
|
|
|
- console.log("--------------提交的分账配置参数",param)
|
|
|
|
|
- if(param.companyId && param.divFlag != null){
|
|
|
|
|
|
|
+ console.log("--------------提交的分账配置参数", param)
|
|
|
|
|
+ if (param.companyId && param.divFlag != null) {
|
|
|
setDiv(param).then(response => {
|
|
setDiv(param).then(response => {
|
|
|
if (response.code === 200) {
|
|
if (response.code === 200) {
|
|
|
this.msgSuccess(response.msg)
|
|
this.msgSuccess(response.msg)
|
|
@@ -1143,9 +1181,29 @@ export default {
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- padNumFormatter(row){
|
|
|
|
|
- // console.log(row.maxPadNum.type)
|
|
|
|
|
|
|
+ padNumFormatter(row) {
|
|
|
return row.maxPadNum === -1 ? '不限' : row.maxPadNum
|
|
return row.maxPadNum === -1 ? '不限' : row.maxPadNum
|
|
|
|
|
+ },
|
|
|
|
|
+ //一键封禁和启用
|
|
|
|
|
+ oneClickIpad(row) {
|
|
|
|
|
+ const text =(row.ipadDeactivate == 0 || row.ipadDeactivate == null)?'禁用':'启用';
|
|
|
|
|
+ this.$confirm('是否一键'+text+'当前销售公司ipad!',row.companyName, '提示', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ let companyIds = [row.companyId]
|
|
|
|
|
+ if(row.ipadDeactivate == 0){
|
|
|
|
|
+ oneClickDisable({companyIds:companyIds}).then(response => {
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ })
|
|
|
|
|
+ }else {
|
|
|
|
|
+ oneClickEnable({companyIds:companyIds}).then(response => {
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|