Browse Source

基础数据管理修改查询弹窗组件

master
陈薪名 1 year ago
parent
commit
175d6f0428
  1. 43
      src/components/BasicForm/src/BasicForm.vue
  2. 25
      src/components/Detail/src/Detail.vue
  3. 44
      src/components/Form/src/Form.vue
  4. 26
      src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts
  5. 16
      src/views/wms/basicDataManage/documentSetting/businesstype/index.vue
  6. 5
      src/views/wms/basicDataManage/documentSetting/documentsetting/index.vue
  7. 5
      src/views/wms/basicDataManage/documentSetting/recordsetting/index.vue
  8. 5
      src/views/wms/basicDataManage/documentSetting/requestsetting/index.vue
  9. 5
      src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue
  10. 15
      src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts
  11. 11
      src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue
  12. 29
      src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts
  13. 18
      src/views/wms/basicDataManage/factoryModeling/dock/index.vue
  14. 22
      src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue
  15. 25
      src/views/wms/basicDataManage/factoryModeling/location/index.vue
  16. 46
      src/views/wms/basicDataManage/factoryModeling/location/location.data.ts
  17. 18
      src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue
  18. 29
      src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts
  19. 18
      src/views/wms/basicDataManage/factoryModeling/process/index.vue
  20. 29
      src/views/wms/basicDataManage/factoryModeling/process/process.data.ts
  21. 23
      src/views/wms/basicDataManage/factoryModeling/productionline/index.vue
  22. 40
      src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts
  23. 30
      src/views/wms/basicDataManage/factoryModeling/workstation/index.vue
  24. 54
      src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts
  25. 26
      src/views/wms/basicDataManage/itemManage/bom/bom.data.ts
  26. 22
      src/views/wms/basicDataManage/itemManage/bom/index.vue
  27. 11
      src/views/wms/basicDataManage/itemManage/itempackaging/index.vue
  28. 14
      src/views/wms/basicDataManage/itemManage/itempackaging/itempackaging.data.ts
  29. 26
      src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue
  30. 53
      src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts
  31. 18
      src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue
  32. 29
      src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts
  33. 2
      src/views/wms/basicDataManage/orderManage/carrier/index.vue
  34. 2
      src/views/wms/basicDataManage/orderManage/owner/index.vue
  35. 2
      src/views/wms/basicDataManage/orderManage/shift/index.vue
  36. 2
      src/views/wms/basicDataManage/orderManage/team/index.vue
  37. 5
      src/views/wms/basicDataManage/strategySetting/condition/index.vue
  38. 5
      src/views/wms/basicDataManage/strategySetting/configuration/index.vue
  39. 5
      src/views/wms/basicDataManage/strategySetting/configurationsetting/index.vue
  40. 5
      src/views/wms/basicDataManage/strategySetting/paramsetting/index.vue
  41. 5
      src/views/wms/basicDataManage/strategySetting/rule/index.vue
  42. 18
      src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue
  43. 31
      src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts
  44. 2
      src/views/wms/basicDataManage/supplierManage/supplier/index.vue
  45. 32
      src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue
  46. 57
      src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts
  47. 2
      src/views/wms/basicDataManage/systemSetting/accountcalendar/index.vue
  48. 2
      src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue
  49. 2
      src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue
  50. 45
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
  51. 37
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts

43
src/components/BasicForm/src/BasicForm.vue

@ -1,10 +1,17 @@
<template> <template>
<Dialog :title="dialogTitle" v-model="dialogVisible" :width="isBusiness?'60%':'40%'"> <Dialog :title="dialogTitle" v-model="dialogVisible" :width="isBusiness?'60%':'40%'">
<Form ref="formRef" v-loading="formLoading" :rules="rules" :schema="formSchema" :is-col="true" > <Form
ref="formRef"
v-loading="formLoading"
:rules="rules"
:schema="formSchema"
:is-col="true"
@opensearchTable="opensearchTable"
>
<!-- <template #productItemCode="form"> <!-- <template #productItemCode="form">
<slot name="productItemCode" :param="form"></slot> <slot name="productItemCode" :param="form"></slot>
</template> --> </template> -->
<template #itemCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'itemCode'))"> <!-- <template #itemCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'itemCode'))">
<div class="w-[100%] flex"> <div class="w-[100%] flex">
<el-input v-model="form['itemCode']" :placeholder="'请选择物料代码'" @click="opensearchTable('itemCode', 'code')" /> <el-input v-model="form['itemCode']" :placeholder="'请选择物料代码'" @click="opensearchTable('itemCode', 'code')" />
</div> </div>
@ -113,7 +120,7 @@
<div class="w-[100%] flex"> <div class="w-[100%] flex">
<el-input v-model="form['carrierCode']" :placeholder="'请选择承运商代码'" @click="opensearchTable('carrierCode', 'code')" /> <el-input v-model="form['carrierCode']" :placeholder="'请选择承运商代码'" @click="opensearchTable('carrierCode', 'code')" />
</div> </div>
</template> </template> -->
</Form> </Form>
<div class="table" v-if="isBusiness && formType == 'create'"> <div class="table" v-if="isBusiness && formType == 'create'">
<TableForm ref="tableFormRef" <TableForm ref="tableFormRef"
@ -175,11 +182,11 @@ const props = defineProps({
default: null default: null
}, },
// //
searchTableParams: { // searchTableParams: {
type: Array, // type: Array,
required: false, // required: false,
default: null // default: null
}, // },
// APIVo // APIVo
apiVo: { apiVo: {
type: Object, type: Object,
@ -229,17 +236,15 @@ const formType = ref('') // 表单的类型:create - 新增;update - 修改
const formRef = ref() // Ref const formRef = ref() // Ref
const formSchema = ref(props.formAllSchemas?.formSchema) const formSchema = ref(props.formAllSchemas?.formSchema)
/** 弹层操作 */ /** 弹层操作 */
// formField form // formField form
// searchField // searchField
// type type=tableForm // type type=tableForm
const searchTableRef = ref() const searchTableRef = ref()
const opensearchTable = (formField, searchField, type, row) => { const opensearchTable = (formField, searchField, searchTitle, searchAllSchemas, searchPage, type, row) => {
const _searchTableParamsObject:any = props.searchTableParams.find((item:any) => (item.formField == formField)) const _searchTableTitle = searchTitle
const _searchTableTitle = _searchTableParamsObject.searchTableTitle const _searchTableAllSchemas = searchAllSchemas
const _searchTableAllSchemas = _searchTableParamsObject.searchTableAllSchemas const _searchTablePage = searchPage
const _searchTablePage = _searchTableParamsObject.searchTablePage
searchTableRef.value.open(_searchTableTitle, _searchTableAllSchemas, _searchTablePage, formField, searchField, type, row) searchTableRef.value.open(_searchTableTitle, _searchTableAllSchemas, _searchTablePage, formField, searchField, type, row)
} }
// //
@ -404,7 +409,15 @@ const handleAddTable = () => {
} }
// //
const inpuFocus = (headerItem, row, index) => { const inpuFocus = (headerItem, row, index) => {
opensearchTable(headerItem.field, 'poNumber', 'tableForm', row) opensearchTable(
headerItem.field,
headerItem.tableForm.searchField,
headerItem.tableForm.searchTitle,
headerItem.tableForm.searchAllSchemas,
headerItem.tableForm.searchPage,
'tableForm',
row
)
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

25
src/components/Detail/src/Detail.vue

@ -56,7 +56,6 @@
@success="getList" @success="getList"
:rules="detailAllSchemasRules" :rules="detailAllSchemasRules"
:formAllSchemas="detailAllSchemas" :formAllSchemas="detailAllSchemas"
:searchTableParams="searchTableParams"
:isBusiness="false" :isBusiness="false"
:apiUpdate="apiUpdate" :apiUpdate="apiUpdate"
:apiCreate="apiCreate" :apiCreate="apiCreate"
@ -116,12 +115,6 @@ const props = defineProps({
type: Object, type: Object,
required: true, required: true,
default: null default: null
},
//
searchTableParams: {
type: Array,
required: true,
default: null
}, },
// API // API
apiCreate: { apiCreate: {
@ -344,19 +337,13 @@ const openForm = async (type: string, row?: number) => {
formRef.value.open(type, row, masterParmas.value) formRef.value.open(type, row, masterParmas.value)
} }
// //
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => { emit('searchTableSuccessDetail', formField, searchField, val, formRef)
if (type == 'tableForm') {
} else {
const setV = {}
setV[formField] = val[0][searchField]
props.Echo.forEach((item)=>{
setV[item] = val[0][item]
})
formRef.setValues(setV)
}
})
} }
//
const emit = defineEmits([
'searchTableSuccessDetail',
])
/** 删除按钮操作 */ /** 删除按钮操作 */
const handleDelete = async (id: number) => { const handleDelete = async (id: number) => {
try { try {

44
src/components/Form/src/Form.vue

@ -1,6 +1,6 @@
<script lang="tsx"> <script lang="tsx">
import { computed, defineComponent, onMounted, PropType, ref, unref, watch } from 'vue' import { computed, defineComponent, onMounted, PropType, ref, unref, watch } from 'vue'
import { ElCol, ElForm, ElFormItem, ElRow, ElTooltip } from 'element-plus' import { ElButton, ElCol, ElForm, ElFormItem, ElInput, ElRow, ElTooltip } from 'element-plus'
import { componentMap } from './componentMap' import { componentMap } from './componentMap'
import { propTypes } from '@/utils/propTypes' import { propTypes } from '@/utils/propTypes'
import { getSlot } from '@/utils/tsxHelper' import { getSlot } from '@/utils/tsxHelper'
@ -21,6 +21,7 @@ import { set } from 'lodash-es'
import { FormProps } from './types' import { FormProps } from './types'
import { Icon } from '@/components/Icon' import { Icon } from '@/components/Icon'
import { FormSchema, FormSetPropsType } from '@/types/form' import { FormSchema, FormSetPropsType } from '@/types/form'
import { Search } from '@element-plus/icons-vue'
const { getPrefixCls } = useDesign() const { getPrefixCls } = useDesign()
@ -53,7 +54,7 @@ export default defineComponent({
vLoading: propTypes.bool.def(false), vLoading: propTypes.bool.def(false),
labelPosition: propTypes.string.def('left'), labelPosition: propTypes.string.def('left'),
}, },
emits: ['register'], emits: ['register','opensearchTable'],
setup(props, { slots, expose, emit }) { setup(props, { slots, expose, emit }) {
// element form // element form
const elFormRef = ref<ComponentRef<typeof ElForm>>() const elFormRef = ref<ComponentRef<typeof ElForm>>()
@ -119,6 +120,11 @@ export default defineComponent({
return unref(elFormRef) as ComponentRef<typeof ElForm> return unref(elFormRef) as ComponentRef<typeof ElForm>
} }
const opensearchTable = (field, searchField,searchTitle,searchAllSchemas, searchPage) => {
console.log(124, field)
emit('opensearchTable',field, searchField, searchTitle, searchAllSchemas, searchPage)
}
expose({ expose({
setValues, setValues,
formModel, formModel,
@ -126,7 +132,8 @@ export default defineComponent({
delSchema, delSchema,
addSchema, addSchema,
setSchema, setSchema,
getElFormRef getElFormRef,
opensearchTable
}) })
// formModel // formModel
@ -213,6 +220,27 @@ export default defineComponent({
) )
} }
} }
// isSearchList: true 使
const formItemSlotsSearchList: Recordable = setFormItemSlots(slots, item.field)
if (item?.componentProps?.isSearchList) {
formItemSlotsSearchList[item.field] = () => {
return (
<>
<ElInput v-model={formModel.value[item.field]} placeholder={item?.componentProps?.searchListPlaceholder} onClick={()=>{
opensearchTable(
item.field, item?.componentProps?.searchField,
item?.componentProps?.searchTitle,
item?.componentProps?.searchAllSchemas,
item?.componentProps?.searchPage
)}}>
{/* <template v-slot:append >.com</template> */}
</ElInput>
{/* <ElButton >ddd</ElButton> */}
</>
)
}
}
return ( return (
<ElFormItem {...(item.formItemProps || {})} prop={item.field} label={item.label || ''}> <ElFormItem {...(item.formItemProps || {})} prop={item.field} label={item.label || ''}>
{{ {{
@ -221,10 +249,11 @@ export default defineComponent({
const Com = componentMap[item.component as string] as ReturnType< const Com = componentMap[item.component as string] as ReturnType<
typeof defineComponent typeof defineComponent
> >
const { autoSetPlaceholder } = unref(getProps) const { autoSetPlaceholder } = unref(getProps)
//
return slots[item.field] ? ( return formItemSlotsSearchList[item.field] ?
(getSlot(formItemSlotsSearchList, item.field, formModel.value)) :
slots[item.field] ? (
getSlot(slots, item.field, formModel.value) getSlot(slots, item.field, formModel.value)
) : ( ) : (
<Com <Com
@ -240,7 +269,7 @@ export default defineComponent({
{{ ...slotsMap }} {{ ...slotsMap }}
</Com> </Com>
) )
} },
}} }}
</ElFormItem> </ElFormItem>
) )
@ -296,6 +325,7 @@ export default defineComponent({
} }
}} }}
</ElForm> </ElForm>
) )
} }
}) })

26
src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts

@ -1,5 +1,9 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as AreaApi from '@/api/wms/areabasic'
import { Area } from '@/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -83,6 +87,17 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库区代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库区信息', // 查询弹窗标题
searchAllSchemas: Area.allSchemas, // 查询弹窗所需类
searchPage: AreaApi.getAreaPage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '入库库区范围', label: '入库库区范围',
@ -91,6 +106,17 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库区代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库区信息', // 查询弹窗标题
searchAllSchemas: Area.allSchemas, // 查询弹窗所需类
searchPage: AreaApi.getAreaPage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '出库库存状态范围', label: '出库库存状态范围',

16
src/views/wms/basicDataManage/documentSetting/businesstype/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="BusinesstypeRules" :rules="BusinesstypeRules"
:formAllSchemas="Businesstype.allSchemas" :formAllSchemas="Businesstype.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="BusinesstypeApi.updateBusinesstype" :apiUpdate="BusinesstypeApi.updateBusinesstype"
:apiCreate="BusinesstypeApi.createBusinesstype" :apiCreate="BusinesstypeApi.createBusinesstype"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -61,9 +60,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as BusinesstypeApi from '@/api/wms/businesstype' import * as BusinesstypeApi from '@/api/wms/businesstype'
import * as AreaApi from '@/api/wms/areabasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Area } from '../../factoryModeling/areabasic/areabasic.data'
import { Businesstype, BusinesstypeRules } from './businesstype.data' import { Businesstype, BusinesstypeRules } from './businesstype.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
@ -85,19 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'outAreaCodes',
searchTableTitle: '库区信息',
searchTableAllSchemas: Area.allSchemas,
searchTablePage: AreaApi.getAreaPage
},{
formField: 'inAreaCodes',
searchTableTitle: '库区信息',
searchTableAllSchemas: Area.allSchemas,
searchTablePage: AreaApi.getAreaPage
}])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: BusinesstypeApi.getBusinesstypePage // getListApi: BusinesstypeApi.getBusinesstypePage //
}) })

5
src/views/wms/basicDataManage/documentSetting/documentsetting/index.vue

@ -44,9 +44,6 @@
@success="getList" @success="getList"
:rules="DocumentsettingRules" :rules="DocumentsettingRules"
:formAllSchemas="Documentsetting.allSchemas" :formAllSchemas="Documentsetting.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="Itembasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="DocumentsettingApi.updateDocumentsetting" :apiUpdate="DocumentsettingApi.updateDocumentsetting"
:apiCreate="DocumentsettingApi.createDocumentsetting" :apiCreate="DocumentsettingApi.createDocumentsetting"
:isBusiness="false" :isBusiness="false"
@ -62,9 +59,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as DocumentsettingApi from '@/api/wms/documentsetting' import * as DocumentsettingApi from '@/api/wms/documentsetting'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Documentsetting, DocumentsettingRules } from './documentsetting.data' import { Documentsetting, DocumentsettingRules } from './documentsetting.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

5
src/views/wms/basicDataManage/documentSetting/recordsetting/index.vue

@ -44,9 +44,6 @@
@success="getList" @success="getList"
:rules="RecordsettingRules" :rules="RecordsettingRules"
:formAllSchemas="Recordsetting.allSchemas" :formAllSchemas="Recordsetting.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="Itembasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="RecordsettingApi.updateRecordsetting" :apiUpdate="RecordsettingApi.updateRecordsetting"
:apiCreate="RecordsettingApi.createRecordsetting" :apiCreate="RecordsettingApi.createRecordsetting"
:isBusiness="false" :isBusiness="false"
@ -62,9 +59,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as RecordsettingApi from '@/api/wms/recordsetting' import * as RecordsettingApi from '@/api/wms/recordsetting'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Recordsetting, RecordsettingRules } from './recordsetting.data' import { Recordsetting, RecordsettingRules } from './recordsetting.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

5
src/views/wms/basicDataManage/documentSetting/requestsetting/index.vue

@ -44,9 +44,6 @@
@success="getList" @success="getList"
:rules="RequestsettingRules" :rules="RequestsettingRules"
:formAllSchemas="Requestsetting.allSchemas" :formAllSchemas="Requestsetting.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="Itembasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="RequestsettingApi.updateRequestsetting" :apiUpdate="RequestsettingApi.updateRequestsetting"
:apiCreate="RequestsettingApi.createRequestsetting" :apiCreate="RequestsettingApi.createRequestsetting"
:isBusiness="false" :isBusiness="false"
@ -62,9 +59,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as RequestsettingApi from '@/api/wms/requestsetting' import * as RequestsettingApi from '@/api/wms/requestsetting'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Requestsetting, RequestsettingRules } from './requestsetting.data' import { Requestsetting, RequestsettingRules } from './requestsetting.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

5
src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue

@ -44,9 +44,6 @@
@success="getList" @success="getList"
:rules="TransactiontypeRules" :rules="TransactiontypeRules"
:formAllSchemas="Transactiontype.allSchemas" :formAllSchemas="Transactiontype.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="Itembasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="TransactiontypeApi.updateTransactiontype" :apiUpdate="TransactiontypeApi.updateTransactiontype"
:apiCreate="TransactiontypeApi.createTransactiontype" :apiCreate="TransactiontypeApi.createTransactiontype"
:isBusiness="false" :isBusiness="false"
@ -62,9 +59,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as TransactiontypeApi from '@/api/wms/transactiontype' import * as TransactiontypeApi from '@/api/wms/transactiontype'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Transactiontype, TransactiontypeRules } from './transactiontype.data' import { Transactiontype, TransactiontypeRules } from './transactiontype.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

15
src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts

@ -1,5 +1,9 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as WarehouseApi from '@/api/wms/warehouse'
import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -31,6 +35,17 @@ export const Area = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '仓库信息', // 查询弹窗标题
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
searchPage: WarehouseApi.getWarehousePage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '类型', label: '类型',

11
src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="AreaRules" :rules="AreaRules"
:formAllSchemas="Area.allSchemas" :formAllSchemas="Area.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="AreaApi.updateArea" :apiUpdate="AreaApi.updateArea"
:apiCreate="AreaApi.createArea" :apiCreate="AreaApi.createArea"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -61,10 +60,8 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as AreaApi from '@/api/wms/areabasic' import * as AreaApi from '@/api/wms/areabasic'
import * as WarehouseApi from '@/api/wms/warehouse'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Area, AreaRules } from './areabasic.data' import { Area, AreaRules } from './areabasic.data'
import { Warehouse } from '../warehouse/warehouse.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
@ -85,14 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'warehouseCode',
searchTableTitle: '仓库信息',
searchTableAllSchemas: Warehouse.allSchemas,
searchTablePage: WarehouseApi.getWarehousePage
}])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: AreaApi.getAreaPage // getListApi: AreaApi.getAreaPage //
}) })

29
src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts

@ -1,5 +1,12 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as WarehouseApi from '@/api/wms/warehouse'
import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data'
import * as LocationApi from '@/api/wms/location'
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -60,6 +67,17 @@ export const Dock = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '仓库信息', // 查询弹窗标题
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
searchPage: WarehouseApi.getWarehousePage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '默认库位代码', label: '默认库位代码',
@ -68,6 +86,17 @@ export const Dock = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '联系人姓名', label: '联系人姓名',

18
src/views/wms/basicDataManage/factoryModeling/dock/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="DockRules" :rules="DockRules"
:formAllSchemas="Dock.allSchemas" :formAllSchemas="Dock.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="DockApi.updateDock" :apiUpdate="DockApi.updateDock"
:apiCreate="DockApi.createDock" :apiCreate="DockApi.createDock"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -61,12 +60,8 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as DockApi from '@/api/wms/dock' import * as DockApi from '@/api/wms/dock'
import * as WarehouseApi from '@/api/wms/warehouse'
import * as LocationApi from '@/api/wms/location'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Dock, DockRules } from './dock.data' import { Dock, DockRules } from './dock.data'
import { Location } from '../location/location.data'
import { Warehouse } from '../warehouse/warehouse.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
@ -87,19 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'warehouseCode',
searchTableTitle: '仓库信息',
searchTableAllSchemas: Warehouse.allSchemas,
searchTablePage: WarehouseApi.getWarehousePage
},{
formField: 'defaultLocationCode',
searchTableTitle: '库位信息',
searchTableAllSchemas: Location.allSchemas,
searchTablePage: LocationApi.getLocationPage
}])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: DockApi.getDockPage // getListApi: DockApi.getDockPage //
}) })

22
src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue

@ -43,7 +43,6 @@
@success="getList" @success="getList"
:rules="EnterpriseRules" :rules="EnterpriseRules"
:formAllSchemas="Enterprise.allSchemas" :formAllSchemas="Enterprise.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="EnterpriseApi.updateEnterprise" :apiUpdate="EnterpriseApi.updateEnterprise"
:apiCreate="EnterpriseApi.createEnterprise" :apiCreate="EnterpriseApi.createEnterprise"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -78,18 +77,8 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([
//{
// formField: 'productItemCode',
// searchTableTitle: '',
// searchTableAllSchemas: Itembasic.allSchemas,
// searchTablePage: ItembasicApi.getItembasicPage
//}
])
// //
const searchTableSuccess = (formField, searchField, val, basicFormRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, basicFormRef ) => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
@ -138,15 +127,6 @@ const buttonBaseClick = (val, item) => {
} }
} }
//
const isShowMainButton = (row,val) => {
if (val.indexOf(row.status) > -1) {
return false
} else {
return true
}
}
// - // -
const butttondata = [ const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:enterprise:update'}), // defaultButtons.mainListEditBtn({hasPermi:'wms:enterprise:update'}), //

25
src/views/wms/basicDataManage/factoryModeling/location/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="LocationRules" :rules="LocationRules"
:formAllSchemas="Location.allSchemas" :formAllSchemas="Location.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="LocationApi.updateLocation" :apiUpdate="LocationApi.updateLocation"
:apiCreate="LocationApi.createLocation" :apiCreate="LocationApi.createLocation"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -61,14 +60,8 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as LocationApi from '@/api/wms/location' import * as LocationApi from '@/api/wms/location'
import * as WarehouseApi from '@/api/wms/warehouse'
import * as AreaApi from '@/api/wms/areabasic'
import * as LocationgroupApi from '@/api/wms/locationgroup'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Location, LocationRules } from './location.data' import { Location, LocationRules } from './location.data'
import { Locationgroup } from '../locationgroup/locationgroup.data'
import { Area } from '../areabasic/areabasic.data'
import { Warehouse } from '../warehouse/warehouse.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
@ -89,24 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'warehouseCode',
searchTableTitle: '仓库信息',
searchTableAllSchemas: Warehouse.allSchemas,
searchTablePage: WarehouseApi.getWarehousePage
},{
formField: 'areaCode',
searchTableTitle: '库区信息',
searchTableAllSchemas: Area.allSchemas,
searchTablePage: AreaApi.getAreaPage
},{
formField: 'locationGroupCode',
searchTableTitle: '库位组信息',
searchTableAllSchemas: Locationgroup.allSchemas,
searchTablePage: LocationgroupApi.getLocationgroupPage
}])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: LocationApi.getLocationPage // getListApi: LocationApi.getLocationPage //
}) })

46
src/views/wms/basicDataManage/factoryModeling/location/location.data.ts

@ -1,5 +1,14 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as AreaApi from '@/api/wms/areabasic'
import { Area } from '@/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data'
import * as WarehouseApi from '@/api/wms/warehouse'
import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data'
import * as LocationgroupApi from '@/api/wms/locationgroup'
import { Locationgroup } from '@/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -31,14 +40,36 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '仓库信息', // 查询弹窗标题
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
searchPage: WarehouseApi.getWarehousePage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '区域代码', label: '区代码',
field: 'areaCode', field: 'areaCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库区代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库区信息', // 查询弹窗标题
searchAllSchemas: Area.allSchemas, // 查询弹窗所需类
searchPage: AreaApi.getAreaPage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '库位组代码', label: '库位组代码',
@ -47,6 +78,17 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库区代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库区信息', // 查询弹窗标题
searchAllSchemas: Locationgroup.allSchemas, // 查询弹窗所需类
searchPage: LocationgroupApi.getLocationgroupPage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: 'ERP库位代码', label: 'ERP库位代码',
@ -58,7 +100,7 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, }
}, },
{ {
label: '类型', label: '类型',

18
src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="LocationgroupRules" :rules="LocationgroupRules"
:formAllSchemas="Locationgroup.allSchemas" :formAllSchemas="Locationgroup.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="LocationgroupApi.updateLocationgroup" :apiUpdate="LocationgroupApi.updateLocationgroup"
:apiCreate="LocationgroupApi.createLocationgroup" :apiCreate="LocationgroupApi.createLocationgroup"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -61,12 +60,8 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as LocationgroupApi from '@/api/wms/locationgroup' import * as LocationgroupApi from '@/api/wms/locationgroup'
import * as WarehouseApi from '@/api/wms/warehouse'
import * as AreaApi from '@/api/wms/areabasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Locationgroup, LocationgroupRules } from './locationgroup.data' import { Locationgroup, LocationgroupRules } from './locationgroup.data'
import { Area } from '../areabasic/areabasic.data'
import { Warehouse } from '../warehouse/warehouse.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
@ -87,19 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'warehouseCode',
searchTableTitle: '仓库信息',
searchTableAllSchemas: Warehouse.allSchemas,
searchTablePage: WarehouseApi.getWarehousePage
},{
formField: 'areaCode',
searchTableTitle: '库区信息',
searchTableAllSchemas: Area.allSchemas,
searchTablePage: AreaApi.getAreaPage
}])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: LocationgroupApi.getLocationgroupPage // getListApi: LocationgroupApi.getLocationgroupPage //
}) })

29
src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts

@ -1,5 +1,12 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as AreaApi from '@/api/wms/areabasic'
import { Area } from '@/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data'
import * as WarehouseApi from '@/api/wms/warehouse'
import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -33,6 +40,17 @@ export const Locationgroup = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isSearch: true, isSearch: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '仓库信息', // 查询弹窗标题
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
searchPage: WarehouseApi.getWarehousePage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '区域代码', label: '区域代码',
@ -41,6 +59,17 @@ export const Locationgroup = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库区代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库区信息', // 查询弹窗标题
searchAllSchemas: Area.allSchemas, // 查询弹窗所需类
searchPage: AreaApi.getAreaPage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '是否可用', label: '是否可用',

18
src/views/wms/basicDataManage/factoryModeling/process/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="ProcessRules" :rules="ProcessRules"
:formAllSchemas="Process.allSchemas" :formAllSchemas="Process.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="ProcessApi.updateProcess" :apiUpdate="ProcessApi.updateProcess"
:apiCreate="ProcessApi.createProcess" :apiCreate="ProcessApi.createProcess"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -61,12 +60,8 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as ProcessApi from '@/api/wms/process' import * as ProcessApi from '@/api/wms/process'
import * as WorkshopApi from '@/api/wms/workshop'
import * as ProductionlineApi from '@/api/wms/productionline'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Process, ProcessRules } from './process.data' import { Process, ProcessRules } from './process.data'
import { Productionline } from '../productionline/productionline.data'
import { Workshop } from '../workshop/workshop.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
@ -87,19 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'workshopCode',
searchTableTitle: '车间信息',
searchTableAllSchemas: Workshop.allSchemas,
searchTablePage: WorkshopApi.getWorkshopPage
},{
formField: 'productionLineCode',
searchTableTitle: '生产线信息',
searchTableAllSchemas: Productionline.allSchemas,
searchTablePage: ProductionlineApi.getProductionlinePage
}])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: ProcessApi.getProcessPage // getListApi: ProcessApi.getProcessPage //
}) })

29
src/views/wms/basicDataManage/factoryModeling/process/process.data.ts

@ -1,5 +1,12 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as WorkshopApi from '@/api/wms/workshop'
import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data'
import * as ProductionlineApi from '@/api/wms/productionline'
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -44,6 +51,17 @@ export const Process = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择车间代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '车间信息', // 查询弹窗标题
searchAllSchemas: Workshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getWorkshopPage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '生产线代码', label: '生产线代码',
@ -52,6 +70,17 @@ export const Process = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '生产线信息', // 查询弹窗标题
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
searchPage: ProductionlineApi.getProductionlinePage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '是否可用', label: '是否可用',

23
src/views/wms/basicDataManage/factoryModeling/productionline/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="ProductionlineRules" :rules="ProductionlineRules"
:formAllSchemas="Productionline.allSchemas" :formAllSchemas="Productionline.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="ProductionlineApi.updateProductionline" :apiUpdate="ProductionlineApi.updateProductionline"
:apiCreate="ProductionlineApi.createProductionline" :apiCreate="ProductionlineApi.createProductionline"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -61,12 +60,8 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as ProductionlineApi from '@/api/wms/productionline' import * as ProductionlineApi from '@/api/wms/productionline'
import * as WorkshopApi from '@/api/wms/workshop'
import * as LocationApi from '@/api/wms/location'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Productionline, ProductionlineRules } from './productionline.data' import { Productionline, ProductionlineRules } from './productionline.data'
import { Location } from '../location/location.data'
import { Workshop } from '../workshop/workshop.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
@ -87,24 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'workshopCode',
searchTableTitle: '车间信息',
searchTableAllSchemas: Workshop.allSchemas,
searchTablePage: WorkshopApi.getWorkshopPage
},{
formField: 'rawLocationCode',
searchTableTitle: '库位信息',
searchTableAllSchemas: Location.allSchemas,
searchTablePage: LocationApi.getLocationPage
},{
formField: 'fgLocationCode',
searchTableTitle: '库位信息',
searchTableAllSchemas: Location.allSchemas,
searchTablePage: LocationApi.getLocationPage
}])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: ProductionlineApi.getProductionlinePage // getListApi: ProductionlineApi.getProductionlinePage //
}) })

40
src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts

@ -1,5 +1,12 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as WorkshopApi from '@/api/wms/workshop'
import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data'
import * as LocationApi from '@/api/wms/location'
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -44,6 +51,17 @@ export const Productionline = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择车间代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '车间信息', // 查询弹窗标题
searchAllSchemas: Workshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getWorkshopPage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '原料库位', label: '原料库位',
@ -52,6 +70,17 @@ export const Productionline = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '成品库位', label: '成品库位',
@ -60,6 +89,17 @@ export const Productionline = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '是否可用', label: '是否可用',

30
src/views/wms/basicDataManage/factoryModeling/workstation/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="WorkstationRules" :rules="WorkstationRules"
:formAllSchemas="Workstation.allSchemas" :formAllSchemas="Workstation.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="WorkstationApi.updateWorkstation" :apiUpdate="WorkstationApi.updateWorkstation"
:apiCreate="WorkstationApi.createWorkstation" :apiCreate="WorkstationApi.createWorkstation"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -61,13 +60,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as WorkstationApi from '@/api/wms/workstation' import * as WorkstationApi from '@/api/wms/workstation'
import * as LocationApi from '@/api/wms/location'
import * as WorkshopApi from '@/api/wms/workshop'
import * as ProductionlineApi from '@/api/wms/productionline'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Location } from '../location/location.data'
import { Productionline } from '../productionline/productionline.data'
import { Workshop } from '../workshop/workshop.data'
import { Workstation, WorkstationRules } from './workstation.data' import { Workstation, WorkstationRules } from './workstation.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
@ -89,29 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'workshopCode',
searchTableTitle: '车间信息',
searchTableAllSchemas: Workshop.allSchemas,
searchTablePage: WorkshopApi.getWorkshopPage
},{
formField: 'productionLineCode',
searchTableTitle: '生产线信息',
searchTableAllSchemas: Productionline.allSchemas,
searchTablePage: ProductionlineApi.getProductionlinePage
},{
formField: 'rawLocationCode',
searchTableTitle: '库位信息',
searchTableAllSchemas: Location.allSchemas,
searchTablePage: LocationApi.getLocationPage
},{
formField: 'fgLocationCode',
searchTableTitle: '库位信息',
searchTableAllSchemas: Location.allSchemas,
searchTablePage: LocationApi.getLocationPage
}])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: WorkstationApi.getWorkstationPage // getListApi: WorkstationApi.getWorkstationPage //
}) })

54
src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts

@ -1,5 +1,15 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as LocationApi from '@/api/wms/location'
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
import * as ProductionlineApi from '@/api/wms/productionline'
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data'
import * as WorkshopApi from '@/api/wms/workshop'
import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -44,6 +54,17 @@ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择车间代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '车间信息', // 查询弹窗标题
searchAllSchemas: Workshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getWorkshopPage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '生产线代码', label: '生产线代码',
@ -52,6 +73,17 @@ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '生产线信息', // 查询弹窗标题
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
searchPage: ProductionlineApi.getProductionlinePage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '原料库位', label: '原料库位',
@ -60,6 +92,17 @@ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '成品库位', label: '成品库位',
@ -68,6 +111,17 @@ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '是否可用', label: '是否可用',

26
src/views/wms/basicDataManage/itemManage/bom/bom.data.ts

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

22
src/views/wms/basicDataManage/itemManage/bom/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="BomRules" :rules="BomRules"
:formAllSchemas="Bom.allSchemas" :formAllSchemas="Bom.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="BomApi.updateBom" :apiUpdate="BomApi.updateBom"
:apiCreate="BomApi.createBom" :apiCreate="BomApi.createBom"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -61,9 +60,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as BomApi from '@/api/wms/bom' import * as BomApi from '@/api/wms/bom'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from './../itembasic/itembasic.data'
import { Bom, BomRules } from './bom.data' import { Bom, BomRules } from './bom.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
@ -85,19 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'productItemCode',
searchTableTitle: '物料信息',
searchTableAllSchemas: Itembasic.allSchemas,
searchTablePage: ItembasicApi.getItembasicPage
},{
formField: 'componentItemCode',
searchTableTitle: '物料信息',
searchTableAllSchemas: Itembasic.allSchemas,
searchTablePage: ItembasicApi.getItembasicPage
}])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: BomApi.getBomPage // getListApi: BomApi.getBomPage //
}) })
@ -164,10 +148,8 @@ const openForm = (type: string, row?: any) => {
// //
const searchTableSuccess = (formField, searchField, val, formRef) => { const searchTableSuccess = (formField, searchField, val, formRef) => {
console.log(144, formField) console.log(153, formField)
console.log(145, searchField) console.log(153, searchField)
console.log(146, val)
console.log(147, formRef)
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]

11
src/views/wms/basicDataManage/itemManage/itempackaging/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="ItempackagingRules" :rules="ItempackagingRules"
:formAllSchemas="Itempackaging.allSchemas" :formAllSchemas="Itempackaging.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="ItempackagingApi.updateItempackaging" :apiUpdate="ItempackagingApi.updateItempackaging"
:apiCreate="ItempackagingApi.createItempackaging" :apiCreate="ItempackagingApi.createItempackaging"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -61,9 +60,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as ItempackagingApi from '@/api/wms/itempackaging' import * as ItempackagingApi from '@/api/wms/itempackaging'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from './../itembasic/itembasic.data'
import { Itempackaging, ItempackagingRules } from './itempackaging.data' import { Itempackaging, ItempackagingRules } from './itempackaging.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
@ -85,14 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'itemCode',
searchTableTitle: '物料信息',
searchTableAllSchemas: Itembasic.allSchemas,
searchTablePage: ItembasicApi.getItembasicPage
}])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: ItempackagingApi.getItempackagingPage // getListApi: ItempackagingApi.getItempackagingPage //
}) })

14
src/views/wms/basicDataManage/itemManage/itempackaging/itempackaging.data.ts

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

26
src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="ProductionlineitemRules" :rules="ProductionlineitemRules"
:formAllSchemas="Productionlineitem.allSchemas" :formAllSchemas="Productionlineitem.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="ProductionlineitemApi.updateProductionlineitem" :apiUpdate="ProductionlineitemApi.updateProductionlineitem"
:apiCreate="ProductionlineitemApi.createProductionlineitem" :apiCreate="ProductionlineitemApi.createProductionlineitem"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -60,15 +59,8 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as LocationApi from '@/api/wms/location'
import * as ProductionlineitemApi from '@/api/wms/productionlineitem' import * as ProductionlineitemApi from '@/api/wms/productionlineitem'
import * as ItembasicApi from '@/api/wms/itembasic'
import * as ProductionLineCodeApi from '@/api/wms/productionline'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
// import { Itembasic, Productionline, Location } from '@/utils/disposition/tableColumns'
import { Itembasic } from './../itembasic/itembasic.data'
import { Productionline } from './../../factoryModeling/productionline/productionline.data'
import { Location } from './../../factoryModeling/location/location.data'
import { Productionlineitem, ProductionlineitemRules } from './productionlineitem.data' import { Productionlineitem, ProductionlineitemRules } from './productionlineitem.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
@ -90,24 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'fgLocationCode',
searchTableTitle: '库位信息',
searchTableAllSchemas: Location.allSchemas,
searchTablePage: LocationApi.getLocationPage
},{
formField: 'itemCode',
searchTableTitle: '物料信息',
searchTableAllSchemas: Itembasic.allSchemas,
searchTablePage: ItembasicApi.getItembasicPage
},{
formField: 'productionLineCode',
searchTableTitle: '生产线信息',
searchTableAllSchemas: Productionline.allSchemas,
searchTablePage: ProductionLineCodeApi.getProductionlinePage
}])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: ProductionlineitemApi.getProductionlineitemPage // getListApi: ProductionlineitemApi.getProductionlineitemPage //
}) })

53
src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts

@ -1,5 +1,16 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as LocationApi from '@/api/wms/location'
import { Location } from './../../factoryModeling/location/location.data'
import * as ProductionLineCodeApi from '@/api/wms/productionline'
import { Productionline } from './../../factoryModeling/productionline/productionline.data'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from './../itembasic/itembasic.data'
import { ElButton, ElInput } from 'element-plus'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -14,6 +25,17 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150, width: 150,
fixed: 'left' fixed: 'left'
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择库位代码',
searchField: 'code',
searchTitle: '库位信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.getLocationPage
}
} }
}, },
{ {
@ -23,6 +45,17 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择生产线',
searchField: 'code',
searchTitle: '生产线信息',
searchAllSchemas: Productionline.allSchemas,
searchPage: ProductionLineCodeApi.getProductionlinePage
}
} }
}, },
{ {
@ -32,6 +65,17 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择物品代码',
searchField: 'code',
searchTitle: '物品信息',
searchAllSchemas: Itembasic.allSchemas,
searchPage: ItembasicApi.getItembasicPage
}
} }
}, },
{ {
@ -97,7 +141,14 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label:'备注', label:'备注',
field: 'remark', field: 'remark',
isTable: false isTable: false,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true,
searchListPlaceholder: '备注22222222'
}
}
}, },
{ {
label: '创建时间', label: '创建时间',

18
src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="StdcostpriceRules" :rules="StdcostpriceRules"
:formAllSchemas="Stdcostprice.allSchemas" :formAllSchemas="Stdcostprice.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="StdcostpriceApi.updateStdcostprice" :apiUpdate="StdcostpriceApi.updateStdcostprice"
:apiCreate="StdcostpriceApi.createStdcostprice" :apiCreate="StdcostpriceApi.createStdcostprice"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -61,11 +60,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as StdcostpriceApi from '@/api/wms/stdcostprice' import * as StdcostpriceApi from '@/api/wms/stdcostprice'
import * as SupplierApi from '@/api/wms/supplier'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from './../itembasic/itembasic.data'
import { Supplier } from './../../supplierManage/supplier/supplier.data'
import { Stdcostprice, StdcostpriceRules } from './stdcostprice.data' import { Stdcostprice, StdcostpriceRules } from './stdcostprice.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
@ -87,19 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'supplierCode',
searchTableTitle: '供应商信息',
searchTableAllSchemas: Supplier.allSchemas,
searchTablePage: SupplierApi.getSupplierPage
},{
formField: 'itemCode',
searchTableTitle: '物料信息',
searchTableAllSchemas: Itembasic.allSchemas,
searchTablePage: ItembasicApi.getItembasicPage
}])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: StdcostpriceApi.getStdcostpricePage // getListApi: StdcostpriceApi.getStdcostpricePage //
}) })

29
src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts

@ -1,5 +1,12 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -14,6 +21,17 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150, width: 150,
fixed: 'left' fixed: 'left'
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '供应商信息', // 查询弹窗标题
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
searchPage: SupplierApi.getSupplierPage // 查询弹窗所需分页方法
}
} }
}, },
{ {
@ -23,6 +41,17 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择物品代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '物品基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法
}
} }
}, },
{ {

2
src/views/wms/basicDataManage/orderManage/carrier/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="CarrierRules" :rules="CarrierRules"
:formAllSchemas="Carrier.allSchemas" :formAllSchemas="Carrier.allSchemas"
:searchTableAllSchemas="Itembasic.allSchemas"
:apiUpdate="CarrierApi.updateCarrier" :apiUpdate="CarrierApi.updateCarrier"
:apiCreate="CarrierApi.createCarrier" :apiCreate="CarrierApi.createCarrier"
:isBusiness="false" :isBusiness="false"
@ -61,7 +60,6 @@
import download from '@/utils/download' import download from '@/utils/download'
import * as CarrierApi from '@/api/wms/carrier' import * as CarrierApi from '@/api/wms/carrier'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Carrier, CarrierRules } from './carrier.data' import { Carrier, CarrierRules } from './carrier.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

2
src/views/wms/basicDataManage/orderManage/owner/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="OwnerRules" :rules="OwnerRules"
:formAllSchemas="Owner.allSchemas" :formAllSchemas="Owner.allSchemas"
:searchTableAllSchemas="Itembasic.allSchemas"
:apiUpdate="OwnerApi.updateOwner" :apiUpdate="OwnerApi.updateOwner"
:apiCreate="OwnerApi.createOwner" :apiCreate="OwnerApi.createOwner"
:isBusiness="false" :isBusiness="false"
@ -61,7 +60,6 @@
import download from '@/utils/download' import download from '@/utils/download'
import * as OwnerApi from '@/api/wms/owner' import * as OwnerApi from '@/api/wms/owner'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Owner, OwnerRules } from './owner.data' import { Owner, OwnerRules } from './owner.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

2
src/views/wms/basicDataManage/orderManage/shift/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="ShiftRules" :rules="ShiftRules"
:formAllSchemas="Shift.allSchemas" :formAllSchemas="Shift.allSchemas"
:searchTableAllSchemas="Itembasic.allSchemas"
:apiUpdate="ShiftApi.updateShift" :apiUpdate="ShiftApi.updateShift"
:apiCreate="ShiftApi.createShift" :apiCreate="ShiftApi.createShift"
:isBusiness="false" :isBusiness="false"
@ -61,7 +60,6 @@
import download from '@/utils/download' import download from '@/utils/download'
import * as ShiftApi from '@/api/wms/shift' import * as ShiftApi from '@/api/wms/shift'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Shift, ShiftRules } from './shift.data' import { Shift, ShiftRules } from './shift.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

2
src/views/wms/basicDataManage/orderManage/team/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="TeamRules" :rules="TeamRules"
:formAllSchemas="Team.allSchemas" :formAllSchemas="Team.allSchemas"
:searchTableAllSchemas="Itembasic.allSchemas"
:apiUpdate="TeamApi.updateTeam" :apiUpdate="TeamApi.updateTeam"
:apiCreate="TeamApi.createTeam" :apiCreate="TeamApi.createTeam"
:isBusiness="false" :isBusiness="false"
@ -61,7 +60,6 @@
import download from '@/utils/download' import download from '@/utils/download'
import * as TeamApi from '@/api/wms/team' import * as TeamApi from '@/api/wms/team'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Team, TeamRules } from './team.data' import { Team, TeamRules } from './team.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

5
src/views/wms/basicDataManage/strategySetting/condition/index.vue

@ -44,9 +44,6 @@
@success="getList" @success="getList"
:rules="ConditionRules" :rules="ConditionRules"
:formAllSchemas="Condition.allSchemas" :formAllSchemas="Condition.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="Itembasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="ConditionApi.updateCondition" :apiUpdate="ConditionApi.updateCondition"
:apiCreate="ConditionApi.createCondition" :apiCreate="ConditionApi.createCondition"
:isBusiness="false" :isBusiness="false"
@ -62,9 +59,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as ConditionApi from '@/api/wms/condition' import * as ConditionApi from '@/api/wms/condition'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Condition, ConditionRules } from './condition.data' import { Condition, ConditionRules } from './condition.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

5
src/views/wms/basicDataManage/strategySetting/configuration/index.vue

@ -44,9 +44,6 @@
@success="getList" @success="getList"
:rules="ConfigurationRules" :rules="ConfigurationRules"
:formAllSchemas="Configuration.allSchemas" :formAllSchemas="Configuration.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="Itembasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="ConfigurationApi.updateConfiguration" :apiUpdate="ConfigurationApi.updateConfiguration"
:apiCreate="ConfigurationApi.createConfiguration" :apiCreate="ConfigurationApi.createConfiguration"
:isBusiness="false" :isBusiness="false"
@ -62,9 +59,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as ConfigurationApi from '@/api/wms/configuration' import * as ConfigurationApi from '@/api/wms/configuration'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Configuration, ConfigurationRules } from './configuration.data' import { Configuration, ConfigurationRules } from './configuration.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

5
src/views/wms/basicDataManage/strategySetting/configurationsetting/index.vue

@ -44,9 +44,6 @@
@success="getList" @success="getList"
:rules="ConfigurationsettingRules" :rules="ConfigurationsettingRules"
:formAllSchemas="Configurationsetting.allSchemas" :formAllSchemas="Configurationsetting.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="Itembasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="ConfigurationsettingApi.updateConfigurationsetting" :apiUpdate="ConfigurationsettingApi.updateConfigurationsetting"
:apiCreate="ConfigurationsettingApi.createConfigurationsetting" :apiCreate="ConfigurationsettingApi.createConfigurationsetting"
:isBusiness="false" :isBusiness="false"
@ -62,9 +59,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as ConfigurationsettingApi from '@/api/wms/configurationsetting' import * as ConfigurationsettingApi from '@/api/wms/configurationsetting'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Configurationsetting, ConfigurationsettingRules } from './configurationsetting.data' import { Configurationsetting, ConfigurationsettingRules } from './configurationsetting.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

5
src/views/wms/basicDataManage/strategySetting/paramsetting/index.vue

@ -44,9 +44,6 @@
@success="getList" @success="getList"
:rules="ParamsettingRules" :rules="ParamsettingRules"
:formAllSchemas="Paramsetting.allSchemas" :formAllSchemas="Paramsetting.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="Itembasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="ParamsettingApi.updateParamsetting" :apiUpdate="ParamsettingApi.updateParamsetting"
:apiCreate="ParamsettingApi.createParamsetting" :apiCreate="ParamsettingApi.createParamsetting"
:isBusiness="false" :isBusiness="false"
@ -62,9 +59,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as ParamsettingApi from '@/api/wms/paramsetting' import * as ParamsettingApi from '@/api/wms/paramsetting'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Paramsetting, ParamsettingRules } from './paramsetting.data' import { Paramsetting, ParamsettingRules } from './paramsetting.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

5
src/views/wms/basicDataManage/strategySetting/rule/index.vue

@ -44,9 +44,6 @@
@success="getList" @success="getList"
:rules="RuleRules" :rules="RuleRules"
:formAllSchemas="Rule.allSchemas" :formAllSchemas="Rule.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="Itembasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="RuleApi.updateRule" :apiUpdate="RuleApi.updateRule"
:apiCreate="RuleApi.createRule" :apiCreate="RuleApi.createRule"
:isBusiness="false" :isBusiness="false"
@ -62,9 +59,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as RuleApi from '@/api/wms/rule' import * as RuleApi from '@/api/wms/rule'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Rule, RuleRules } from './rule.data' import { Rule, RuleRules } from './rule.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

18
src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="PurchasepriceRules" :rules="PurchasepriceRules"
:formAllSchemas="Purchaseprice.allSchemas" :formAllSchemas="Purchaseprice.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="PurchasepriceApi.updatePurchaseprice" :apiUpdate="PurchasepriceApi.updatePurchaseprice"
:apiCreate="PurchasepriceApi.createPurchaseprice" :apiCreate="PurchasepriceApi.createPurchaseprice"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -61,11 +60,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as PurchasepriceApi from '@/api/wms/purchaseprice' import * as PurchasepriceApi from '@/api/wms/purchaseprice'
import * as ItembasicApi from '@/api/wms/itembasic'
import * as SupplierApi from '@/api/wms/supplier'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Supplier } from '../supplier/supplier.data'
import { Purchaseprice, PurchasepriceRules } from './purchaseprice.data' import { Purchaseprice, PurchasepriceRules } from './purchaseprice.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
@ -87,19 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'supplierCode',
searchTableTitle: '供应商信息',
searchTableAllSchemas: Supplier.allSchemas,
searchTablePage: SupplierApi.getSupplierPage
},{
formField: 'itemCode',
searchTableTitle: '物料信息',
searchTableAllSchemas: Itembasic.allSchemas,
searchTablePage: ItembasicApi.getItembasicPage
}])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: PurchasepriceApi.getPurchasepricePage // getListApi: PurchasepriceApi.getPurchasepricePage //
}) })

31
src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts

@ -1,5 +1,12 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -14,7 +21,18 @@ export const Purchaseprice = useCrudSchemas(reactive<CrudSchema[]>([
width: 150, width: 150,
fixed: 'left' fixed: 'left'
}, },
isSearch: true isSearch: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '供应商信息', // 查询弹窗标题
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
searchPage: SupplierApi.getSupplierPage // 查询弹窗所需分页方法
}
}
}, },
{ {
label: '物料代码', label: '物料代码',
@ -23,6 +41,17 @@ export const Purchaseprice = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
table: { table: {
width: 150 width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择物品代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '物品基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法
}
} }
}, },
{ {

2
src/views/wms/basicDataManage/supplierManage/supplier/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="SupplierRules" :rules="SupplierRules"
:formAllSchemas="Supplier.allSchemas" :formAllSchemas="Supplier.allSchemas"
:searchTableAllSchemas="Itembasic.allSchemas"
:apiUpdate="SupplierApi.updateSupplier" :apiUpdate="SupplierApi.updateSupplier"
:apiCreate="SupplierApi.createSupplier" :apiCreate="SupplierApi.createSupplier"
:isBusiness="false" :isBusiness="false"
@ -61,7 +60,6 @@
import download from '@/utils/download' import download from '@/utils/download'
import * as SupplierApi from '@/api/wms/supplier' import * as SupplierApi from '@/api/wms/supplier'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Supplier, SupplierRules } from './supplier.data' import { Supplier, SupplierRules } from './supplier.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

32
src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="SupplieritemRules" :rules="SupplieritemRules"
:formAllSchemas="Supplieritem.allSchemas" :formAllSchemas="Supplieritem.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="SupplieritemApi.updateSupplieritem" :apiUpdate="SupplieritemApi.updateSupplieritem"
:apiCreate="SupplieritemApi.createSupplieritem" :apiCreate="SupplieritemApi.createSupplieritem"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -61,16 +60,8 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import * as SupplieritemApi from '@/api/wms/supplieritem' import * as SupplieritemApi from '@/api/wms/supplieritem'
import * as ItembasicApi from '@/api/wms/itembasic'
import * as SupplierApi from '@/api/wms/supplier'
import * as LocationApi from '@/api/wms/location'
import * as WarehouseApi from '@/api/wms/warehouse'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Supplieritem, SupplieritemRules } from './supplieritem.data' import { Supplieritem, SupplieritemRules } from './supplieritem.data'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Supplier } from '../supplier/supplier.data'
import { Warehouse } from '../../factoryModeling/warehouse/warehouse.data'
import { Location } from '../../factoryModeling/location/location.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
@ -91,29 +82,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'supplierCode',
searchTableTitle: '供应商信息',
searchTableAllSchemas: Supplier.allSchemas,
searchTablePage: SupplierApi.getSupplierPage
},{
formField: 'itemCode',
searchTableTitle: '物料信息',
searchTableAllSchemas: Itembasic.allSchemas,
searchTablePage: ItembasicApi.getItembasicPage
},{
formField: 'defaultWarehouseCode',
searchTableTitle: '仓库信息',
searchTableAllSchemas: Warehouse.allSchemas,
searchTablePage: WarehouseApi.getWarehousePage
},{
formField: 'defaultLocationCode',
searchTableTitle: '库位信息',
searchTableAllSchemas: Location.allSchemas,
searchTablePage: LocationApi.getLocationPage
}])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: SupplieritemApi.getSupplieritemPage // getListApi: SupplieritemApi.getSupplieritemPage //
}) })

57
src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts

@ -1,5 +1,18 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
import * as WarehouseApi from '@/api/wms/warehouse'
import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data'
import * as LocationApi from '@/api/wms/location'
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -13,6 +26,17 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150, width: 150,
fixed: 'left' fixed: 'left'
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '供应商信息', // 查询弹窗标题
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
searchPage: SupplierApi.getSupplierPage // 查询弹窗所需分页方法
}
} }
}, },
{ {
@ -22,6 +46,17 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
table: { table: {
width: 150 width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择物品代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '物品基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法
}
} }
}, },
{ {
@ -116,6 +151,17 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '仓库信息', // 查询弹窗标题
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
searchPage: WarehouseApi.getWarehousePage // 查询弹窗所需分页方法
}
} }
}, },
{ {
@ -124,6 +170,17 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPage // 查询弹窗所需分页方法
}
} }
}, },
{ {

2
src/views/wms/basicDataManage/systemSetting/accountcalendar/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="AccountcalendarRules" :rules="AccountcalendarRules"
:formAllSchemas="Accountcalendar.allSchemas" :formAllSchemas="Accountcalendar.allSchemas"
:searchTableAllSchemas="Itembasic.allSchemas"
:apiUpdate="AccountcalendarApi.updateAccountcalendar" :apiUpdate="AccountcalendarApi.updateAccountcalendar"
:apiCreate="AccountcalendarApi.createAccountcalendar" :apiCreate="AccountcalendarApi.createAccountcalendar"
:isBusiness="false" :isBusiness="false"
@ -61,7 +60,6 @@
import download from '@/utils/download' import download from '@/utils/download'
import * as AccountcalendarApi from '@/api/wms/accountcalendar' import * as AccountcalendarApi from '@/api/wms/accountcalendar'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Accountcalendar, AccountcalendarRules } from './accountcalendar.data' import { Accountcalendar, AccountcalendarRules } from './accountcalendar.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

2
src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="CurrencyexchangeRules" :rules="CurrencyexchangeRules"
:formAllSchemas="Currencyexchange.allSchemas" :formAllSchemas="Currencyexchange.allSchemas"
:searchTableAllSchemas="Itembasic.allSchemas"
:apiUpdate="CurrencyexchangeApi.updateCurrencyexchange" :apiUpdate="CurrencyexchangeApi.updateCurrencyexchange"
:apiCreate="CurrencyexchangeApi.createCurrencyexchange" :apiCreate="CurrencyexchangeApi.createCurrencyexchange"
:isBusiness="false" :isBusiness="false"
@ -61,7 +60,6 @@
import download from '@/utils/download' import download from '@/utils/download'
import * as CurrencyexchangeApi from '@/api/wms/currencyexchange' import * as CurrencyexchangeApi from '@/api/wms/currencyexchange'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Currencyexchange, CurrencyexchangeRules } from './currencyexchange.data' import { Currencyexchange, CurrencyexchangeRules } from './currencyexchange.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

2
src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="SystemcalendarRules" :rules="SystemcalendarRules"
:formAllSchemas="Systemcalendar.allSchemas" :formAllSchemas="Systemcalendar.allSchemas"
:searchTableAllSchemas="Itembasic.allSchemas"
:apiUpdate="SystemcalendarApi.updateSystemcalendar" :apiUpdate="SystemcalendarApi.updateSystemcalendar"
:apiCreate="SystemcalendarApi.createSystemcalendar" :apiCreate="SystemcalendarApi.createSystemcalendar"
:isBusiness="false" :isBusiness="false"
@ -61,7 +60,6 @@
import download from '@/utils/download' import download from '@/utils/download'
import * as SystemcalendarApi from '@/api/wms/systemcalendar' import * as SystemcalendarApi from '@/api/wms/systemcalendar'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { Systemcalendar, SystemcalendarRules } from './systemcalendar.data' import { Systemcalendar, SystemcalendarRules } from './systemcalendar.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'

45
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue

@ -40,7 +40,6 @@
@success="getList" @success="getList"
:rules="PurchaseclaimRequestMainRules" :rules="PurchaseclaimRequestMainRules"
:formAllSchemas="PurchaseclaimRequestMain.allSchemas" :formAllSchemas="PurchaseclaimRequestMain.allSchemas"
:searchTableParams="searchTableParams"
:tableAllSchemas="PurchaseclaimRequestDetail.allSchemas" :tableAllSchemas="PurchaseclaimRequestDetail.allSchemas"
:tableFormRules="PurchaseclaimRequestDetailRules" :tableFormRules="PurchaseclaimRequestDetailRules"
:tableData="tableData" :tableData="tableData"
@ -60,12 +59,11 @@
:allSchemas="PurchaseclaimRequestMain.allSchemas" :allSchemas="PurchaseclaimRequestMain.allSchemas"
:detailAllSchemas="PurchaseclaimRequestDetail.allSchemas" :detailAllSchemas="PurchaseclaimRequestDetail.allSchemas"
:detailAllSchemasRules="PurchaseclaimRequestDetailRules" :detailAllSchemasRules="PurchaseclaimRequestDetailRules"
:searchTableParams="searchTableParams"
:apiCreate="PurchaseclaimRequestDetailApi.createPurchaseclaimRequestDetail" :apiCreate="PurchaseclaimRequestDetailApi.createPurchaseclaimRequestDetail"
:apiUpdate="PurchaseclaimRequestDetailApi.updatePurchaseclaimRequestDetail" :apiUpdate="PurchaseclaimRequestDetailApi.updatePurchaseclaimRequestDetail"
:apiPage="PurchaseclaimRequestDetailApi.getPurchaseclaimRequestDetailPage" :apiPage="PurchaseclaimRequestDetailApi.getPurchaseclaimRequestDetailPage"
:apiDelete="PurchaseclaimRequestDetailApi.deletePurchaseclaimRequestDetail" :apiDelete="PurchaseclaimRequestDetailApi.deletePurchaseclaimRequestDetail"
:Echo="Echo" @searchTableSuccessDetail="searchTableSuccessDetail"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -76,14 +74,12 @@
import download from '@/utils/download' import download from '@/utils/download'
import * as PurchaseclaimRequestMainApi from '@/api/wms/purchaseclaimRequestMain' import * as PurchaseclaimRequestMainApi from '@/api/wms/purchaseclaimRequestMain'
import * as PurchaseclaimRequestDetailApi from '@/api/wms/purchaseclaimRequestDetail' import * as PurchaseclaimRequestDetailApi from '@/api/wms/purchaseclaimRequestDetail'
import * as supplierdeliverRecordMainApi from '@/api/wms/supplierdeliverRecordMain'
import * as supplierdeliverRecordDetailApi from '@/api/wms/supplierdeliverRecordDetail'
import { SupplierdeliverRecordMain, SupplierdeliverRecordDetail } from '@/utils/disposition/tableColumns'
import { PurchaseclaimRequestMain, PurchaseclaimRequestMainRules, PurchaseclaimRequestDetail, PurchaseclaimRequestDetailRules } from './purchaseclaimRequestMain.data' import { PurchaseclaimRequestMain, PurchaseclaimRequestMainRules, PurchaseclaimRequestDetail, PurchaseclaimRequestDetailRules } from './purchaseclaimRequestMain.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
//
defineOptions({ name: 'PurchaseclaimRequestMain' }) defineOptions({ name: 'PurchaseclaimRequestMain' })
const message = useMessage() // const message = useMessage() //
@ -99,24 +95,11 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([{
formField: 'asnNumber',
searchTableTitle: '供应商发货记录',
searchTableAllSchemas: SupplierdeliverRecordMain.allSchemas,
searchTablePage: supplierdeliverRecordMainApi.getSupplierdeliverRecordMainPage
},{
formField: 'poNumber',
searchTableTitle: '供应商发货记录',
searchTableAllSchemas: SupplierdeliverRecordDetail.allSchemas,
searchTablePage: supplierdeliverRecordDetailApi.getSupplierdeliverRecordDetailPage
}])
// //
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
// //
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
row['poLine'] = val[0]['poLine'] row['poLine'] = val[0]['poLine']
row['batch'] = val[0]['toBatch'] row['batch'] = val[0]['toBatch']
@ -129,6 +112,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['qty'] = val[0]['qty'] row['qty'] = val[0]['qty']
row['uom'] = val[0]['uom'] row['uom'] = val[0]['uom']
} else { } else {
//
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
setV['ppNumber'] = val[0]['ppNumber'] setV['ppNumber'] = val[0]['ppNumber']
@ -137,11 +121,26 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} }
}) })
} }
// //
const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom'] const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
setV['poLine'] = val[0]['poLine']
setV['batch'] = val[0]['toBatch']
setV['altBatch'] = val[0]['altBatch']
setV['itemCode'] = val[0]['itemCode']
setV['itemName'] = val[0]['itemName']
setV['itemDesc1'] = val[0]['itemDesc1']
setV['itemDesc2'] = val[0]['itemDesc2']
setV['projectCode'] = val[0]['projectCode']
setV['qty'] = val[0]['qty']
setV['uom'] = val[0]['uom']
formRef.setValues(setV)
})
}
const exportLoading = ref(false) // const exportLoading = ref(false) //
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: PurchaseclaimRequestMainApi.getPurchaseclaimRequestMainPage // getListApi: PurchaseclaimRequestMainApi.getPurchaseclaimRequestMainPage //
}) })

37
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts

@ -1,6 +1,14 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index.ts' import * as getRequestsettingApi from '@/api/wms/requestsetting/index.ts'
import * as supplierdeliverRecordMainApi from '@/api/wms/supplierdeliverRecordMain'
import * as supplierdeliverRecordDetailApi from '@/api/wms/supplierdeliverRecordDetail'
import { SupplierdeliverRecordMain, SupplierdeliverRecordDetail } from '@/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
// 获取当前操作人的部门 // 获取当前操作人的部门
@ -36,6 +44,17 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'asnNumber', field: 'asnNumber',
table: { table: {
width: 150 width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择发货单号', // 输入框占位文本
searchField: 'asnNumber', // 查询弹窗赋值字段
searchTitle: '供应商发货记录', // 查询弹窗标题
searchAllSchemas: SupplierdeliverRecordMain.allSchemas, // 查询弹窗所需类
searchPage: supplierdeliverRecordMainApi.getSupplierdeliverRecordMainPage // 查询弹窗所需分页方法
}
} }
}, },
{ {
@ -315,11 +334,27 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
label: '订单号', label: '订单号',
field: 'poNumber', field: 'poNumber',
tableForm:{ tableForm:{
isInpuFocusShow: true isInpuFocusShow: true,
searchListPlaceholder: '请选择订单号',
searchField: 'poNumber',
searchTitle: '供应商发货记录',
searchAllSchemas: SupplierdeliverRecordDetail.allSchemas,
searchPage: supplierdeliverRecordDetailApi.getSupplierdeliverRecordDetailPage
}, },
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择订单号',
searchField: 'poNumber',
searchTitle: '供应商发货记录',
searchAllSchemas: SupplierdeliverRecordDetail.allSchemas,
searchPage: supplierdeliverRecordDetailApi.getSupplierdeliverRecordDetailPage
}
}
}, },
{ {
label: '订单行', label: '订单行',

Loading…
Cancel
Save