Browse Source

seo group

master
pengjun 2 years ago
parent
commit
5e1ff20323
  1. 49
      src/components/customerOrg/customerOrgGroupAsbitem.vue
  2. 24
      src/views/customerOrg/customerOrgGroup.vue

49
src/components/customerOrg/customerOrgGroupAsbitem.vue

@ -51,8 +51,9 @@
<div style="height:32px;"> <div style="height:32px;">
<span>快速选择</span> <span>快速选择</span>
<el-select v-model="asbItemId" placeholder="快速选择组合项目" size="small" <el-select v-model="asbItemId" placeholder="快速选择组合项目" size="small"
filterable clearable remote automatic-dropdown
:remote-method="remoteMethod" @change="quickChoosedAsb" default-first-option ref="asbItemId"
filterable default-first-option :filter-method="filterMethod"
clearable @clear="quickAsb = deepCopy(dict.asbItemQuick)"
@change="quickChoosedAsb" ref="asbItemId"
style="margin-left: 3px;width:160px;"> style="margin-left: 3px;width:160px;">
<el-option v-for="item in quickAsb" :key="item.id" :value="item.id" :label="item.displayName" /> <el-option v-for="item in quickAsb" :key="item.id" :value="item.id" :label="item.displayName" />
</el-select> </el-select>
@ -74,7 +75,7 @@
prop="displayName" prop="displayName"
></el-table-column> ></el-table-column>
<el-table-column label="标准价格" prop="price" min-width="60" align="center"/> <el-table-column label="标准价格" prop="price" min-width="60" align="center"/>
<el-table-column label="折扣" prop="price" min-width="50" align="center">
<el-table-column label="折扣" prop="price" min-width="60" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
@input="changeDiscount(scope.$index)" @input="changeDiscount(scope.$index)"
@ -322,7 +323,7 @@ export default {
this.refreshTable('tableCustomerOrgGroupAsbitems') this.refreshTable('tableCustomerOrgGroupAsbitems')
}, },
methods: { methods: {
moment,dddw,
moment,dddw,deepCopy,
// //
refreshTable(tableRef){ refreshTable(tableRef){
this.$nextTick(() => { this.$nextTick(() => {
@ -400,8 +401,8 @@ export default {
}, },
// //
remoteMethod(keyWords) {
//console.log('remoteMethod',this.dict.asbItemQuick)
filterMethod(keyWords) {
//console.log('filterMethod',this.dict.asbItemQuick)
if (keyWords) { if (keyWords) {
this.quickAsb = []; this.quickAsb = [];
this.dict.asbItemQuick.forEach(item => { this.dict.asbItemQuick.forEach(item => {
@ -412,19 +413,23 @@ export default {
} }
}); });
} else { } else {
this.quickAsb = [...this.dict.asbItemQuick];
this.quickAsb = deepCopy(this.dict.asbItemQuick);
} }
}, },
// //
///api/app/register-asbitem/many/3fa85f64-5717-4562-b3fc-2c963f66afa6' ///api/app/register-asbitem/many/3fa85f64-5717-4562-b3fc-2c963f66afa6'
async addAbs(asbItemChoosed,oprType) { async addAbs(asbItemChoosed,oprType) {
console.log('this.customerOrgGroup',this.customerOrgGroup)
console.log('asbItemChoosed', asbItemChoosed)
// console.log('this.customerOrgGroup',this.customerOrgGroup)
// console.log('asbItemChoosed', asbItemChoosed)
if(!this.customerOrgGroup.id){ if(!this.customerOrgGroup.id){
this.$message.warning("请先选中单位分组") this.$message.warning("请先选中单位分组")
return return
} }
if(this.customerOrgGroup.isComplete && this.customerOrgGroup.isComplete.toUpperCase() == 'Y'){
this.$message.warning("体检次数已完成,不允许操作")
return
}
let message = [] let message = []
let checked = true let checked = true
let lfind = -1 let lfind = -1
@ -582,9 +587,16 @@ export default {
// //
///api/app/register-asbitem/many?RegisterAsbitemIds=3fa85f64-5717-4562-b3fc-2c963f66afa6 ///api/app/register-asbitem/many?RegisterAsbitemIds=3fa85f64-5717-4562-b3fc-2c963f66afa6
delAbs(absForDel,oprType) { delAbs(absForDel,oprType) {
let body = {}
let registerAsbitemIds = []
let chargeComplete = ''
if(!this.customerOrgGroup.id){
this.$message.warning("请先选中单位分组")
return
}
if(this.customerOrgGroup.isComplete && this.customerOrgGroup.isComplete.toUpperCase() == 'Y'){
this.$message.warning("体检次数已完成,不允许操作")
return
}
let lfind = -1 let lfind = -1
// start // start
@ -745,9 +757,14 @@ export default {
// //
btnCopyGroup(){ btnCopyGroup(){
console.log('this.customerOrgGroup',this.customerOrgGroup)
if(!this.customerOrgGroup.id || !this.customerOrgGroup.customerOrgId){ if(!this.customerOrgGroup.id || !this.customerOrgGroup.customerOrgId){
this.$message.warning("请先选中单位分组") this.$message.warning("请先选中单位分组")
return return
}
if(this.customerOrgGroup.isComplete && this.customerOrgGroup.isComplete.toUpperCase() == 'Y'){
this.$message.warning("体检次数已完成,不允许操作")
return
} }
getapi( getapi(
@ -803,6 +820,10 @@ export default {
if(!this.customerOrgGroup.id){ if(!this.customerOrgGroup.id){
this.$message.warning("请先选中单位分组") this.$message.warning("请先选中单位分组")
return return
}
if(this.customerOrgGroup.isComplete && this.customerOrgGroup.isComplete.toUpperCase() == 'Y'){
this.$message.warning("体检次数已完成,不允许操作")
return
} }
this.medicalPackageVisble = true this.medicalPackageVisble = true
}, },
@ -845,6 +866,10 @@ export default {
if(!this.customerOrgGroup.id){ if(!this.customerOrgGroup.id){
this.$message.warning("请先选中单位分组") this.$message.warning("请先选中单位分组")
return return
}
if(this.customerOrgGroup.isComplete && this.customerOrgGroup.isComplete.toUpperCase() == 'Y'){
this.$message.warning("体检次数已完成,不允许操作")
return
} }
let body = { let body = {
customerOrgGroupId:this.customerOrgGroup.id, customerOrgGroupId:this.customerOrgGroup.id,

24
src/views/customerOrg/customerOrgGroup.vue

@ -263,7 +263,8 @@ export default {
isDrag: false, isDrag: false,
form: { form: {
// //
customerOrgId:'', //
customerOrgId:'', //()
isComplete:'N', //
id: "", id: "",
customerOrgRegisterId: null, // customerOrgRegisterId: null, //
displayName: "", displayName: "",
@ -495,7 +496,8 @@ export default {
// //
rowClick(row) { rowClick(row) {
objCopy(row, this.form);
objCopy(row, this.form);
this.form.isComplete = this.customerOrgRegister.isComplete
}, },
// //
@ -504,6 +506,11 @@ export default {
this.$message.warning("请选择体检次数"); this.$message.warning("请选择体检次数");
return; return;
} }
if(this.customerOrgRegister.isComplete.toUpperCase() == 'Y'){
this.$message.warning("该单位体检次数已完成,不允许新增分组");
return;
}
if (this.customerOrgRegister.isComplete.toUpperCase() == "Y") { if (this.customerOrgRegister.isComplete.toUpperCase() == "Y") {
this.$message.warning("该单位的该次体检次数已完成,不能再添加分组!"); this.$message.warning("该单位的该次体检次数已完成,不能再添加分组!");
return; return;
@ -517,6 +524,14 @@ export default {
// //
btnEdit() { btnEdit() {
if (!this.form.id) {
this.$message.warning("请选择需要操作的数据");
return;
}
if(this.customerOrgRegister.isComplete.toUpperCase() == 'Y'){
this.$message.warning("该单位体检次数已完成,不允许编辑分组");
return;
}
this.dialogVisible = true; this.dialogVisible = true;
}, },
@ -526,6 +541,10 @@ export default {
this.$message.warning("请选择需要操作的数据"); this.$message.warning("请选择需要操作的数据");
return; return;
} }
if(this.customerOrgRegister.isComplete.toUpperCase() == 'Y'){
this.$message.warning("该单位体检次数已完成,不允许删除分组");
return;
}
this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", { this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", {
confirmButtonText: "是", confirmButtonText: "是",
@ -570,6 +589,7 @@ export default {
let body = deepCopy(this.form); let body = deepCopy(this.form);
delete body.id; delete body.id;
delete body.customerOrgId; delete body.customerOrgId;
delete body.isComplete;
if (this.form.id) { if (this.form.id) {
// //

Loading…
Cancel
Save