身份证号
{{ regData.resData ? regData.resData.cupCardNo : '' }}
@@ -77,13 +70,17 @@
体检项目
-
{{ item.project }}
+
{{
+ item.project
+ }}
预约时间
-
{{regData.resData ? regData.resData.apmDay.substring(0,10) : ''}} {{item.period}}{{item.timeFrame}}
+
+ {{ regData.resData ? regData.resData.apmDay.substring(0, 10) : '' }} {{ item.period }}{{ item.timeFrame }}
+
@@ -91,13 +88,13 @@
签到并打印
-
-
+
@@ -318,6 +356,7 @@ import {
} from "@/api/booklist/booklist";
import { mapGetters } from "vuex";
import print from "vue-print-nb";
+import { calcSex } from "../../util/util";
export default {
data() {
@@ -386,12 +425,12 @@ export default {
{
label: "预约时间",
prop: "examDate",
- slot:true
+ slot: true
},
{
label: "预约项目",
prop: "examPro",
- slot:true
+ slot: true
},
{
label: "状态",
@@ -401,8 +440,10 @@ export default {
]
},
data: [],
- regData: {},
- systemTime:''
+ regData: {
+ resData: {}
+ },
+ systemTime: ''
};
},
directives: {
@@ -410,7 +451,7 @@ export default {
},
computed: {
- ...mapGetters(["userInfo", "permission","systemTime"]),
+ ...mapGetters(["userInfo", "permission", "systemTime"]),
permissionList() {
return {
addBtn: this.vaildData(this.permission.notice_add, false),
@@ -424,24 +465,29 @@ export default {
// this.getCard()
},
mounted() {
- getSystemTime().then(res =>{
+ getSystemTime().then(res => {
this.systemTime = res.data.data
})
},
methods: {
+ //计算性别
+ calcSex(cardNo) {
+ // console.log('sex', calcSex(cardNo));
+ return calcSex(cardNo);
+ },
// 获取身份证后打开弹窗
- getCard(number){
+ getCard(number) {
number = '3702120000618034X';
this.option.column.find(item => item.label == '身份证号码').searchValue = number
},
handleRegister(row) {
console.log(row)
let ids = []
- row.details.map(item =>{
+ row.details.map(item => {
ids.push(item.id)
})
let val = ids.join(',');
- getStatus(val).then(res =>{
+ getStatus(val).then(res => {
console.log(res)
this.regData = res.data.data;
this.isRegister = true
@@ -477,7 +523,7 @@ export default {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
- console.log(this.systemTime)
+ console.log(this.systemTime)
this.loading = true;
const { releaseTimeRange, cupCardNo } = this.query;
@@ -530,7 +576,7 @@ export default {
justify-content: space-between;
.txt {
- color: rgba(0,0,0,.85);
+ color: rgba(0, 0, 0, .85);
font-weight: 500;
line-height: 24px;
@@ -729,7 +775,7 @@ export default {
color: #FFFFFF;
cursor: pointer;
margin-top: 50px;
-
+
}
}