Browse Source

客户模块弹层修改

master
李胜楠 1 year ago
parent
commit
9d569f4330
  1. 64
      src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts
  2. 25
      src/views/wms/basicDataManage/customerManage/customerdock/index.vue
  3. 14
      src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts
  4. 11
      src/views/wms/basicDataManage/customerManage/project/index.vue
  5. 30
      src/views/wms/basicDataManage/customerManage/project/project.data.ts
  6. 18
      src/views/wms/basicDataManage/customerManage/saleprice/index.vue
  7. 48
      src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts

64
src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts

@ -1,5 +1,15 @@
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 WarehouseApi from '@/api/wms/warehouse'
import { Warehouse } from '../../factoryModeling/warehouse/warehouse.data'
import * as LocationApi from '@/api/wms/location'
import { Location } from '../../factoryModeling/location/location.data'
const { t } = useI18n() // 国际化
import {validateHanset,validateYS} from '@/utils/validator'
@ -73,6 +83,24 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
table: {
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择客户代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '客户基础信息', // 查询弹窗标题
searchAllSchemas: Customer.allSchemas, // 查询弹窗所需类
searchPage: CustomerApi.getCustomerPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
action: '==',
isSearch: true,
isMainValue: false
}]
}
}
},
{
@ -82,6 +110,24 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '仓库基础信息', // 查询弹窗标题
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
action: '==',
isSearch: true,
isMainValue: false
}]
}
}
},
{
label: '默认库位',
@ -90,6 +136,24 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位基础信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
action: '==',
isSearch: true,
isMainValue: false
}]
}
}
},
{
label: '是否可用',

25
src/views/wms/basicDataManage/customerManage/customerdock/index.vue

@ -44,7 +44,6 @@
@success="formsSuccess"
:rules="CustomerdockRules"
:formAllSchemas="Customerdock.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="CustomerdockApi.updateCustomerdock"
:apiCreate="CustomerdockApi.createCustomerdock"
@searchTableSuccess="searchTableSuccess"
@ -61,13 +60,7 @@
<script setup lang="ts">
import download from '@/utils/download'
import * as CustomerdockApi from '@/api/wms/customerdock'
import * as CustomerApi from '@/api/wms/customer'
import * as WarehouseApi from '@/api/wms/warehouse'
import * as LocationApi from '@/api/wms/location'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Warehouse } from '../../factoryModeling/warehouse/warehouse.data'
import { Location } from '../../factoryModeling/location/location.data'
import { Customer } from '../customer/customer.data'
import { Customerdock, CustomerdockRules } from './customerdock.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
@ -89,24 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val
}
//
const searchTableParams = ref([{
formField: 'customerCode',
searchTableTitle: '客户信息',
searchTableAllSchemas: Customer.allSchemas,
searchTablePage: CustomerApi.getCustomerPage
},{
formField: 'warehouseCode',
searchTableTitle: '仓库信息',
searchTableAllSchemas: Warehouse.allSchemas,
searchTablePage: WarehouseApi.getWarehousePage
},{
formField: 'defaultLocationCode',
searchTableTitle: '库位信息',
searchTableAllSchemas: Location.allSchemas,
searchTablePage: LocationApi.getLocationPage
}])
const { tableObject, tableMethods } = useTable({
getListApi: CustomerdockApi.getCustomerdockPage //
})

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

@ -31,7 +31,12 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '客户信息', // 查询弹窗标题
searchAllSchemas: Customer.allSchemas, // 查询弹窗所需类
searchPage: CustomerApi.getCustomerPage // 查询弹窗所需分页方法
searchPage: CustomerApi.getCustomerPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
},
isSearch: true
@ -51,7 +56,12 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '物品基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
},
isSearch: true

11
src/views/wms/basicDataManage/customerManage/project/index.vue

@ -44,7 +44,6 @@
@success="formsSuccess"
:rules="ProjectRules"
:formAllSchemas="Project.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="ProjectApi.updateProject"
:apiCreate="ProjectApi.createProject"
@searchTableSuccess="searchTableSuccess"
@ -61,10 +60,8 @@
<script setup lang="ts">
import download from '@/utils/download'
import * as ProjectApi from '@/api/wms/project'
import * as CustomerApi from '@/api/wms/customer'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Project, ProjectRules } from './project.data'
import { Customer } from '../customer/customer.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
@ -85,14 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val
}
//
const searchTableParams = ref([{
formField: 'customerCode',
searchTableTitle: '客户信息',
searchTableAllSchemas: Customer.allSchemas,
searchTablePage: CustomerApi.getCustomerPage
}])
const { tableObject, tableMethods } = useTable({
getListApi: ProjectApi.getProjectPage //
})

30
src/views/wms/basicDataManage/customerManage/project/project.data.ts

@ -1,5 +1,9 @@
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'
const { t } = useI18n() // 国际化
import {validateYS} from '@/utils/validator'
@ -13,7 +17,6 @@ export const Project = useCrudSchemas(reactive<CrudSchema[]>([
field: 'code',
sort: 'custom',
table: {
width: 150,
fixed: 'left'
},
isSearch: true,
@ -22,19 +25,29 @@ export const Project = useCrudSchemas(reactive<CrudSchema[]>([
label: '名称',
field: 'name',
sort: 'custom',
table: {
width: 150
},
isSearch: true,
},
{
label: '客户代码',
field: 'customerCode',
sort: 'custom',
table: {
width: 150
},
isSearch: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择客户代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '客户信息', // 查询弹窗标题
searchAllSchemas: Customer.allSchemas, // 查询弹窗所需类
searchPage: CustomerApi.getCustomerPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
},
},
{
label: '是否可用',
@ -44,9 +57,6 @@ export const Project = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true,
isSearch: true,
sort: 'custom',
table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',

18
src/views/wms/basicDataManage/customerManage/saleprice/index.vue

@ -44,7 +44,6 @@
@success="formsSuccess"
:rules="SalepriceRules"
:formAllSchemas="Saleprice.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="SalepriceApi.updateSaleprice"
:apiCreate="SalepriceApi.createSaleprice"
@searchTableSuccess="searchTableSuccess"
@ -61,12 +60,8 @@
<script setup lang="ts">
import download from '@/utils/download'
import * as SalepriceApi from '@/api/wms/saleprice'
import * as ItembasicApi from '@/api/wms/itembasic'
import * as CustomerApi from '@/api/wms/customer'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Saleprice, SalepriceRules } from './saleprice.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: SalepriceApi.getSalepricePage //
})

48
src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts

@ -1,5 +1,13 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import * as CustomeritemApi from '@/api/wms/customeritem'
import { Customeritem } from '../customeritem/customeritem.data'
import * as CustomerApi from '@/api/wms/customer'
import { Customer } from '../customer/customer.data'
const { t } = useI18n() // 国际化
/**
@ -14,7 +22,23 @@ export const Saleprice = useCrudSchemas(reactive<CrudSchema[]>([
width: 150,
fixed: 'left'
},
isSearch: true
isSearch: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择客户代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '客户信息', // 查询弹窗标题
searchAllSchemas: Customer.allSchemas, // 查询弹窗所需类
searchPage: CustomerApi.getCustomerPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
},
},
{
label: '物料代码',
@ -23,7 +47,27 @@ export const Saleprice = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isSearch: true
isSearch: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择物品代码', // 输入框占位文本
searchField: 'itemCode', // 查询弹窗赋值字段
searchTitle: '客户物品信息', // 查询弹窗标题
searchAllSchemas: Customeritem.allSchemas, // 查询弹窗所需类
searchPage: CustomeritemApi.getCustomeritemPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'customerCode',
value: 'customerCode',
isMainValue: true
}]
}
},
},
{
label: '货币',

Loading…
Cancel
Save