|
|
|
@ -12,7 +12,7 @@ |
|
|
|
</div> |
|
|
|
<div class="box"> |
|
|
|
<el-table :data="dict.asbItem" border size="small" highlight-current-row |
|
|
|
:height="window.pageHeight < 668 ? 200:(window.pageHeight - 110 - 358)" |
|
|
|
:height="window.pageHeight < 668 ? 195:(window.pageHeight - 110 - 363)" |
|
|
|
@row-dblclick="dbClickChoosedAsb" row-key="id" |
|
|
|
@selection-change="selectLeft" :row-class-name="handleRowClassName" |
|
|
|
@row-click="chooseAsbItem"> |
|
|
|
@ -30,19 +30,19 @@ |
|
|
|
|
|
|
|
<!--中间操作按钮--> |
|
|
|
<div style="display: block;margin: 40px 10px 0 10px;"> |
|
|
|
<div> |
|
|
|
<el-button class="btnClass" @click="addAbs(asbItemChoosed,'choosed')" >添加 <i class="el-icon-arrow-right"></i></el-button> |
|
|
|
<div style="padding: 5px 0;"> |
|
|
|
<el-button class="commonbutton" @click="addAbs(asbItemChoosed,'choosed')" >添加 <i class="el-icon-arrow-right"></i></el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-button class="btnClass" @click="addAbs(asbItemChoosed,'all')">全部添加</el-button> |
|
|
|
<div style="padding: 5px 0;"> |
|
|
|
<el-button class="difference" @click="addAbs(asbItemChoosed,'all')">全部添加</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-button class="btnClass" |
|
|
|
<div style="padding: 5px 0;"> |
|
|
|
<el-button class="commonbutton" |
|
|
|
@click="delAbs(customerOrgGroupAsbitemsChoosed,'choosed')">移除 <i class="el-icon-arrow-left"></i |
|
|
|
></el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-button class="btnClass" @click="delAbs(customerOrgGroupAsbitemsChoosed,'all')">全部移除</el-button> |
|
|
|
<div style="padding: 5px 0;"> |
|
|
|
<el-button class="difference" @click="delAbs(customerOrgGroupAsbitemsChoosed,'all')">全部移除</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
@ -61,7 +61,7 @@ |
|
|
|
<div class="box"> |
|
|
|
<el-table :data="customerOrgGroupAsbitems" border size="small" |
|
|
|
@selection-change="selectRight" highlight-current-row |
|
|
|
:height="window.pageHeight < 668 ? 200:(window.pageHeight - 110 - 358)" |
|
|
|
:height="window.pageHeight < 668 ? 195:(window.pageHeight - 110 - 363)" |
|
|
|
:summary-method="getSummaries" show-summary |
|
|
|
:row-class-name="handleRowClassName" @row-dblclick="removeAbs" |
|
|
|
@row-click="removeAsbItem" ref="tableCustomerOrgGroupAsbitems"> |
|
|
|
@ -113,13 +113,13 @@ |
|
|
|
<!--批量操作按钮(复制套餐与分组)--> |
|
|
|
<div style="display: block;margin-left: 10px;"> |
|
|
|
<div style="margin-top: 50px;"> |
|
|
|
<el-button class="btnClass" @click="btnCopyGroup">复制分组</el-button> |
|
|
|
<el-button class="commonbutton" @click="btnCopyGroup">复制分组</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-button class="btnClass" @click="btnCopyMedicalPackage">复制套餐</el-button> |
|
|
|
<div style="margin-top: 10px;"> |
|
|
|
<el-button class="commonbutton" @click="btnCopyMedicalPackage">复制套餐</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-button class="btnClass" @click="btnSave">保存</el-button> |
|
|
|
<div style="margin-top: 10px;"> |
|
|
|
<el-button class="commonbutton" @click="btnSave">保存</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
@ -308,7 +308,7 @@ export default { |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapState(["window","dict","customerOrg"]), |
|
|
|
...mapState(["window","dict","dataTransOpts", "customerOrg"]), |
|
|
|
}, |
|
|
|
|
|
|
|
created() { |
|
|
|
@ -960,10 +960,19 @@ export default { |
|
|
|
//监听事件 |
|
|
|
watch: { |
|
|
|
// |
|
|
|
"customerOrgGroup.id"(newVal, oldVal) { |
|
|
|
console.log("customerOrgGroup.id ",newVal,oldVal); |
|
|
|
if (newVal != oldVal) { |
|
|
|
this.getCustomerOrgGroupAsbitems(newVal); |
|
|
|
// "customerOrgGroup.id"(newVal, oldVal) { |
|
|
|
// console.log("customerOrgGroup.id ",newVal,oldVal); |
|
|
|
// if (newVal != oldVal) { |
|
|
|
// this.getCustomerOrgGroupAsbitems(newVal); |
|
|
|
// } |
|
|
|
// }, |
|
|
|
|
|
|
|
// 体检分组ID未切换换时 也可以强制刷新数据 |
|
|
|
"dataTransOpts.refresh.customer_org_group_detail.M":{ |
|
|
|
immediate:true, |
|
|
|
handler(newVal, oldVal) { |
|
|
|
console.log(`watch 体检分组 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.customerOrgGroup.id}`); |
|
|
|
this.getCustomerOrgGroupAsbitems(this.customerOrgGroup.id); |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|