|
@@ -43,34 +43,6 @@
|
|
|
<el-table-column prop="personCharge;" label="负责人"> </el-table-column>
|
|
|
|
|
|
<el-table-column prop="address" label="操作" width="200">
|
|
|
- <!-- <template slot-scope="scope">
|
|
|
- <ws-button
|
|
|
- type="primary"
|
|
|
- @click="handleHide(scope.row)"
|
|
|
- v-hasPermission="
|
|
|
- `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
|
- "
|
|
|
- v-if="scope.row.showFlag == 0"
|
|
|
- >显示</ws-button
|
|
|
- >
|
|
|
- <ws-button
|
|
|
- type="primary"
|
|
|
- @click="handleHide(scope.row)"
|
|
|
- v-hasPermission="
|
|
|
- `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
|
- "
|
|
|
- v-if="scope.row.showFlag == 1"
|
|
|
- >隐藏</ws-button
|
|
|
- >
|
|
|
- <ws-button
|
|
|
- type="primary"
|
|
|
- @click="handleDelete(sv-ifcope.row)"
|
|
|
- v-hasPermission="
|
|
|
- `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
|
- "
|
|
|
- >删除</ws-button
|
|
|
- >
|
|
|
- </template> -->
|
|
|
<template slot-scope="scope">
|
|
|
<div
|
|
|
class="record"
|
|
@@ -192,6 +164,33 @@ export default {
|
|
|
handleCloe() {
|
|
|
this.dialogViewSpareMoney = false
|
|
|
},
|
|
|
+ //删除
|
|
|
+ handleDelete(row) {
|
|
|
+ // console.log(row)
|
|
|
+ this.$confirm(`此操作永久删除该仓库全部信息,是否确认删除`, {
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ deletewarehouse({ id: row.id })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$notify.success({
|
|
|
+ title: '成功',
|
|
|
+ message: '删除成功',
|
|
|
+ })
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ .catch((response) => {
|
|
|
+ // console.log(3333)
|
|
|
+ // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ },
|
|
|
//隐藏
|
|
|
handleHide(row) {
|
|
|
if (row.showFlag == 1) {
|
|
@@ -235,32 +234,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
- handleDelete(row) {
|
|
|
- // console.log(row)
|
|
|
- this.$confirm(`此操作永久删除该仓库全部信息,是否确认删除`, {
|
|
|
- cancelButtonText: '取消',
|
|
|
- confirmButtonText: '确定',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- deletewarehouse({ id: row.id })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.$notify.success({
|
|
|
- title: '成功',
|
|
|
- message: '删除成功',
|
|
|
- })
|
|
|
- this.getList()
|
|
|
- })
|
|
|
- .catch((response) => {
|
|
|
- // console.log(3333)
|
|
|
- // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
- })
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- return false
|
|
|
- })
|
|
|
- },
|
|
|
+
|
|
|
// deletecontract(){},
|
|
|
//删除
|
|
|
approve() {},
|