Browse Source

线边原料报废修改

linshi20240813
zhaoxuebing 3 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.mainListEditBtn({hide:isShowMainButton(row,['1']), hasPermi:'wms:productionscrap-request-main:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:productionreturn-request-main:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:productionreturn-request-main:delete'}), //
// //
{ // {
label: '创建标签', // label: '',
name: 'cjbq', // name: 'cjbq',
hide: isShowMainButton(row,['3']), // hide: isShowMainButton(row,['3']),
type: 'primary', // type: 'primary',
icon: '', // icon: '',
color: '', // color: '',
hasPermi: '', // hasPermi: '',
link: true, // // link: true, //
}, // },
defaultButtons.mainListPointBtn({hide:isShowMainButton(row,['3','6','8'])}), // // defaultButtons.mainListPointBtn({hide:isShowMainButton(row,['3','6','8'])}), //
] ]
} }
@ -483,19 +483,19 @@ const buttonTableClick = async (val, row) => {
}) })
} else if (val == 'mainHandle') { // } else if (val == 'mainHandle') { //
// // //
let isCreateLabel = false // let isCreateLabel = false
await PackageApi.getPackagePage({ // await PackageApi.getPackagePage({
requestNumber: row.number // requestNumber: row.number
}).then(res => { // }).then(res => {
if (res) { // if (res) {
if (res.list.length > 0) isCreateLabel = true // if (res.list.length > 0) isCreateLabel = true
} // }
}) // })
if (!isCreateLabel) { // if (!isCreateLabel) {
message.warning('请先创建标签') // message.warning('')
return // return
} // }
tableObject.loading = true tableObject.loading = true
ProductionscrapRequestMainApi.handle(row.masterId).then(() => { ProductionscrapRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess')) 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 * as InspectionQ3Api from '@/api/qms/inspectionQ3'
import { Q3 } from '@/views/qms/inspectionQ3/inspectionQ3.data' 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() // 国际化 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: '原料库位', label: '原料库位',
field: 'fromLocationCode', field: 'fromLocationCode',
@ -953,12 +1003,12 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]
label: '包装规格', label: '包装规格',
field: 'packUnit', field: 'packUnit',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: false,
table: { table: {
width: 120 width: 120
}, },
isTable:true, isTable:false,
isTableForm: true, isTableForm: false,
tableForm: { tableForm: {
enterSearch:true, enterSearch:true,
isInpuFocusShow: true, isInpuFocusShow: true,
@ -1016,8 +1066,8 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 120 width: 120
}, },
isTable:true, isTable:false,
isTableForm: true, isTableForm: false,
tableForm:{ tableForm:{
disabled: true disabled: true
}, },
@ -1152,9 +1202,9 @@ export const ProductionscrapRequestDetailRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
packUnit: [ // packUnit: [
{ required: true, message: '请选择包装规格', trigger: 'blur' } // { required: true, message: '请选择包装规格', trigger: 'blur' }
] // ]
}) })
/** /**

Loading…
Cancel
Save