Commit be37586f by 陈浩建

修改身份证权限+设置异常单

parent 3239c60a
......@@ -151,10 +151,10 @@
<template slot="operation" slot-scope="text, record">
<span>
<a @click="showDrawer(record,'1')">查看</a>
<a-divider type="vertical"/>
<a @click="abnormal(record.id)">设为异常单</a>
<a-divider type="vertical" v-if="isAbnormal"/>
<a @click="abnormal(record.id)" v-if="isAbnormal">设为异常单</a>
<a-divider v-if="record.orderStatus === '待审核' " type="vertical"/>
<a-divider v-if="record.orderStatus === '待审核'" type="vertical"/>
<a v-show="record.orderStatus === '待审核'" @click="reviewStudentIdCard(record)">审核学生证</a>
<a-divider type="vertical"/>
......@@ -531,7 +531,8 @@
</a-col>
<a-col :span="6">
<a-form-item label="身份证号:">
<a-input placeholder="身份证号" v-text="orderInfo.idCard" v-model="orderInfo.idCard"></a-input>
<p v-if="isEdit === false">{{ orderInfo.idCard }}</p>
<a-input v-if="isEdit === true" placeholder="身份证号" v-text="orderInfo.idCard" v-model="orderInfo.idCard"></a-input>
</a-form-item>
</a-col>
</a-row>
......@@ -722,6 +723,8 @@
importUrl: "",
importTile: "",
modifyvisible: false,
isAbnormal:false,
isEdit:false,
setAbnormal:false,
setAbnormalStr: {
orderId:"",
......@@ -802,8 +805,11 @@
let obj = cloneObject(this.queryParam);
//表示
return orderList(Object.assign(params, obj)).then(res => {
console.log(res);
this.isAbnormal = res.isAbnormal;
this.isEdit = res.isEdit;
let data = {};
if (res.state !== "success") {
if (res.page.state !== "success") {
this.$message.error("查询失败!", 5);
this.emptyText.emptyText = '查询失败!'
data = {
......@@ -814,10 +820,10 @@
};
} else {
data = {
data: res.data.records,
data: res.page.data.records,
pageSize: parameter.pageSize,
pageNo: parameter.pageNo,
totalCount: res.data.total
totalCount: res.page.data.total
};
}
return data;
......
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