提交 a98a70e6 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

Merge branch 'dev-followUp-20190312' of...

Merge branch 'dev-followUp-20190312' of http://192.168.110.53/com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-followUp-20190312

# Conflicts:
#	src/utils/followup/followapis.js
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
}); });
}, },
async getPlanList(context, payload) { async getPlanList(context, payload) {
await followApi.getPlanList({ await getPlanList({
...payload ...payload
}).then(({data}) => { }).then(({data}) => {
context.commit('GET_PLAN_LIST', data); context.commit('GET_PLAN_LIST', data);
......
import {getEnteringList, changeEnteringStatus, getEnteringInfo} from '../../utils/followup/followapis' import {getEnteringList, getEnteringInfo} from '../../utils/followup/followapis'
export default { export default {
namespaced: true, namespaced: true,
...@@ -27,9 +27,7 @@ export default { ...@@ -27,9 +27,7 @@ export default {
}); });
}, },
async getEnteringInfo(context, payload) { async getEnteringInfo(context, payload) {
await getEnteringInfo({}, { await getEnteringInfo(payload.patientId, payload.fuPlanPatientTimesId).then(({data}) => {
...payload
}).then(({data}) => {
context.commit('GET_ENTERING_INFO', data); context.commit('GET_ENTERING_INFO', data);
}); });
}, },
......
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
}, },
checkRevervationData: {},//发送预约校验 checkRevervationData: {},//发送预约校验
constantsData: {},//获取常量 constantsData: {},//获取常量
getRevervationNum: null, getRevervationNum: null, //查看已预约人数
}, },
mutations: { mutations: {
GET_RESERVATION_LIST(state, payload) { GET_RESERVATION_LIST(state, payload) {
...@@ -59,7 +59,6 @@ export default { ...@@ -59,7 +59,6 @@ export default {
...payload ...payload
}).then(({data}) => { }).then(({data}) => {
context.commit('GET_REVERVATION_NUM', data.number) context.commit('GET_REVERVATION_NUM', data.number)
// this.reservationForm.hasReservedNumber = data.number;
}) })
}, },
// getConstantsData({commit}) { // getConstantsData({commit}) {
......
...@@ -138,15 +138,24 @@ export const getReservationPatients = (params) => { ...@@ -138,15 +138,24 @@ export const getReservationPatients = (params) => {
description: '查看预约人数', description: '查看预约人数',
}) })
}; };
export const changeReservationStatus = (params) => { export const changeReservationStatus = (data) => {
return fetch({ return fetch({
headers, headers,
url: getFollowUpSC(`/followup/appoint/status/`), url: getFollowUpSC(`/appoint/status/`),
method: 'post', method: 'post',
params: 'data', data: data,
description: '手动变更预约状态', description: '手动变更预约状态',
}) })
}; };
export const sendReservation = (data) => {
return fetch({
headers,
url: getFollowUpSC(`/appoint/`),
method: 'post',
data: data,
description: '发送预约',
})
};
/*录入管理*/ /*录入管理*/
export const getEnteringList = (data) => { export const getEnteringList = (data) => {
return fetch({ return fetch({
...@@ -162,22 +171,23 @@ export const changeEnteringStatus = (data) => { ...@@ -162,22 +171,23 @@ export const changeEnteringStatus = (data) => {
headers, headers,
url: getFollowUpSC(`/followup/entering/status/change`), url: getFollowUpSC(`/followup/entering/status/change`),
method: 'post', method: 'post',
data: 'data', data: data,
description: '变更随访状态', description: '变更随访状态',
},) },)
} }
export const getEnteringInfo = (patientId, fuPlanPatientTimesId) => { export const getEnteringInfo = (patientId, fuPlanPatientTimesId) => {
return fetch({ return fetch({
headers, headers,
url: getFollowUpSC(`/followup/entering/${patientId}/fuInfo/${fuPlanPatientTimesId}`),
method: 'get', method: 'get',
params: 'params', // params: params,
description: '随访单条信息查看', description: '随访单条信息查看',
},) },)
} }
/*常量*/ /*常量*/
export const getBasicData = (data) => { export const getBasicData = (params) => {
return fetch({ return fetch({
headers, headers,
url: getFollowUpSC(`/basic-data/constants/`), url: getFollowUpSC(`/basic-data/constants/`),
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</div> </div>
</template> </template>
<script> <script>
import followApi from '@/utils/followup/followapis' import {changeEnteringStatus} from '@/utils/followup/followapis'
export default { export default {
components: {}, components: {},
data(){ data(){
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
//后面更改为接口调用 //后面更改为接口调用
followApi.changeEnteringStatus({ changeEnteringStatus({
info: { info: {
fuPlanPatientTimesId: this.statusForm.fuPlanPatientTimesId, fuPlanPatientTimesId: this.statusForm.fuPlanPatientTimesId,
patientId: this.statusForm.patientId, patientId: this.statusForm.patientId,
......
...@@ -180,7 +180,8 @@ ...@@ -180,7 +180,8 @@
this.search(1); this.search(1);
}, },
async visitDetail(row){ async visitDetail(row){
await this.getEnteringInfo({patientId: row.patientId,fuPlanPatientTimesId: row.fuPlanPatientTimesId}); await this.getEnteringInfo({patientId:row.patientId,fuPlanPatientTimesId:row.fuPlanPatientTimesId});
//await this.getEnteringInfo({});
this.dialogDetailShow = true; this.dialogDetailShow = true;
// this.enteringRow = row; // this.enteringRow = row;
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</div> </div>
</template> </template>
<script> <script>
import followApi from '@/utils/followup/followapis' import { changeReservationStatus } from '@/utils/followup/followapis'
import { mapState, mapActions } from 'vuex' import { mapState, mapActions } from 'vuex'
export default { export default {
components: {}, components: {},
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
console.log('保存的内容',this.reservationForm) console.log('保存的内容',this.reservationForm)
followApi.changeReservationStatus({ changeReservationStatus({
...this.reservationForm ...this.reservationForm
}).then(({data}) => { }).then(({data}) => {
this.$message.success('变更成功!'); this.$message.success('变更成功!');
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</div> </div>
</template> </template>
<script> <script>
import followApi from '@/utils/followup/followapis' import {sendReservation} from '@/utils/followup/followapis'
import { mapState, mapActions } from 'vuex' import { mapState, mapActions } from 'vuex'
export default { export default {
components: {}, components: {},
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
closeSendReserve(formName){ closeSendReserve(formName){
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
followApi.sendReservation({ sendReservation({
...this.reservationForm, ...this.reservationForm,
patientAppointList: this.selectList patientAppointList: this.selectList
}).then(({data}) => { }).then(({data}) => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册