Commit be37586f by 陈浩建

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

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