修改
This commit is contained in:
parent
2003daebf5
commit
53abf85357
@ -70,9 +70,9 @@ export function delScript(id) {
|
||||
})
|
||||
}
|
||||
// 左侧科室
|
||||
export function listServicePackageNum(query) {
|
||||
export function listScriptNum(query) {
|
||||
return request({
|
||||
url: '/system/department/listServicePackageNum',
|
||||
url: '/system/department/listScriptNum',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
|
||||
@ -139,7 +139,12 @@
|
||||
label="适用任务类型"
|
||||
align="center"
|
||||
prop="suitTaskTypeName"
|
||||
/>
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{scope.row.suitTaskTypeName!="null"?scope.row.suitTaskTypeName:''}}
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="短信通道"
|
||||
align="center"
|
||||
@ -639,9 +644,6 @@ export default {
|
||||
this.getList();
|
||||
this.Departmentlist();
|
||||
this.typelistdata();
|
||||
listMessage(this.queryParams).then(response => {
|
||||
this.count = response.total;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
/** 查询微信模板信息列表 */
|
||||
@ -671,10 +673,14 @@ export default {
|
||||
this.loading = true;
|
||||
listMessageNum(this.querydepartmen).then(response => {
|
||||
this.DepartmentoList = response.data;
|
||||
// this.count=this.DepartmentoList.length
|
||||
console.log(this.DepartmentoList)
|
||||
|
||||
// this.total = response.total;
|
||||
let sum = 0;
|
||||
this.DepartmentoList.forEach((item) => {
|
||||
if (item.countNum != null) {
|
||||
console.log(item.countNum)
|
||||
sum += item.countNum;
|
||||
}
|
||||
this.count = sum;
|
||||
});
|
||||
this.loading = false;
|
||||
});
|
||||
|
||||
@ -904,14 +910,6 @@ export default {
|
||||
return delMessage(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
var quer = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
|
||||
}
|
||||
listMessage(quer).then(response => {
|
||||
this.count = response.total;
|
||||
});
|
||||
this.Departmentlist();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => { });
|
||||
|
||||
@ -83,7 +83,6 @@
|
||||
>
|
||||
</el-col>
|
||||
|
||||
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
@ -131,7 +130,6 @@
|
||||
{{ item.departmentName }}
|
||||
</div>
|
||||
<span class="count">{{ item.countNum }}</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</el-col>
|
||||
@ -155,9 +153,24 @@
|
||||
prop="commonScriptName"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column label="话术名称" align="center" prop="scriptName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="话术ID" align="center" prop="scriptId" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="平台ID" align="center" prop="platformId" :show-overflow-tooltip="true" />
|
||||
<el-table-column
|
||||
label="话术名称"
|
||||
align="center"
|
||||
prop="scriptName"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="话术ID"
|
||||
align="center"
|
||||
prop="scriptId"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="平台ID"
|
||||
align="center"
|
||||
prop="platformId"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column label="话术状态" align="center" prop="scriptStatus">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.scriptStatus == "NORMAL" ? "正常" : "" }}
|
||||
@ -331,20 +344,13 @@
|
||||
"
|
||||
>{{ diseaseTypeName }}</el-button
|
||||
>
|
||||
<!-- <el-select
|
||||
v-model="form.diseaseTypeId"
|
||||
placeholder="请选择病种名称"
|
||||
style="width: 379px"
|
||||
@change="diseasechange"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in optionsDisease"
|
||||
:key="item.diseaseTypeCode"
|
||||
:label="item.diseaseTypeName"
|
||||
:value="item.diseaseTypeCode"
|
||||
>
|
||||
</el-option>
|
||||
</el-select> -->
|
||||
</el-form-item>
|
||||
<el-form-item label="图片" prop="platformId">
|
||||
<stationAcatar
|
||||
@imgUrl="imgUrl"
|
||||
:img="form.propagandaCoverPath"
|
||||
:type="'propagandaCoverUrl'"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@ -505,65 +511,14 @@
|
||||
@pagination="infodisease"
|
||||
/>
|
||||
</el-dialog>
|
||||
<!-- 分类管理 -->
|
||||
<!-- <el-dialog
|
||||
:title="titlemanagement"
|
||||
:visible.sync="openmanagement"
|
||||
width="500px"
|
||||
append-to-body
|
||||
>
|
||||
<el-form
|
||||
ref="formmanagement"
|
||||
:model="formmanagement"
|
||||
:rules="rulesmanagement"
|
||||
label-width="80px"
|
||||
>
|
||||
<el-form-item label="科室名称" prop="departmentName">
|
||||
<el-select
|
||||
v-model="formmanagement.departmentName"
|
||||
placeholder="请选择病种名称"
|
||||
style="width: 379px"
|
||||
disabled
|
||||
>
|
||||
<el-option
|
||||
v-for="item in optionsDisease"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="病种名称" prop="diseaseTypeName">
|
||||
<el-select
|
||||
v-model="formmanagement.diseaseTypeName"
|
||||
placeholder="请选择病种名称"
|
||||
style="width: 379px"
|
||||
@change="diseasechange"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in optionsDisease"
|
||||
:key="item.diseaseTypeCode"
|
||||
:label="item.diseaseTypeName"
|
||||
:value="item.diseaseTypeCode"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitmanagement">确 定</el-button>
|
||||
<el-button @click="cancelmanagement">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listScript, getScript, delScript, addScript, updateScript, departmentDisease, department, listDisease,listServicePackageNum } from "@/api/manage/script";
|
||||
|
||||
import { listScript, getScript, delScript, addScript, updateScript, departmentDisease, department, listDisease, listScriptNum } from "@/api/manage/script";
|
||||
import stationAcatar from "../../system/stationAvatar/index.vue";
|
||||
export default {
|
||||
components: { stationAcatar },
|
||||
name: "Script",
|
||||
data() {
|
||||
return {
|
||||
@ -573,6 +528,7 @@ export default {
|
||||
name: '',
|
||||
departmentId: null,
|
||||
count: '',//全部
|
||||
sumcount:'',
|
||||
|
||||
|
||||
|
||||
@ -758,10 +714,7 @@ export default {
|
||||
created() {
|
||||
this.getList();
|
||||
this.Departmentlist();
|
||||
listScript(this.queryParams).then(response => {
|
||||
this.count = response.total;
|
||||
|
||||
});
|
||||
},
|
||||
watch: {
|
||||
name(val) {
|
||||
@ -770,6 +723,10 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 上传图片
|
||||
imgUrl(imgUrl) {
|
||||
this.form.propagandaCoverPath = imgUrl;
|
||||
},
|
||||
// 点击科室
|
||||
clickinnerVisible() {
|
||||
this.innerVisibleshow = true;
|
||||
@ -852,10 +809,18 @@ export default {
|
||||
// 左侧科室
|
||||
Departmentlist() {
|
||||
this.loading = true;
|
||||
listServicePackageNum(this.querydepartmen).then(response => {
|
||||
listScriptNum(this.querydepartmen).then(response => {
|
||||
this.DepartmentoList = response.data;
|
||||
// this.total = response.total;
|
||||
//定义
|
||||
let sum = 0;
|
||||
this.DepartmentoList.forEach((item) => {
|
||||
if(item.countNum !=null){
|
||||
console.log(item.countNum)
|
||||
sum += item.countNum;
|
||||
|
||||
}
|
||||
this.count = sum;
|
||||
});
|
||||
this.loading = false;
|
||||
});
|
||||
|
||||
@ -944,7 +909,6 @@ export default {
|
||||
scriptIntroduction: null,
|
||||
scriptSort: null,
|
||||
scriptRemark: null,
|
||||
|
||||
}
|
||||
this.resetForm("queryForm");
|
||||
this.getList();
|
||||
@ -986,7 +950,6 @@ export default {
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
// this.getDisease();
|
||||
@ -997,7 +960,6 @@ export default {
|
||||
this.open = true;
|
||||
this.title = "修改话术信息";
|
||||
});
|
||||
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
@ -1019,7 +981,6 @@ export default {
|
||||
this.form.diseaseTypeName = this.diseaseTypeName
|
||||
}
|
||||
if (this.itemname) {
|
||||
|
||||
this.form.departmentName = this.departmentName
|
||||
this.form.departmentId = this.itemname
|
||||
|
||||
@ -1031,28 +992,13 @@ export default {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.Departmentlist();
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
// 分类管理提交
|
||||
submitmanagement() {
|
||||
this.formmanagement.diseaseTypeId = this.form.diseaseTypeId
|
||||
this.formmanagement.departmentId = this.itemname
|
||||
|
||||
this.$refs["formmanagement"].validate(valid => {
|
||||
if (valid) {
|
||||
updateScript(this.formmanagement).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
@ -1060,15 +1006,6 @@ export default {
|
||||
return delScript(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
|
||||
var quer={
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
}
|
||||
listScript(quer).then(response => {
|
||||
this.count = response.total;
|
||||
|
||||
});
|
||||
this.Departmentlist();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => { });
|
||||
|
||||
@ -719,7 +719,7 @@
|
||||
title="提示"
|
||||
:visible.sync="dialogexamine"
|
||||
width="30%"
|
||||
:before-close="handleClose"
|
||||
:before-close="amineClose"
|
||||
center
|
||||
>
|
||||
<span style="font-size: 18px; margin-left: 55px">是否同意发布?</span>
|
||||
@ -915,7 +915,6 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
this.getlistcount();
|
||||
this.Departmentlist();
|
||||
},
|
||||
methods: {
|
||||
@ -944,6 +943,7 @@ this.$set(this.form,'packageTermUnit',e);
|
||||
|
||||
});
|
||||
},
|
||||
// 详情关闭
|
||||
handleClose(){
|
||||
this.detailshow=false
|
||||
},
|
||||
@ -969,7 +969,7 @@ this.$set(this.form,'packageTermUnit',e);
|
||||
},
|
||||
// 发布关闭按钮
|
||||
|
||||
handleClose() {
|
||||
amineClose() {
|
||||
this.dialogexamine = false
|
||||
},
|
||||
// 发布不同意按钮
|
||||
@ -1058,6 +1058,14 @@ this.$set(this.form,'packageTermUnit',e);
|
||||
this.loading = true;
|
||||
listServicePackageNum(this.querydepartmen).then(response => {
|
||||
this.DepartmentoList = response.data;
|
||||
let sum = 0;
|
||||
this.DepartmentoList.forEach((item) => {
|
||||
if (item.countNum != null) {
|
||||
console.log(item.countNum)
|
||||
sum += item.countNum;
|
||||
}
|
||||
this.count = sum;
|
||||
});
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
@ -1076,17 +1084,6 @@ this.$set(this.form,'packageTermUnit',e);
|
||||
|
||||
}
|
||||
},
|
||||
// 获取总数
|
||||
getlistcount() {
|
||||
var qure = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
|
||||
}
|
||||
listServicepackage(qure).then(response => {
|
||||
this.count = response.total;
|
||||
});
|
||||
},
|
||||
// 点击科室
|
||||
clickinnerVisible() {
|
||||
this.innerVisibleshow = true;
|
||||
@ -1246,6 +1243,7 @@ this.$set(this.form,'packageTermUnit',e);
|
||||
},
|
||||
// 修改
|
||||
handleUpdate(row) {
|
||||
this.getserviceWayList()
|
||||
const id = row.id || this.ids
|
||||
getServicepackage(id).then(response => {
|
||||
this.form = response.data;
|
||||
@ -1281,6 +1279,7 @@ this.$set(this.form,'packageTermUnit',e);
|
||||
this.departmentName = response.data.departmentName
|
||||
this.open = true;
|
||||
this.title = "复制服务包基础信息";
|
||||
this.Departmentlist();
|
||||
});
|
||||
},
|
||||
// 复制确定
|
||||
@ -1342,7 +1341,6 @@ this.$set(this.form,'packageTermUnit',e);
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.getlistcount()
|
||||
});
|
||||
} else {
|
||||
if (this.diseaseTypeName == "请选择病种") {
|
||||
@ -1361,10 +1359,9 @@ this.$set(this.form,'packageTermUnit',e);
|
||||
}
|
||||
addServicepackage(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.getlistcount()
|
||||
this.Departmentlist()
|
||||
});
|
||||
|
||||
}
|
||||
@ -1381,7 +1378,7 @@ this.$set(this.form,'packageTermUnit',e);
|
||||
return delServicepackage(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.getlistcount()
|
||||
this.Departmentlist();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => { });
|
||||
},
|
||||
|
||||
@ -567,9 +567,6 @@ export default {
|
||||
this.getList();
|
||||
this.Departmentlist();
|
||||
this.typelistdata();
|
||||
listTemplate(this.queryParams).then(response => {
|
||||
this.count = response.total;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
/** 查询微信模板信息列表 */
|
||||
@ -599,10 +596,15 @@ export default {
|
||||
this.loading = true;
|
||||
listWechatTemplateNum(this.querydepartmen).then(response => {
|
||||
this.DepartmentoList = response.data;
|
||||
// this.count=this.DepartmentoList.length
|
||||
let sum = 0;
|
||||
this.DepartmentoList.forEach((item) => {
|
||||
if (item.countNum != null) {
|
||||
console.log(item.countNum)
|
||||
sum += item.countNum;
|
||||
}
|
||||
this.count = sum;
|
||||
});
|
||||
|
||||
|
||||
// this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
|
||||
@ -618,12 +620,8 @@ export default {
|
||||
this.getList()
|
||||
} else {
|
||||
this.queryParams.departmentId = ''
|
||||
|
||||
this.itemname = null
|
||||
this.getList()
|
||||
listTemplate(this.queryParams).then(response => {
|
||||
this.count = response.total;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@ -798,6 +796,8 @@ export default {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.Departmentlist();
|
||||
|
||||
});
|
||||
} else {
|
||||
if (this.diseaseTypeName == "请选择病种") {
|
||||
@ -818,6 +818,9 @@ export default {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.Departmentlist();
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
@ -831,14 +834,6 @@ export default {
|
||||
return delTemplate(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
var quer = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
|
||||
}
|
||||
listTemplate(quer).then(response => {
|
||||
this.count = response.total;
|
||||
});
|
||||
this.Departmentlist();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => { });
|
||||
|
||||
@ -66,7 +66,6 @@
|
||||
@click="itemdata()"
|
||||
>
|
||||
全部
|
||||
|
||||
</div>
|
||||
<span class="count">{{ count }}</span>
|
||||
</div>
|
||||
@ -80,7 +79,6 @@
|
||||
{{ item.departmentName }}
|
||||
</div>
|
||||
<span class="count">{{ item.countNum }}</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</el-col>
|
||||
@ -186,7 +184,6 @@
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -286,10 +283,6 @@ export default {
|
||||
created() {
|
||||
this.getList();
|
||||
this.Departmentlist();
|
||||
listOperationInfo(this.queryParams).then(response => {
|
||||
this.count = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
watch: {
|
||||
name(val) {
|
||||
@ -323,10 +316,14 @@ export default {
|
||||
this.loading = true;
|
||||
listOperationNum(this.querydepartmen).then(response => {
|
||||
this.DepartmentoList = response.data;
|
||||
// this.count=this.DepartmentoList.length
|
||||
console.log(this.DepartmentoList)
|
||||
|
||||
// this.total = response.total;
|
||||
let sum = 0;
|
||||
this.DepartmentoList.forEach((item) => {
|
||||
if (item.countNum != null) {
|
||||
console.log(item.countNum)
|
||||
sum += item.countNum;
|
||||
}
|
||||
this.count = sum;
|
||||
});
|
||||
this.loading = false;
|
||||
});
|
||||
|
||||
@ -436,18 +433,19 @@ export default {
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
console.log(this.form,'00000')
|
||||
if (this.form.id) {
|
||||
updateOperationInfo(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.Departmentlist();
|
||||
});
|
||||
} else {
|
||||
addOperationInfo(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.Departmentlist();
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -460,14 +458,6 @@ export default {
|
||||
return delOperationInfo(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
var quer={
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
}
|
||||
listOperationInfo(quer).then(response => {
|
||||
this.count = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
this.Departmentlist();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => { });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user