|
@@ -183,11 +183,12 @@
|
|
fixed="right"
|
|
fixed="right"
|
|
label="操作"
|
|
label="操作"
|
|
align="center"
|
|
align="center"
|
|
- width="150"
|
|
|
|
|
|
+ width="180"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<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="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>
|
|
@@ -289,7 +290,7 @@ 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 {getDemandList, delDemand, downLoadDemand, exportDemand } from '@/api/purchase/purchaseDemand.js'
|
|
|
|
|
|
+import {getDemandList, delDemand, downLoadDemand, exportDemand, submitDemand } from '@/api/purchase/purchaseDemand.js'
|
|
export default {
|
|
export default {
|
|
name: 'PurchaseDemandList',
|
|
name: 'PurchaseDemandList',
|
|
components: {
|
|
components: {
|
|
@@ -572,6 +573,19 @@ export default {
|
|
this.rowDetail = row
|
|
this.rowDetail = row
|
|
this.disable = false
|
|
this.disable = false
|
|
},
|
|
},
|
|
|
|
+ commit(row) {
|
|
|
|
+ console.log('row', row)
|
|
|
|
+ this.$modal.loading("提交中...");
|
|
|
|
+ submitDemand(row).then(res => {
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
+ this.$modal.msgSuccess("提交成功");
|
|
|
|
+ this.$modal.closeLoading();
|
|
|
|
+ this.getList(this.queryParams)
|
|
|
|
+ }
|
|
|
|
+ }).catch(err => {
|
|
|
|
+ this.$modal.closeLoading();
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 行内删除
|
|
// 行内删除
|
|
deleteids(row) {
|
|
deleteids(row) {
|
|
console.log('row', row)
|
|
console.log('row', row)
|