入库修改
This commit is contained in:
1 parent
2046c3b7ba
commit
872cabe597
5 files changed
+24
-44
No files matched your search
@@ -144,7 +144,7 @@ export function validatePhone(rule: any, value: any, callback: any, isEdit: bool
|
||||
}
|
||||
|
||||
// 获取简要用户信息
|
||||
export function getSimpleUserAll(params?: { name?: string; mobile?: string }) {
|
||||
export function getSimpleUserAll(params?: { name?: string; mobile?: string; userId?: string }) {
|
||||
return request({
|
||||
url: "/admin/user/getSimpleUserAll",
|
||||
method: "get",
|
||||
|
||||
@@ -41,10 +41,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
isDisplayName: false,
|
||||
})
|
||||
|
||||
const queryForm = reactive<any>({
|
||||
current: 1,
|
||||
size: 10,
|
||||
})
|
||||
const queryForm = reactive<any>({})
|
||||
|
||||
const state = reactive<any>({
|
||||
loading: true,
|
||||
@@ -57,6 +54,7 @@ watch(
|
||||
(newVal, oldValue) => {
|
||||
if (newVal == oldValue) return
|
||||
state.selectId = newVal
|
||||
queryForm.userId = newVal
|
||||
getOptions()
|
||||
},
|
||||
{ immediate: true },
|
||||
@@ -65,10 +63,7 @@ watch(
|
||||
async function getOptions() {
|
||||
try {
|
||||
state.loading = true
|
||||
const _pa = {
|
||||
...queryForm,
|
||||
}
|
||||
const { data } = await getSimpleUserAll(_pa)
|
||||
const { data } = await getSimpleUserAll(queryForm)
|
||||
state.options = data ?? []
|
||||
} finally {
|
||||
setTimeout(() => (state.loading = false), 500)
|
||||
@@ -81,9 +76,4 @@ function remoteSearch(params: string) {
|
||||
getOptions()
|
||||
}
|
||||
}
|
||||
|
||||
function clear() {
|
||||
state.selectId = null
|
||||
getOptions()
|
||||
}
|
||||
</script>
|
||||
@@ -54,6 +54,7 @@ watch(
|
||||
(newVal, oldValue) => {
|
||||
if (newVal == oldValue) return
|
||||
state.selectId = newVal
|
||||
queryForm.supplierId = newVal
|
||||
getOptions()
|
||||
},
|
||||
{ immediate: true },
|
||||
@@ -62,10 +63,7 @@ watch(
|
||||
async function getOptions() {
|
||||
try {
|
||||
state.loading = true
|
||||
const _pa = {
|
||||
...queryForm,
|
||||
}
|
||||
const { data } = await getSupplierSimpleAll(_pa)
|
||||
const { data } = await getSupplierSimpleAll(queryForm)
|
||||
state.options = data ? data.filter((item: any) => item.supplierId) : []
|
||||
} finally {
|
||||
setTimeout(() => (state.loading = false), 500)
|
||||
@@ -78,9 +76,4 @@ function remoteSearch(params: string) {
|
||||
getOptions()
|
||||
}
|
||||
}
|
||||
|
||||
function clear() {
|
||||
state.selectId = null
|
||||
getOptions()
|
||||
}
|
||||
</script>
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in new issue
Block a user