Browse Source

线边原料报废修改

linshi20240813
zhaoxuebing 4 months ago
parent
commit
33946a5da9
  1. 48
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue
  2. 66
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts

48
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

@ -341,17 +341,17 @@ const butttondata = (row,$index) => {
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']), hasPermi:'wms:productionscrap-request-main:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:productionreturn-request-main:delete'}), //
//
{
label: '创建标签',
name: 'cjbq',
hide: isShowMainButton(row,['3']),
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true, //
},
defaultButtons.mainListPointBtn({hide:isShowMainButton(row,['3','6','8'])}), //
// {
// label: '',
// name: 'cjbq',
// hide: isShowMainButton(row,['3']),
// type: 'primary',
// icon: '',
// color: '',
// hasPermi: '',
// link: true, //
// },
// defaultButtons.mainListPointBtn({hide:isShowMainButton(row,['3','6','8'])}), //
]
}
@ -483,19 +483,19 @@ const buttonTableClick = async (val, row) => {
})
} else if (val == 'mainHandle') { //
//
let isCreateLabel = false
await PackageApi.getPackagePage({
requestNumber: row.number
}).then(res => {
if (res) {
if (res.list.length > 0) isCreateLabel = true
}
})
if (!isCreateLabel) {
message.warning('请先创建标签')
return
}
// //
// let isCreateLabel = false
// await PackageApi.getPackagePage({
// requestNumber: row.number
// }).then(res => {
// if (res) {
// if (res.list.length > 0) isCreateLabel = true
// }
// })
// if (!isCreateLabel) {
// message.warning('')
// return
// }
tableObject.loading = true
ProductionscrapRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))

66
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts

@ -26,6 +26,9 @@ import { TableColumn } from '@/types/table'
import * as InspectionQ3Api from '@/api/qms/inspectionQ3'
import { Q3 } from '@/views/qms/inspectionQ3/inspectionQ3.data'
// import * as LocationApi from '@/api/wms/location'
// import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
@ -697,6 +700,53 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}], // 失去焦点校验参数
},
},
// {
// label: '目标库位',
// field: 'toLocationCode',
// sort: 'custom',
// tableForm: {
// multiple: true,//多选
// isInpuFocusShow: true, // 开启查询弹窗
// searchListPlaceholder: '请选择库位代码', // 输入框占位文本
// searchField: 'code', // 查询弹窗赋值字段
// searchTitle: '库位基础信息', // 查询弹窗标题
// searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
// searchPage: LocationApi.selectBusinessTypeOutLocation, // 查询弹窗所需分页方法
// searchCondition: [{
// key: 'businessType',
// value: 'ProductionScrap', // 线边原料报废
// isMainValue: false
// },
// {
// key: 'isIn',
// value: 'in',
// isMainValue: false
// }
// ]
// },
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// isSearchList: true, // 开启查询弹窗
// multiple: true,//多选
// searchListPlaceholder: '请选择库位代码', // 输入框占位文本
// searchField: 'code', // 查询弹窗赋值字段
// searchTitle: '库位基础信息', // 查询弹窗标题
// searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
// searchPage: LocationApi.selectBusinessTypeOutLocation, // 查询弹窗所需分页方法
// searchCondition: [{
// key: 'businessType',
// value: 'ReturnToHold', // 隔离退料
// isMainValue: false
// },
// {
// key: 'isIn',
// value: 'in',
// isMainValue: false
// }]
// }
// }
// },
{
label: '原料库位',
field: 'fromLocationCode',
@ -953,12 +1003,12 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]
label: '包装规格',
field: 'packUnit',
sort: 'custom',
isSearch: true,
isSearch: false,
table: {
width: 120
},
isTable:true,
isTableForm: true,
isTable:false,
isTableForm: false,
tableForm: {
enterSearch:true,
isInpuFocusShow: true,
@ -1016,8 +1066,8 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 120
},
isTable:true,
isTableForm: true,
isTable:false,
isTableForm: false,
tableForm:{
disabled: true
},
@ -1152,9 +1202,9 @@ export const ProductionscrapRequestDetailRules = reactive({
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
packUnit: [
{ required: true, message: '请选择包装规格', trigger: 'blur' }
]
// packUnit: [
// { required: true, message: '请选择包装规格', trigger: 'blur' }
// ]
})
/**

Loading…
Cancel
Save