diff --git a/src/api/manage/signRecord.js b/src/api/manage/signRecord.js index 83b3fa1..f1a3e2a 100644 --- a/src/api/manage/signRecord.js +++ b/src/api/manage/signRecord.js @@ -50,4 +50,13 @@ export function updateSignStatus(data) { method: 'post', data: data }) +} + +//服务包list +export function servicepackageinfo(query) { + return request({ + url: `/manage/servicepackage/getList`, + method: 'get', + params: query + }) } \ No newline at end of file diff --git a/src/api/system/specialDiseaseRoute.js b/src/api/system/specialDiseaseRoute.js new file mode 100644 index 0000000..2dfdec2 --- /dev/null +++ b/src/api/system/specialDiseaseRoute.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询专病路径信息列表 +export function listSpecialDiseaseRoute(query) { + return request({ + url: '/system/specialDiseaseRoute/list', + method: 'get', + params: query + }) +} + +// 查询专病路径信息详细 +export function getSpecialDiseaseRoute(id) { + return request({ + url: '/system/specialDiseaseRoute/' + id, + method: 'get' + }) +} + +// 新增专病路径信息 +export function addSpecialDiseaseRoute(data) { + return request({ + url: '/system/specialDiseaseRoute', + method: 'post', + data: data + }) +} + +// 修改专病路径信息 +export function updateSpecialDiseaseRoute(data) { + return request({ + url: '/system/specialDiseaseRoute', + method: 'put', + data: data + }) +} + +// 删除专病路径信息 +export function delSpecialDiseaseRoute(id) { + return request({ + url: '/system/specialDiseaseRoute/' + id, + method: 'delete' + }) +} diff --git a/src/api/unitconfig/patientConfiguration.js b/src/api/unitconfig/patientConfiguration.js new file mode 100644 index 0000000..7d0a711 --- /dev/null +++ b/src/api/unitconfig/patientConfiguration.js @@ -0,0 +1,87 @@ +import request from '@/utils/request' + +// 查询患者就诊记录基本信息列表 +export function listVisitRecord(query) { + return request({ + url: '/manage/patientInfo/list', + method: 'get', + params: query + }) +} + +// 查询患者就诊记录基本信息详细 +export function getVisitRecord(id) { + return request({ + url: '/manage/visitRecord/' + id, + method: 'get' + }) +} + +// 新增患者就诊记录基本信息 +export function addVisitRecord(data) { + return request({ + url: '/manage/visitRecord', + method: 'post', + data: data + }) +} + +// 保存修改患者就诊记录基本信息 +export function updateVisitRecord(data) { + return request({ + url: '/manage/visitRecord', + method: 'put', + data: data + }) +} + +// 删除患者就诊记录基本信息 +export function delVisitRecord(id) { + return request({ + url: '/manage/visitRecord/' + id, + method: 'delete' + }) +} + +// 查询患者就诊记录基本信息列表 +export function getList(query) { + return request({ + url: '/manage/visitRecord/getList', + method: 'get', + params: query + }) +} + +//点击左侧获取 +export function visitRecordid(id) { + return request({ + url: `/manage/visitRecord/${id}`, + method: 'get', + }) +} + +//主治医生 +export function usergetList(query) { + return request({ + url: `/system/user/getList`, + method: 'get', + params: query + }) +} + +export function selectAgencyList(query) { + return request({ + url: '/system/agency/selectAgencyList', + method: 'get', + params: query + }) +} + +//新增就诊记录 +export function saveRecord(data) { + return request({ + url: '/manage/visitRecord/saveRecord', + method: 'post', + data: data + }) +} \ No newline at end of file diff --git a/src/views/manage/continueSigning/index.vue b/src/views/manage/continueSigning/index.vue index e7fba3a..06056e3 100644 --- a/src/views/manage/continueSigning/index.vue +++ b/src/views/manage/continueSigning/index.vue @@ -41,26 +41,54 @@ + + + + + + + - + - - + +
+ + + + + + +
- + + 至 - + - + + +
+ + + + + @@ -109,10 +137,21 @@ export default { name: "newSigning", data() { return { - list: {}, signPackage: { - packageName: undefined + packageName: undefined, + packagePrice: undefined, + serviceCycle: undefined, + serviceStartTime: undefined, + serviceEndTime: '', }, + pickerOptions: { + disabledDate: (time) => { + if (this.signPackage.serviceEndTime != "") { + return time.getTime() > new Date(this.signPackage.serviceEndTime).getTime(); + } + }, + }, + list: {}, form: { record: { patientId: undefined, @@ -159,6 +198,7 @@ export default { getByRecordId(this.$route.query.patientSignRecordId).then(res => { this.list = res.data this.signPackage.packageName = this.list.packageName + this.signPackage.packageId = this.list.servicePackageId this.signPackage.serviceCycle = this.list.serviceCycle this.signPackage.serviceStartTime = this.list.serviceStartTime this.signPackage.serviceEndTime = this.list.serviceEndTime @@ -170,7 +210,12 @@ export default { }, //续约 signupload() { - this.$refs.upload.submit(); + const files = this.$refs.upload.uploadFiles + if (files.length > 0) { + this.$refs.upload.submit(); + } else { + this.uploadsave(); + } }, //文件上传完成 handleSuccess(response, file, fileList) { @@ -179,7 +224,10 @@ export default { this.form.informeds.push({ informedFilePath: e.response.imgUrl, }) + this.uploadsave(); }) + }, + uploadsave() { this.form.signPackage = this.signPackage addsign(this.form).then(res => { this.$confirm('签约成功, 是否返回上一页?', '提示', { diff --git a/src/views/manage/newSigning/index.vue b/src/views/manage/newSigning/index.vue index 5919bee..be4bcee 100644 --- a/src/views/manage/newSigning/index.vue +++ b/src/views/manage/newSigning/index.vue @@ -23,18 +23,72 @@ {{ $route.query.inHospitalNumber }} {{ $route.query.hospitalAgencyName }} {{ $route.query.departmentName }} - {{ $route.query.paymentStatus == 'PAID' ? '已缴费' : '' }} - {{ $route.query.paymentStatus == 'UNPAID_FEES' ? '未缴费' : '' }} - + + + + + + + - - + + + + + + + + + + + + + + + + + +
+ + + + + + +
+
+ + + + 至 + + + + + +
+ + + + + @@ -73,6 +127,9 @@ import { addsign } from '@/api/manage/newSigning.js' +import { + servicepackageinfo +} from '@/api/manage/signRecord.js' import { getToken } from '@/utils/auth' export default { dicts: ['hardware_type'], @@ -80,7 +137,8 @@ export default { data() { return { signPackage: { - packageName: undefined + packageName: undefined, + packagePaymentStatus: '', }, form: { record: { @@ -96,7 +154,10 @@ export default { informeds: [] }, rules: { - packageName: [ + packagePaymentStatus: [ + { required: true, message: '缴费状态不能为空', trigger: 'change' } + ], + servicePackageld: [ { required: true, message: '请选择服务包', trigger: 'change' } ], devices: { @@ -116,25 +177,41 @@ export default { Authorization: 'Bearer ' + getToken(), }, url: process.env.VUE_APP_BASE_API + '/manage/file/uploadFile' - } + }, + packagelist: [], }; }, created() { this.form.record = this.$route.query + this.signPackage.packagePaymentStatus = this.form.record.paymentStatus + servicepackageinfo({ departmentId: this.$route.query.departmentId }).then(res => { + this.packagelist = res.data + }) }, methods: { + tappackage(id) { + this.signPackage = { ...this.signPackage, ...this.packagelist.find(e => e.id == id) } + let currentDate = new Date(); + let year = currentDate.getFullYear(); + let month = currentDate.getMonth() + 1; + let day = currentDate.getDate(); + month >= 1 && month <= 9 ? (month = "0" + month) : ""; + day >= 0 && day <= 9 ? (day = "0" + day) : ""; + this.signPackage.serviceStartTime = `${year}-${month}-${day}` + }, //签约 signupload() { - this.$refs.upload.submit(); + const files = this.$refs.upload.uploadFiles + if (files.length > 0) { + this.$refs.upload.submit(); + } else { + this.uploadsave(); + } }, - //文件上传完成 - handleSuccess(response, file, fileList) { - this.form.informeds = [] - fileList.forEach(e => { - this.form.informeds.push({ - informedFilePath: e.response.imgUrl, - }) - }) + uploadsave() { + if (this.signPackage.servicePackageld) { + this.signPackage.packageName = this.packagelist.find(e => e.id == this.signPackage.servicePackageld).packageName + } this.form.signPackage = this.signPackage addsign(this.form).then(res => { this.$confirm('签约成功, 是否返回上一页?', '提示', { @@ -148,6 +225,15 @@ export default { }); }) }, + //文件上传完成 + handleSuccess(response, file, fileList) { + this.form.informeds = [] + fileList.forEach(e => { + this.form.informeds.push({ + informedFilePath: e.response.imgUrl, + }) + }) + }, //新增硬件 addhardware() { this.form.devices.push({ diff --git a/src/views/manage/servicepackage/index.vue b/src/views/manage/servicepackage/index.vue index b2a3b7b..6479950 100644 --- a/src/views/manage/servicepackage/index.vue +++ b/src/views/manage/servicepackage/index.vue @@ -663,13 +663,17 @@ :inline="true" > - {{ formdetail.diseaseTypeName }} + {{ formdetail.diseaseTypeName }} + {{ formdetail.packageName }} + --> {{ formdetail.packagePrice }}元 +
- {{ formdetail.packageTermAndUnit }} + {{ formdetail.packageTermAndUnit }} {{ diff --git a/src/views/manage/signRecord/index.vue b/src/views/manage/signRecord/index.vue index b743400..245e7df 100644 --- a/src/views/manage/signRecord/index.vue +++ b/src/views/manage/signRecord/index.vue @@ -410,26 +410,11 @@ export default { this.queryParams.signTimeEnd = null this.getList(); }, - // 格式化日期格式如:2017-9-19 18:04:33 - formatDate(value) { - if (!value) { - return - } - // 计算日期相关值 - let time = new Date(value) - let Y = time.getFullYear(); - let M = time.getMonth() + 1; - let D = time.getDate(); - let h = time.getHours(); - let m = time.getMinutes(); - let s = time.getSeconds(); - // 如果传递了type的话 - return Y + '-' + (M < 10 ? '0' + M : M) + '-' + (D < 10 ? '0' + D : D) + ' ' + (h < 10 ? '0' + h : h) + ':' + (m < 10 ? '0' + m : m) + ':' + (s < 10 ? '0' + s : s); - }, handlenewsign(row) { this.$router.push({ path: "/patient/newSigning", query: { + departmentId: row.departmentId, patientName: row.patientName, patientPhone: row.patientPhone, visitMethod: row.visitMethod, @@ -541,6 +526,22 @@ export default { }, }); }, + // 格式化日期格式如:2017-9-19 18:04:33 + formatDate(value) { + if (!value) { + return + } + // 计算日期相关值 + let time = new Date(value) + let Y = time.getFullYear(); + let M = time.getMonth() + 1; + let D = time.getDate(); + let h = time.getHours(); + let m = time.getMinutes(); + let s = time.getSeconds(); + // 如果传递了type的话 + return Y + '-' + (M < 10 ? '0' + M : M) + '-' + (D < 10 ? '0' + D : D) + ' ' + (h < 10 ? '0' + h : h) + ':' + (m < 10 ? '0' + m : m) + ':' + (s < 10 ? '0' + s : s); + }, } }; diff --git a/src/views/system/specialDiseaseRoute/index.vue b/src/views/system/specialDiseaseRoute/index.vue new file mode 100644 index 0000000..58bcef4 --- /dev/null +++ b/src/views/system/specialDiseaseRoute/index.vue @@ -0,0 +1,318 @@ + + + diff --git a/src/views/unitconfig/PatientConfigurationVisitRecords/index.vue b/src/views/unitconfig/PatientConfigurationVisitRecords/index.vue new file mode 100644 index 0000000..6ee9d4c --- /dev/null +++ b/src/views/unitconfig/PatientConfigurationVisitRecords/index.vue @@ -0,0 +1,332 @@ + + + + \ No newline at end of file diff --git a/src/views/unitconfig/patientConfiguration/index.vue b/src/views/unitconfig/patientConfiguration/index.vue new file mode 100644 index 0000000..4b9b650 --- /dev/null +++ b/src/views/unitconfig/patientConfiguration/index.vue @@ -0,0 +1,414 @@ + + +