Browse Source

器具维修页面修改

master
zhaoxuebing 11 months ago
parent
commit
6811c07f67
  1. 11
      src/views/wms/inventoryManage/containerinit/containerinitadd/containerMain.data.ts
  2. 2
      src/views/wms/inventoryManage/containerinit/containerinitadd/index.vue

11
src/views/wms/inventoryManage/containerinit/containerinitadd/containerMain.data.ts

@ -8,26 +8,21 @@ import * as BalanceApi from "@/api/wms/balance";
// 表单校验 // 表单校验
export const ContainerMainRules = reactive({ export const ContainerMainRules = reactive({
number: [
{ required: true, message: '请输入号码', trigger: 'blur' }
],
type: [ type: [
{ required: true, message: '请选择类型', trigger: 'change' } { required: true, message: '请选择类型', trigger: 'change' }
], ],
status: [ status: [
{ required: true, message: '请选择状态', trigger: 'change' } { required: true, message: '请选择状态', trigger: 'change' }
], ]
ownerCode: [
{ required: true, message: '请选择货主代码', trigger: 'change' }
],
}) })
export const ContainerMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ContainerMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '号', label: '单据号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
isForm: false,
}, },
{ {
label: '类型', label: '类型',

2
src/views/wms/inventoryManage/containerinit/containerinitadd/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #number="{row}"> <template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '号', row.number)"> <el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
<span>{{ row.number }}</span> <span>{{ row.number }}</span>
</el-button> </el-button>
</template> </template>

Loading…
Cancel
Save