|
|
|
@ -8,7 +8,9 @@
|
|
|
|
<Input v-model="select.keyword" style="width: 200px;margin-right: 10px;" placeholder="借用人搜索" />
|
|
|
|
<Input v-model="select.keyword" style="width: 200px;margin-right: 10px;" placeholder="借用人搜索" />
|
|
|
|
<Button type="primary" @click="getindex">查询</Button>
|
|
|
|
<Button type="primary" @click="getindex">查询</Button>
|
|
|
|
<Button icon="ios-add" type="primary" style="margin-left: 10px;"
|
|
|
|
<Button icon="ios-add" type="primary" style="margin-left: 10px;"
|
|
|
|
@click="$refs['addoutbounds'].isShow = true,$refs['addoutbounds'].type = 'add',$refs['addoutbounds'].chukuType = chukuType">添加</Button>
|
|
|
|
@click="$refs['addoutbounds'].isShow = true,$refs['addoutbounds'].type = 'add',
|
|
|
|
|
|
|
|
$refs['addoutbounds'].chukuType = chukuType,
|
|
|
|
|
|
|
|
$refs['addoutbounds'].authName=authName">添加</Button>
|
|
|
|
<!-- <Button icon="ios-add" type="primary" style="margin-left: 10px;"
|
|
|
|
<!-- <Button icon="ios-add" type="primary" style="margin-left: 10px;"
|
|
|
|
@click="$refs['imports'].show()">导入</Button> -->
|
|
|
|
@click="$refs['imports'].show()">导入</Button> -->
|
|
|
|
|
|
|
|
|
|
|
|
@ -21,7 +23,8 @@
|
|
|
|
:table-item="table">
|
|
|
|
:table-item="table">
|
|
|
|
<template v-slot:btns>
|
|
|
|
<template v-slot:btns>
|
|
|
|
<el-table-column fixed="right" label="操作" width="260" header-align="center">
|
|
|
|
<el-table-column fixed="right" label="操作" width="260" header-align="center">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<div v-if="scope.row.jilurenyuan==authName">
|
|
|
|
<Button type="primary" size="small" style="margin-left: 10px;" @click="editorChuku(scope.row.id,'editor')">编辑</Button>
|
|
|
|
<Button type="primary" size="small" style="margin-left: 10px;" @click="editorChuku(scope.row.id,'editor')">编辑</Button>
|
|
|
|
<Button v-if='scope.row.zhuangtai==="已办结"' type="primary" size="small" style="margin-left: 10px;" @click="editorChuku(scope.row.id,'outbounds')">出库</Button>
|
|
|
|
<Button v-if='scope.row.zhuangtai==="已办结"' type="primary" size="small" style="margin-left: 10px;" @click="editorChuku(scope.row.id,'outbounds')">出库</Button>
|
|
|
|
<Button v-if='scope.row.zhuangtai==="待处理"' type="primary" size="small" style="margin-left: 10px;" @click="tofollow(scope.row.id,scope.row)">请示流程</Button>
|
|
|
|
<Button v-if='scope.row.zhuangtai==="待处理"' type="primary" size="small" style="margin-left: 10px;" @click="tofollow(scope.row.id,scope.row)">请示流程</Button>
|
|
|
|
@ -29,7 +32,9 @@
|
|
|
|
<Button type="primary" size="small" style="margin-left: 10px;" @click="printChuku(scope.row.id,'print')">打印</Button>
|
|
|
|
<Button type="primary" size="small" style="margin-left: 10px;" @click="printChuku(scope.row.id,'print')">打印</Button>
|
|
|
|
<Poptip transfer confirm title="确认要删除吗?" @on-ok="deleteChuku(scope.row)">
|
|
|
|
<Poptip transfer confirm title="确认要删除吗?" @on-ok="deleteChuku(scope.row)">
|
|
|
|
<Button type="primary" style="margin-left: 10px;" size="small" ghost>删除</Button>
|
|
|
|
<Button type="primary" style="margin-left: 10px;" size="small" ghost>删除</Button>
|
|
|
|
</Poptip>
|
|
|
|
</Poptip>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
@ -48,8 +53,8 @@
|
|
|
|
destroy
|
|
|
|
destroy
|
|
|
|
} from "@/api/system/baseForm.js"
|
|
|
|
} from "@/api/system/baseForm.js"
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
getInfo
|
|
|
|
getWzglUser
|
|
|
|
} from "@/api/user.js"
|
|
|
|
} from "@/utils/auth.js"
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
getOutboundsStatus
|
|
|
|
getOutboundsStatus
|
|
|
|
} from "@/api/contract.js"
|
|
|
|
} from "@/api/contract.js"
|
|
|
|
@ -81,7 +86,8 @@
|
|
|
|
left: 0
|
|
|
|
left: 0
|
|
|
|
},
|
|
|
|
},
|
|
|
|
loading:false,
|
|
|
|
loading:false,
|
|
|
|
userName:'',
|
|
|
|
userName:'',
|
|
|
|
|
|
|
|
authName:'',
|
|
|
|
select: {
|
|
|
|
select: {
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
|
pageIndex: 1,
|
|
|
|
pageIndex: 1,
|
|
|
|
@ -152,10 +158,10 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
getUserName(){
|
|
|
|
async getUserName(){
|
|
|
|
getInfo().then(res => {
|
|
|
|
const res = await JSON.parse(getWzglUser())
|
|
|
|
this.userName = res.username
|
|
|
|
this.userName = res.username
|
|
|
|
})
|
|
|
|
this.authName = res.name
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async getindex() {
|
|
|
|
async getindex() {
|
|
|
|
this.loading = true
|
|
|
|
this.loading = true
|
|
|
|
|