Browse Source

Merge branch 'intex' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into intex

intex_online20250311
songguoqiang 4 weeks ago
parent
commit
d2abf76414
  1. 53
      src/api/wms/modelDeliTime/index.ts
  2. 2
      src/api/wms/supplierDeliMain/index.ts
  3. 15
      src/views/wms/basicDataManage/supplierManage/deliveryCalendar/deliveryCalendar.data.ts
  4. 50
      src/views/wms/basicDataManage/supplierManage/deliveryCalendar/index.vue
  5. 426
      src/views/wms/basicDataManage/supplierManage/modelDeliTime/index.vue
  6. 295
      src/views/wms/basicDataManage/supplierManage/modelDeliTime/modelDeliTime.data.ts
  7. 14
      src/views/wms/basicDataManage/supplierManage/supplierAddressModelDeli/supplierAddressModelDeli.data.ts
  8. 2
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

53
src/api/wms/modelDeliTime/index.ts

@ -0,0 +1,53 @@
import request from '@/config/axios'
export interface SupplierAddrDeliTimeDetailVO {
id: number
masterId: number
code: string
shift: string
}
// 查询供应商地点便次时间配置明细列表
export const getSupplierAddrDeliTimeDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/model-deli-time-detail/senior', data })
} else {
return await request.get({ url: `/wms/model-deli-time-detail/page`, params })
}
}
// 查询供应商地点便次时间配置明细详情
export const getSupplierAddrDeliTimeDetail = async (id: number) => {
return await request.get({ url: `/wms/model-deli-time-detail/get?id=` + id })
}
// 新增供应商地点便次时间配置明细
export const createSupplierAddrDeliTimeDetail = async (data: SupplierAddrDeliTimeDetailVO) => {
return await request.post({ url: `/wms/model-deli-time-main/create`, data })
}
// 修改供应商地点便次时间配置明细
export const updateSupplierAddrDeliTimeDetail = async (data: SupplierAddrDeliTimeDetailVO) => {
return await request.put({ url: `/wms/model-deli-time-main/update`, data })
}
// 删除供应商地点便次时间配置明细
export const deleteSupplierAddrDeliTimeDetail = async (id: number) => {
return await request.delete({ url: `/wms/model-deli-time-detail/delete?id=` + id })
}
// 导出供应商地点便次时间配置明细 Excel
export const exportSupplierAddrDeliTimeDetail = async (params) => {
return await request.download({ url: `/wms/model-deli-time-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/model-deli-time-detail/get-import-template' })
}
// 查询受入号
export const getSupplierAddrList = async () => {
return await request.get({ url: `/wms/itembasic/getModel` })
}

2
src/api/wms/supplierDeliMain/index.ts

@ -57,7 +57,5 @@ const getPageParams = (params)=>{
} }
// 查询供应商便次配置列表 // 查询供应商便次配置列表
export const getPageTableHead = async (params) => { export const getPageTableHead = async (params) => {
// params = getPageParams(params)
console.log('params',params)
return await request.get({ url: `/wms/supplier-deli-main/queryPageTableHead`, params }) return await request.get({ url: `/wms/supplier-deli-main/queryPageTableHead`, params })
} }

15
src/views/wms/basicDataManage/supplierManage/deliveryCalendar/deliveryCalendar.data.ts

@ -2,6 +2,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as SupplierApi from '@/api/wms/supplier' import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
import { formatDate } from '@/utils/formatTime'
// 表单校验 // 表单校验
export const DeliveryCalendarRules = reactive({ export const DeliveryCalendarRules = reactive({
@ -78,9 +79,19 @@ export const DeliveryCalendar = useCrudSchemas(
}, },
{ {
label: '日期', label: '日期',
field: 'day', field: 'yearAndMonth',
sort: 'custom', sort: 'custom',
isSearch: true isTable: false,
isForm: false,
isSearch: true,
search: {
component: 'DatePicker',
value: formatDate(new Date(),'YYYYMM'),
componentProps: {
type: 'month',
valueFormat: 'YYYYMM',
}
}
}, },
{ {
label: '操作', label: '操作',

50
src/views/wms/basicDataManage/supplierManage/deliveryCalendar/index.vue

@ -32,6 +32,10 @@
<span>{{ row.code }}</span> <span>{{ row.code }}</span>
</el-button> </el-button>
</template> </template>
<template v-for="item in dateColumns" :key="item.field" #[item.field]="{row}">
<div v-if="row[item.field]?.isDay == 'TRUE'">白班</div>
<div v-if="row[item.field]?.isNight == 'TRUE'">夜班</div>
</template>
<template #action="{ row }"> <template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" /> <ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template> </template>
@ -65,6 +69,7 @@ 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'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import * as SupplierDeliMainApi from '@/api/wms/supplierDeliMain'
defineOptions({ name: 'DeliveryCalendar' }) defineOptions({ name: 'DeliveryCalendar' })
@ -74,6 +79,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // const route = useRoute() //
const routeName = ref() const routeName = ref()
routeName.value = route.name routeName.value = route.name
const orginTableColumns = ref(DeliveryCalendar.allSchemas.tableColumns)
const tableColumns = ref(DeliveryCalendar.allSchemas.tableColumns) const tableColumns = ref(DeliveryCalendar.allSchemas.tableColumns)
// //
@ -89,9 +95,9 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
} }
// //
const updataTableColumns = (val) => { // const updataTableColumns = (val) => {
tableColumns.value = val // tableColumns.value = val
} // }
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: DeliveryCalendarApi.getDeliveryCalendarPage // getListApi: DeliveryCalendarApi.getDeliveryCalendarPage //
@ -102,9 +108,9 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:delivery-calendar:create'}), // // defaultButtons.defaultAddBtn({hasPermi:'wms:delivery-calendar:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:delivery-calendar:import'}), // defaultButtons.defaultImportBtn({hasPermi:'wms:delivery-calendar:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:delivery-calendar:export'}), // defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -238,8 +244,42 @@ const searchFormClick = (searchData) => {
getList() // getList() //
} }
const { tableObject:tableObjectHead, tableMethods:tableMethodsHead } = useTable({
getListApi: SupplierDeliMainApi.getPageTableHead //
})
//
const { getList: getListHead, setSearchParams: setSearchParamsHead } = tableMethodsHead
const dateColumns = ref([])
watch(()=>tableObjectHead.tableList,()=>{
updateDateTableColumns()
},{deep:true})
const updateDateTableColumns = ()=>{
console.log('tableObjectHead', tableObjectHead)
dateColumns.value = []
if(tableObjectHead.tableList.length>10){
tableObjectHead.tableList.forEach(item=>{
dateColumns.value.push({
width:120,
field: item,
label: item
})
})
}else{
tableObjectHead.tableList.forEach(item=>{
dateColumns.value.push({
field: item,
label: item
})
})
}
tableColumns.value = [...orginTableColumns.value,...dateColumns.value]
console.log('tableColumns',tableColumns.value)
}
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getListHead()
getList() getList()
importTemplateData.templateUrl = await DeliveryCalendarApi.importTemplate() importTemplateData.templateUrl = await DeliveryCalendarApi.importTemplate()
}) })

426
src/views/wms/basicDataManage/supplierManage/modelDeliTime/index.vue

@ -0,0 +1,426 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="ModelDeliTime.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead
:HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick"
:routeName="routeName"
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="ModelDeliTime.allSchemas"
/>
<!-- 列表 -->
<ContentWrap>
<Table
:columns="tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #model="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.model)">
<span>{{ row.model }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="formRef"
:isOpenSearchTable="true"
fieldTableColumn="code"
:rules="ModelDeliTimeDetailRules"
:formAllSchemas="ModelDeliTime.allSchemas"
:tableAllSchemas="ModelDeliTimeDetail.allSchemas"
:tableData="tableData"
:apiUpdate="ModelDeliTimeDetailApi.updateSupplierAddrDeliTimeDetail"
:apiCreate="ModelDeliTimeDetailApi.createSupplierAddrDeliTimeDetail"
:isBusiness="true"
@handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable"
:isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm"
/>
<!-- 详情 -->
<Detail
ref="detailRef"
:isBasic="false"
:allSchemas="ModelDeliTime.allSchemas"
:detailAllSchemas="detailAllSchemas"
:apiCreate="ModelDeliTimeDetailApi.createPurchaseClaimRequestDetail"
:apiUpdate="ModelDeliTimeDetailApi.updatePurchaseClaimRequestDetail"
:apiPage="ModelDeliTimeDetailApi.getSupplierAddrDeliTimeDetailPage"
:apiDelete="ModelDeliTimeDetailApi.deletePurchaseClaimRequestDetail"
:detailButtonIsShowDelete="true"
:detailButtonIsShowAdd="false"
@searchTableSuccessDetail="searchTableSuccessDetail"
@detailOpenForm="detailOpenForm"
/>
<!-- :detailAllSchemas="ModelDeliTimeDetail.allSchemas" -->
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/supplier-addr-deli-time-detail/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import { ModelDeliTime, ModelDeliTimeDetail, ModelDeliTimeDetailRules } from './modelDeliTime.data'
import * as ModelDeliTimeDetailApi from '@/api/wms/modelDeliTime'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { debug } from 'console'
defineOptions({ name: 'ModelDeliTime' })
const message = useMessage() //
const { t } = useI18n() //
const route = useRoute() //
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(ModelDeliTime.allSchemas.tableColumns)
const detailAllSchemas = ref(ModelDeliTimeDetail.allSchemas)
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(async() => {
if (formField == 'code') {
let codes = val.filter((item) =>
tableData.value.find((item1) => item1['code'] == item['code'])
)
if (codes.length > 0) {
codes = codes.map((item) => item['code'])
message.warning(`编码${codes.join(',')}已经存在`)
}
val = val.filter(
(item) => !tableData.value.find((item1) => item1['code'] == item['code'])
)
if (val.length == 0) {
return
}
let newVal = val.filter(
(item) => !tableData.value.find((item1) => item1['code'] == item['code'])
)
newVal.forEach((item) => {
let tfk = JSON.parse(JSON.stringify(tableFormKeys))
tfk['code'] = item['code']
tfk['shift'] = item['shift']
tfk['beginTime'] = item['begeinTime']
tableData.value.push(tfk)
})
}
const setV = {}
setV[formField] = val[0][searchField]
if (formField == 'supplierCode') {
setV['supplierCode'] = val[0].code
setV['supplierName'] = val[0].name
console.log(ModelDeliTime.allSchemas.formSchema)
const options = await ModelDeliTimeDetailApi.getSupplierAddrList(val[0].code)
ModelDeliTime.allSchemas.formSchema.forEach(item => {
if(item.field == 'modelShow'){
item.componentProps.options = options.map(item=> {
return {
label: item,
value:item
}
})
}
})
}
formRef.setValues(setV)
})
}
//true0
const flag = ref(false)
//
const submitForm = async (formType, submitData) => {
flag.value=false
let data = { ...submitData }
if (data.masterId) {
data.id = data.masterId
}
data.model =data.modelShow.join(',')
data.yearAndMonth =data.yearAndMonthShow.join(',')
data.subList = tableData.value //
data.subList.forEach((item) => {
item.toWarehouseCode = data.toWarehouseCode
item.toLocationCode = data.toLocationCode
})
if (flag.value) {
return
}
formRef.value.formLoading = true
try {
if (formType === 'create') {
await ModelDeliTimeDetailApi.createSupplierAddrDeliTimeDetail(data)
message.success(t('common.createSuccess'))
} else {
await ModelDeliTimeDetailApi.updateSupplierAddrDeliTimeDetail(data)
message.success(t('common.updateSuccess'))
}
formRef.value.dialogVisible = false
//
if (formType === 'create') {
getList()
} else {
buttonBaseClick('refresh', null)
}
} finally {
formRef.value.formLoading = false
}
}
/**
* tableForm方法
*/
const tableFormKeys = {}
ModelDeliTimeDetail.allSchemas.tableFormColumns.forEach((item) => {
tableFormKeys[item.field] = item.default ? item.default : ''
})
//
const handleAddTable = () => {
tableData.value.push(JSON.parse(JSON.stringify(tableFormKeys)))
}
//
const handleDeleteTable = (item, index) => {
let itemIndex = tableData.value.indexOf(item)
if (itemIndex > -1) {
tableData.value.splice(itemIndex, 1)
}
}
//
const updataTableColumns = (val) => {
tableColumns.value = val
}
const { tableObject, tableMethods } = useTable({
getListApi: ModelDeliTimeDetailApi.getSupplierAddrDeliTimeDetailPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
getModelCode()
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const tableData = ref([])
const formRef = ref([])
// const openForm = (type: string, row?: any) => {
// basicFormRef.value.open(type, row)
// }
const getModelCode = async () =>{
const options = await ModelDeliTimeDetailApi.getSupplierAddrList()
ModelDeliTime.allSchemas.formSchema.forEach(item => {
if(item.field == 'modelShow'){
item.componentProps.options = options.map(item=> {
return {
label: item,
value:item
}
})
}
})
}
const openForm = async (type: string, row?: any) => {
tableData.value = [] //
if (row?.id) {
ModelDeliTime.allSchemas.formSchema.forEach((item) => {
if (item.field == 'supplierCode') {
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
if (item.field == 'modelShow') {
item.componentProps.disabled = true
}
if (item.field == 'yearAndMonthShow') {
item.componentProps.disabled = true
}
})
row.yearAndMonthShow =row.yearAndMonth.split(',')
row.modelShow =row.model.split(',')
} else {
ModelDeliTime.allSchemas.formSchema.forEach((item) => {
if (item.field == 'supplierCode') {
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
if (item.field == 'modelShow') {
item.componentProps.disabled = false
}
if (item.field == 'yearAndMonthShow') {
item.componentProps.disabled = false
}
})
}
formRef.value.open(type, row)
}
// form
const formsSuccess = async (formType,data) => {
var isHave =ModelDeliTime.allSchemas.formSchema.some(function (item) {
return item.field === 'activeTime' || item.field === 'expireTime';
});
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
message.error('失效时间要大于生效时间')
return;
}
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await ModelDeliTimeDetailApi.createSupplierAddrDeliTimeDetail(data)
message.success(t('common.createSuccess'))
} else {
await ModelDeliTimeDetailApi.updateSupplierAddrDeliTimeDetail(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
}
/** 详情操作 */
const detailRef = ref()
const detailData = ref({})
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailData.value = row
detailRef.value.openDetail(row, titleName, titleValue, 'basicSupplierAddrDeliTimeDetail')
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await ModelDeliTimeDetailApi.deleteSupplierAddrDeliTimeDetail(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await ModelDeliTimeDetailApi.exportSupplierAddrDeliTimeDetail(tableObject.params)
download.excel(data, '供应商地点便次时间配置明细.xlsx')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '供应商地点便次时间配置明细导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await ModelDeliTimeDetailApi.importTemplate()
})
</script>

295
src/views/wms/basicDataManage/supplierManage/modelDeliTime/modelDeliTime.data.ts

@ -0,0 +1,295 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import * as SupplierApi from '@/api/wms/supplier'
// import {Supplier} from '@/basicDataManage/supplierManage/supplier/supplier.data'
import { Supplier } from '../supplier/supplier.data'
import { DeliTimeWms } from '../DeliTimeWms/deliTimeWms.data'
import * as DeliTimeWmsApi from '@/api/wms/deliTimeWms'
// 表单校验
export const ModelDeliTimeDetailRules = reactive({
model: [required],
yearAndMonth: [required],
delayDeli: [required],
})
function getMonthArr() {
let dateArr = [];
let year = new Date().getFullYear();
let month = new Date().getMonth();
const n = 12
if (n < month) {
//1.n<month的情况
for (let i = month - n + 1; i <= month; i++) {
let m1 = i < 10 ? "0" + i : i;
dateArr.push({
label: year + '-' + m1,
value: year + '-' + m1
});
}
} else {
//2.n>month的情况
for (let i = (12 - (n - month) + 1); i <= 12; i++) {
let m1 = i < 10 ? "0" + i : i;
dateArr.push({
label: year + '-' + m1,
value: year + '-' + m1
});
}
for (let i = 1; i <= month; i++) {
let m1 = i < 10 ? "0" + i : i;
dateArr.push({
label: (parseFloat(year) + 1) + '-' + m1,
value: (parseFloat(year) + 1) + '-' + m1,
});
}
}
return dateArr;
}
export const ModelDeliTime = useCrudSchemas(reactive<CrudSchema[]>([
// {
// label: '供应商代码',
// field: 'supplierCode',
// sort: 'custom',
// isSearch: true,
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// isSearchList: true, // 开启查询弹窗
// enterSearch: true,
// searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
// searchField: 'number', // 查询弹窗赋值字段
// searchTitle: '供应商', // 查询弹窗标题
// searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
// searchPage: SupplierApi.getSupplierPageSCP, // 查询弹窗所需分页方法
// searchCondition: [
// {
// key: 'available',
// value: "TRUE",
// isMainValue: false
// }
// ],
// // 失去焦点校验参数
// verificationParams: [{
// key: 'code',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: 'true',
// isFormModel: true,
// }]
// }
// }
// },
// {
// label: '供应商名称',
// field: 'supplierName',
// sort: 'custom',
// form :{
// componentProps:{
// disabled:true
// }
// },
// },
{
label: '受入号',
field: 'modelShow',
sort: 'custom',
isSearch: true,
isTable: false,
isDetail: false,
form: {
component: 'Select',
componentProps: {
multiple: true,
collapseTags: true,
collapseTagsTooltip: true,
maxCollapseTags: "2",
optionsAlias: {
labelField: 'label',
valueField: 'value'
}
}
}
},
{
label: '受入号',
field: 'model',
sort: 'custom',
isTable: true,
isDetail: true,
isForm: false,
},
{
label: '年月',
field: 'yearAndMonthShow',
sort: 'custom',
isTable: false,
isDetail: false,
form: {
component: 'Select',
api: () => getMonthArr(),
componentProps: {
multiple: true,
collapseTags: true,
collapseTagsTooltip: true,
maxCollapseTags:"2",
optionsAlias: {
labelField: 'label',
valueField: 'value'
}
}
}
},
{
label: '年月',
field: 'yearAndMonth',
sort: 'custom',
isTable: true,
isDetail: true,
isForm: false,
isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
type: 'month',
valueFormat: 'YYYY-MM',
}
},
},
{
label: '延后便次',
field: 'delayDeli',
sort: 'custom',
form: {
component: 'InputNumber',
value: 0,
},
},
{
label: '班次',
field: 'shift',
sort: 'custom',
isForm: false,
dictType: DICT_TYPE.SHIFT,
dictClass: 'string',
},
{
label: '编号',
field: 'code',
sort: 'custom',
isForm: false,
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
isForm: false,
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
]))
export const ModelDeliTimeDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '编号',
field: 'code',
sort: 'custom',
isForm: false,
tableForm:{
multiple: true,//多选
isInpuFocusShow: false, // 开启查询弹窗
disabled:true,
searchListPlaceholder: '请选择便次时间配置',// 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '便次时间配置', // 查询弹窗标题
searchAllSchemas: DeliTimeWms.allSchemas, // 查询弹窗所需类
searchPage: DeliTimeWmsApi.getDeliTimePage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
action: '==',
isSearch: true,
isMainValue: false
},
],
verificationPage: DeliTimeWmsApi.getDeliTimePage, // tableForm下方输入框校验失去焦点之后是否正确的方法
// isShowTableFormSearch: true, //tableForm下方是否出现输入框
verificationParams: [{
key: 'itemCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
disabled:true,
enterSearch: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择品番', // 输入框占位文本
searchField: 'itemCode', // 查询弹窗赋值字段
searchTitle: '供应商物料信息', // 查询弹窗标题
searchAllSchemas: DeliTimeWms.allSchemas, // 查询弹窗所需类
searchPage: DeliTimeWmsApi.getDeliTimePage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
},
],
verificationParams: [
{
key: 'itemCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true
}
] // 失去焦点校验参数
}
}
},
{
label: '班次',
field: 'shift',
sort: 'custom',
isForm: false,
tableForm:{
disabled:true,
}
},
{
label: '开始时间',
field: 'beginTime',
sort: 'custom',
isForm: false,
formatter: dateFormatter,
tableForm:{
disabled:true,
formatter: dateFormatter,
}
},
]))

14
src/views/wms/basicDataManage/supplierManage/supplierAddressModelDeli/supplierAddressModelDeli.data.ts

@ -5,9 +5,10 @@ import { SupplierAddrDeliTime } from '@/views/wms/basicDataManage/supplierManage
// 表单校验 // 表单校验
export const SupplierAddressModelDeliRules = reactive({ export const SupplierAddressModelDeliRules = reactive({
supplierCode: [required],
supplierAddress: [required],
yearAndMonth: [required], yearAndMonth: [required],
shift: [required], shift: [required],
deliNo: [required],
concurrencyStamp: [required], concurrencyStamp: [required],
modelShow: [required], modelShow: [required],
}) })
@ -137,11 +138,14 @@ export const SupplierAddressModelDeli = useCrudSchemas(
{ {
label: '便次数', label: '便次数',
field: 'deliNo', field: 'deliNo',
sort: 'custom', isForm: true,
isSearch: true,
form: { form: {
component: 'InputNumber', componentProps: {
value: 0 disabled: true
}
},
table: {
width: 250
} }
}, },
{ {

2
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -814,7 +814,7 @@ const butttondata = (row, $index) => {
}, },
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-request-main:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-request-main:delete'}), //
{ {
label: t('ts.打印'), label: t('打印对账单'),
name: 'mian_print', name: 'mian_print',
hide: !(row.goldenTaxInvoiceNumber != null && row.goldenTaxInvoiceNumber != ''), hide: !(row.goldenTaxInvoiceNumber != null && row.goldenTaxInvoiceNumber != ''),
type: 'primary', type: 'primary',

Loading…
Cancel
Save