入库修改

This commit is contained in:
weiwei committed 2025-05-06 17:32:34 +08:00
1 parent 2046c3b7ba
commit 872cabe597
5 files changed
+24 -44

No files matched your search

@@ -13,7 +13,12 @@
</div>
<div style="width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">经办人:</span>
<span>{{ baseDataForm.handlerUserId }}</span>
<SelectHandlerUser
v-model.trim="baseDataForm.handlerUserId"
placeholder="请选择经办人"
style="width: 200px"
:isDisplayName="true"
/>
</div>
<div style="width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">关联补货申请:</span>
@@ -21,7 +26,7 @@
</div>
<div style="width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">货商:</span>
<span>{{ baseDataForm.supplierId }}</span>
<select-supplier v-model="baseDataForm.supplierId" style="width: 200px" :disabled="disabled" :isDisplayName="true" />
</div>
<div style="width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">备注:</span>
@@ -290,14 +295,14 @@ const getInitData = async () => {
const unitObj = item.erpUnitVos.find((unit: any) => unit.id === item.unitId)
return {
...item,
unitObj: { ...unitObj, realPrice: item?.realPrice || 0 },
unitObj: { ...unitObj, realPrice: displayPrice(item?.realPrice, "") || 0 },
}
})
state.erpSpuItemsMemo = cgPlanData.data.items.map((item: any) => {
const unitObj = item.erpUnitVos.find((unit: any) => unit.id === item.unitId)
return {
...item,
unitObj: { ...unitObj, realPrice: item?.realPrice || 0 },
unitObj: { ...unitObj, realPrice: displayPrice(item?.realPrice, "") || 0 },
}
})
}
@@ -18,11 +18,11 @@
<el-form-item label="经办人" prop="handlerUserId">
<SelectHandlerUser v-model.trim="state.queryForm.handlerUserId" placeholder="请选择经办人" style="width: 200px" />
</el-form-item>
<el-form-item label="审批状态" prop="checkStatus">
<!-- <el-form-item label="审批状态" prop="checkStatus">
<el-select v-model="state.queryForm.checkStatus" placeholder="请选择审批状态">
<el-option :label="item.label" :value="item.value" v-for="(item, index) in check_status" :key="index" />
</el-select>
</el-form-item>
</el-form-item> -->
<el-form-item>
<el-button icon="search" type="primary" @click="getDataList">查询</el-button>
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
@@ -70,11 +70,11 @@
<el-table-column prop="inventoryDate" label="单据日期" show-overflow-tooltip />
<el-table-column prop="productName" label="入库商品" show-overflow-tooltip />
<el-table-column prop="handlerUserName" label="经办人" show-overflow-tooltip />
<el-table-column prop="checkStatus" label="审批状态" show-overflow-tooltip>
<!-- <el-table-column prop="checkStatus" label="审批状态" show-overflow-tooltip>
<template #default="scope">
<dict-tag :options="check_status" :value="scope.row.checkStatus" />
</template>
</el-table-column>
</el-table-column> -->
<el-table-column prop="supplierName" label="货商" show-overflow-tooltip />
<el-table-column prop="remark" label="备注" show-overflow-tooltip />
<el-table-column prop="totalAmount" label="入库总金额" show-overflow-tooltip>
@@ -84,21 +84,13 @@
</el-table-column>
<el-table-column label="操作" width="150">
<template #default="scope">
<el-button icon="MessageBox" text type="success" @click="edit({ ...scope.row, checkStatus: 2 })">详情</el-button>
<el-button
icon="MessageBox"
text
type="success"
@click="edit(scope.row)"
>
详情
</el-button>
<el-button
icon="edit-pen"
text
type="primary"
v-auth="'supermarket_smErpInventoryRecords_edit'"
@click="edit(scope.row)"
@click="edit({ ...scope.row, checkStatus: null })"
>
编辑
</el-button>
@@ -111,7 +103,7 @@
>
删除
</el-button>
<el-button
<!-- <el-button
type="primary"
size="small"
v-if="scope.row.checkStatus == '1' && scope.row.taskId"
@@ -120,7 +112,7 @@
@click="deal(scope.row)"
>
开始处理
</el-button>
</el-button> -->
</template>
</el-table-column>
</el-table>
@@ -130,7 +122,7 @@
<sm-form v-else :formId="processFormState.formId" :disabled="processFormState.formDisabled" @close="formClose" />
<!-- 审批抽屉 -->
<process-drawer ref="processDrawerRef" @task-submit-event="taskSubmitEvent" />
<!-- <process-drawer ref="processDrawerRef" @task-submit-event="taskSubmitEvent" /> -->
</div>
</template>