|
|
@ -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, |
|
|
|