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 @@
import {addMedicalRecord, getStockInfo} from "../utils/api";
import {callMobile} from "../utils/common";
import { Toast } from 'mint-ui';
import {receiveWay} from "../utils/dictionaries";
export default {
name: "choiceContraceptives",
data(){
......@@ -124,9 +125,9 @@
telephone: phone,
networkId: this.routerDetail,
number: 1,
receiveWay: receiveWay[0].id,
...other
}
console.log(JSON.stringify(par))
addMedicalRecord(par).then(({data}) => {
if (data.code == 'SUCCESS') {
this.$router.push("/receiveSuccess");
......
......@@ -82,10 +82,10 @@
const {phone = '', userId = ''} = info
let par = {telephone: phone, residentId: userId}//居民id
getUserReceiveNum(par).then(({data}) => {
if (data.data == true) {
callMobile("qrcode", {});
} else {
if (data.data == true) {//true 该用户非首次领取需要填写随访
this.$router.push( `/returnVisit`);
} else {
callMobile("qrcode", {});
}
})
......@@ -94,7 +94,9 @@
this.$router.push({path: `/choiceContraceptives`,query:{info:result}});
},
toCollectRecords() {
this.$router.push('/collectRecords');
// this.$router.push( `/returnVisit`);
this.$router.push({path: `/choiceContraceptives`,query:{info:1986}});
// this.$router.push('/collectRecords');
},
toRealHome() {
callMobile("goIndex", {});
......
......@@ -14,7 +14,7 @@
<div class="cell"><img src="../assets/img/phone.png"/></div>
</div>
<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>
</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