Browse Source

采购退库、出库办理

master
Zhao Qiqi 3 years ago
parent
commit
0abe2a1793
  1. 12
      anrui-buscenter/anrui-buscenter-ui/src/api/chukuguanli/chukubanli.js
  2. 19
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqing.vue
  3. 17
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue
  4. 44
      anrui-scm/anrui-scm-ui/src/views/supplychain/caigoutuiku/caigoutuiku.vue

12
anrui-buscenter/anrui-buscenter-ui/src/api/chukuguanli/chukubanli.js

@ -48,6 +48,18 @@ export function pagerList(params) {
}) })
} }
// 出库申请列表撤回
export function revokeBySid(params) {
return request({
url: '/buscenter/v1/busdeliveredapply/revokeBySid',
method: 'PUT',
data: params,
// headers: {
// 'Content-Type': 'application/json'
// }
})
}
// 保存和修改接口 已改 // 保存和修改接口 已改
export function save(params) { export function save(params) {
return request({ return request({

19
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqing.vue

@ -65,7 +65,8 @@
<el-table-column width="150px" label="操作" align="center"> <el-table-column width="150px" label="操作" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="searchbtns"> <!--:disabled="scope.row.nodeState == ''?false:true"--> <div class="searchbtns"> <!--:disabled="scope.row.nodeState == ''?false:true"-->
<el-button size="small" type="primary" :disabled="scope.row.state !== '待提交'" @click="changeNodeState(scope.row)">办理 <el-button size="small" type="primary" :disabled="scope.row.state !== '待提交'"
@click="changeNodeState(scope.row)">办理
</el-button> </el-button>
<el-button size="small" type="primary" @click="handleCheck(scope.row)">查看</el-button> <el-button size="small" type="primary" @click="handleCheck(scope.row)">查看</el-button>
</div> </div>
@ -112,12 +113,7 @@
</template> </template>
<script> <script>
import { import {customerName, delBySids, pagerList, submitBySid} from '@/api/chukuguanli/chukubanli'
pagerList,
delBySids,
submitBySid,
customerName
} from '@/api/chukuguanli/chukubanli'
import Pagination from '@/components/pagination' import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye' import pageye from '@/components/pagination/pageye'
import chukushenqingAdd from './chukushenqingAdd' import chukushenqingAdd from './chukushenqingAdd'
@ -237,6 +233,7 @@ export default {
this.searchxianshitit = '显示查询条件' this.searchxianshitit = '显示查询条件'
} }
}, },
// sid // sid
handleSelectionChange(row) { handleSelectionChange(row) {
console.log('开票', row) console.log('开票', row)
@ -321,14 +318,6 @@ export default {
// //
handleDelete() { handleDelete() {
if (this.sids.length > 0) { if (this.sids.length > 0) {
if (this.state_list.length > 0) {
this.$message({
showClose: true,
message: '该业务已提交,不可删除!',
type: 'error'
})
return
}
const sids = this.sids const sids = this.sids
delBySids(sids).then((response) => { delBySids(sids).then((response) => {
if (response.code === '200') { if (response.code === '200') {

17
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue

@ -7,6 +7,7 @@
<div> <div>
<el-button type="primary" size="small" :disabled="createBtn" @click="handleCreate()">保存</el-button> <el-button type="primary" size="small" :disabled="createBtn" @click="handleCreate()">保存</el-button>
<el-button type="primary" size="small" :disabled="disabled" @click="handleSubmit()">提交</el-button> <el-button type="primary" size="small" :disabled="disabled" @click="handleSubmit()">提交</el-button>
<el-button size="small" type="danger" :disabled="!revokeBtn" @click="handleRevoke()">撤回</el-button>
<el-button type="primary" size="small">打印</el-button> <el-button type="primary" size="small">打印</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button> <el-button type="info" size="small" @click="handleReturn()">返回</el-button>
</div> </div>
@ -115,7 +116,7 @@
<script> <script>
import {mapGetters} from 'vuex' import {mapGetters} from 'vuex'
import {fetchDetailsBySid, save, submitInfo} from '@/api/chukuguanli/chukubanli' import {fetchDetailsBySid, revokeBySid, save, submitInfo} from '@/api/chukuguanli/chukubanli'
import userInfoAdd from "./relation/userInfoAdd"; import userInfoAdd from "./relation/userInfoAdd";
import userInfoLook from "./relation/userInfoLook"; import userInfoLook from "./relation/userInfoLook";
@ -131,6 +132,7 @@
index: 0, index: 0,
disabled: false, // disabled: false, //
createBtn: false, createBtn: false,
revokeBtn:true,
dialogStatus: 'add', // dialogStatus: 'add', //
// --------- // ---------
isShow: true, isShow: true,
@ -373,6 +375,7 @@
this.temp = response.data this.temp = response.data
this.temp.sid = sid this.temp.sid = sid
this.detailsList = response.data.listVo this.detailsList = response.data.listVo
this.revokeBtn = response.data.revokeState
for (var i = 0; i < this.detailsList.length; i++) { for (var i = 0; i < this.detailsList.length; i++) {
//JSON.stringify() //JSON.stringify()
if (this.detailsList[i].useMessage.vinNo !== '') { if (this.detailsList[i].useMessage.vinNo !== '') {
@ -384,7 +387,19 @@
} }
}) })
}, },
handleRevoke(){
this.$confirm('是否确定提交该业务', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
revokeBySid(this.temp.sid).then((response) => {
if (response.code === '200') {
}
})
})
},
handleSelectionChange(row) { handleSelectionChange(row) {
console.log('开票', row) console.log('开票', row)
const aa = [] const aa = []

44
anrui-scm/anrui-scm-ui/src/views/supplychain/caigoutuiku/caigoutuiku.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div v-show="viewState === 1"> <div v-show="viewState === 1">
<button-bar view-title="采购退库管理" :btndisabled="btndisabled" @btnhandle="btnHandle"/> <button-bar view-title="采购退库管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="searchcon"> <div class="searchcon">
<el-button size="small" class="searchbtn" @click="isSearchShow = !isSearchShow">{{ isSearchShow ? '隐藏查询条件' : <el-button size="small" class="searchbtn" @click="isSearchShow = !isSearchShow">{{ isSearchShow ? '隐藏查询条件' :
'显示查询条件' }} '显示查询条件' }}
@ -115,6 +115,36 @@ export default {
data() { data() {
return { return {
btndisabled: false, btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'primary',
size: 'small',
icon: 'edit',
btnKey: 'toEdit',
btnLabel: '编辑'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
viewState: 1, // 1 2 3 4 viewState: 1, // 1 2 3 4
isSearchShow: false, // isSearchShow: false, //
tableLoading: false, tableLoading: false,
@ -138,6 +168,9 @@ export default {
multipleSelection: [] multipleSelection: []
} }
}, },
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
created() { created() {
this.loadList() this.loadList()
}, },
@ -151,18 +184,9 @@ export default {
case 'toEdit': case 'toEdit':
this.toEdit() this.toEdit()
break break
case 'doSubmit':
this.doSubmit()
break
case 'doDel': case 'doDel':
this.doDel() this.doDel()
break break
case 'doImport':
this.doImport()
break
case 'doExport':
this.doExport()
break
case 'doClose': case 'doClose':
this.doClose() this.doClose()
break break

Loading…
Cancel
Save