Commit d5f8861c authored by gengchunlei's avatar gengchunlei

一期

parent c4040746
export const receiveWay = [//领取方式 1-在线领取 2-人工发放
{id: 1, value: '在线领取'},
{id: 2, value: '人工发放'}
]
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
import {addMedicalRecord, getStockInfo} from "../utils/api"; import {addMedicalRecord, getStockInfo} from "../utils/api";
import {callMobile} from "../utils/common"; import {callMobile} from "../utils/common";
import { Toast } from 'mint-ui'; import { Toast } from 'mint-ui';
import {receiveWay} from "../utils/dictionaries";
export default { export default {
name: "choiceContraceptives", name: "choiceContraceptives",
data(){ data(){
...@@ -124,9 +125,9 @@ ...@@ -124,9 +125,9 @@
telephone: phone, telephone: phone,
networkId: this.routerDetail, networkId: this.routerDetail,
number: 1, number: 1,
receiveWay: receiveWay[0].id,
...other ...other
} }
console.log(JSON.stringify(par))
addMedicalRecord(par).then(({data}) => { addMedicalRecord(par).then(({data}) => {
if (data.code == 'SUCCESS') { if (data.code == 'SUCCESS') {
this.$router.push("/receiveSuccess"); this.$router.push("/receiveSuccess");
......
...@@ -82,10 +82,10 @@ ...@@ -82,10 +82,10 @@
const {phone = '', userId = ''} = info const {phone = '', userId = ''} = info
let par = {telephone: phone, residentId: userId}//居民id let par = {telephone: phone, residentId: userId}//居民id
getUserReceiveNum(par).then(({data}) => { getUserReceiveNum(par).then(({data}) => {
if (data.data == true) { if (data.data == true) {//true 该用户非首次领取需要填写随访
callMobile("qrcode", {});
} else {
this.$router.push( `/returnVisit`); this.$router.push( `/returnVisit`);
} else {
callMobile("qrcode", {});
} }
}) })
...@@ -94,7 +94,9 @@ ...@@ -94,7 +94,9 @@
this.$router.push({path: `/choiceContraceptives`,query:{info:result}}); this.$router.push({path: `/choiceContraceptives`,query:{info:result}});
}, },
toCollectRecords() { toCollectRecords() {
this.$router.push('/collectRecords'); // this.$router.push( `/returnVisit`);
this.$router.push({path: `/choiceContraceptives`,query:{info:1986}});
// this.$router.push('/collectRecords');
}, },
toRealHome() { toRealHome() {
callMobile("goIndex", {}); callMobile("goIndex", {});
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="cell"><img src="../assets/img/phone.png"/></div> <div class="cell"><img src="../assets/img/phone.png"/></div>
</div> </div>
<div class="ui-flex justify-center center">联系电话: <div class="ui-flex justify-center center">联系电话:
<label class="btn" @click="clickPhone">{{siteDetail.netPhone}}</label> <label class="btn" @click="clickPhone"><a :href="`tel:${siteDetail.netPhone}`">{{siteDetail.netPhone}}</a></label>
<div class="cell"><img src="../assets/img/phone.png"/></div> <div class="cell"><img src="../assets/img/phone.png"/></div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment