Browse Source

完善采购订单管理--作废

zhanglei
yunuo970428 2 years ago
parent
commit
ac17e60cd4
  1. 8
      anrui-scm/anrui-scm-ui/src/api/cheliang/busvehicleorder.js
  2. 11
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangcaigou/cheliangcaigou.vue

8
anrui-scm/anrui-scm-ui/src/api/cheliang/busvehicleorder.js

@ -26,5 +26,13 @@ export default {
url: '/base/v1/busvehicleorder/fetchBySid/' + sid, url: '/base/v1/busvehicleorder/fetchBySid/' + sid,
method: 'get' method: 'get'
}) })
},
// 作废
cancal: function(data) {
return request({
url: '/base/v1/busvehicleorder/cancal',
method: 'post',
params: data
})
} }
} }

11
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangcaigou/cheliangcaigou.vue

@ -48,9 +48,10 @@
<div class=""> <div class="">
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%"> <el-table v-loading="tableLoading" :data="dataList" border style="width: 100%">
<el-table-column fixed width="60px" label="序号" type="index" :index="indexMethod" align="center"/> <el-table-column fixed width="60px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column fixed label="操作" align="center" width="150"> <el-table-column fixed label="操作" align="center" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" size="small" :disabled="scope.row.offlineDate !==''" @click="handleUpdate(scope.row)">编辑</el-button> <el-button type="primary" size="small" :disabled="scope.row.offlineDate !==''" @click="handleUpdate(scope.row)">编辑</el-button>
<el-button type="primary" size="small" :disabled="scope.row.offlineDate !==''" @click="handleCancellation(scope.row)">作废</el-button>
<el-button type="primary" size="small" @click="handleLooK(scope.row)">查看</el-button> <el-button type="primary" size="small" @click="handleLooK(scope.row)">查看</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -176,6 +177,14 @@ export default {
this.viewState = 3 this.viewState = 3
this.$refs['divadd'].showEdit(row) this.$refs['divadd'].showEdit(row)
}, },
handleCancellation(row) {
req.cancal({ sid: row.sid }).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '操作成功' })
this.loadList()
}
})
},
handleLooK(row) { handleLooK(row) {
this.viewState = 4 this.viewState = 4
this.$refs['divinfo'].showInfo(row) this.$refs['divinfo'].showInfo(row)

Loading…
Cancel
Save