|
@@ -1,37 +1,25 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <a-layout>
|
|
|
|
|
- <!-- 顶部导航栏 -->
|
|
|
|
|
- <!-- <a-layout-header class="app-header"> -->
|
|
|
|
|
- <Navbar title="仓库库存" :is-go-back="false">
|
|
|
|
|
- <a-space>
|
|
|
|
|
- <a-button shape="circle" @click="openStockOutCar()">
|
|
|
|
|
- <template #icon><shopping-cart-outlined /></template>
|
|
|
|
|
- <a-badge :count="count" :number-style="{ backgroundColor: '#52c41a' }" />
|
|
|
|
|
- </a-button>
|
|
|
|
|
- <a-button shape="circle" @click="stockOutPrepareApproved()">
|
|
|
|
|
- <template #icon><ordered-list-outlined /></template>
|
|
|
|
|
- </a-button>
|
|
|
|
|
- </a-space>
|
|
|
|
|
- </Navbar>
|
|
|
|
|
- <!-- </a-layout-header> -->
|
|
|
|
|
|
|
+ <Navbar title="仓库库存" :is-go-back="false">
|
|
|
|
|
+ <a-space>
|
|
|
|
|
+ <a-button shape="circle" @click="openStockOutCar()">
|
|
|
|
|
+ <template #icon><shopping-cart-outlined /></template>
|
|
|
|
|
+ <a-badge :count="count" :number-style="{ backgroundColor: '#52c41a' }" />
|
|
|
|
|
+ </a-button>
|
|
|
|
|
+ <a-button shape="circle" @click="stockOutPrepareApproved()">
|
|
|
|
|
+ <template #icon><ordered-list-outlined /></template>
|
|
|
|
|
+ </a-button>
|
|
|
|
|
+ </a-space>
|
|
|
|
|
+ </Navbar>
|
|
|
|
|
|
|
|
- <!-- 主内容区 -->
|
|
|
|
|
- <a-layout-content class="content-container">
|
|
|
|
|
- <!-- 搜索表单 -->
|
|
|
|
|
- <a-form layout="inline" class="search-form">
|
|
|
|
|
- <a-form-item label="项目事件" required>
|
|
|
|
|
|
|
+ <a-form :colon="false">
|
|
|
|
|
+ <a-row :gutter="[8, 0]" justify="space-start">
|
|
|
|
|
+ <a-col>
|
|
|
|
|
+ <a-form-item label="项目事件" :label-col="{ style: 'width: 80px' }" class="horizontal-form-item">
|
|
|
<a-select
|
|
<a-select
|
|
|
- v-model:value="projectItemName"
|
|
|
|
|
- style="width: 220px"
|
|
|
|
|
- show-search
|
|
|
|
|
- allow-clear
|
|
|
|
|
|
|
+ v-model:value="projectItemName" style="width: 160px" show-search allow-clear
|
|
|
@change="projectHandleChange"
|
|
@change="projectHandleChange"
|
|
|
>
|
|
>
|
|
|
- <a-select-option
|
|
|
|
|
- v-for="item in projectList"
|
|
|
|
|
- :key="item.id"
|
|
|
|
|
- :value="item.name"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <a-select-option v-for="item in projectList" :key="item.id" :value="item.name">
|
|
|
{{ item.name }}
|
|
{{ item.name }}
|
|
|
</a-select-option>
|
|
</a-select-option>
|
|
|
</a-select>
|
|
</a-select>
|
|
@@ -39,299 +27,215 @@
|
|
|
<template #icon><plus-outlined /></template>
|
|
<template #icon><plus-outlined /></template>
|
|
|
</a-button>
|
|
</a-button>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
-
|
|
|
|
|
- <a-form-item label="仓库" required>
|
|
|
|
|
- <a-select
|
|
|
|
|
- v-model:value="warehouseName"
|
|
|
|
|
- style="width: 220px"
|
|
|
|
|
- allow-clear
|
|
|
|
|
- @change="storeHandleChange"
|
|
|
|
|
- >
|
|
|
|
|
- <a-select-option
|
|
|
|
|
- v-for="item in warehouseList"
|
|
|
|
|
- :key="item.id"
|
|
|
|
|
- :value="item.name"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col>
|
|
|
|
|
+ <a-form-item label="选择仓库" :label-col="{ style: 'width: 80px' }" class="horizontal-form-item">
|
|
|
|
|
+ <a-select v-model:value="warehouseName" class="w-full" allow-clear @change="storeHandleChange">
|
|
|
|
|
+ <a-select-option v-for="item in warehouseList" :key="item.id" :value="item.name">
|
|
|
{{ item.name }}
|
|
{{ item.name }}
|
|
|
</a-select-option>
|
|
</a-select-option>
|
|
|
</a-select>
|
|
</a-select>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
-
|
|
|
|
|
- <a-form-item label="需求模板">
|
|
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col>
|
|
|
|
|
+ <a-form-item label="需求模板" :label-col="{ style: 'width: 80px' }" class="horizontal-form-item">
|
|
|
<a-select
|
|
<a-select
|
|
|
- v-model:value="stockOutPrepateTemplateName"
|
|
|
|
|
- style="width: 220px"
|
|
|
|
|
- show-search
|
|
|
|
|
- allow-clear
|
|
|
|
|
|
|
+ v-model:value="stockOutPrepateTemplateName" class="w-full" show-search allow-clear
|
|
|
@change="templateHandleChange"
|
|
@change="templateHandleChange"
|
|
|
>
|
|
>
|
|
|
- <a-select-option
|
|
|
|
|
- v-for="item in stockOutPrepateTemplateList"
|
|
|
|
|
- :key="item.id"
|
|
|
|
|
- :value="item.name"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <a-select-option v-for="item in stockOutPrepateTemplateList" :key="item.id" :value="item.name">
|
|
|
{{ item.name }}
|
|
{{ item.name }}
|
|
|
</a-select-option>
|
|
</a-select-option>
|
|
|
</a-select>
|
|
</a-select>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
-
|
|
|
|
|
- <a-form-item label="物料编码">
|
|
|
|
|
- <a-input
|
|
|
|
|
- v-model:value="inventoryNo"
|
|
|
|
|
- placeholder="物料编码"
|
|
|
|
|
- @keyup.enter="getDatas"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col>
|
|
|
|
|
+ <a-form-item label="物料编码" :label-col="{ style: 'width: 80px' }" class="horizontal-form-item">
|
|
|
|
|
+ <a-input v-model:value="inventoryNo" placeholder="物料编码" class="w-full" @keyup.enter="getDatas" />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
-
|
|
|
|
|
- <a-form-item label="物料名称">
|
|
|
|
|
- <a-input
|
|
|
|
|
- v-model:value="inventoryName"
|
|
|
|
|
- placeholder="物料名称"
|
|
|
|
|
- @keyup.enter="getDatas"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col>
|
|
|
|
|
+ <a-form-item label="物料名称" :label-col="{ style: 'width: 80px' }" class="horizontal-form-item">
|
|
|
|
|
+ <a-input v-model:value="inventoryName" placeholder="物料名称" class="w-full" @keyup.enter="getDatas" />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
-
|
|
|
|
|
- <a-form-item label="规格型号">
|
|
|
|
|
- <a-input
|
|
|
|
|
- v-model:value="inventoryType"
|
|
|
|
|
- placeholder="规格型号"
|
|
|
|
|
- @keyup.enter="getDatas"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col>
|
|
|
|
|
+ <a-form-item label="规格型号" :label-col="{ style: 'width: 80px' }" class="horizontal-form-item">
|
|
|
|
|
+ <a-input v-model:value="inventoryType" placeholder="规格型号" class="w-full" @keyup.enter="getDatas" />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
-
|
|
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col>
|
|
|
<a-form-item>
|
|
<a-form-item>
|
|
|
<a-space>
|
|
<a-space>
|
|
|
- <a-button type="primary" @click="getDatas">查询</a-button>
|
|
|
|
|
|
|
+ <a-button style="margin-left: 12px;" type="primary" @click="getDatas">查询</a-button>
|
|
|
<a-button @click="submitStock">加入领料车</a-button>
|
|
<a-button @click="submitStock">加入领料车</a-button>
|
|
|
</a-space>
|
|
</a-space>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
- </a-form>
|
|
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ </a-form>
|
|
|
|
|
|
|
|
- <!-- 主表格 -->
|
|
|
|
|
- <a-table
|
|
|
|
|
- :columns="columns"
|
|
|
|
|
- :data-source="currentStock"
|
|
|
|
|
- :row-key="record => record.inventoryId"
|
|
|
|
|
- :scroll="{ x: 2000, y: 500 }"
|
|
|
|
|
- :pagination="false"
|
|
|
|
|
- bordered
|
|
|
|
|
- >
|
|
|
|
|
- <template #bodyCell="{ column, record }">
|
|
|
|
|
- <template v-if="column.dataIndex === 'checked'">
|
|
|
|
|
- <a-checkbox
|
|
|
|
|
- :checked="record.checked"
|
|
|
|
|
- @change="e => handleCheckboxChange(record, e)"
|
|
|
|
|
- />
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <!-- 主表格 -->
|
|
|
|
|
+ <a-table
|
|
|
|
|
+ :columns="columns" :data-source="currentStock" :row-key="record => record.inventoryId"
|
|
|
|
|
+ :scroll="{ x: 2000, y: 500 }" :pagination="false" bordered
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #bodyCell="{ column, record }">
|
|
|
|
|
+ <template v-if="column.dataIndex === 'checked'">
|
|
|
|
|
+ <a-checkbox :checked="record.checked" @change="e => handleCheckboxChange(record, e)" />
|
|
|
|
|
+ </template>
|
|
|
|
|
|
|
|
- <template v-if="column.dataIndex === 'image'">
|
|
|
|
|
- <a-image
|
|
|
|
|
- :src="Common.getThumbnailImageSrc(className, record.imageName)"
|
|
|
|
|
- :width="50"
|
|
|
|
|
- :preview="false"
|
|
|
|
|
- @click="$refs.imagePreview.preview(className, record.imageName)"
|
|
|
|
|
- />
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <template v-if="column.dataIndex === 'image'">
|
|
|
|
|
+ <a-image
|
|
|
|
|
+ :src="Common.getThumbnailImageSrc(className, record.imageName)" :width="50" :preview="false"
|
|
|
|
|
+ @click="$refs.imagePreview.preview(className, record.imageName)"
|
|
|
|
|
+ />
|
|
|
|
|
+ </template>
|
|
|
|
|
|
|
|
- <template v-if="column.dataIndex === 'pickQuantity'">
|
|
|
|
|
- <a-input-number
|
|
|
|
|
- v-model:value="record.pickQuantity"
|
|
|
|
|
- :min="0"
|
|
|
|
|
- @change="checkBoxChange(record)"
|
|
|
|
|
- />
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <template v-if="column.dataIndex === 'pickQuantity'">
|
|
|
|
|
+ <a-input-number v-model:value="record.pickQuantity" :min="0" @change="checkBoxChange(record)" />
|
|
|
|
|
+ </template>
|
|
|
|
|
|
|
|
- <template v-if="column.dataIndex === 'operation'">
|
|
|
|
|
- <a-button type="link" @click="findByInventoryId(record)">查看</a-button>
|
|
|
|
|
- </template>
|
|
|
|
|
- </template>
|
|
|
|
|
- </a-table>
|
|
|
|
|
|
|
+ <template v-if="column.dataIndex === 'operation'">
|
|
|
|
|
+ <a-button type="link" @click="findByInventoryId(record)">查看</a-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-table>
|
|
|
|
|
|
|
|
- <!-- 分页 -->
|
|
|
|
|
- <a-pagination
|
|
|
|
|
- v-model:current="pagination.current_page"
|
|
|
|
|
- v-model:pageSize="pagination.per_page"
|
|
|
|
|
- :total="pagination.total"
|
|
|
|
|
- show-size-changer
|
|
|
|
|
- class="pagination-container"
|
|
|
|
|
- @change="handlePaginationChange"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <!-- 分页 -->
|
|
|
|
|
+ <a-pagination
|
|
|
|
|
+ v-model:current="pagination.current_page" v-model:pageSize="pagination.per_page"
|
|
|
|
|
+ :total="pagination.total" show-size-changer class="pagination-container" @change="handlePaginationChange"
|
|
|
|
|
+ />
|
|
|
|
|
|
|
|
- <!-- 物料分布模态框 -->
|
|
|
|
|
- <a-modal
|
|
|
|
|
- v-model:open="modal1"
|
|
|
|
|
- title="物料分布情况"
|
|
|
|
|
- width="60%"
|
|
|
|
|
- :footer="null"
|
|
|
|
|
- >
|
|
|
|
|
- <a-table
|
|
|
|
|
- :columns="distributionColumns"
|
|
|
|
|
- :data-source="inventorys"
|
|
|
|
|
- :scroll="{ x: 800 }"
|
|
|
|
|
- row-key="id"
|
|
|
|
|
- bordered
|
|
|
|
|
- >
|
|
|
|
|
- <template #bodyCell="{ column, text }">
|
|
|
|
|
- <template v-if="column.dataIndex === 'inventoryClass' || column.dataIndex === 'quantity'">
|
|
|
|
|
- <span>{{ text }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </template>
|
|
|
|
|
- </a-table>
|
|
|
|
|
- </a-modal>
|
|
|
|
|
|
|
+ <!-- 物料分布模态框 -->
|
|
|
|
|
+ <a-modal v-model:open="modal1" title="物料分布情况" width="60%" :footer="null">
|
|
|
|
|
+ <a-table :columns="distributionColumns" :data-source="inventorys" :scroll="{ x: 800 }" row-key="id" bordered>
|
|
|
|
|
+ <template #bodyCell="{ column, text }">
|
|
|
|
|
+ <template v-if="column.dataIndex === 'inventoryClass' || column.dataIndex === 'quantity'">
|
|
|
|
|
+ <span>{{ text }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-table>
|
|
|
|
|
+ </a-modal>
|
|
|
|
|
|
|
|
- <!-- 修改 modal4 新增项目事件弹窗 -->
|
|
|
|
|
- <a-modal v-model:open="modal4" title="新增项目事件" width="600px">
|
|
|
|
|
- <StockOutPrepareLineAddProject
|
|
|
|
|
- ref="addProject"
|
|
|
|
|
- @close-project-item-modal="closeProjectItemModal"
|
|
|
|
|
- />
|
|
|
|
|
- <template #footer>
|
|
|
|
|
- <a-space>
|
|
|
|
|
- <a-button @click="closeProjectItemModal">取消</a-button>
|
|
|
|
|
- <a-button type="primary" @click="saveProjectItem">确定</a-button>
|
|
|
|
|
- </a-space>
|
|
|
|
|
|
|
+ <!-- 修改 modal4 新增项目事件弹窗 -->
|
|
|
|
|
+ <a-modal v-model:open="modal4" title="新增项目事件" width="600px">
|
|
|
|
|
+ <StockOutPrepareLineAddProject ref="addProject" @close-project-item-modal="closeProjectItemModal" />
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <a-space>
|
|
|
|
|
+ <a-button @click="closeProjectItemModal">取消</a-button>
|
|
|
|
|
+ <a-button type="primary" @click="saveProjectItem">确定</a-button>
|
|
|
|
|
+ </a-space>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-modal>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 修改 modal5 物料分布情况弹窗 -->
|
|
|
|
|
+ <a-modal v-model:open="modal5" title="物料分布情况" width="80%">
|
|
|
|
|
+ <a-table
|
|
|
|
|
+ :columns="[
|
|
|
|
|
+ { title: '选择', dataIndex: 'selection', width: 100 },
|
|
|
|
|
+ { title: '物料编码', dataIndex: 'no', width: 150 },
|
|
|
|
|
+ { title: '物料名称', dataIndex: 'name', width: 150 },
|
|
|
|
|
+ { title: '货位', dataIndex: 'positionBarCode', width: 100 },
|
|
|
|
|
+ { title: '状态', dataIndex: 'status', width: 100 },
|
|
|
|
|
+ { title: '齐套情况', dataIndex: 'finished', width: 100 },
|
|
|
|
|
+ { title: '工具数量', dataIndex: 'quantity', width: 100 },
|
|
|
|
|
+ { title: '操作', dataIndex: 'operation', width: 150 }
|
|
|
|
|
+ ]" :data-source="inventoryInstanceCurrentStocks" :scroll="{ x: 1500 }" row-key="id"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #bodyCell="{ column, record, index }">
|
|
|
|
|
+ <template v-if="column.dataIndex === 'index'">
|
|
|
|
|
+ {{ (pagination2.current_page - 1) * pagination2.per_page + index + 1 }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="column.dataIndex === 'selection'">
|
|
|
|
|
+ <a-checkbox :checked="record.checked" @change="e => selectBox(record, e.target.checked)" />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="column.dataIndex === 'operation'">
|
|
|
|
|
+ <a-button type="link" @click="findInventoryInstanceBindLine(record)">
|
|
|
|
|
+ 查看内部工具
|
|
|
|
|
+ </a-button>
|
|
|
</template>
|
|
</template>
|
|
|
- </a-modal>
|
|
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-table>
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <a-space>
|
|
|
|
|
+ <a-button @click="cancel">取消</a-button>
|
|
|
|
|
+ <a-button type="primary" @click="joinPickCarByBox">加入领料车</a-button>
|
|
|
|
|
+ </a-space>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-modal>
|
|
|
|
|
|
|
|
- <!-- 修改 modal5 物料分布情况弹窗 -->
|
|
|
|
|
- <a-modal v-model:open="modal5" title="物料分布情况" width="80%">
|
|
|
|
|
- <a-table
|
|
|
|
|
- :columns="[
|
|
|
|
|
- { title: '选择', dataIndex: 'selection', width: 100 },
|
|
|
|
|
- { title: '物料编码', dataIndex: 'no', width: 150 },
|
|
|
|
|
- { title: '物料名称', dataIndex: 'name', width: 150 },
|
|
|
|
|
- { title: '货位', dataIndex: 'positionBarCode', width: 100 },
|
|
|
|
|
- { title: '状态', dataIndex: 'status', width: 100 },
|
|
|
|
|
- { title: '齐套情况', dataIndex: 'finished', width: 100 },
|
|
|
|
|
- { title: '工具数量', dataIndex: 'quantity', width: 100 },
|
|
|
|
|
- { title: '操作', dataIndex: 'operation', width: 150 }
|
|
|
|
|
- ]"
|
|
|
|
|
- :data-source="inventoryInstanceCurrentStocks"
|
|
|
|
|
- :scroll="{ x: 1500 }"
|
|
|
|
|
- row-key="id"
|
|
|
|
|
- >
|
|
|
|
|
- <template #bodyCell="{ column, record, index }">
|
|
|
|
|
- <template v-if="column.dataIndex === 'index'">
|
|
|
|
|
- {{ (pagination2.current_page - 1) * pagination2.per_page + index + 1 }}
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-if="column.dataIndex === 'selection'">
|
|
|
|
|
- <a-checkbox
|
|
|
|
|
- :checked="record.checked"
|
|
|
|
|
- @change="e => selectBox(record, e.target.checked)"
|
|
|
|
|
- />
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-if="column.dataIndex === 'operation'">
|
|
|
|
|
- <a-button type="link" @click="findInventoryInstanceBindLine(record)">
|
|
|
|
|
- 查看内部工具
|
|
|
|
|
- </a-button>
|
|
|
|
|
- </template>
|
|
|
|
|
- </template>
|
|
|
|
|
- </a-table>
|
|
|
|
|
- <template #footer>
|
|
|
|
|
- <a-space>
|
|
|
|
|
- <a-button @click="cancel">取消</a-button>
|
|
|
|
|
- <a-button type="primary" @click="joinPickCarByBox">加入领料车</a-button>
|
|
|
|
|
- </a-space>
|
|
|
|
|
|
|
+ <!-- 修改 modal6 物料分布情况弹窗 -->
|
|
|
|
|
+ <a-modal v-model:open="modal6" title="物料分布情况" width="80%">
|
|
|
|
|
+ <a-table
|
|
|
|
|
+ :columns="[
|
|
|
|
|
+ { title: '序号', dataIndex: 'index', width: 100 },
|
|
|
|
|
+ { title: '所在成套工具箱', dataIndex: 'no', width: 150 },
|
|
|
|
|
+ { title: '数量', dataIndex: 'quantity', width: 150 },
|
|
|
|
|
+ { title: '货位', dataIndex: 'positionBarCode', width: 150 },
|
|
|
|
|
+ { title: '项目事件', dataIndex: 'projectItem', width: 150 }
|
|
|
|
|
+ ]" :data-source="inventoryInstanceCurrentStocks2" row-key="id"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #bodyCell="{ column, index }">
|
|
|
|
|
+ <template v-if="column.dataIndex === 'index'">
|
|
|
|
|
+ {{ (pagination2.current_page - 1) * pagination2.per_page + index + 1 }}
|
|
|
</template>
|
|
</template>
|
|
|
- </a-modal>
|
|
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-table>
|
|
|
|
|
+ </a-modal>
|
|
|
|
|
|
|
|
- <!-- 修改 modal6 物料分布情况弹窗 -->
|
|
|
|
|
- <a-modal v-model:open="modal6" title="物料分布情况" width="80%">
|
|
|
|
|
- <a-table
|
|
|
|
|
- :columns="[
|
|
|
|
|
- { title: '序号', dataIndex: 'index', width: 100 },
|
|
|
|
|
- { title: '所在成套工具箱', dataIndex: 'no', width: 150 },
|
|
|
|
|
- { title: '数量', dataIndex: 'quantity', width: 150 },
|
|
|
|
|
- { title: '货位', dataIndex: 'positionBarCode', width: 150 },
|
|
|
|
|
- { title: '项目事件', dataIndex: 'projectItem', width: 150 }
|
|
|
|
|
- ]"
|
|
|
|
|
- :data-source="inventoryInstanceCurrentStocks2"
|
|
|
|
|
- row-key="id"
|
|
|
|
|
- >
|
|
|
|
|
- <template #bodyCell="{ column, index }">
|
|
|
|
|
- <template v-if="column.dataIndex === 'index'">
|
|
|
|
|
- {{ (pagination2.current_page - 1) * pagination2.per_page + index + 1 }}
|
|
|
|
|
- </template>
|
|
|
|
|
- </template>
|
|
|
|
|
- </a-table>
|
|
|
|
|
- </a-modal>
|
|
|
|
|
|
|
+ <!-- 修改 modal8 工具箱内工具弹窗 -->
|
|
|
|
|
+ <a-modal
|
|
|
|
|
+ v-model:open="modal8"
|
|
|
|
|
+ :title="`${selectedParentInventoryInstance.name}-${selectedParentInventoryInstance.no}-箱内工具`" width="90%"
|
|
|
|
|
+ :footer="null"
|
|
|
|
|
+ >
|
|
|
|
|
+ <a-form layout="inline" class="search-form">
|
|
|
|
|
+ <a-form-item label="工具SKU">
|
|
|
|
|
+ <a-input v-model:value="toolNo" placeholder="输入工具SKU" @keyup.enter="findLineByCondition" />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ <a-form-item label="工具名称">
|
|
|
|
|
+ <a-input v-model:value="toolName" placeholder="输入工具名称" @keyup.enter="findLineByCondition" />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ <a-form-item label="规格型号">
|
|
|
|
|
+ <a-input v-model:value="toolType" placeholder="输入规格型号" @keyup.enter="findLineByCondition" />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-form>
|
|
|
|
|
|
|
|
- <!-- 修改 modal8 工具箱内工具弹窗 -->
|
|
|
|
|
- <a-modal
|
|
|
|
|
- v-model:open="modal8"
|
|
|
|
|
- :title="`${selectedParentInventoryInstance.name}-${selectedParentInventoryInstance.no}-箱内工具`"
|
|
|
|
|
- width="90%"
|
|
|
|
|
- :footer="null"
|
|
|
|
|
- >
|
|
|
|
|
- <a-form layout="inline" class="search-form">
|
|
|
|
|
- <a-form-item label="工具SKU">
|
|
|
|
|
- <a-input
|
|
|
|
|
- v-model:value="toolNo"
|
|
|
|
|
- placeholder="输入工具SKU"
|
|
|
|
|
- @keyup.enter="findLineByCondition"
|
|
|
|
|
- />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- <a-form-item label="工具名称">
|
|
|
|
|
- <a-input
|
|
|
|
|
- v-model:value="toolName"
|
|
|
|
|
- placeholder="输入工具名称"
|
|
|
|
|
- @keyup.enter="findLineByCondition"
|
|
|
|
|
- />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- <a-form-item label="规格型号">
|
|
|
|
|
- <a-input
|
|
|
|
|
- v-model:value="toolType"
|
|
|
|
|
- placeholder="输入规格型号"
|
|
|
|
|
- @keyup.enter="findLineByCondition"
|
|
|
|
|
- />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-form>
|
|
|
|
|
|
|
+ <a-table
|
|
|
|
|
+ :columns="modal8Columns" :data-source="inventoryInstanceBindLineDtos" :pagination="{
|
|
|
|
|
+ total: pagination2.total,
|
|
|
|
|
+ current: pagination2.current_page,
|
|
|
|
|
+ pageSize: pagination2.per_page,
|
|
|
|
|
+ onChange: handlePaginationChange2
|
|
|
|
|
+ }" :scroll="{ x: 1500, y: '60vh' }" row-key="id"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #bodyCell="{ column, record, index }">
|
|
|
|
|
+ <template v-if="column.dataIndex === 'index'">
|
|
|
|
|
+ {{ (pagination2.current_page - 1) * pagination2.per_page + index + 1 }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 本次领用数量列 -->
|
|
|
|
|
+ <template v-if="column.dataIndex === 'quantity'">
|
|
|
|
|
+ <a-input-number
|
|
|
|
|
+ v-model:value="record.quantity" :min="0" style="width: 200px"
|
|
|
|
|
+ @update:value="val => record.quantity = val"
|
|
|
|
|
+ />
|
|
|
|
|
+ </template>
|
|
|
|
|
|
|
|
- <a-table
|
|
|
|
|
- :columns="modal8Columns"
|
|
|
|
|
- :data-source="inventoryInstanceBindLineDtos"
|
|
|
|
|
- :pagination="{
|
|
|
|
|
- total: pagination2.total,
|
|
|
|
|
- current: pagination2.current_page,
|
|
|
|
|
- pageSize: pagination2.per_page,
|
|
|
|
|
- onChange: handlePaginationChange2
|
|
|
|
|
- }"
|
|
|
|
|
- :scroll="{ x: 1500, y: '60vh' }"
|
|
|
|
|
- row-key="id"
|
|
|
|
|
- >
|
|
|
|
|
- <template #bodyCell="{ column, record, index }">
|
|
|
|
|
- <template v-if="column.dataIndex === 'index'">
|
|
|
|
|
- {{ (pagination2.current_page - 1) * pagination2.per_page + index + 1 }}
|
|
|
|
|
- </template>
|
|
|
|
|
- <!-- 本次领用数量列 -->
|
|
|
|
|
- <template v-if="column.dataIndex === 'quantity'">
|
|
|
|
|
- <a-input-number
|
|
|
|
|
- v-model:value="record.quantity"
|
|
|
|
|
- :min="0"
|
|
|
|
|
- style="width: 200px"
|
|
|
|
|
- @update:value="val => record.quantity = val"
|
|
|
|
|
- />
|
|
|
|
|
- </template>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 操作列 -->
|
|
|
|
|
- <template v-if="column.dataIndex === 'operation'">
|
|
|
|
|
- <a-button
|
|
|
|
|
- v-if="record.isDisplay"
|
|
|
|
|
- type="link"
|
|
|
|
|
- @click="joinPickCarByBoxTool(record)"
|
|
|
|
|
- >
|
|
|
|
|
- 加入领料车
|
|
|
|
|
- </a-button>
|
|
|
|
|
- <span v-else>物料已出库</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </template>
|
|
|
|
|
- </a-table>
|
|
|
|
|
- </a-modal>
|
|
|
|
|
- </a-layout-content>
|
|
|
|
|
|
|
+ <!-- 操作列 -->
|
|
|
|
|
+ <template v-if="column.dataIndex === 'operation'">
|
|
|
|
|
+ <a-button v-if="record.isDisplay" type="link" @click="joinPickCarByBoxTool(record)">
|
|
|
|
|
+ 加入领料车
|
|
|
|
|
+ </a-button>
|
|
|
|
|
+ <span v-else>物料已出库</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-table>
|
|
|
|
|
+ </a-modal>
|
|
|
|
|
|
|
|
- <Loading v-if="loading" />
|
|
|
|
|
- <ImagePreview ref="imagePreview" />
|
|
|
|
|
- </a-layout>
|
|
|
|
|
|
|
+ <Loading v-if="loading" />
|
|
|
|
|
+ <ImagePreview ref="imagePreview" />
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -352,7 +256,7 @@ import StockOutPrepareLineAddProject from './StockOutPrepareLineAddProject.vue';
|
|
|
import InventoryInstanceResource from '../api/common/InventoryInstanceResource.js';
|
|
import InventoryInstanceResource from '../api/common/InventoryInstanceResource.js';
|
|
|
import InventoryInstanceBindResource from '../api/wms/InventoryInstanceBindResource.js';
|
|
import InventoryInstanceBindResource from '../api/wms/InventoryInstanceBindResource.js';
|
|
|
import InAndOutFlow from '../stock/InAndOutFlow.vue';
|
|
import InAndOutFlow from '../stock/InAndOutFlow.vue';
|
|
|
-import { Uuid } from 'pc-component-v3';
|
|
|
|
|
|
|
+import { Uuid } from 'pc-component-v3';
|
|
|
|
|
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
@@ -363,7 +267,7 @@ export default defineComponent({
|
|
|
StockOutPrepareLineAddProject,
|
|
StockOutPrepareLineAddProject,
|
|
|
InAndOutFlow,
|
|
InAndOutFlow,
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
data() {
|
|
data() {
|
|
|
this.Common = Common;
|
|
this.Common = Common;
|
|
|
return {
|
|
return {
|
|
@@ -381,20 +285,20 @@ export default defineComponent({
|
|
|
{ title: '操作', dataIndex: 'operation', fixed: 'right', width: 100, align: 'center' },
|
|
{ title: '操作', dataIndex: 'operation', fixed: 'right', width: 100, align: 'center' },
|
|
|
],
|
|
],
|
|
|
modal8Columns: [
|
|
modal8Columns: [
|
|
|
- { title: '序号', dataIndex: 'index', width: 80, align: 'center' },
|
|
|
|
|
|
|
+ { title: '序号', dataIndex: 'index', width: 80, align: 'center' },
|
|
|
{ title: '工具SKU', dataIndex: 'inventoryNo', width: 100, align: 'center' },
|
|
{ title: '工具SKU', dataIndex: 'inventoryNo', width: 100, align: 'center' },
|
|
|
{ title: '工具名称', dataIndex: 'inventoryName', width: 100, align: 'center' },
|
|
{ title: '工具名称', dataIndex: 'inventoryName', width: 100, align: 'center' },
|
|
|
- { title: '规格型号', dataIndex: 'inventoryType', width: 100 , align: 'center'},
|
|
|
|
|
- { title: '数量', dataIndex: 'componentQuantity', width: 100 , align: 'center'},
|
|
|
|
|
- { title: '已领用数量', dataIndex: 'stockOutQuantity', width: 100 , align: 'center'},
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ { title: '规格型号', dataIndex: 'inventoryType', width: 100, align: 'center' },
|
|
|
|
|
+ { title: '数量', dataIndex: 'componentQuantity', width: 100, align: 'center' },
|
|
|
|
|
+ { title: '已领用数量', dataIndex: 'stockOutQuantity', width: 100, align: 'center' },
|
|
|
|
|
+ {
|
|
|
title: '本次领用数量',
|
|
title: '本次领用数量',
|
|
|
dataIndex: 'quantity',
|
|
dataIndex: 'quantity',
|
|
|
width: 200, // 添加固定宽度
|
|
width: 200, // 添加固定宽度
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- title: '操作',
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '操作',
|
|
|
dataIndex: 'operation',
|
|
dataIndex: 'operation',
|
|
|
width: 150, // 添加固定宽度
|
|
width: 150, // 添加固定宽度
|
|
|
align: 'center',
|
|
align: 'center',
|
|
@@ -407,8 +311,8 @@ export default defineComponent({
|
|
|
inventoryInstanceCurrentStocks: [],
|
|
inventoryInstanceCurrentStocks: [],
|
|
|
inventoryInstanceCurrentStocks2: [],
|
|
inventoryInstanceCurrentStocks2: [],
|
|
|
currentStock: [],
|
|
currentStock: [],
|
|
|
- projectList:[],//项目事件数据
|
|
|
|
|
- warehouseList:[],//仓库数据
|
|
|
|
|
|
|
+ projectList: [],//项目事件数据
|
|
|
|
|
+ warehouseList: [],//仓库数据
|
|
|
stockOutPrepateTemplateList: [],
|
|
stockOutPrepateTemplateList: [],
|
|
|
inventoryName: undefined,
|
|
inventoryName: undefined,
|
|
|
inventoryNo: undefined,
|
|
inventoryNo: undefined,
|
|
@@ -450,7 +354,7 @@ export default defineComponent({
|
|
|
uuid: Uuid.createUUID(),
|
|
uuid: Uuid.createUUID(),
|
|
|
infoWindowNo1: 283548,
|
|
infoWindowNo1: 283548,
|
|
|
whereClauseSource: {
|
|
whereClauseSource: {
|
|
|
- customerDataDimensions:[{
|
|
|
|
|
|
|
+ customerDataDimensions: [{
|
|
|
fieldName: 'client.id',
|
|
fieldName: 'client.id',
|
|
|
dataDimensionTypeNo: '202201191757',
|
|
dataDimensionTypeNo: '202201191757',
|
|
|
defaultDataDimensionTypeValueNo: '4',
|
|
defaultDataDimensionTypeValueNo: '4',
|
|
@@ -513,35 +417,35 @@ export default defineComponent({
|
|
|
this.pagination.per_page = pageSize;
|
|
this.pagination.per_page = pageSize;
|
|
|
this.getDatas();
|
|
this.getDatas();
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
selectAll() {
|
|
selectAll() {
|
|
|
this.currentStock = this.currentStock.map(item => ({
|
|
this.currentStock = this.currentStock.map(item => ({
|
|
|
...item,
|
|
...item,
|
|
|
checked: this.checked,
|
|
checked: this.checked,
|
|
|
}));
|
|
}));
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 项目事件
|
|
// 项目事件
|
|
|
- projectHandleChange:function (_,{key,value}) {
|
|
|
|
|
- console.log(key,value);
|
|
|
|
|
|
|
+ projectHandleChange: function (_, { key, value }) {
|
|
|
|
|
+ console.log(key, value);
|
|
|
this.projectItemId = key;
|
|
this.projectItemId = key;
|
|
|
- localStorage.setItem('projectItemId',key);
|
|
|
|
|
- localStorage.setItem('projectItemName',value);
|
|
|
|
|
|
|
+ localStorage.setItem('projectItemId', key);
|
|
|
|
|
+ localStorage.setItem('projectItemName', value);
|
|
|
},
|
|
},
|
|
|
// 仓库事件
|
|
// 仓库事件
|
|
|
- storeHandleChange:function (_,{key,value}) {
|
|
|
|
|
|
|
+ storeHandleChange: function (_, { key, value }) {
|
|
|
this.warehouseId = key;
|
|
this.warehouseId = key;
|
|
|
- console.log(key,value);
|
|
|
|
|
- localStorage.setItem('warehouseId',key);
|
|
|
|
|
- localStorage.setItem('warehouseName',value);
|
|
|
|
|
|
|
+ console.log(key, value);
|
|
|
|
|
+ localStorage.setItem('warehouseId', key);
|
|
|
|
|
+ localStorage.setItem('warehouseName', value);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- templateHandleChange: function(_,{key,value}) {
|
|
|
|
|
|
|
+ templateHandleChange: function (_, { key, value }) {
|
|
|
var _self = this;
|
|
var _self = this;
|
|
|
this.stockOutPrepateTemplateId = key;
|
|
this.stockOutPrepateTemplateId = key;
|
|
|
- console.log(key,value);
|
|
|
|
|
- localStorage.setItem('stockOutPrepateTemplateId',key);
|
|
|
|
|
- localStorage.setItem('stockOutPrepateTemplateName',value);
|
|
|
|
|
|
|
+ console.log(key, value);
|
|
|
|
|
+ localStorage.setItem('stockOutPrepateTemplateId', key);
|
|
|
|
|
+ localStorage.setItem('stockOutPrepateTemplateName', value);
|
|
|
//需求模板改变,设定页数充1开始
|
|
//需求模板改变,设定页数充1开始
|
|
|
_self.pagination.current_page = 1;
|
|
_self.pagination.current_page = 1;
|
|
|
_self.getDatas();
|
|
_self.getDatas();
|
|
@@ -586,17 +490,17 @@ export default defineComponent({
|
|
|
var currentStockDtos = [];
|
|
var currentStockDtos = [];
|
|
|
currentStockDtos.push(currentStockDto);
|
|
currentStockDtos.push(currentStockDto);
|
|
|
console.log(currentStockDtos);
|
|
console.log(currentStockDtos);
|
|
|
- _self.loading=true;
|
|
|
|
|
|
|
+ _self.loading = true;
|
|
|
PickingCarResource.addToPickingCar(
|
|
PickingCarResource.addToPickingCar(
|
|
|
_self.projectItemId,
|
|
_self.projectItemId,
|
|
|
_self.warehouseId,
|
|
_self.warehouseId,
|
|
|
currentStockDtos,
|
|
currentStockDtos,
|
|
|
).then(
|
|
).then(
|
|
|
successData => {
|
|
successData => {
|
|
|
- if(successData.errorCode == 0) {
|
|
|
|
|
|
|
+ if (successData.errorCode == 0) {
|
|
|
Notify.success('成功', '添加成功', 4000);
|
|
Notify.success('成功', '添加成功', 4000);
|
|
|
_self.queryPickingCarCount();
|
|
_self.queryPickingCarCount();
|
|
|
- _self.loading=false;
|
|
|
|
|
|
|
+ _self.loading = false;
|
|
|
} else {
|
|
} else {
|
|
|
Notify.error('提示', successData.errorMessage, false);
|
|
Notify.error('提示', successData.errorMessage, false);
|
|
|
return;
|
|
return;
|
|
@@ -604,7 +508,7 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
errorData => {
|
|
errorData => {
|
|
|
Common.processException(errorData);
|
|
Common.processException(errorData);
|
|
|
- _self.loading=false;
|
|
|
|
|
|
|
+ _self.loading = false;
|
|
|
},
|
|
},
|
|
|
);
|
|
);
|
|
|
},
|
|
},
|
|
@@ -654,17 +558,17 @@ export default defineComponent({
|
|
|
var currentStockDtos = [];
|
|
var currentStockDtos = [];
|
|
|
currentStockDtos.push(currentStockDto);
|
|
currentStockDtos.push(currentStockDto);
|
|
|
console.log(currentStockDtos);
|
|
console.log(currentStockDtos);
|
|
|
- _self.loading=true;
|
|
|
|
|
|
|
+ _self.loading = true;
|
|
|
PickingCarResource.addToPickingCar(
|
|
PickingCarResource.addToPickingCar(
|
|
|
_self.projectItemId,
|
|
_self.projectItemId,
|
|
|
_self.warehouseId,
|
|
_self.warehouseId,
|
|
|
currentStockDtos,
|
|
currentStockDtos,
|
|
|
).then(
|
|
).then(
|
|
|
successData => {
|
|
successData => {
|
|
|
- if(successData.errorCode == 0) {
|
|
|
|
|
|
|
+ if (successData.errorCode == 0) {
|
|
|
Notify.success('成功', '添加成功', 4000);
|
|
Notify.success('成功', '添加成功', 4000);
|
|
|
_self.queryPickingCarCount();
|
|
_self.queryPickingCarCount();
|
|
|
- _self.loading=false;
|
|
|
|
|
|
|
+ _self.loading = false;
|
|
|
} else {
|
|
} else {
|
|
|
Notify.error('提示', successData.errorMessage, false);
|
|
Notify.error('提示', successData.errorMessage, false);
|
|
|
return;
|
|
return;
|
|
@@ -672,7 +576,7 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
errorData => {
|
|
errorData => {
|
|
|
Common.processException(errorData);
|
|
Common.processException(errorData);
|
|
|
- _self.loading=false;
|
|
|
|
|
|
|
+ _self.loading = false;
|
|
|
},
|
|
},
|
|
|
);
|
|
);
|
|
|
},
|
|
},
|
|
@@ -811,7 +715,7 @@ export default defineComponent({
|
|
|
InventoryInstanceBindResource.findByCondition(instanceBindLineDto).then(
|
|
InventoryInstanceBindResource.findByCondition(instanceBindLineDto).then(
|
|
|
successData => {
|
|
successData => {
|
|
|
if (successData.errorCode == 0) {
|
|
if (successData.errorCode == 0) {
|
|
|
- if(successData.datas) {
|
|
|
|
|
|
|
+ if (successData.datas) {
|
|
|
_self.inventoryInstanceBindLineDtos = successData.datas;
|
|
_self.inventoryInstanceBindLineDtos = successData.datas;
|
|
|
_self.inventoryInstanceBindLineDtos.forEach(function (item) {
|
|
_self.inventoryInstanceBindLineDtos.forEach(function (item) {
|
|
|
item.isDisplay = isDisplay;
|
|
item.isDisplay = isDisplay;
|
|
@@ -943,10 +847,10 @@ export default defineComponent({
|
|
|
beforeSend: function (request) {
|
|
beforeSend: function (request) {
|
|
|
Common.addTokenToRequest(request);
|
|
Common.addTokenToRequest(request);
|
|
|
},
|
|
},
|
|
|
- success: function ({datas,errorCode,errorMessage}) {
|
|
|
|
|
|
|
+ success: function ({ datas, errorCode, errorMessage }) {
|
|
|
if (errorCode == 0) {
|
|
if (errorCode == 0) {
|
|
|
- _self.projectList = datas;
|
|
|
|
|
- }else{
|
|
|
|
|
|
|
+ _self.projectList = datas;
|
|
|
|
|
+ } else {
|
|
|
alert(errorMessage);
|
|
alert(errorMessage);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -968,10 +872,10 @@ export default defineComponent({
|
|
|
beforeSend: function (request) {
|
|
beforeSend: function (request) {
|
|
|
Common.addTokenToRequest(request);
|
|
Common.addTokenToRequest(request);
|
|
|
},
|
|
},
|
|
|
- success: function ({datas,errorCode,errorMessage}) {
|
|
|
|
|
|
|
+ success: function ({ datas, errorCode, errorMessage }) {
|
|
|
if (errorCode == 0) {
|
|
if (errorCode == 0) {
|
|
|
- _self.warehouseList = datas;
|
|
|
|
|
- }else{
|
|
|
|
|
|
|
+ _self.warehouseList = datas;
|
|
|
|
|
+ } else {
|
|
|
alert(errorMessage);
|
|
alert(errorMessage);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -994,10 +898,10 @@ export default defineComponent({
|
|
|
beforeSend: function (request) {
|
|
beforeSend: function (request) {
|
|
|
Common.addTokenToRequest(request);
|
|
Common.addTokenToRequest(request);
|
|
|
},
|
|
},
|
|
|
- success: function ({datas,errorCode,errorMessage}) {
|
|
|
|
|
|
|
+ success: function ({ datas, errorCode, errorMessage }) {
|
|
|
if (errorCode == 0) {
|
|
if (errorCode == 0) {
|
|
|
- _self.stockOutPrepateTemplateList = datas;
|
|
|
|
|
- }else{
|
|
|
|
|
|
|
+ _self.stockOutPrepateTemplateList = datas;
|
|
|
|
|
+ } else {
|
|
|
alert(errorMessage);
|
|
alert(errorMessage);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -1034,11 +938,11 @@ export default defineComponent({
|
|
|
inventoryType: _self.inventoryType,
|
|
inventoryType: _self.inventoryType,
|
|
|
inventoryClassId: _self.inventoryClassId,
|
|
inventoryClassId: _self.inventoryClassId,
|
|
|
};
|
|
};
|
|
|
- _self.loading=true;
|
|
|
|
|
|
|
+ _self.loading = true;
|
|
|
|
|
|
|
|
CurrentStockResource.getCurrentStock(param).then(
|
|
CurrentStockResource.getCurrentStock(param).then(
|
|
|
successData => {
|
|
successData => {
|
|
|
- if(successData.errorCode == 0) {
|
|
|
|
|
|
|
+ if (successData.errorCode == 0) {
|
|
|
_self.pagination.total = successData.total;
|
|
_self.pagination.total = successData.total;
|
|
|
_self.currentStock = [];
|
|
_self.currentStock = [];
|
|
|
console.log(successData.datas);
|
|
console.log(successData.datas);
|
|
@@ -1066,14 +970,14 @@ export default defineComponent({
|
|
|
_self.pagination.last_page = Math.ceil(
|
|
_self.pagination.last_page = Math.ceil(
|
|
|
successData.total / successData.length,
|
|
successData.total / successData.length,
|
|
|
);
|
|
);
|
|
|
- _self.loading=false;
|
|
|
|
|
|
|
+ _self.loading = false;
|
|
|
} else {
|
|
} else {
|
|
|
Notify.error('提示', successData.errorMessage, false);
|
|
Notify.error('提示', successData.errorMessage, false);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
errorData => {
|
|
errorData => {
|
|
|
- _self.loading=false;
|
|
|
|
|
|
|
+ _self.loading = false;
|
|
|
Common.processException(errorData);
|
|
Common.processException(errorData);
|
|
|
},
|
|
},
|
|
|
);
|
|
);
|
|
@@ -1099,7 +1003,7 @@ export default defineComponent({
|
|
|
|
|
|
|
|
StockOutPrepateTemplateResource.queryStockOutPrepateTemplateDto(param).then(
|
|
StockOutPrepateTemplateResource.queryStockOutPrepateTemplateDto(param).then(
|
|
|
successData => {
|
|
successData => {
|
|
|
- if(successData.errorCode == 0) {
|
|
|
|
|
|
|
+ if (successData.errorCode == 0) {
|
|
|
_self.pagination.total = successData.data.totalSize;
|
|
_self.pagination.total = successData.data.totalSize;
|
|
|
_self.currentStock = [];
|
|
_self.currentStock = [];
|
|
|
for (var i = 0; i < successData.data.stockOutPrepateTemplateLineDtos.length; i++) {
|
|
for (var i = 0; i < successData.data.stockOutPrepateTemplateLineDtos.length; i++) {
|
|
@@ -1136,14 +1040,14 @@ export default defineComponent({
|
|
|
_self.currentStock.push(obj);
|
|
_self.currentStock.push(obj);
|
|
|
}
|
|
}
|
|
|
_self.pagination.last_page = Math.ceil(successData.data.totalSize / _self.page);
|
|
_self.pagination.last_page = Math.ceil(successData.data.totalSize / _self.page);
|
|
|
- _self.loading=false;
|
|
|
|
|
|
|
+ _self.loading = false;
|
|
|
} else {
|
|
} else {
|
|
|
Notify.error('提示', successData.errorMessage, false);
|
|
Notify.error('提示', successData.errorMessage, false);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
errorData => {
|
|
errorData => {
|
|
|
- _self.loading=false;
|
|
|
|
|
|
|
+ _self.loading = false;
|
|
|
Common.processException(errorData);
|
|
Common.processException(errorData);
|
|
|
},
|
|
},
|
|
|
);
|
|
);
|
|
@@ -1160,7 +1064,7 @@ export default defineComponent({
|
|
|
if (tagNo == undefined || tagNo == null || tagNo == '002') {
|
|
if (tagNo == undefined || tagNo == null || tagNo == '002') {
|
|
|
InventoryInstanceResource.findCurrentStockByInventoryId(inventoryId).then(
|
|
InventoryInstanceResource.findCurrentStockByInventoryId(inventoryId).then(
|
|
|
successData => {
|
|
successData => {
|
|
|
- if(successData.errorCode == 0) {
|
|
|
|
|
|
|
+ if (successData.errorCode == 0) {
|
|
|
if (successData.datas && successData.datas.length > 0) {
|
|
if (successData.datas && successData.datas.length > 0) {
|
|
|
_self.inventoryInstanceCurrentStocks2 = successData.datas;
|
|
_self.inventoryInstanceCurrentStocks2 = successData.datas;
|
|
|
_self.modal6 = true;
|
|
_self.modal6 = true;
|
|
@@ -1180,7 +1084,7 @@ export default defineComponent({
|
|
|
} else {
|
|
} else {
|
|
|
InventoryInstanceBindResource.findByInventoryId(inventoryId).then(
|
|
InventoryInstanceBindResource.findByInventoryId(inventoryId).then(
|
|
|
successData => {
|
|
successData => {
|
|
|
- if(successData.errorCode == 0) {
|
|
|
|
|
|
|
+ if (successData.errorCode == 0) {
|
|
|
if (successData.datas && successData.datas.length > 0) {
|
|
if (successData.datas && successData.datas.length > 0) {
|
|
|
_self.inventoryInstanceCurrentStocks = successData.datas;
|
|
_self.inventoryInstanceCurrentStocks = successData.datas;
|
|
|
_self.inventoryInstanceCurrentStocks.forEach(function (item) {
|
|
_self.inventoryInstanceCurrentStocks.forEach(function (item) {
|
|
@@ -1222,9 +1126,9 @@ export default defineComponent({
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
url: Common.getApiURL(
|
|
url: Common.getApiURL(
|
|
|
'InventoryInstanceResource/findProjectItemInventoryQuantityByInventoryAndWarehouse?inventoryId=' +
|
|
'InventoryInstanceResource/findProjectItemInventoryQuantityByInventoryAndWarehouse?inventoryId=' +
|
|
|
- inventoryId +
|
|
|
|
|
- '&warehouseId=' +
|
|
|
|
|
- _self.warehouseId,
|
|
|
|
|
|
|
+ inventoryId +
|
|
|
|
|
+ '&warehouseId=' +
|
|
|
|
|
+ _self.warehouseId,
|
|
|
),
|
|
),
|
|
|
type: 'get',
|
|
type: 'get',
|
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
@@ -1233,7 +1137,7 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
success: function (data) {
|
|
success: function (data) {
|
|
|
- if(data.errorCode == 0) {
|
|
|
|
|
|
|
+ if (data.errorCode == 0) {
|
|
|
_self.inventorys = data.datas;
|
|
_self.inventorys = data.datas;
|
|
|
} else {
|
|
} else {
|
|
|
Notify.error('错误', data.errorMessage, false);
|
|
Notify.error('错误', data.errorMessage, false);
|
|
@@ -1281,7 +1185,7 @@ export default defineComponent({
|
|
|
Common.showDialog('提示', '填写的领用数量必须大于零', 'error');
|
|
Common.showDialog('提示', '填写的领用数量必须大于零', 'error');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- _self.loading=true;
|
|
|
|
|
|
|
+ _self.loading = true;
|
|
|
if (currentStock.length > 0) {
|
|
if (currentStock.length > 0) {
|
|
|
PickingCarResource.addToPickingCar(
|
|
PickingCarResource.addToPickingCar(
|
|
|
_self.projectItemId,
|
|
_self.projectItemId,
|
|
@@ -1289,11 +1193,11 @@ export default defineComponent({
|
|
|
currentStock,
|
|
currentStock,
|
|
|
).then(
|
|
).then(
|
|
|
successData => {
|
|
successData => {
|
|
|
- if(successData.errorCode == 0) {
|
|
|
|
|
|
|
+ if (successData.errorCode == 0) {
|
|
|
Notify.success('成功', '添加成功', 4000);
|
|
Notify.success('成功', '添加成功', 4000);
|
|
|
_self.getDatas();
|
|
_self.getDatas();
|
|
|
_self.queryPickingCarCount();
|
|
_self.queryPickingCarCount();
|
|
|
- _self.loading=false;
|
|
|
|
|
|
|
+ _self.loading = false;
|
|
|
} else {
|
|
} else {
|
|
|
Notify.error('提示', successData.errorMessage, false);
|
|
Notify.error('提示', successData.errorMessage, false);
|
|
|
return;
|
|
return;
|
|
@@ -1301,11 +1205,11 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
errorData => {
|
|
errorData => {
|
|
|
Common.processException(errorData);
|
|
Common.processException(errorData);
|
|
|
- _self.loading=false;
|
|
|
|
|
|
|
+ _self.loading = false;
|
|
|
},
|
|
},
|
|
|
);
|
|
);
|
|
|
} else {
|
|
} else {
|
|
|
- _self.loading=false;
|
|
|
|
|
|
|
+ _self.loading = false;
|
|
|
Common.showDialog('提示', '请选择要提交的内容', 'error');
|
|
Common.showDialog('提示', '请选择要提交的内容', 'error');
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -1341,7 +1245,7 @@ export default defineComponent({
|
|
|
var _self = this;
|
|
var _self = this;
|
|
|
PickingCarResource.queryPickingCarCount().then(
|
|
PickingCarResource.queryPickingCarCount().then(
|
|
|
successData => {
|
|
successData => {
|
|
|
- if(successData.errorCode == 0) {
|
|
|
|
|
|
|
+ if (successData.errorCode == 0) {
|
|
|
_self.count = successData.data;
|
|
_self.count = successData.data;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -1401,4 +1305,23 @@ export default defineComponent({
|
|
|
margin-top: 16px;
|
|
margin-top: 16px;
|
|
|
text-align: right;
|
|
text-align: right;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+.horizontal-form-item {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 8px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.w-full {
|
|
|
|
|
+ width: 192px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+:deep(.ant-form-item) {
|
|
|
|
|
+ margin-bottom: 10px !important;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+:deep(.ant-form-item-label > label) {
|
|
|
|
|
+ font-size: 14px !important;
|
|
|
|
|
+ font-weight: 600 !important;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|