Browse Source

align="center"

master
pengjun 1 month ago
parent
commit
088baa6310
  1. 30
      src/components/patientRegister/PatientRegisterList.vue
  2. 17
      src/components/patientRegister/PatientRegisterRecoverList.vue

30
src/components/patientRegister/PatientRegisterList.vue

@ -1189,7 +1189,7 @@ export default {
// if (lfind > -1) { // if (lfind > -1) {
// //
this.clickTime1 = new Date().getTime() this.clickTime1 = new Date().getTime()
setTimeout(() => { setTimeout(() => {
if (this.clickTime1 > this.clickTime2) { if (this.clickTime1 > this.clickTime2) {
this.dataTransOpts.tableS.patient_register = deepCopy(row); this.dataTransOpts.tableS.patient_register = deepCopy(row);
@ -1211,7 +1211,7 @@ export default {
this.dataTransOpts.tableS.patient_register = deepCopy(row); this.dataTransOpts.tableS.patient_register = deepCopy(row);
this.tableDataCurrentRow = deepCopy(row); this.tableDataCurrentRow = deepCopy(row);
this.dataTransOpts.refresh.register_check_asbitem.M++; // this.dataTransOpts.refresh.register_check_asbitem.M++; //
}, },
// () // ()
@ -2498,32 +2498,22 @@ export default {
// //
signByPatientRegisterNo() { signByPatientRegisterNo() {
let patientRegisterNo = this.patientRegisterNo
let patientRegisterNos = [this.patientRegisterNo]
let body = { let body = {
sType: 1,
patientRegisterNo
patientRegisterNos
} }
//console.log(`/api/app/patientregister/getpatientregisterorpatient`, body) //console.log(`/api/app/patientregister/getpatientregisterorpatient`, body)
postapi('/api/app/patientregister/getpatientregisterorpatient', body)
postapi('/api/app/PatientRegister/BatchRecoverGuideByPatientRegisterNo', body)
.then((res) => { .then((res) => {
if (res.code != -1) {
if (res.data) {
this.recoverCore([res.data.id])
this.patientRegisterNo = ''
}
if (res.code > -1) {
this.patientRegisterNo = ''
this.$message.success({ showClose: true, message: '操作成功!' })
} }
}); });
}, },
//
recoverCore(body) {
postapi(`/api/app/patientregister/updaterecoverguidemany`, body)
.then((res) => {
if (res.code > -1) {
this.$message.success({ showClose: true, message: "操作成功!" });
}
})
},
btnDragColDesign() { btnDragColDesign() {
this.dragColDesign = deepCopy(this.dragCol); this.dragColDesign = deepCopy(this.dragCol);

17
src/components/patientRegister/PatientRegisterRecoverList.vue

@ -4,7 +4,7 @@
<el-table :data="dataList" width="100%" :height="window.pageHeight < 600 ? 350 : window.pageHeight - 220" row-key="id" <el-table :data="dataList" width="100%" :height="window.pageHeight < 600 ? 350 : window.pageHeight - 220" row-key="id"
size="small" highlight-current-row ref="dataList" @selection-change="handleSelectionChange" @row-click="rowClick"> size="small" highlight-current-row ref="dataList" @selection-change="handleSelectionChange" @row-click="rowClick">
<el-table-column type="selection" width="40" align="center" /> <el-table-column type="selection" width="40" align="center" />
<el-table-column prop="isRecoverGuide" label="回收" width="50">
<el-table-column prop="isRecoverGuide" label="回收" align="center" width="50">
<template slot-scope="scope"> <template slot-scope="scope">
<el-checkbox :value="scope.row.isRecoverGuide == 'Y'" /> <el-checkbox :value="scope.row.isRecoverGuide == 'Y'" />
</template> </template>
@ -233,19 +233,16 @@ export default {
// //
signByPatientRegisterNo() { signByPatientRegisterNo() {
let patientRegisterNo = this.patientRegisterNo
let patientRegisterNos = [this.patientRegisterNo]
let body = { let body = {
sType: 1,
patientRegisterNo
patientRegisterNos
} }
//console.log(`/api/app/patientregister/getpatientregisterorpatient`, body) //console.log(`/api/app/patientregister/getpatientregisterorpatient`, body)
postapi('/api/app/patientregister/getpatientregisterorpatient', body)
postapi('/api/app/PatientRegister/BatchRecoverGuideByPatientRegisterNo', body)
.then((res) => { .then((res) => {
if (res.code != -1) {
if (res.data) {
this.recoverCore([res.data.id])
this.patientRegisterNo = ''
}
if (res.code > -1) {
this.patientRegisterNo = ''
this.$message.success({ showClose: true, message: '操作成功!' })
} }
}); });
}, },

Loading…
Cancel
Save