修改代码格式

This commit is contained in:
weiwei committed 2025-04-21 17:39:54 +08:00
1 parent 3fa0011ebf
commit 8870a68fba
18 files changed
+416 -339

No files matched your search

@@ -1,7 +1,39 @@
<template>
<div v-loading="loading" :element-loading-svg="svg" element-loading-svg-view-box="-10, -10, 50, 50" class="w-full h-full">
<div v-if="baseDataForm.inventoryCode" class="layout-padding-auto layout-padding-view" style="overflow: scroll">
<el-form v-if="!disabled" ref="baseDataFormRef" :model="baseDataForm" :rules="dataRules" label-width="100px">
<div v-if="disabled" ref="baseDataInfoRef">
<div style="margin-bottom: 8px; padding: 8px 16px; color: #606279">
<div style="display: inline-block; width: 100%">
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">单据编号:</span>
<span>{{ baseDataForm.inventoryCode }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">单据日期:</span>
<span>{{ baseDataForm.inventoryDate }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">经办人:</span>
<span>{{ baseDataForm.handlerUserId }}</span>
</div>
</div>
<div style="display: inline-block; width: 100%">
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">关联补货申请:</span>
<span>{{ baseDataForm.linkCode }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">货商:</span>
<span>{{ baseDataForm.supplierId }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">备注:</span>
<span>{{ baseDataForm.remark }}</span>
</div>
</div>
</div>
</div>
<el-form v-else ref="baseDataFormRef" :model="baseDataForm" :rules="dataRules" label-width="100px">
<div class="flex flex-wrap">
<el-form-item label="单据编号" prop="inventoryCode">
<el-input v-model.trim="baseDataForm.inventoryCode" readonly style="width: 200px" :disabled="disabled" />
@@ -36,41 +68,9 @@
</el-form-item>
</div>
</el-form>
<div v-else ref="baseDataInfoRef">
<div style="margin-bottom: 8px; padding: 8px 16px; color: #606279">
<div style="display: inline-block; width: 100%">
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">单据编号:</span>
<span>{{ baseDataForm.inventoryCode }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">单据日期:</span>
<span>{{ baseDataForm.inventoryDate }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">经办人:</span>
<span>{{ baseDataForm.handlerUserId }}</span>
</div>
</div>
<div style="display: inline-block; width: 100%">
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">关联补货申请:</span>
<span>{{ baseDataForm.linkCode }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">货商:</span>
<span>{{ baseDataForm.supplierId }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">备注:</span>
<span>{{ baseDataForm.remark }}</span>
</div>
</div>
</div>
</div>
<el-row v-if="!disabled" class="my-3">
<el-button @click="addEvent">新增(顶部)</el-button>
<!-- <el-button @click="addEvent">新增(顶部)</el-button>
<el-button @click="pushEvent">新增(尾部)</el-button>
<el-button @click="insertEvent">
在第
@@ -85,10 +85,10 @@
style="min-width: 50px; margin: 0 5px"
/>
行新增
</el-button>
</el-button> -->
<el-button type="primary" plain @click="handleClickSpuSelect">商品选择</el-button>
<el-button @click="removeSelectRowEvent" :disabled="state.selectedRowsErpSpuIds.length <= 0">删除选中</el-button>
<el-button @click="clearData">清空数据</el-button>
<el-button @click="handleClickSpuSelect">商品选择</el-button>
<el-button type="danger" @click="clearData">清空数据</el-button>
</el-row>
<vxe-table
@@ -137,7 +137,7 @@
:label="item.unit"
:value="item.id"
/>
<el-option v-else :key="row.id" :label="row.unit" :value="row.id" />
<el-option v-else :key="row.id" :label="row.unit" :value="row.unitId" />
</el-select>
</template>
<template #default="{ row }">
@@ -192,7 +192,7 @@
</el-row>
<!-- 商品选择对话框 -->
<erpSpuSelectDialog
<select-dialog
ref="erpSpuSelectDialogRef"
v-model="state.erpSpuSelectDialogVisible"
:selectedSpuRows="state.editableTableData"
@@ -218,11 +218,12 @@ import { getPlanCode, getErpSpuSimpleAll, getCgInventoryPage } from "/@/api/supe
import { VxeTableEvents, VxeTablePropTypes, type VxeTableInstance } from "vxe-table"
import { formatDate } from "/@/utils/formatTime"
import { Search } from "@element-plus/icons-vue"
import erpSpuSelectDialog from "/@/views/supermarketerp/components/erpSpuSelectDialog.vue"
import linkCodeDialog from "/@/views/supermarketerp/components/linkCodeDialog.vue"
import { displayPrice } from "/@/utils/formatMoney"
import { tablePrint } from "../../supermarketUtils"
const SelectDialog = defineAsyncComponent(() => import("/@/views/supermarketerp/components/erpSpuSelectDialog.vue"))
const props = withDefaults(
defineProps<{
formId: string | undefined
@@ -307,7 +308,7 @@ const getInitData = async () => {
disabled.value = props.disabled
if (id) {
loading.value = true
// 获取采购计划数据 & 获取简要商品列表
// 获取清单数据
const [cgPlanData] = await Promise.allSettled([getObj(id)])
.then((results) => results.map((result) => (result.status === "fulfilled" ? result.value : null)))
.finally(() => (loading.value = false))
@@ -317,16 +318,21 @@ const getInitData = async () => {
state.editableTableData = cgPlanData.data.items
state.erpSpuItemsMemo = cgPlanData.data.items
}
return
} else {
loading.value = true
// 获取采购退货编号
const [planCode] = await Promise.allSettled([getPlanCode({ type: 4 })])
.then((results) => results.map((result) => (result.status === "fulfilled" ? result.value : null)))
.finally(() => (loading.value = false))
planCode && planCode.code === 0 && (baseDataForm.inventoryCode = planCode.data)
}
loading.value = true
// 获取采购退货编号
const [erpSpuSimpleAll, planCode] = await Promise.allSettled([getErpSpuSimpleAll(), getPlanCode({ type: 4 })])
// 获取简要商品列表
const [erpSpuSimpleAll] = await Promise.allSettled([getErpSpuSimpleAll()])
.then((results) => results.map((result) => (result.status === "fulfilled" ? result.value : null)))
.finally(() => (loading.value = false))
erpSpuSimpleAll && erpSpuSimpleAll.code === 0 && (state.erpSpuSimpleAll = erpSpuSimpleAll.data)
planCode && planCode.code === 0 && (baseDataForm.inventoryCode = planCode.data)
}
// 点击关联采购申请编号
@@ -336,7 +342,7 @@ const handleClickLinkCode = () => linkCgPlanDialogRef.value.openLinkCodeDialog(3
const getSelectedLinkCode = (selectionRows: any) => {
console.log("被选择的关联数据", selectionRows)
baseDataForm.linkCode = selectionRows.planCode
baseDataForm.linkCode = selectionRows.inventoryCode
state.editableTableData = selectionRows.items
state.erpSpuItemsMemo = selectionRows.items
state.linkCgPlanDialogVisible = false
@@ -1,7 +1,44 @@
<template>
<div v-loading="loading" :element-loading-svg="svg" element-loading-svg-view-box="-10, -10, 50, 50" class="w-full h-full">
<div v-if="baseDataForm.code" class="layout-padding-auto layout-padding-view" style="overflow: scroll">
<el-form v-if="!disabled" ref="baseDataFormRef" :model="baseDataForm" :rules="dataRules" label-width="100px">
<div v-if="disabled" ref="baseDataInfoRef">
<div style="margin-bottom: 8px; padding: 8px 16px; color: #606279">
<div style="display: inline-block; width: 100%">
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">编号:</span>
<span>{{ baseDataForm.code }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">单据日期:</span>
<span>{{ baseDataForm.ddDate }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">经办人:</span>
<SelectHandlerUser
v-model.trim="baseDataForm.handlerUserId"
placeholder="请选择经办人"
style="width: 200px"
:isDisplayName="true"
/>
</div>
</div>
<div style="display: inline-block; width: 100%">
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">关联补货申请:</span>
<span>{{ baseDataForm.linkCode }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">货商:</span>
<select-supplier v-model="baseDataForm.supplierId" style="width: 200px" :disabled="disabled" :isDisplayName="true" />
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">备注:</span>
<span>{{ baseDataForm.remark }}</span>
</div>
</div>
</div>
</div>
<el-form v-else ref="baseDataFormRef" :model="baseDataForm" :rules="dataRules" label-width="100px">
<div class="flex flex-wrap">
<el-form-item label="编号" prop="code">
<el-input v-model="baseDataForm.code" readonly style="width: 200px" :disabled="disabled" />
@@ -36,41 +73,12 @@
</el-form-item>
</div>
</el-form>
<div v-else ref="baseDataInfoRef">
<div style="margin-bottom: 8px; padding: 8px 16px; color: #606279">
<div style="display: inline-block; width: 100%">
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">编号:</span>
<span>{{ baseDataForm.code }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">单据日期:</span>
<span>{{ baseDataForm.ddDate }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">经办人:</span>
<span>{{ baseDataForm.handlerUserId }}</span>
</div>
</div>
<div style="display: inline-block; width: 100%">
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">关联补货申请:</span>
<span>{{ baseDataForm.linkCode }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">货商:</span>
<span>{{ baseDataForm.supplierId }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">备注:</span>
<span>{{ baseDataForm.remark }}</span>
</div>
</div>
</div>
</div>
<el-row v-if="!disabled" class="my-3">
<el-button @click="addEvent">新增(顶部)</el-button>
<el-button type="primary" plain @click="handleClickSpuSelect">商品选择</el-button>
<el-button @click="removeSelectRowEvent" :disabled="state.selectedRowsErpSpuIds.length <= 0">删除选中</el-button>
<el-button type="danger" plain @click="clearData">清空数据</el-button>
<!-- <el-button @click="addEvent">新增(顶部)</el-button>
<el-button @click="pushEvent">新增(尾部)</el-button>
<el-button @click="insertEvent">
在第
@@ -85,10 +93,7 @@
style="min-width: 50px; margin: 0 5px"
/>
行新增
</el-button>
<el-button @click="removeSelectRowEvent" :disabled="state.selectedRowsErpSpuIds.length <= 0">删除选中</el-button>
<el-button @click="clearData">清空数据</el-button>
<el-button @click="handleClickSpuSelect">商品选择</el-button>
</el-button> -->
</el-row>
<vxe-table
@@ -137,7 +142,7 @@
:label="item.unit"
:value="item.id"
/>
<el-option v-else :key="row.id" :label="row.unit" :value="row.id" />
<el-option v-else :key="row.id" :label="row.unit" :value="row.unitId" />
</el-select>
</template>
<template #default="{ row }">
@@ -192,7 +197,7 @@
</el-row>
<!-- 商品选择对话框 -->
<erpSpuSelectDialog
<select-dialog
ref="erpSpuSelectDialogRef"
v-model="state.erpSpuSelectDialogVisible"
:selectedSpuRows="state.editableTableData"
@@ -218,11 +223,12 @@ import { getPlanCode, getErpSpuSimpleAll, getCgsqPage } from "/@/api/supermarket
import { VxeTableEvents, VxeTablePropTypes, type VxeTableInstance } from "vxe-table"
import { formatDate } from "/@/utils/formatTime"
import { Search } from "@element-plus/icons-vue"
import erpSpuSelectDialog from "/@/views/supermarketerp/components/erpSpuSelectDialog.vue"
import linkCodeDialog from "/@/views/supermarketerp/components/linkCodeDialog.vue"
import { displayPrice } from "/@/utils/formatMoney"
import { tablePrint } from "../../supermarketUtils"
const SelectDialog = defineAsyncComponent(() => import("/@/views/supermarketerp/components/erpSpuSelectDialog.vue"))
const props = withDefaults(
defineProps<{
formId: string | undefined
@@ -307,7 +313,7 @@ const getInitData = async () => {
disabled.value = props.disabled
if (id) {
loading.value = true
// 获取采购计划数据 & 获取简要商品列表
// 获取清单数据
const [cgPlanData] = await Promise.allSettled([getObj(id)])
.then((results) => results.map((result) => (result.status === "fulfilled" ? result.value : null)))
.finally(() => (loading.value = false))
@@ -317,16 +323,21 @@ const getInitData = async () => {
state.editableTableData = cgPlanData.data.items
state.erpSpuItemsMemo = cgPlanData.data.items
}
return
} else {
loading.value = true
// 获取采购订单编号
const [planCode] = await Promise.allSettled([getPlanCode({ type: 2 })])
.then((results) => results.map((result) => (result.status === "fulfilled" ? result.value : null)))
.finally(() => (loading.value = false))
planCode && planCode.code === 0 && (baseDataForm.code = planCode.data)
}
loading.value = true
// 获取采购订单编号
const [erpSpuSimpleAll, planCode] = await Promise.allSettled([getErpSpuSimpleAll(), getPlanCode({ type: 2 })])
// 获取简要商品列表
const [erpSpuSimpleAll] = await Promise.allSettled([getErpSpuSimpleAll()])
.then((results) => results.map((result) => (result.status === "fulfilled" ? result.value : null)))
.finally(() => (loading.value = false))
erpSpuSimpleAll && erpSpuSimpleAll.code === 0 && (state.erpSpuSimpleAll = erpSpuSimpleAll.data)
planCode && planCode.code === 0 && (baseDataForm.code = planCode.data)
}
// 点击关联采购申请编号
@@ -46,7 +46,11 @@
</template>
</el-table-column>
<!-- <el-table-column prop="totalAmount" label="金额合计" show-overflow-tooltip /> -->
<el-table-column prop="supplierId" label="货商" show-overflow-tooltip />
<el-table-column prop="supplierId" label="货商" show-overflow-tooltip>
<template #default="{ row }">
{{ supplierSimpleAll.find((item) => item.supplierId == row.supplierId)?.supplierName }}
</template>
</el-table-column>
<el-table-column prop="remark" label="备注" show-overflow-tooltip />
<el-table-column label="操作" width="150">
<template #default="scope">
@@ -68,7 +72,7 @@
<el-button
type="primary"
size="small"
v-if="scope.row.checkStatus != '2' && scope.row.taskId"
v-if="scope.row.checkStatus == '1' && scope.row.taskId"
link
icon="VideoPlay"
@click="deal(scope.row)"
@@ -95,6 +99,7 @@ import { useMessage, useMessageBox } from "/@/hooks/message"
import { useDict } from "/@/hooks/dict"
import ProcessDrawer from "/@/components/processDrawer/index.vue"
import { useSmProcessTableAction } from "/@/hooks/smProcessTableAction"
import { getSupplierSimpleAll } from "/@/api/supermarketerp/smErpSupplier"
const SmForm = defineAsyncComponent(() => import("./form.vue"))
@@ -156,4 +161,14 @@ const handleDelete = async (ids: string[]) => {
useMessage().error(err.msg)
}
}
let supplierSimpleAll: { supplierId: string; supplierName: string }[] | [] = []
onMounted(async () => {
const { code, data } = await getSupplierSimpleAll()
if (code == 0) {
supplierSimpleAll = data
return
}
supplierSimpleAll = []
})
</script>
@@ -77,10 +77,22 @@
</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 />
<el-table-column prop="totalAmount" label="入库总金额" show-overflow-tooltip>
<template #default="{ row }">
{{ displayPrice(row.totalAmount) }}
</template>
</el-table-column>
<el-table-column label="操作" width="150">
<template #default="scope">
<el-button v-if="scope.row.checkStatus == '2'" icon="MessageBox" text type="success" @click="edit(scope.row)">详情</el-button>
<el-button
v-if="scope.row.checkStatus == '2' || scope.row.checkStatus == '3'"
icon="MessageBox"
text
type="success"
@click="edit(scope.row)"
>
详情
</el-button>
<el-button
v-else
icon="edit-pen"
@@ -92,7 +104,6 @@
编辑
</el-button>
<el-button
v-else
icon="delete"
text
type="primary"
@@ -101,7 +112,14 @@
>
删除
</el-button>
<el-button type="primary" size="small" v-if="scope.row.checkStatus != '2'" link icon="VideoPlay" @click="deal(scope.row)">
<el-button
type="primary"
size="small"
v-if="scope.row.checkStatus == '1' && scope.row.taskId"
link
icon="VideoPlay"
@click="deal(scope.row)"
>
开始处理
</el-button>
</template>
@@ -124,6 +142,7 @@ import { useMessage, useMessageBox } from "/@/hooks/message"
import { useDict } from "/@/hooks/dict"
import ProcessDrawer from "/@/components/processDrawer/index.vue"
import { useSmProcessTableAction } from "/@/hooks/smProcessTableAction"
import { displayPrice } from "/@/utils/formatMoney"
const SmForm = defineAsyncComponent(() => import("./form.vue"))
@@ -1,7 +1,36 @@
<template>
<div v-loading="loading" :element-loading-svg="svg" element-loading-svg-view-box="-10, -10, 50, 50" class="w-full h-full">
<div v-if="baseDataForm.planCode" class="layout-padding-auto layout-padding-view" style="overflow: scroll">
<el-form v-if="!disabled" ref="baseDataFormRef" :model="baseDataForm" :rules="dataRules" label-width="100px">
<div v-if="disabled" ref="baseDataInfoRef">
<div style="margin-bottom: 8px; padding: 8px 16px; color: #606279">
<div style="display: inline-block; width: 100%">
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">编号:</span>
<span>{{ baseDataForm.planCode }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">单据日期:</span>
<span>{{ baseDataForm.planDate }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">经办人:</span>
<SelectHandlerUser
v-model.trim="baseDataForm.handlerUserId"
placeholder="请选择经办人"
style="width: 200px"
:isDisplayName="true"
/>
</div>
</div>
<div style="display: inline-block; width: 100%">
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">备注:</span>
<span>{{ baseDataForm.remark }}</span>
</div>
</div>
</div>
</div>
<el-form v-else ref="baseDataFormRef" :model="baseDataForm" :rules="dataRules" label-width="100px">
<div class="flex flex-wrap">
<el-form-item label="编号" prop="planCode">
<el-input v-model="baseDataForm.planCode" readonly style="width: 200px" :disabled="disabled" />
@@ -28,33 +57,12 @@
</el-form-item>
</div>
</el-form>
<div v-else ref="baseDataInfoRef">
<div style="margin-bottom: 8px; padding: 8px 16px; color: #606279">
<div style="display: inline-block; width: 100%">
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">编号:</span>
<span>{{ baseDataForm.planCode }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">单据日期:</span>
<span>{{ baseDataForm.planDate }}</span>
</div>
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">经办人:</span>
<span>{{ baseDataForm.handlerUserId }}</span>
</div>
</div>
<div style="display: inline-block; width: 100%">
<div style="float: left; width: 33.33%; height: 28px; line-height: 28px">
<span class="font-bold">备注:</span>
<span>{{ baseDataForm.remark }}</span>
</div>
</div>
</div>
</div>
<el-row v-if="!disabled" class="my-3">
<el-button @click="addEvent">新增(顶部)</el-button>
<el-button type="primary" plain @click="handleClickSpuSelect">商品选择</el-button>
<el-button @click="removeSelectRowEvent" :disabled="state.selectedRowsErpSpuIds.length <= 0">删除选中</el-button>
<el-button type="danger" plain @click="clearData">清空数据</el-button>
<!-- <el-button @click="addEvent">新增(顶部)</el-button>
<el-button @click="pushEvent">新增(尾部)</el-button>
<el-button @click="insertEvent">
在第
@@ -69,10 +77,7 @@
style="min-width: 50px; margin: 0 5px"
/>
行新增
</el-button>
<el-button @click="removeSelectRowEvent" :disabled="state.selectedRowsErpSpuIds.length <= 0">删除选中</el-button>
<el-button @click="clearData">清空数据</el-button>
<el-button @click="handleClickSpuSelect">商品选择</el-button>
</el-button> -->
</el-row>
<vxe-table
@@ -185,7 +190,7 @@
</el-row>
<!-- 商品选择对话框 -->
<erpSpuSelectDialog
<select-dialog
ref="erpSpuSelectDialogRef"
v-model="state.erpSpuSelectDialogVisible"
:selectedSpuRows="state.editableTableData"
@@ -201,10 +206,11 @@ import { useMessage } from "/@/hooks/message"
import { VxeTableEvents, VxeTablePropTypes, type VxeTableInstance } from "vxe-table"
import { getObj, addObj, putObj } from "/@/api/supermarketerp/smErpCgPlan"
import { getPlanCode, getErpSpuSimpleAll } from "/@/api/supermarketerp/common"
import erpSpuSelectDialog from "/@/views/supermarketerp/components/erpSpuSelectDialog.vue"
import { formatDate } from "/@/utils/formatTime"
import { tablePrint } from "../../supermarketUtils"
const SelectDialog = defineAsyncComponent(() => import("/@/views/supermarketerp/components/erpSpuSelectDialog.vue"))
const props = withDefaults(
defineProps<{
formId: string | undefined
@@ -275,7 +281,7 @@ const getInitData = async () => {
disabled.value = props.disabled
if (id) {
loading.value = true
// 获取补货申请编号 & 获取简要商品列表
// 获取清单详情 & 获取简要商品列表
const [cgPlanData, erpSpuSimpleAll] = await Promise.allSettled([getObj(id), getErpSpuSimpleAll()])
.then((results) => results.map((result) => (result.status === "fulfilled" ? result.value : null)))
.finally(() => (loading.value = false))
@@ -7,7 +7,7 @@
<el-input placeholder="请输入采购单据编号" v-model="state.queryForm.planCode" />
</el-form-item>
<el-form-item label="单据日期" prop="planDate">
<el-date-picker type="date" placeholder="请输入单据日期" v-model="state.queryForm.planDate" />
<el-date-picker v-model="state.queryForm.planDate" type="date" placeholder="请输入单据日期" value-format="YYYY-MM-DD" />
</el-form-item>
<el-form-item label="经办人" prop="handlerUserId">
<SelectHandlerUser v-model.trim="state.queryForm.handlerUserId" placeholder="请选择经办人" style="width: 200px" />
@@ -72,7 +72,15 @@
<el-table-column prop="remark" label="备注" show-overflow-tooltip />
<el-table-column label="操作" width="150">
<template #default="scope">
<el-button v-if="scope.row.checkStatus == '2'" icon="MessageBox" text type="success" @click="edit(scope.row)">详情</el-button>
<el-button
v-if="scope.row.checkStatus == '2' || scope.row.checkStatus == '3'"
icon="MessageBox"
text
type="success"
@click="edit(scope.row)"
>
详情
</el-button>
<el-button v-else icon="edit-pen" text type="primary" v-auth="'supermarket_smErpCgPlan_edit'" @click="edit(scope.row)">
编辑
</el-button>
@@ -82,7 +90,7 @@
<el-button
type="primary"
size="small"
v-if="scope.row.checkStatus != '2' && scope.row.taskId"
v-if="scope.row.checkStatus == '1' && scope.row.taskId"
link
icon="VideoPlay"
@click="deal(scope.row)"