|
|
|
@ -115,9 +115,8 @@
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-table-column width="30" label="选择" type="selection" />
|
|
|
|
<el-table-column width="30" label="选择" type="selection" />
|
|
|
|
<el-table-column min-width="180" label="入库单号" align="center" prop="no" />
|
|
|
|
<el-table-column min-width="160" label="入库单号" align="center" prop="no" />
|
|
|
|
<el-table-column label="产品信息" align="center" prop="productNames" min-width="200" sortable/>
|
|
|
|
<el-table-column label="产品信息" align="center" prop="productNames" min-width="200" sortable/>
|
|
|
|
<el-table-column label="供应商" align="center" prop="supplierName" />
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="入库时间"
|
|
|
|
label="入库时间"
|
|
|
|
align="center"
|
|
|
|
align="center"
|
|
|
|
@ -130,6 +129,7 @@
|
|
|
|
label="数量"
|
|
|
|
label="数量"
|
|
|
|
align="center"
|
|
|
|
align="center"
|
|
|
|
prop="totalCount"
|
|
|
|
prop="totalCount"
|
|
|
|
|
|
|
|
min-width="160"
|
|
|
|
:formatter="erpCountTableColumnFormatter"
|
|
|
|
:formatter="erpCountTableColumnFormatter"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
@ -208,12 +208,11 @@ import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
|
|
|
|
import { dateFormatter2 } from '@/utils/formatTime'
|
|
|
|
import { dateFormatter2 } from '@/utils/formatTime'
|
|
|
|
import download from '@/utils/download'
|
|
|
|
import download from '@/utils/download'
|
|
|
|
import { StockInApi, StockInVO } from '@/api/erp/stock/in'
|
|
|
|
import { StockInApi, StockInVO } from '@/api/erp/stock/in'
|
|
|
|
|
|
|
|
import { StockInDetailApi, StockInDetailVO } from '@/api/mes/stockindetail'
|
|
|
|
import StockInForm from './StockInForm.vue'
|
|
|
|
import StockInForm from './StockInForm.vue'
|
|
|
|
import { ProductApi, ProductVO } from '@/api/erp/product/product'
|
|
|
|
import { ProductApi, ProductVO } from '@/api/erp/product/product'
|
|
|
|
import { WarehouseApi, WarehouseVO } from '@/api/erp/stock/warehouse'
|
|
|
|
import { WarehouseApi, WarehouseVO } from '@/api/erp/stock/warehouse'
|
|
|
|
import { SupplierApi, SupplierVO } from '@/api/erp/purchase/supplier'
|
|
|
|
|
|
|
|
import { UserVO } from '@/api/system/user'
|
|
|
|
|
|
|
|
import * as UserApi from '@/api/system/user'
|
|
|
|
|
|
|
|
import { erpCountTableColumnFormatter, erpPriceTableColumnFormatter } from '@/utils'
|
|
|
|
import { erpCountTableColumnFormatter, erpPriceTableColumnFormatter } from '@/utils'
|
|
|
|
|
|
|
|
|
|
|
|
/** ERP 其它入库单列表 */
|
|
|
|
/** ERP 其它入库单列表 */
|
|
|
|
@ -292,7 +291,7 @@ const handleUpdateStatus = async (id: number, status: number) => {
|
|
|
|
// 审批的二次确认
|
|
|
|
// 审批的二次确认
|
|
|
|
await message.confirm(`确定${status === 20 ? '审批' : '反审批'}该入库单吗?`)
|
|
|
|
await message.confirm(`确定${status === 20 ? '审批' : '反审批'}该入库单吗?`)
|
|
|
|
// 发起审批
|
|
|
|
// 发起审批
|
|
|
|
await StockInApi.updateStockInStatus(id, status)
|
|
|
|
await StockInDetailApi.updateMesStockInStatus(id, status)
|
|
|
|
message.success(`${status === 20 ? '审批' : '反审批'}成功`)
|
|
|
|
message.success(`${status === 20 ? '审批' : '反审批'}成功`)
|
|
|
|
// 刷新列表
|
|
|
|
// 刷新列表
|
|
|
|
await getList()
|
|
|
|
await getList()
|
|
|
|
|