beyond 5.7.1

This commit is contained in:
beyond 2020-05-07 10:07:11 +08:00
parent d9b0c4e5dc
commit 0e50ce8b78
4 changed files with 11 additions and 2 deletions

View file

@ -21,6 +21,9 @@ export function addstockplan(query, query2, query3) {
// 采购计划列表
export function stockplanlist(query) {
var params = new URLSearchParams()
if (query.productName !== '' && query.productName !== null && query.productName !== undefined) {
params.append('productName', query.productName) // 你要传给后台的参数值 key/value
}
if (query.title !== '' && query.title !== null && query.title !== undefined) {
params.append('title', query.title) // 你要传给后台的参数值 key/value
}

View file

@ -12,7 +12,7 @@ export default{
const hasPermission = roles.some(role => {
return permissionRoles.includes(role)
})
if (!hasPermission && value[1] !== store.getters.userId) {
if (!hasPermission || value[1] !== store.getters.userId) {
el.parentNode && el.parentNode.removeChild(el)
}
} else {

View file

@ -13,6 +13,12 @@
<el-input v-model="getemplist.productName" :placeholder="$t('MaterialsList.productName')" size="small" class="filter-item" clearable @keyup.enter.native="handleFilter"/>
<el-select v-model="getemplist.judgeStat" :value="getemplist.judgeStat" :placeholder="$t('updates.spzt')" size="mini" clearable class="filter-item">
<el-option :label="$t('updates.wsh')" value="0"/>
<el-option :label="$t('updates.shz')" value="1"/>
<el-option :label="$t('updates.shtg')" value="2"/>
<el-option :label="$t('updates.shptg')" value="3"/>
</el-select>
<el-button v-waves class="filter-item" size="small" type="primary" icon="el-icon-search" style="width: 86px;margin-top: 10px" @click="handleFilter">{{ $t('public.search') }}</el-button>
</el-card>

View file

@ -2,7 +2,7 @@
<div class="ERP-container">
<el-card :body-style="{ padding: '5px' }" class="box-card" style="margin-top: 10px" shadow="never">
<el-input v-model="getemplist.title" :placeholder="$t('StockPlan.title')" size="mini" class="filter-item" clearable @keyup.enter.native="handleFilter"/>
<el-input v-model="getemplist.productName" :placeholder="$t('saleBillList.productName')" size="mini" class="filter-item" clearable @keyup.enter.native="handleFilter"/>
<el-input v-model="getemplist.planNumber" :placeholder="$t('updates.cgjhbh')" size="mini" class="filter-item" clearable @keyup.enter.native="handleFilter"/>
<el-input v-model="planPersonId" :placeholder="$t('StockPlan.planPersonId')" size="mini" class="filter-item" clearable @keyup.enter.native="handleFilter" @focus="handlechooseStock" @clear="restFilter"/>