Browse Source

完善入库--终止

master
yunuo970428 2 years ago
parent
commit
6334944b50
  1. 7
      anrui-scm/anrui-scm-ui/src/api/ruzhang/scmapplyinbound.js
  2. 14
      anrui-scm/anrui-scm-ui/src/views/ruzhang/ruzhangguanli/ruzhangguanli.vue

7
anrui-scm/anrui-scm-ui/src/api/ruzhang/scmapplyinbound.js

@ -81,5 +81,12 @@ export default {
method: 'get', method: 'get',
params: data params: data
}) })
},
cancal(data) {
return request({
url: '/scm/v1/scmapplyinbound/cancal',
method: 'post',
params: data
})
} }
} }

14
anrui-scm/anrui-scm-ui/src/views/ruzhang/ruzhangguanli/ruzhangguanli.vue

@ -40,11 +40,11 @@
<div class=""> <div class="">
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%" @selection-change="handleSelectionChange"> <el-table v-loading="tableLoading" :data="dataList" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/> <el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column fixed width="150" label="操作" align="center"> <el-table-column fixed width="200" label="操作" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.nodeState=='待提交'||(scope.row.nodeState!='待提交'&&scope.row.nodeState=='发起申请')" type="primary" size="small" @click="toEdit(scope.row)">办理 <el-button :disabled="scope.row.nodeState =='发起申请' ? false : scope.row.nodeState == '待提交' ? false : true" type="primary" size="small" @click="toEdit(scope.row)">办理
</el-button> </el-button>
<el-button v-else type="info" size="small">办理</el-button> <el-button type="primary" size="small" @click="toTermination(scope.row)">终止</el-button>
<el-button type="primary" size="small" @click="toInfo(scope.row)">查看</el-button> <el-button type="primary" size="small" @click="toInfo(scope.row)">查看</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -227,6 +227,14 @@ export default {
const sid = row.sid const sid = row.sid
this.$refs['divinfo'].showInfo(sid, row) this.$refs['divinfo'].showInfo(sid, row)
}, },
toTermination(row) {
req.cancal({ sid: row.sid }).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '操作成功' })
this.loadList()
}
})
},
hangleLook(row) { hangleLook(row) {
this.viewState = 5 this.viewState = 5
this.$refs['divCaiGouInfo'].showInfo(row.vehicleOrderSid, row) this.$refs['divCaiGouInfo'].showInfo(row.vehicleOrderSid, row)

Loading…
Cancel
Save