提交 867f2d95 编写于 作者: 张磊's avatar 张磊

demo dev

上级 227ce61d
...@@ -172,7 +172,6 @@ export default { ...@@ -172,7 +172,6 @@ export default {
timeBucket: '', timeBucket: '',
hospitalName:'人民医院和平社区健康服务中心', hospitalName:'人民医院和平社区健康服务中心',
location: '深圳市坪山区', location: '深圳市坪山区',
goodsId: '',
}, },
showAreaLabel:'', showAreaLabel:'',
showArea:false, showArea:false,
...@@ -202,7 +201,6 @@ export default { ...@@ -202,7 +201,6 @@ export default {
}, },
computed: { computed: {
canSubmit() { canSubmit() {
// this.dectionForm.goodsId &&
return ( return (
this.dectionForm.appointmentTime && this.dectionForm.appointmentTime &&
this.dectionForm.hospitalName && this.dectionForm.hospitalName &&
...@@ -268,20 +266,22 @@ export default { ...@@ -268,20 +266,22 @@ export default {
if(order) { if(order) {
const data = { const data = {
appointmentTime: this.dectionForm.appointmentTime, appointmentTime: this.dectionForm.appointmentTime,
goodsId: this.dectionForm.goodsId,
hospitalId: this.hospitalId, hospitalId: this.hospitalId,
hospitalName: this.dectionForm.hospitalName, hospitalName: this.dectionForm.hospitalName,
yunOrderNo:order.yunOrderNo, yunOrderNo:order.yunOrderNo,
patientIdNo: '42032119900105595x',
patientMobile: '15717156505',
patientName: '1'
}; };
appointment(data).then(res => { appointment(data).then(res => {
if (res.code === '000000') { if (res.code === '000000') {
// this.$router.push({ this.$router.push({
// path: '/appoint-details', path: '/appoint-details',
// query: { query: {
// yunOrderNo: order.yunOrderNo, yunOrderNo: order.yunOrderNo,
// projectEquityNo:this.projectEquityNo projectEquityNo:this.projectEquityNo
// } }
// }); });
} else { } else {
res.message && this.$toast(res.message); res.message && this.$toast(res.message);
} }
...@@ -300,7 +300,11 @@ export default { ...@@ -300,7 +300,11 @@ export default {
const data = { const data = {
projectEquityNo: projectEquityNo, projectEquityNo: projectEquityNo,
externalOrderNo: externalOrderNo || '123123', externalOrderNo: externalOrderNo || '123123',
insuranceMerchantProjectDetectionId: this.currentProject insuranceMerchantProjectDetectionId: this.currentProject,
idCard: '42032119900105595x',
mobilePhone: '15717156505',
patientName: '1',
idType: 1
}; };
createOrder(data).then(res => { createOrder(data).then(res => {
if (res.code == '000000') { if (res.code == '000000') {
......
...@@ -428,21 +428,33 @@ export default { ...@@ -428,21 +428,33 @@ export default {
if (res.code !== '000000') { if (res.code !== '000000') {
return this.$toast(res.message); return this.$toast(res.message);
} else { } else {
this.$router.push( const { projectEquityNo } = this.insuranceInfo;
{ if(projectEquityNo == 'SZ202305031000597601') {
path: '/insuranceBindCodeSuccess', this.$router.push(
query: { {
yunOrderNo: this.yunOrderNo, path: '/insuranceDetectionDetailDemo',
detectionRecordId: this.detectionRecordId query: {
}, yunOrderNo: this.yunOrderNo,
} detectionRecordId: this.detectionRecordId
); },
}
);
}else {
this.$router.push(
{
path: '/insuranceBindCodeSuccess',
query: {
yunOrderNo: this.yunOrderNo,
detectionRecordId: this.detectionRecordId
},
}
);
}
this.$toast('提交成功'); this.$toast('提交成功');
} }
}); });
}, },
earlyBindingCode(obj) { earlyBindingCode(obj) {
// quickBindingCode userId
const o = {...obj, detectionKind: 0}; const o = {...obj, detectionKind: 0};
bindingSampleCode(o).then(res => { bindingSampleCode(o).then(res => {
if (res.code !== '000000') { if (res.code !== '000000') {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册