Browse Source

生产外入库申请:创建标签后,选择单据添加物料号,保存后再次创建标签 失败

intex_online20250327
叶佳兴 2 weeks ago
parent
commit
3791d4d6f8
  1. 83
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
  2. 24
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts
  3. 416
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts
  4. 2
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue

83
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

@ -92,6 +92,9 @@
<Detail
ref="detailRef"
:isBasic="false"
:detailButtonIsShowAdd="false"
:detailButtonIsShowEdit="false"
:detailButtonIsShowDelete="false"
:allSchemas="UnplannedreceiptRequestMain.allSchemas"
:detailAllSchemas="UnplannedreceiptRequestDetail.allSchemas"
:detailAllSchemasRules="UnplannedreceiptRequestDetailRules"
@ -631,11 +634,10 @@ const buttonTableClick = async (val, row) => {
}
})
})
}finally {
} finally {
tableObject.loading = false
}
}
}
/** 关闭按钮操作 */
@ -866,7 +868,7 @@ const submitForm = async (formType, submitData) => {
try {
let newVal = data.subList.some((item) => item.isEnableBuy == 'TRUE')
let newVal1 = data.subList.some((item) => item.isEnableBuy == 'FALSE')
console.log(newVal,newVal1)
console.log(newVal, newVal1)
if (newVal && newVal1) {
message.warning('不能同时选择可制造和可采购的物料')
return
@ -955,25 +957,29 @@ const submitFormLabel = async (formType, data) => {
try {
formLabelRef.value.formLoading = true
detatableData.tableList.forEach(async (item) => {
const unitConversion = await UnitConversionApi.getUnitConversionByCode(item.itemCode);
let convertRate = 1//
let purchaseUom = item.uom//
let purchaseStdQty//
if(unitConversion!=null){
if(unitConversion.convertRate!=null&&unitConversion.convertRate!='' && unitConversion.convertRate!=0){
convertRate = unitConversion.convertRate;
}
if(unitConversion.purchaseUom!=null&&unitConversion.purchaseUom!='' ){
purchaseUom = unitConversion.purchaseUom;
}
}
let purchaseQty = (item.qty / convertRate).toFixed(5);//
purchaseStdQty = (item.packQty / convertRate).toFixed(5);//
item.purchaseQty = purchaseQty;//
item.convertRate = convertRate;//
item.purchaseStdQty = purchaseStdQty;//
item.purchaseUom = purchaseUom;//
console.log('item======================',item)
const unitConversion = await UnitConversionApi.getUnitConversionByCode(item.itemCode)
let convertRate = 1 //
let purchaseUom = item.uom //
let purchaseStdQty //
if (unitConversion != null) {
if (
unitConversion.convertRate != null &&
unitConversion.convertRate != '' &&
unitConversion.convertRate != 0
) {
convertRate = unitConversion.convertRate
}
if (unitConversion.purchaseUom != null && unitConversion.purchaseUom != '') {
purchaseUom = unitConversion.purchaseUom
}
}
let purchaseQty = (item.qty / convertRate).toFixed(5) //
purchaseStdQty = (item.packQty / convertRate).toFixed(5) //
item.purchaseQty = purchaseQty //
item.convertRate = convertRate //
item.purchaseStdQty = purchaseStdQty //
item.purchaseUom = purchaseUom //
console.log('item======================', item)
await PackageApi.createPackageLabel(item)
.then((res) => {
isCreateLabel.value = true
@ -1067,13 +1073,15 @@ const labelPrint = async (row) => {
try {
await PackageApi.getPackagePage({
requestNumber: row.number
}).then((res) => {
})
.then((res) => {
if (res.list.length > 0) {
isCreateLabel.value = true
} else {
isCreateLabel.value = false
}
}).catch((err) => {
})
.catch((err) => {
isCreateLabel.value = false
console.log(err)
})
@ -1082,18 +1090,35 @@ const labelPrint = async (row) => {
// labelPrint(row)
await UnplannedreceiptRequestDetailApi.getDetailList(row.masterId).then(async (res) => {
if (res.length > 0) {
const itemType = res.some((item) => item.itemType == '可采购' && item.itemBasicType =='TOOL')//
const itemType2 = res.some((item) => item.itemType == '可采购' && item.itemBasicType !='TOOL')
const itemType = res.some(
(item) => item.itemType == '可采购' && item.itemBasicType == 'TOOL'
) //
const itemType2 = res.some(
(item) => item.itemType == '可采购' && item.itemBasicType != 'TOOL'
)
const itemType1 = res.some((item) => item.itemType == '可制造')
if (itemType) {
window.open( BASE_URL + '/jmreport/view/1028102732077142016?token=' + getAccessToken() + '&request_number=' + row.number )
window.open(
BASE_URL +
'/jmreport/view/1028102732077142016?token=' +
getAccessToken() +
'&request_number=' +
row.number
)
}
if (itemType2) {
window.open( BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken() + '&request_number=' + row.number )
window.open(
BASE_URL +
'/jmreport/view/1016234988731322368?token=' +
getAccessToken() +
'&request_number=' +
row.number
)
}
if (itemType1) {
// window.open(src.value + '&request_number=' + row.number)
await PackageApi.batchPrintingLableForYT(row.number).then((res) => {
await PackageApi.batchPrintingLableForYT(row.number)
.then((res) => {
console.log(res)
const src = ref(
BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()

24
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts

@ -1423,18 +1423,18 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
isTableForm: false,
isForm: false
},
{
label: '操作',
field: 'action',
isDetail: false,
hiddenInMain:true,
isForm: false ,
table: {
width: 150,
fixed: 'right'
},
isTableForm:false,
}
// {
// label: '操作',
// field: 'action',
// isDetail: false,
// hiddenInMain:true,
// isForm: false ,
// table: {
// width: 150,
// fixed: 'right'
// },
// isTableForm:false,
// }
]))
function validateQty(rule, value, callback) {
if (value>0) {

416
src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts

@ -15,28 +15,29 @@ const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = {
pageSize:10,
pageNo:1,
code:'RepleinmentRequest',
pageSize: 10,
pageNo: 1,
code: 'RepleinmentRequest',
businessTypeCode: 'Repleinment'
}
const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData =data?.list[0]||{}
const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData = data?.list[0] || {}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
import {getLocationPageRepleinsh} from "@/api/wms/location";
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept]
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
import { getLocationPageRepleinsh } from '@/api/wms/location'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray: any = [userDept]
/**
* @returns {Array}
*/
export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
export const RepleinshRequestMain = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
@ -47,18 +48,18 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
},
isForm: false,
isSearch: true,
sortSearchDefault:1,
sortSearchDefault: 1
},
{
label: '状态',
field: 'status',
dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string',
isForm:false,
isForm: false,
isTable: true,
isSearch: true,
sort: 'custom',
sortTableDefault:1,
sortTableDefault: 1,
table: {
width: 150
},
@ -69,65 +70,6 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '到库位代码',
field: 'toLocationCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
// isTableForm: false,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch:true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择到库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPageRepleinsh, // 查询弹窗所需分页方法
searchCondition:[{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
},
tableForm:{
isInpuFocusShow: true,
searchListPlaceholder: '请选择到库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPageRepleinsh, // 查询弹窗所需分页方法
searchCondition:[{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
},
},
{
label: '来源',
field: 'sourceType',
sort: 'custom',
table: {
width: 150
},
isForm: false,
isTable: true,
isDetail: true
},
{
label: '生产线代码',
field: 'productionLineCode',
@ -150,9 +92,9 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true,
isDetail: true
},
{
{
label: '日期',
sortTableDefault:5,
sortTableDefault: 5,
field: 'day',
sort: 'custom',
isDetail: true,
@ -182,9 +124,75 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
detail: {
dateFormat:'YYYY-MM-DD'
dateFormat: 'YYYY-MM-DD'
}
},
{
label: '到库位代码',
field: 'toLocationCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain: true,
// isTableForm: false,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择到库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPageRepleinsh, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
],
verificationParams: [
{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true
}
] // 失去焦点校验参数
}
},
tableForm: {
isInpuFocusShow: true,
searchListPlaceholder: '请选择到库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPageRepleinsh, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
]
}
},
{
label: '来源',
field: 'sourceType',
sort: 'custom',
table: {
width: 150
},
isForm: false,
isTable: true,
isDetail: true
},
{
label: '便次',
field: 'deliNo',
@ -193,12 +201,12 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable:true,
isTable: true,
form: {
component: 'InputNumber',
componentProps: {
min: 1,
},
min: 1
}
}
},
{
@ -211,7 +219,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isForm: false,
isForm: false
},
{
label: '到库区类型范围',
@ -223,7 +231,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isForm: false,
isForm: false
},
{
label: '从库区代码范围',
@ -233,7 +241,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
isTable: false,
isForm: false,
isForm: false
},
{
label: '到库区代码范围',
@ -243,7 +251,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
isTable: false,
isForm: false,
isForm: false
},
{
label: '申请时间',
@ -260,13 +268,13 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'DatePicker',
componentProps: {
style: { width:'100%'},
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
isForm: false,
isForm: false
},
{
label: '截止时间',
@ -283,18 +291,18 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'DatePicker',
componentProps: {
style: { width:'100%'},
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
},
{
label: '部门',
field: 'departmentCode',
sort: 'custom',
isForm:false,
isForm: false,
table: {
width: 150
},
@ -322,14 +330,14 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable:false,
isTable: false,
form: {
value: 'Repleinment',
componentProps: {
disabled: true
}
},
isForm: false,
isForm: false
},
{
label: '备注',
@ -388,7 +396,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: false,
isForm:false,
isForm: false,
sort: 'custom',
table: {
width: 150
@ -408,7 +416,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'autoAgree',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isForm:false,
isForm: false,
isTable: false,
sort: 'custom',
table: {
@ -429,7 +437,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'autoExecute',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isForm:false,
isForm: false,
isTable: false,
sort: 'custom',
table: {
@ -482,7 +490,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
isForm: false,
@ -493,8 +501,8 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
},
},
}
}
},
{
label: '创建者',
@ -504,7 +512,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
isTable: true,
isForm: false,
isForm: false
},
{
label: '最后更新时间',
@ -518,18 +526,18 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 180
},
isDetail: true,
hiddenInMain:true,
hiddenInMain: true,
isTable: false,
form: {
component: 'DatePicker',
componentProps: {
style: { width:'100%'},
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
isForm: false,
isForm: false
},
{
label: '最后更新者',
@ -538,11 +546,11 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain:true,
hiddenInMain: true,
isTable: false,
isDetail: true,
isForm: false,
},
isForm: false
}
// {
// label: '操作',
// field: 'action',
@ -573,52 +581,32 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
// },
// sortTableDefault:8,
// },
]))
])
)
//表单校验
export const RepleinshRequestMainRules = reactive({
fromWarehouseCode: [
{ required: true, message: '请输入从仓库代码', trigger: 'blur' }
],
fromAreaTypes: [
{ required: true, message: '请选择从库区类型范围', trigger: 'change' }
],
toWarehouseCode: [
{ required: true, message: '请输入到仓库代码', trigger: 'blur' }
],
toAreaTypes: [
{ required: true, message: '请选择到库区类型范围', trigger: 'change' }
],
departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' }
],
autoCommit: [
{ required: true, message: '请选择是否自动提交', trigger: 'change' }
],
autoAgree: [
{ required: true, message: '请选择是否自动通过', trigger: 'change' }
],
autoExecute: [
{ required: true, message: '请选择是否自动执行', trigger: 'change' }
],
toLocationCode: [
{ required: true, message: '请输入到库位代码', trigger: ['change', 'blur']}
],
fromWarehouseCode: [{ required: true, message: '请输入从仓库代码', trigger: 'blur' }],
fromAreaTypes: [{ required: true, message: '请选择从库区类型范围', trigger: 'change' }],
toWarehouseCode: [{ required: true, message: '请输入到仓库代码', trigger: 'blur' }],
toAreaTypes: [{ required: true, message: '请选择到库区类型范围', trigger: 'change' }],
departmentCode: [{ required: true, message: '请输入部门', trigger: 'blur' }],
autoCommit: [{ required: true, message: '请选择是否自动提交', trigger: 'change' }],
autoAgree: [{ required: true, message: '请选择是否自动通过', trigger: 'change' }],
autoExecute: [{ required: true, message: '请选择是否自动执行', trigger: 'change' }],
toLocationCode: [{ required: true, message: '请输入到库位代码', trigger: ['change', 'blur'] }],
directCreateRecord: [
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
],
businessType: [
{ required: true, message: '请输入业务类型', trigger: 'blur' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
businessType: [{ required: true, message: '请输入业务类型', trigger: 'blur' }],
remark: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }]
})
/**
* @returns {Array}
*/
export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
export const RepleinshRequestDetail = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '品番',
field: 'itemCode',
@ -626,9 +614,9 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isSearch:true,
sortSearchDefault:2,
sortTableDefault:3,
isSearch: true,
sortSearchDefault: 2,
sortTableDefault: 3,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
@ -638,49 +626,56 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '物料基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
searchCondition:[{
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
]
}
},
tableForm:{
multiple:true,
disabled:true,
tableForm: {
multiple: true,
disabled: true,
// isInpuFocusShow: true,
searchListPlaceholder: '请选择品番', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '物料基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
searchCondition:[{
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key : 'businessTypeCode',
},
{
key: 'businessTypeCode',
value: queryParams.businessTypeCode
}],
}
],
verificationPage: ItembasicApi.getItemListByCodes, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true,
verificationParams: [{
verificationParams: [
{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
},
isFormModel: true
}
] // 失去焦点校验参数
}
},
{
label: '品名',
field: 'itemName',
sort: 'custom',
sortTableDefault:4,
sortTableDefault: 4,
isTableForm: false,
isForm: false,
isForm: false
},
{
label: '背番',
@ -700,17 +695,17 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain:true,
hiddenInMain: true,
isTableForm: false,
isForm: false,
isForm: false
},
{
label: '数量',
field: 'unexecutedQty',
sort: 'custom',
sortTableDefault:4,
sortTableDefault: 4,
isTableForm: false,
isForm: false,
isForm: false
},
{
label: '计量单位',
@ -722,7 +717,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:9,
sortTableDefault: 9,
tableForm: {
type: 'Select',
disabled: true
@ -740,14 +735,14 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain:true,
sortSearchDefault:1000,
hiddenInMain: true,
sortSearchDefault: 1000,
// isSearch: true,
sortTableDefault:1100,
sortTableDefault: 1100,
isTableForm: false,
form: {
componentProps: {
disabled:true,
disabled: true
}
}
},
@ -781,17 +776,19 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTableForm: false,
isTable:false,
isTable: false,
sort: 'custom',
form: {
value: 'OK',
componentProps: {
disabled: true,
searchCondition:[{
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
]
}
},
table: {
@ -811,9 +808,9 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
hiddenInMain:true,
hiddenInMain: true,
isTableForm: false,
isTable:false,
isTable: false,
form: {
componentProps: {
disabled: true
@ -825,12 +822,12 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '备注',
field: 'remark',
sort: 'custom',
isTableForm:false,
isTableForm: false,
table: {
width: 150
},
isTable:false,
hiddenInMain:true,
isTable: false,
hiddenInMain: true
},
{
label: '创建时间',
@ -843,14 +840,14 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
hiddenInMain:true,
hiddenInMain: true,
form: {
component: 'DatePicker',
componentProps: {
style: { width:'100%'},
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
isTableForm: false,
@ -863,7 +860,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain:true,
hiddenInMain: true,
isTableForm: false,
isForm: false
},
@ -875,10 +872,10 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain:true,
hiddenInMain: true,
isTableForm: false,
isTable:false,
isForm: false,
isTable: false,
isForm: false
},
{
@ -888,10 +885,10 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain:true,
hiddenInMain: true,
isTableForm: false,
sortTableDefault:1,
isTable:false,
sortTableDefault: 1,
isTable: false
},
{
label: '订单行',
@ -900,10 +897,10 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain:true,
hiddenInMain: true,
isTableForm: false,
sortTableDefault:2,
isTable:false,
sortTableDefault: 2,
isTable: false
},
{
@ -915,8 +912,8 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
},
isTableForm: false,
isForm: false,
hiddenInMain:true,
isTable:false,
hiddenInMain: true,
isTable: false
},
{
label: '到货主代码',
@ -927,8 +924,8 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
},
isTableForm: false,
isForm: false,
hiddenInMain:true,
isTable:false,
hiddenInMain: true,
isTable: false
},
{
label: '最后更新时间',
@ -941,17 +938,17 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
isTable:false,
isTable: false,
form: {
component: 'DatePicker',
componentProps: {
style: { width:'100%'},
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
hiddenInMain:true,
hiddenInMain: true,
isTableForm: false,
isForm: false
},
@ -963,10 +960,10 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
isTableForm: false,
hiddenInMain:true,
isTable:false,
hiddenInMain: true,
isTable: false,
isForm: false
},
}
// {
// label: '未执行任务数量',
// field: 'unexecutedQty',
@ -992,7 +989,8 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
// },
// isTableForm:false,
// }
]))
])
)
//表单校验
export const RepleinshRequestDetailRules = reactive({
@ -1002,10 +1000,6 @@ export const RepleinshRequestDetailRules = reactive({
// toLocationCode: [
// { required: true, message: '请输入到库位代码', trigger: 'blur' }
// ],
itemCode: [
{ required: true, message: '请输入品番', trigger: 'blur' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
itemCode: [{ required: true, message: '请输入品番', trigger: 'blur' }],
remark: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }]
})

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

@ -212,7 +212,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:supplierinvoice-record-main:export'}), //
defaultButtons.mainLisSelectiontPointBtn(null), //
// defaultButtons.mainLisSelectiontPointBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //

Loading…
Cancel
Save