Browse Source

group

master
pengjun 2 years ago
parent
commit
229b1072df
  1. 4
      src/components/patientRegister/PatientRegisterItem.vue
  2. 105
      src/components/patientRegister/PatientRegisterList.vue

4
src/components/patientRegister/PatientRegisterItem.vue

@ -8,7 +8,6 @@
clearable filterable @change="getAsbItemByItemType" size="small">
</el-cascader>
</div>
<div class="mainareaBox">
<el-table :header-cell-style="{ background: '#eef1f6' }" :data="dict.asbItem"
:height="(window.pageHeight > 735 ? (window.pageHeight - 537) : 198)" @row-dblclick="dbClickChoosedAsb"
@ -26,7 +25,7 @@
<div style="text-align: center;">{{ ldddw(dict.forSex, "id", scope.row.forSexId, "displayName") }}</div>
</template>
</el-table-column>
-->
-->
</el-table>
</div>
</div>
@ -768,7 +767,6 @@ export default {
if (!this.discountFoucs) this.discount = Number(this.total * 100 / this.totalStand).toFixed(2);
return sums;
},
},
//

105
src/components/patientRegister/PatientRegisterList.vue

@ -165,10 +165,10 @@
<el-button type="primary" class="btnClass">健康档案</el-button>
</div>
<div class="listBtn">
<el-button type="primary" class="btnClass">调整分组</el-button>
<el-button type="primary" class="btnClass" @click="btnGroupBatch">调整分组</el-button>
</div>
<div class="listBtn">
<el-button type="primary" class="btnClass">调整项目</el-button>
<el-button type="primary" class="btnClass" @click="asbBatch">调整项目</el-button>
</div>
<div class="listBtn">
<el-button type="primary" class="btnClass" @click="guidePrint('0001', false)">指引单打印</el-button>
@ -195,6 +195,36 @@
:close-on-click-modal="false">
<div>{{ guideMsg }}</div>
</el-dialog>
<!-- 批量调整分组 -->
<el-dialog title="批量调整分组" :visible.sync="dialogGroup" width="400" height="800" :append-to-body="true"
:close-on-click-modal="false">
<div>
<div>
批量调整分组只针对单位体检有效个人体检将忽略此操作不能调整已收费或已检的项目及已总检的体检人员
</div>
<div>
<br /><span>分组</span>
<el-select v-model="groupBatch.customerOrgGroupId" placeholder="请选择" filterable size="small">
<el-option v-for="item in patientRegister.customerOrgGroup" :key="item.id" :label="item.displayName"
:value="item.id" />
</el-select>
</div>
<div>
<br /><el-radio v-model="groupBatch.payTypeFlag" label="0">个人支付</el-radio>
<br /><el-radio v-model="groupBatch.payTypeFlag" label="1">单位支付</el-radio>
<br /><el-radio v-model="groupBatch.payTypeFlag" label="2">免费</el-radio>
</div>
<div>
<br /><el-checkbox v-model="groupBatch.isReserveAddAsbitem">保留加做项目包括不属于原分组的没有设置分组的</el-checkbox>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="groupBatchHandle"> </el-button>
<el-button @click="dialogGroup = false"> </el-button>
</span>
</el-dialog>
</div>
</template>
<script>
@ -227,6 +257,14 @@ export default {
rClickRow: null, //
rClickColumn: null, //
dialogGroup: false,
groupBatch: {
patientRegisterId: null,
customerOrgGroupId: null,
payTypeFlag: "1", //01 2
isReserveAddAsbitem: true, //
},
};
},
@ -246,7 +284,7 @@ export default {
let user = localStorage.getItem('user');
let toOutShell = {
ReportCode, token,
preViewCanPrint:'N',
preViewCanPrint: 'N',
Parameters: [
{ Name: 'printer', Value: user },
{ Name: 'hisLog', Value: 'pic/hisLog.jpg' },
@ -364,6 +402,7 @@ export default {
this.getPatientRegisterAbs();
},
edit() {
if (!this.patientRegister.patientRegisterRd.id) {
alert("请选择要操作的记录");
@ -570,6 +609,60 @@ export default {
return false;
},
//
btnGroupBatch() {
let customerOrgId = this.patientRegister.query.customerOrgId;
if (!customerOrgId) {
alert("请选择单位或个人");
return;
}
if (this.multipleSelection.length < 1) {
this.$message.info("请勾选要操作的人员!");
return;
}
this.dialogGroup = true;
},
//
async groupBatchHandle() {
let groupBatch = { patientRegisterId: null, ...this.groupBatch };
if (groupBatch.isReserveAddAsbitem) {
groupBatch.isReserveAddAsbitem = 'Y';
} else {
groupBatch.isReserveAddAsbitem = 'N';
}
console.log('groupBatch', groupBatch);
if (!groupBatch.customerOrgGroupId) {
this.$message.warning("请选择分组");
return;
}
for (let i = 0; i < this.multipleSelection.length; i++) {
groupBatch.patientRegisterId = this.multipleSelection[i].id;
try {
await postapi('/api/app/patientregister/updatepatientregistercustomerorggroup', groupBatch);
} catch (error) {
console.log(error);
}
}
this.dialogGroup = false;
},
//
asbBatch() {
let customerOrgId = this.patientRegister.query.customerOrgId;
if (!customerOrgId) {
alert("请选择单位或个人");
return;
}
},
//
async lisRequest(prId) {
let isPrintLisRequest = false
@ -620,7 +713,7 @@ export default {
let user = localStorage.getItem('user');
let toOutShell = {
ReportCode, token,
preViewCanPrint:'N',
preViewCanPrint: 'N',
Parameters: [
{ Name: 'printer', Value: user },
{ Name: 'hisLog', Value: 'pic/hisLog.jpg' },
@ -678,7 +771,7 @@ export default {
let user = localStorage.getItem('user');
let toOutShell = {
ReportCode, token,
preViewCanPrint:'Y',
preViewCanPrint: 'Y',
Parameters: [
{ Name: 'printer', Value: user },
{ Name: 'hisLog', Value: 'pic/hisLog.jpg' },
@ -686,7 +779,7 @@ export default {
};
if (isPreview) {
if (isPreview) {
//http://140.143.162.39:9529/api/app/printreport/getpacsnoreport?PatientRegisterId=3a0c990e-5756-2dc0-19d5-69a617fe4048
//this.multipleSelection.forEach((item,index) =>{
postapi(`/api/app/printreport/getpacsnoreport?PatientRegisterId=${prId}`)

Loading…
Cancel
Save