|
@@ -209,6 +209,7 @@
|
|
<el-button type="text" size="mini" @click="check(scope.row)">查看</el-button>
|
|
<el-button type="text" size="mini" @click="check(scope.row)">查看</el-button>
|
|
<el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3'" @click="edit(scope.row)">编辑</el-button>
|
|
<el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3'" @click="edit(scope.row)">编辑</el-button>
|
|
<el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3'" @click="commit(scope.row)">提交</el-button>
|
|
<el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3'" @click="commit(scope.row)">提交</el-button>
|
|
|
|
+ <el-button type="text" size="mini" v-if="scope.row.status == '1' && scope.row.flowId" @click="reback(scope.row)">收回</el-button>
|
|
<el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3'" @click="deleteids(scope.row)">删除</el-button>
|
|
<el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3'" @click="deleteids(scope.row)">删除</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -317,6 +318,8 @@ import Add from './add.vue'
|
|
import Refers from '@/components/Refers/refers.vue'
|
|
import Refers from '@/components/Refers/refers.vue'
|
|
import TreeRefers from '@/components/Refers/treeRefer.vue'
|
|
import TreeRefers from '@/components/Refers/treeRefer.vue'
|
|
import CollapseTransition from '@/components/MyCollapse/collapse.vue'
|
|
import CollapseTransition from '@/components/MyCollapse/collapse.vue'
|
|
|
|
+// 流程收回
|
|
|
|
+import { rebacktWork } from '@/api/purchase/workSpace.js'
|
|
import {getDemandList, delDemand, downLoadDemand, exportDemand, submitDemand } from '@/api/purchase/purchaseDemand.js'
|
|
import {getDemandList, delDemand, downLoadDemand, exportDemand, submitDemand } from '@/api/purchase/purchaseDemand.js'
|
|
export default {
|
|
export default {
|
|
name: 'PurchaseDemandList',
|
|
name: 'PurchaseDemandList',
|
|
@@ -660,6 +663,12 @@ export default {
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 流程收回
|
|
|
|
+ reback(row) {
|
|
|
|
+ rebacktWork().then(res => {
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 行内删除
|
|
// 行内删除
|
|
deleteids(row) {
|
|
deleteids(row) {
|
|
console.log('row', row)
|
|
console.log('row', row)
|
|
@@ -678,7 +687,7 @@ export default {
|
|
this.$modal.notifyWarning("请选中至少一条数据");
|
|
this.$modal.notifyWarning("请选中至少一条数据");
|
|
} else {
|
|
} else {
|
|
let param = this.ids.join()
|
|
let param = this.ids.join()
|
|
- this.$modal.confirm('确认信息').then(() => {
|
|
|
|
|
|
+ this.$modal.confirm('确认删除选中数据?').then(() => {
|
|
delDemand(param).then(res => {
|
|
delDemand(param).then(res => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.$modal.notifySuccess("删除成功");
|
|
this.$modal.notifySuccess("删除成功");
|