luobinjie 3 months ago
parent
commit
f6da570e3b
  1. BIN
      public/files/会员卡导入模板.xls
  2. BIN
      public/files/单位体检人员名单导入模板.xlsx
  3. 33
      src/views/customerOrg/patientRegisterImport.vue
  4. 2
      src/views/customerReport/personnelPositive.vue
  5. 2
      src/views/fee-settings/Asbitem.vue
  6. 8
      src/views/fee-settings/cardRegister.vue
  7. 7
      src/views/login/Login.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: 'poisons' },
{ dispLabel: '备注', val: 'remark' },
{ dispLabel: '介绍人', val: 'salesman' },
{ dispLabel: '支付方式', val: 'payTypeFlag' },
],
masterCols:{}, //
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 :
// startRowNameType : 1 3.()
@ -1267,6 +1291,13 @@ export default {
if (i == startRow) body.nameType = startRowNameType
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 {
//
if (this.choosedSameMan.patientNo) {

2
src/views/customerReport/personnelPositive.vue

@ -79,7 +79,7 @@
<el-table-column :label="summary.customerOrgName">
<el-table-column :label="`开始时间 ${summary.startDate || ''} 结束时间${summary.endDate || ''
} 体检人员共计 ${summary.maleCount + summary.femaleCount
} 男性 ${summary.maleCount} 女性 ${summary.femaleCount}`" align="left">
} 男性 ${summary.maleCount} 女性 ${summary.femaleCount}`" align="left">
<el-table-column type="index" label="序号" width="60" align="center" />
<el-table-column prop="customerOrgParentName" label="单位" align="center" />
<el-table-column prop="customerOrgName" label="部门" align="center" />

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

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

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

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

7
src/views/login/Login.vue

@ -131,7 +131,7 @@ export default {
},
computed: {
...mapState(['sysConfig']),
...mapState(['sysConfig','dict']),
},
methods: {
@ -139,9 +139,12 @@ export default {
async getSysConfig() {
try {
let res = await axios.get(`/sysConfig.json?r=${Math.random()}`, { timeout: 50000 }) // , { timeout: 50000 }
console.log('axios.get /sysConfig.json', res)
//console.log('axios.get /sysConfig.json', res)
if (!res.data.apiurl) this.$message.error({ showClose: true, message: `获取配置参数错误,请重新刷新本页面!` })
//
this.setData({ key: "sysConfig", value: res.data });
if(res.data?.dict?.completeFlag) this.dict.completeFlag = res.data.dict.completeFlag
// this.sysConfig = res.data
window.sessionStorage.setItem('sysConfig', JSON.stringify(res.data))
} catch (error) {

Loading…
Cancel
Save