石广澎
2023-12-01 ce1d9926ff986e195fd4a58cb5159fc8f45b32a5
feat: 部门物品
1、报废单列表
2、报废明细
3、退回单列表
4、退回明细
7个文件已修改
93 ■■■■■ 已修改文件
admin-web/src/api/deptGoods/scrap.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/api/exportExcel.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/layout/components/Sidebar/SidebarItem.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/views/departmentitem/itemdis/distribution/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/views/departmentitem/itemret/returnNote/index.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/views/departmentitem/itemscr/scrapping/edit.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/views/departmentitem/itemscr/scrapping/index.vue 57 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/api/deptGoods/scrap.js
@@ -29,7 +29,7 @@
// 列表
export function scrappedList(params) {
  return request({
    url: '/pc/l/wh/form/scrapped/list',
    url: '/pc/l/wh/form/scrapped/deptList',
    method: 'get',
    params,
  });
admin-web/src/api/exportExcel.js
@@ -47,3 +47,12 @@
        params,
    });
}
// 部门物品报废单导出
export function deptScrappedExport(params) {
    return request({
        url: '/pc/l/wh/form/scrapped/deptList/export',
        responseType: 'blob', // 指定响应数据类型为Blob
        method: 'get',
        params,
    });
}
admin-web/src/layout/components/Sidebar/SidebarItem.vue
@@ -142,7 +142,9 @@
  background: #fff;
  color: #0d997c;
}
::v-deep .el-submenu .el-menu-item{
  min-width: 0;
}
.cur-icon {
  display: inline-block;
  width: 10px;
admin-web/src/views/departmentitem/itemdis/distribution/index.vue
@@ -179,11 +179,7 @@
        this.total = res.totalRows;
        this.loading = false;
      });
    },
    fifterForm(params) {
      this.filterFrom = Object.assign(this.filterFrom, params);
      this.search(1);
    },
    }
  },
};
</script>
admin-web/src/views/departmentitem/itemret/returnNote/index.vue
@@ -34,12 +34,12 @@
                        </div>
                      </div>
                      <div class="card-end">
                        <div v-for="(just, index) in item.formOutputTemplateInfoList" :key="index" class="item">
                          <div class="name">{{ just.goodsName }}</div>
                        <div v-for="(just, index) in item.goods" :key="index" class="item">
                          <div class="name">{{ just.baseGoodsTemplateName }}</div>
                          <div class="value-box">
                            <div class="value-box-item">
                              <span class="label">数量:</span>
                              <span class="value">{{ just.count }}</span>
                              <span class="value">{{ just.totalCount }}</span>
                              <span class="unit">{{ just.unit }}</span>
                            </div>
                          </div>
@@ -124,6 +124,13 @@
          },
        },
        {
          type: 'text',
          dataIndex: 'operatorName',
          label: '创建人',
          placeholder: '请输入',
          defaultValue: '',
        },
        {
          type: 'date-picker',
          dataIndex: 'startTime',
          label: '退回时间',
admin-web/src/views/departmentitem/itemscr/scrapping/edit.vue
@@ -229,7 +229,7 @@
<script>
import {departmentListAll} from '@/api/system/deptment';
import {goodsTemplate} from '@/api/baseSetting/finsystenant';
import {scrappedAdd} from '@/api/stock/deptScrap';
import {scrappedAdd} from '@/api/deptGoods/scrap';
import {getTree} from '@/api/foudation/classification';
import MyButton from '@/components/myButton/myButton';
import winMd from '@/components/win/win-md';
admin-web/src/views/departmentitem/itemscr/scrapping/index.vue
@@ -10,7 +10,7 @@
          <el-col>
            <!--列表-->
            <div class="table-tool-bar" style="margin-bottom: 15px;">
              <my-button name="新增" @click="handleAdd" site="tools" size="medium" />
              <my-button name="新增" @click="handleAdd" site="tools" size="medium"/>
            </div>
            <div :style="{ 'overflow-y': 'auto', height: 'calc(100vh - 352px)' }" v-loading="loading">
              <el-row v-if="list.length" class="card" :gutter="5">
@@ -23,11 +23,14 @@
                          <span class="value">{{ item.businessFormCode }}</span>
                        </div>
                        <div class="card-header-right">
                            <el-button site="form" type="success" size="mini" @click="handleExport(item)"
                              >导出报废登记单</el-button
                            >
                          <el-button site="form" type="success" size="mini"
                                     @click="handleExport('deptScrappedExport',`部门物品报废登记单-${item.businessFormCode}`,{id:item.id})"
                          >导出报废登记单
                          </el-button
                          >
                          <el-button name="查看详情" site="form" type="info" size="mini" @click="handleDetail(item)"
                            >查看详情</el-button
                          >查看详情
                          </el-button
                          >
                        </div>
                      </div>
@@ -39,12 +42,12 @@
                        </div>
                      </div>
                      <div class="card-end">
                        <div v-for="(just, index) in item.formOutputTemplateInfoList" :key="index" class="item">
                          <div class="name">{{ just.goodsName }}</div>
                        <div v-for="(just, index) in item.goods" :key="index" class="item">
                          <div class="name">{{ just.baseGoodsTemplateName }}</div>
                          <div class="value-box">
                            <div class="value-box-item">
                              <span class="label">数量:</span>
                              <span class="value">{{ just.count }}</span>
                              <span class="value">{{ just.totalCount }}</span>
                              <span class="unit">{{ just.unit }}</span>
                            </div>
                          </div>
@@ -57,27 +60,28 @@
              <el-empty v-else description="暂无数据"></el-empty>
            </div>
            <el-pagination
              :small="false"
              :current-page="pageNum"
              :page-sizes="[5, 10, 20, 50, 100, 200, 300, 400, 500]"
              :page-size="pageSize"
              layout="total, sizes, prev, pager, next, jumper"
              :total="total"
              @size-change="handleSizeChange"
              @current-change="handleCurrentChange"
                :small="false"
                :current-page="pageNum"
                :page-sizes="[5, 10, 20, 50, 100, 200, 300, 400, 500]"
                :page-size="pageSize"
                layout="total, sizes, prev, pager, next, jumper"
                :total="total"
                @size-change="handleSizeChange"
                @current-change="handleCurrentChange"
            />
          </el-col>
        </el-row>
      </el-card>
    </el-container>
    <!--添加/编辑弹窗-->
    <edit v-if="editSetting.show" :setting="editSetting" ref="editRef" @close="editSetting.show=false" @search="refreshData"></edit>
    <detail v-if="detailSetting.show" :setting="detailSetting" @close="detailSetting.show=false" ref="detailRef"></detail>
    <edit v-if="editSetting.show" :setting="editSetting" ref="editRef" @close="editSetting.show=false"
          @search="refreshData"></edit>
    <detail v-if="detailSetting.show" :setting="detailSetting" @close="detailSetting.show=false"
            ref="detailRef"></detail>
  </div>
</template>
<script>
import {outputList} from '@/api/stock/accessStock';
import MyButton from '@/components/myButton/myButton';
import myImport from '@/views/components/myImport';
import edit from './edit';
@@ -85,11 +89,12 @@
import listPage from '@/views/mixins/listPage'
import {getUserDetail} from "@/utils/auth";
import SettingIplatform from "@/utils/settingIplatform";
import {scrappedList} from '@/api/deptGoods/scrap';
export default {
  name: 'index',
  mixins: [listPage],
  components: { MyButton, myImport, edit, detail },
  components: {MyButton, myImport, edit, detail},
  data() {
    return {
      list: [],
@@ -129,6 +134,13 @@
          },
        },
        {
          type: 'text',
          dataIndex: 'operatorName',
          label: '创建人',
          placeholder: '请输入',
          defaultValue: '',
        },
        {
          type: 'date-picker',
          dataIndex: 'startTime',
          label: '报废时间',
@@ -143,10 +155,13 @@
      ],
    };
  },
  created() {
    this.fetchData()
  },
  methods: {
    fetchData() {
      this.loading = true;
      outputList({
      scrappedList({
        pageNum: this.pageNum,
        pageSize: this.pageSize,
        ...this.filterFrom,