Browse Source

1.仓库权限

fix_bug_pro20231227
0.0 2 years ago
parent
commit
1db8162b7e
  1. 18
      src/api/basicdata/basicdataGoodsShelf.js
  2. 28
      src/views/basicdata/warehouse/goodsArea/basicdataGoodsArea.vue
  3. 8
      src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelf.vue

18
src/api/basicdata/basicdataGoodsShelf.js

@ -31,6 +31,24 @@ export const remove = (ids) => {
}
})
}
export const disable = (ids) => {
return request({
url: '/api/logpm-basicdata/goodsShelf/disable',
method: 'post',
params: {
ids,
}
})
}
export const enable = (ids) => {
return request({
url: '/api/logpm-basicdata/goodsShelf/enable',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({

28
src/views/basicdata/warehouse/goodsArea/basicdataGoodsArea.vue

@ -105,8 +105,8 @@
<el-button type="primary" text icon="el-icon-view" @click="handleExport(row)">导出数据</el-button>
<el-button type="primary" text icon="el-icon-edit" @click="handleEdit(row)">编辑</el-button>
<el-button type="primary" text icon="el-icon-delete" @click="rowDel(row)">删除</el-button>
<el-button type="primary" text icon="el-icon-delete" v-if="row.enableStatus=='启用'" @click="rowDis(row)">禁用</el-button>
<el-button type="primary" text icon="el-icon-delete" v-if="row.enableStatus=='禁用'" @click="rowEna(row)">启用</el-button>
<!-- <el-button type="primary" text icon="el-icon-delete" v-if="row.enableStatus=='启用'" @click="rowDis(row)">禁用</el-button>-->
<!-- <el-button type="primary" text icon="el-icon-delete" v-if="row.enableStatus=='禁用'" @click="rowEna(row)">启用</el-button>-->
</template>
</el-table-column>
</el-table>
@ -186,18 +186,18 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="仓库:" prop="warehouseId" v-if="isShow" label-width="110px">
<el-select v-model="form.warehouseId" filterable placeholder="请选择仓库" style="width: 70%" >
<el-option
v-for="item in allWarehouse"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
<!-- <el-col :span="12">-->
<!-- <el-form-item label="仓库:" prop="warehouseId" v-if="isShow" label-width="110px">-->
<!-- <el-select v-model="form.warehouseId" filterable placeholder="请选择仓库" style="width: 70%" >-->
<!-- <el-option-->
<!-- v-for="item in allWarehouse"-->
<!-- :key="item.id"-->
<!-- :label="item.name"-->
<!-- :value="item.id">-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
</el-row>
</el-form>
<!-- 表单按钮 -->

8
src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelf.vue

@ -107,8 +107,8 @@
<el-button type="primary" text icon="el-icon-edit" @click="handleEdit(row)">编辑</el-button>
<el-button type="primary" text icon="el-icon-edit" @click="addAllocation(row)"> </el-button>
<el-button type="primary" text icon="el-icon-edit" @click="locationList(row)"> </el-button>
<el-button type="primary" text icon="el-icon-delete" v-if="row.enableStatus=='启用'" @click="rowDis(row)">禁用</el-button>
<el-button type="primary" text icon="el-icon-delete" v-if="row.enableStatus=='禁用'" @click="rowEna(row)">启用</el-button>
<!-- <el-button type="primary" text icon="el-icon-delete" v-if="row.enableStatus=='启用'" @click="rowDis(row)">禁用</el-button>-->
<!-- <el-button type="primary" text icon="el-icon-delete" v-if="row.enableStatus=='禁用'" @click="rowEna(row)">启用</el-button>-->
<!-- <el-button type="primary" text icon="el-icon-edit" @click="enableStatus(row)">-->
<!-- <span v-if="row.enableStatus === '启用'">禁用</span>-->
<!-- <span v-else>启用</span>-->
@ -304,11 +304,11 @@
</template>
<script>
import { getList, getDetail, add, update, remove,getQRCodeImg,getShowTemplate,getPrintTemplate,addAllocation } from "@/api/basicdata/basicdataGoodsShelf";
import { getList, getDetail, add, update, remove,getQRCodeImg,getShowTemplate,getPrintTemplate,addAllocation,disable,enable } from "@/api/basicdata/basicdataGoodsShelf";
import {getList as allgetList,update as allupdate} from "@/api/basicdata/basicdataGoodsAllocation";
import option from "@/option/basicdata/basicdataGoodsShelf";
import { mapGetters } from "vuex";
import { disable, enable, getGoodsAreaNodeList } from '@/api/basicdata/basicdataGoodsArea';
import { getGoodsAreaNodeList } from '@/api/basicdata/basicdataGoodsArea';
import { getDictionaryBiz } from '@/api/system/dict';
import { getTemplateData} from '@/api/basic/basicPrintTemplate'
import { getLodop } from '@/utils/LodopFuncs.js'

Loading…
Cancel
Save