Commit 5efb5239 by Lyan

物流医疗增加审核

parent 3701e46b
......@@ -292,10 +292,10 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 审核
checkHandle (id) {
checkHandle (id, status) {
let str = ''
if (status === 1) {
str = '成功'
......@@ -328,7 +328,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
}
......
......@@ -303,7 +303,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 审核
checkHandle (id, status) {
......@@ -339,7 +339,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
}
......
......@@ -341,7 +341,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 审核
checkHandle (id, status) {
......@@ -377,7 +377,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
}
......
......@@ -266,7 +266,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 审核
checkHandle (id, status) {
......@@ -302,7 +302,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
}
......
......@@ -33,6 +33,7 @@
prop="level"
header-align="center"
align="center"
width="50px"
label="级别">
</el-table-column>
<el-table-column
......@@ -61,12 +62,34 @@
label="创建日期">
</el-table-column>
<el-table-column
prop="checkname"
header-align="center"
align="center"
label="审核人">
</el-table-column>
<el-table-column
prop="status"
header-align="center"
align="center"
label="状态">
<template slot-scope="scope">
<div>
<span v-if="Number(scope.row.status) === 0">待审核</span>
<span v-if="Number(scope.row.status) === -1">失败</span>
<span v-if="Number(scope.row.status) === 1">成功</span>
</div>
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
label="操作">
<template slot-scope="scope">
<el-button type="text" @click="checkHandle(scope.row.id,1)">[成功]</el-button>
<el-button type="text" @click="checkHandle(scope.row.id,-1)">[失败]</el-button>
<br />
<!-- <el-button type="text" @click="infoHandle(scope.row.id)">详情</el-button> -->
<el-button type="text" @click="updateHandle(scope.row.id)">编辑</el-button>
<el-button type="text" @click="deleteHandle(scope.row.id)">删除</el-button>
......@@ -212,7 +235,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 获取医疗管理列表
getMedicalTypeList () {
......@@ -226,6 +249,42 @@
this.typeList = []
}
})
},
// 审核
checkHandle (id, status) {
let str = ''
if (status === 1) {
str = '成功'
} else {
str = '失败'
}
this.$confirm(`确定对[id=${id}]进行['审核${str}']操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$http({
url: this.$http.adornUrl('/office/logistics/verifyLogistics'),
method: 'post',
data: this.$http.adornData({
'id': id,
'status': 1
})
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.getDataList()
}
})
} else {
this.$message.error(data.msg)
}
})
}).catch(() => {})
}
}
......
......@@ -31,6 +31,7 @@
prop="level"
header-align="center"
align="center"
width="50px"
label="级别">
</el-table-column>
<el-table-column
......@@ -59,6 +60,25 @@
label="创建日期">
</el-table-column>
<el-table-column
prop="checkname"
header-align="center"
align="center"
label="审核人">
</el-table-column>
<el-table-column
prop="status"
header-align="center"
align="center"
label="状态">
<template slot-scope="scope">
<div>
<span v-if="Number(scope.row.status) === 0">待审核</span>
<span v-if="Number(scope.row.status) === -1">失败</span>
<span v-if="Number(scope.row.status) === 1">成功</span>
</div>
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
......@@ -66,6 +86,9 @@
label="操作">
<template slot-scope="scope">
<!-- <el-button type="text" @click="infoHandle(scope.row.id)">详情</el-button> -->
<el-button type="text" @click="checkHandle(scope.row.id,1)">[成功]</el-button>
<el-button type="text" @click="checkHandle(scope.row.id,-1)">[失败]</el-button>
<br />
<el-button type="text" @click="updateHandle(scope.row.id)">编辑</el-button>
<el-button type="text" @click="deleteHandle(scope.row.id)">删除</el-button>
</template>
......@@ -192,7 +215,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 获取医疗管理列表
getMedicalTypeList () {
......@@ -206,6 +229,42 @@
this.typeList = []
}
})
},
// 审核
checkHandle (id, status) {
let str = ''
if (status === 1) {
str = '成功'
} else {
str = '失败'
}
this.$confirm(`确定对[id=${id}]进行['审核${str}']操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$http({
url: this.$http.adornUrl('/office/medical/verifyMedical'),
method: 'post',
data: this.$http.adornData({
'id': id,
'status': 1
})
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.getDataList()
}
})
} else {
this.$message.error(data.msg)
}
})
}).catch(() => {})
}
}
}
......
......@@ -302,7 +302,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 审核
checkHandle (id, status) {
......@@ -338,7 +338,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
}
......
......@@ -301,7 +301,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 审核
checkHandle (id, status) {
......@@ -337,7 +337,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
}
......
......@@ -301,7 +301,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 审核
checkHandle (id, status) {
......@@ -337,7 +337,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
}
......
......@@ -301,7 +301,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 审核
checkHandle (id, status) {
......@@ -337,7 +337,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
}
......
......@@ -300,7 +300,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 审核
checkHandle (id, status) {
......@@ -336,7 +336,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
......
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