pengjun 3 months ago
parent
commit
83966f39d0
  1. BIN
      public/files/会员卡导入模板.xls
  2. BIN
      public/files/单位体检人员名单导入模板.xlsx
  3. 33
      src/views/customerOrg/patientRegisterImport.vue
  4. 2
      src/views/fee-settings/Asbitem.vue
  5. 8
      src/views/fee-settings/cardRegister.vue

BIN
public/files/会员卡导入模板.xls

BIN
public/files/单位体检人员名单导入模板.xlsx

33
src/views/customerOrg/patientRegisterImport.vue

@ -583,9 +583,10 @@ export default {
{ dispLabel: '检查类别', val: 'ocCheckTypeName' }, { dispLabel: '检查类别', val: 'ocCheckTypeName' },
{ dispLabel: '接害因素', val: 'poisons' }, { dispLabel: '接害因素', val: 'poisons' },
{ dispLabel: '备注', val: 'remark' }, { dispLabel: '备注', val: 'remark' },
{ dispLabel: '介绍人', val: 'salesman' },
{ dispLabel: '支付方式', val: 'payTypeFlag' }, { dispLabel: '支付方式', val: 'payTypeFlag' },
], ],
masterCols:{}, //
tableData: [], // tableData: [], //
@ -674,6 +675,22 @@ export default {
} }
}); });
// --
postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'patient_register_required_field' })
.then(res => {
if (res.code > -1) {
try {
this.masterCols = JSON.parse(res.data)
} catch (error) {
console.error(error)
}
}
})
.finally(() => {
this.masterCols.patientName = "姓名"
})
}, },
// //
@ -1251,6 +1268,13 @@ export default {
}, },
//
checkValide(body){
let msg = ''
// personnelTypeNamemedicalTypeNamesalesman
return msg
},
// //
// startRow : // startRow :
// startRowNameType : 1 3.() // startRowNameType : 1 3.()
@ -1267,6 +1291,13 @@ export default {
if (i == startRow) body.nameType = startRowNameType if (i == startRow) body.nameType = startRowNameType
console.log(`this.choosedData[${i}],startRowNameType,body`) console.log(`this.choosedData[${i}],startRowNameType,body`)
// :
let msg = checkValide(body)
if(msg){
this.tableData.push(Object.assign({ importState: '导入失败', importDes: msg }, this.choosedData[i]))
continue
}
try { try {
// //
if (this.choosedSameMan.patientNo) { if (this.choosedSameMan.patientNo) {

2
src/views/fee-settings/Asbitem.vue

@ -1439,7 +1439,7 @@ export default {
diagnosisFunction: "", diagnosisFunction: "",
isContinueProcess: "N", isContinueProcess: "N",
isPictureRotate: "N", isPictureRotate: "N",
isCheck: "N",
isCheck: "Y", //
isActive: "Y", isActive: "Y",
collectItemTypeId: "", collectItemTypeId: "",
barcodeMode: "0", barcodeMode: "0",

8
src/views/fee-settings/cardRegister.vue

@ -1098,7 +1098,6 @@ export default {
}); });
}, },
//
// //
scrollFull() { scrollFull() {
this.dom = this.$refs["info"].bodyWrapper; this.dom = this.$refs["info"].bodyWrapper;
@ -1176,8 +1175,6 @@ export default {
// //
document.getElementById('fileNames').value = ''; document.getElementById('fileNames').value = '';
} }
}, },
// //
@ -1548,6 +1545,11 @@ export default {
// Excel // Excel
body = this.excelDataToApiBody(this.choosedData[i]); body = this.excelDataToApiBody(this.choosedData[i]);
body.medicalCenterId = medicalCenterId body.medicalCenterId = medicalCenterId
if(!body.cardBalance){
body.cardBalance = 0
}else{
body.cardBalance = Number(body.cardBalance)||0
}
console.log(`this.choosedData[${i}],startRowNameType,body`, body); console.log(`this.choosedData[${i}],startRowNameType,body`, body);
try { try {

Loading…
Cancel
Save