Browse Source

客户物品页面修改

master
李胜楠 1 year ago
parent
commit
d57f773dfb
  1. 32
      src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts
  2. 20
      src/views/wms/basicDataManage/customerManage/customeritem/index.vue

32
src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts

@ -1,5 +1,12 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import * as CustomerApi from '@/api/wms/customer'
import { Customer } from '../customer/customer.data'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
const { t } = useI18n() // 国际化
/**
@ -14,6 +21,17 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
width: 150,
fixed: 'left'
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择客户代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '客户信息', // 查询弹窗标题
searchAllSchemas: Customer.allSchemas, // 查询弹窗所需类
searchPage: CustomerApi.getCustomerPage // 查询弹窗所需分页方法
}
},
isSearch: true
},
{
@ -23,6 +41,17 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择物品代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '物品基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法
}
},
isSearch: true
},
{
@ -55,7 +84,8 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'InputNumber',
componentProps: {
min: 0
min: 0,
precision: 6
}
},
},

20
src/views/wms/basicDataManage/customerManage/customeritem/index.vue

@ -43,8 +43,7 @@
ref="basicFormRef"
@success="formsSuccess"
:rules="CustomeritemRules"
:formAllSchemas="Customeritem.allSchemas"
:searchTableParams="searchTableParams"
:formAllSchemas="Customeritem.allSchemas"
:apiUpdate="CustomeritemApi.updateCustomeritem"
:apiCreate="CustomeritemApi.createCustomeritem"
@searchTableSuccess="searchTableSuccess"
@ -61,12 +60,8 @@
<script setup lang="ts">
import download from '@/utils/download'
import * as CustomeritemApi from '@/api/wms/customeritem'
import * as ItembasicApi from '@/api/wms/itembasic'
import * as CustomerApi from '@/api/wms/customer'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Customeritem, CustomeritemRules } from './customeritem.data'
import { Customer } from '../customer/customer.data'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
@ -87,19 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val
}
//
const searchTableParams = ref([{
formField: 'customerCode',
searchTableTitle: '客户信息',
searchTableAllSchemas: Customer.allSchemas,
searchTablePage: CustomerApi.getCustomerPage
},{
formField: 'itemCode',
searchTableTitle: '物料信息',
searchTableAllSchemas: Itembasic.allSchemas,
searchTablePage: ItembasicApi.getItembasicPage
}])
const { tableObject, tableMethods } = useTable({
getListApi: CustomeritemApi.getCustomeritemPage //
})

Loading…
Cancel
Save