Browse Source

color

master
pengjun 2 years ago
parent
commit
32df17831f
  1. 11
      src/assets/css/global.css
  2. 54
      src/components/doctorCheck/CheckItemList.vue
  3. 18
      src/components/patientRegister/PatientRegisterItem.vue
  4. 137
      src/components/patientRegister/PatientRegisterList.vue
  5. 13
      src/components/patientRegister/patientRegisterAsbItem.vue

11
src/assets/css/global.css

@ -0,0 +1,11 @@
.el-table .warning-row {
background: rgb(240, 125, 125);
}
.el-table .refuse-row {
background: rgb(192, 192, 192);
}
.el-table .purple-row {
background: rgb(255, 0, 255);
}

54
src/components/doctorCheck/CheckItemList.vue

@ -1,42 +1,21 @@
<template>
<div>
<el-table
:data="doctorCheck.checkItemList"
style="width: 100%"
:height="
window.pageHeight < 600
? Math.floor(((380 - 40) * 3) / 5)
: Math.floor(((window.pageHeight - 220 - 40) * 3) / 5)
"
:row-style="{ height: '30px' }"
border
@row-click="rowClick"
>
<el-table :data="doctorCheck.checkItemList" style="width: 100%" :height="window.pageHeight < 600
? Math.floor(((380 - 40) * 3) / 5)
: Math.floor(((window.pageHeight - 220 - 40) * 3) / 5)
" :row-style="{ height: '30px' }" border @row-click="rowClick">
<el-table-column prop="itemName" label="项目" width="180" />
<el-table-column prop="result" label="结果" width="500">
<template slot-scope="scope">
<el-autocomplete
style="width: 480px"
class="inline-input"
type="textarea"
v-model="doctorCheck.checkItemList[scope.$index].result"
:fetch-suggestions="querySearch"
placeholder="请输入结果值"
@select="handleSelect"
:disabled="
doctorCheck.RegisterCheckEdit.completeFlag == '1' ||
<el-autocomplete style="width: 480px" class="inline-input" type="textarea"
v-model="doctorCheck.checkItemList[scope.$index].result" :fetch-suggestions="querySearch" placeholder="请输入结果值"
@select="handleSelect" :disabled="doctorCheck.RegisterCheckEdit.completeFlag == '1' ||
doctorCheck.RegisterCheckEdit.completeFlag == '2'
"
:autosize="{ minRows: 1, maxRows: 100 }"
/>
" :autosize="{ minRows: 1, maxRows: 100 }" />
</template>
</el-table-column>
<el-table-column prop="unit" label="单位" width="80" />
<el-table-column
prop="referenceRangeValue"
label="参考范围"
width="120"
/>
<el-table-column prop="referenceRangeValue" label="参考范围" width="120" />
</el-table>
</div>
</template>
@ -56,10 +35,10 @@ export default {
};
},
created() {},
created() { },
//
mounted() {},
mounted() { },
computed: {
...mapState(["window", "dict", "doctorCheck"]),
@ -134,16 +113,13 @@ export default {
},
};
</script>
<style scoped>
<style lang="scss" scoped>
@import "../../assets/css/global.css";
::v-deep .el-table td.el-table__cell,
.el-table th.el-table__cell.is-leaf {
padding: 0;
}
.el-table .warning-row {
background: rgb(240, 125, 125);
}
.el-table .refuse-row {
background: rgb(192, 192, 192);
}
</style>

18
src/components/patientRegister/PatientRegisterItem.vue

@ -9,7 +9,7 @@
</el-cascader>
</div>
<div class="mainareaBox">
<el-table :header-cell-style="{ background: '#eef1f6' }" :data="dict.asbItem"
<el-table :data="dict.asbItem"
:height="(window.pageHeight > 735 ? (window.pageHeight - 537) : 198)" @row-dblclick="dbClickChoosedAsb"
@selection-change="handleSelectionChange" size="small">
<el-table-column type="selection" align="center" />
@ -188,11 +188,14 @@ export default {
return moment(new Date(date)).format(forMat);
},
tableRowClassName(){
tableRowClassName({row, rowIndex}){
//console.log(row)
if (row.groupPackageId) {
return 'warning-row'; //
}
return '';
//console.log('row.groupPackageId',row.groupPackageId)
return 'purple-row'; //
}else{
return '';
}
},
//
// [
@ -800,6 +803,8 @@ export default {
};
</script>
<style lang="scss" scoped>
@import "../../assets/css/global.css";
.mainareaBox {
border: 1px solid #000;
height: v-bind("(window.pageHeight > 735 ? (window.pageHeight - 535) : 200) + 'px'");
@ -844,8 +849,5 @@ input[type="number"]::-webkit-outer-spin-button {
margin: 0 !important;
}
.el-table .purple-row {
background: rgb(128, 0, 128);
}
</style>

137
src/components/patientRegister/PatientRegisterList.vue

@ -225,6 +225,60 @@
</span>
</el-dialog>
<!-- 批量调整分组 -->
<el-dialog title="批量调整项目" :visible.sync="dialogAsbitem" width="400" height="800" :append-to-body="true"
:close-on-click-modal="false">
<div>
<div>
批量调整分组只针对单位体检有效个人体检将忽略此操作不能调整已收费或已检的项目及已总检的体检人员
</div>
<div>
<br /><el-radio v-model="asbitemBatch.operate" label="add">增加项目</el-radio>
<el-radio v-model="asbitemBatch.operate" label="del">删除项目</el-radio>
</div>
<div>
<br /><el-checkbox v-model="asbitemBatch.isDeleteGroup" :disabled="asbitemBatch.operate == 'add' ? true:false" >如果删除项目属于分组则删除体检记录信息的分组设置</el-checkbox>
</div>
<div>
<br /><span>直接录入</span>
<el-select v-model="asbitemBatch.asbItemId" placeholder="快速选择组合项目" size="small" filterable clearable remote
:remote-method="remoteMethod" @change="quickChoosedAsb" default-first-option
style="width:150px;text-align: left;padding-right: 15px;">
<el-option v-for="item in quickAsb" :key="item.id" :value="item.id" :label="item.displayName" />
</el-select>
</div>
<div>
<el-table :data="asbitemBatch.asbitemsTemp"
height="200" width="100%"
show-summary @row-dblclick="removeAbs" size="small" @row-click="rowClickaAbitemCurr">
<el-table-column label="组合项目" width="120" prop="asbitemName" />
<el-table-column v-if="asbitemBatch.operate == 'add' ? true:false" label="数量" prop="amount" width="50">
<template slot-scope="scope">
<el-input type="number" v-model="scope.row.amount" size="small" />
</template>
</el-table-column>
<el-table-column v-if="asbitemBatch.operate == 'add' ? true:false" label="实收价格" prop="chargePrice" width="70">
<template slot-scope="scope">
<el-input type="number" v-model="patientRegister.patientRegisterAbs[scope.$index].chargePrice" size="small" />
</template>
</el-table-column>
<el-table-column v-if="asbitemBatch.operate == 'add' ? true:false" label="支付方式" prop="payTypeFlag" width="100">
<template slot-scope="scope">
<el-select v-model="scope.row.payTypeFlag" size="small">
<el-option v-for="item in dict.payType" :key="item.id" :label="item.displayName" :value="item.id" />
</el-select>
</template>
</el-table-column>
</el-table>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="asbitemBatchHandle"> </el-button>
<el-button @click="dialogAsbitem = false"> </el-button>
</span>
</el-dialog>
</div>
</template>
<script>
@ -265,13 +319,52 @@ export default {
payTypeFlag: "1", //01 2
isReserveAddAsbitem: true, //
},
dialogAsbitem:false,
asbitemBatch:{
operate:'add',
isDeleteGroup:false,
asbItemId:'',
asbitemsTemp:[], //
asbitemCurr:{}, //()
},
quickAsb:[], //
asbitemDelBatch:{
isDeleteGroup:'N',
patientRegisterId:null,
asbitemIds:[],
},
asbitemAddBatch:{
organizationUnitId: null,
createRegisterAsbitemDtos: [],
// [
// {
// asbitemId: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
// "patientRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
// "standardPrice": 0,
// "chargePrice": 0,
// "payTypeFlag": "string",
// "isCharge": "string",
// "lisRequestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
// "amount": 0,
// "groupPackageId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
// }
// ]
},
};
},
created() { },
//
mounted() { },
mounted() {
this.quickAsb = this.dict.asbItemAll;
},
computed: {
...mapState(["window", "dict", "patientRegister", "customerOrg"]),
},
@ -652,6 +745,42 @@ export default {
},
remoteMethod(){
},
//
quickChoosedAsb(){
},
//
removeAbs(row){
let lfind = arrayExistObj(this.asbitemBatch.asbitemsTemp,'asbitemId',row.asbitemId);
if(lfind > - 1){
this.asbitemBatch.asbitemsTemp.slice(lfind,1);
}
},
rowClickaAbitemCurr(row){
this.asbitemBatch.asbitemCurr = row;
},
btnRemoveAbs(){
if(!this.asbitemBatch.asbitemCurr.asbitemId){
this.$message.warning("请选择要删除的组合项目!");
return;
}
this.removeAbs(this.asbitemBatch.asbitemCurr);
this.asbitemBatch.asbitemCurr.asbitemId = null;
},
removeAllAbs(){
this.asbitemBatch.asbitemsTemp = [];
},
//
asbBatch() {
let customerOrgId = this.patientRegister.query.customerOrgId;
@ -659,9 +788,13 @@ export default {
alert("请选择单位或个人");
return;
}
this.dialogAsbitem = true;
this.quickAsb = this.dict.asbItemAll;
},
asbitemBatchHandle(){
},
//
async lisRequest(prId) {

13
src/components/patientRegister/patientRegisterAsbItem.vue

@ -5,7 +5,7 @@
:data="patientRegister.patientRegisterAbs"
border
:height="patientRegister.prAsbItemHeight"
size="small"
size="small" :row-class-name="tableRowClassName"
highlight-current-row
:summary-method="getSummaries"
show-summary
@ -87,6 +87,16 @@ export default {
return moment(new Date(date)).format(forMat);
},
tableRowClassName({row, rowIndex}){
//console.log(row)
if (row.groupPackageId) {
//console.log('row.groupPackageId',row.groupPackageId)
return 'purple-row'; //
}else{
return '';
}
},
//
getSummaries(param) {
const { columns, data } = param;
@ -128,6 +138,7 @@ export default {
};
</script>
<style scoped>
@import "../../assets/css/global.css";
.box {
display: flex;
}

Loading…
Cancel
Save