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. 108
      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) {
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">
<template slot-scope="scope">
<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 size="small" type="primary" @click="handleCheck(scope.row)">查看</el-button>
</div>
@ -112,12 +113,7 @@
</template>
<script>
import {
pagerList,
delBySids,
submitBySid,
customerName
} from '@/api/chukuguanli/chukubanli'
import {customerName, delBySids, pagerList, submitBySid} from '@/api/chukuguanli/chukubanli'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import chukushenqingAdd from './chukushenqingAdd'
@ -237,6 +233,7 @@ export default {
this.searchxianshitit = '显示查询条件'
}
},
// sid
handleSelectionChange(row) {
console.log('开票', row)
@ -321,14 +318,6 @@ export default {
//
handleDelete() {
if (this.sids.length > 0) {
if (this.state_list.length > 0) {
this.$message({
showClose: true,
message: '该业务已提交,不可删除!',
type: 'error'
})
return
}
const sids = this.sids
delBySids(sids).then((response) => {
if (response.code === '200') {

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

@ -7,6 +7,7 @@
<div>
<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 size="small" type="danger" :disabled="!revokeBtn" @click="handleRevoke()">撤回</el-button>
<el-button type="primary" size="small">打印</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
</div>
@ -115,7 +116,7 @@
<script>
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 userInfoLook from "./relation/userInfoLook";
@ -131,6 +132,7 @@
index: 0,
disabled: false, //
createBtn: false,
revokeBtn:true,
dialogStatus: 'add', //
// ---------
isShow: true,
@ -373,6 +375,7 @@
this.temp = response.data
this.temp.sid = sid
this.detailsList = response.data.listVo
this.revokeBtn = response.data.revokeState
for (var i = 0; i < this.detailsList.length; i++) {
//JSON.stringify()
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) {
console.log('开票', row)
const aa = []

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

@ -1,7 +1,7 @@
<template>
<div class="app-container">
<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">
<el-button size="small" class="searchbtn" @click="isSearchShow = !isSearchShow">{{ isSearchShow ? '隐藏查询条件' :
'显示查询条件' }}
@ -114,55 +114,79 @@ export default {
},
data() {
return {
btndisabled: false,
viewState: 1, // 1 2 3 4
isSearchShow: false, //
tableLoading: false,
//
dataList: [],
// sid
sids: [], // SID
sides: '', // sid
queryParams: {
current: 1,
size: 10,
total: 0,
params: {
applicationDateStart: '',
applicationDateEnd: '',
vehicleName: '',//
userSid: window.sessionStorage.getItem('userSid')
}
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
row: {},
{
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
isSearchShow: false, //
tableLoading: false,
//
dataList: [],
// sid
sids: [], // SID
sides: '', // sid
queryParams: {
current: 1,
size: 10,
total: 0,
params: {
applicationDateStart: '',
applicationDateEnd: '',
vehicleName: '',//
userSid: window.sessionStorage.getItem('userSid')
}
},
row: {},
multipleSelection: []
}
},
created() {
this.loadList()
},
methods: {
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
}
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
created() {
this.loadList()
},
methods: {
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'doSubmit':
this.doSubmit()
break
case 'doDel':
this.doDel()
break
case 'doImport':
this.doImport()
break
case 'doExport':
this.doExport()
break
case 'doClose':
this.doClose()
break

Loading…
Cancel
Save