Browse Source

客户退货,生成标签打印,发到寄售库是去包装的,退货申请时现在是带出包装的,导致pda的包装不对,应去掉退货申请时的包装

hella_online_20240815
王宇飞 6 months ago
parent
commit
41e25469fc
  1. 82
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts
  2. 18
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

82
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts

@ -882,47 +882,47 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
} }
} }
}, },
{ // {
label: '包装号', // label: '包装号',
field: 'packingNumber', // field: 'packingNumber',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
tableForm:{ // tableForm:{
isInpuFocusShow: true, // 开启查询弹窗 // isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装号', // searchListPlaceholder: '请选择包装号',
searchField: 'packingNumber', // searchField: 'packingNumber',
searchTitle: '库存余额信息', // searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, // searchAllSchemas: Balance.allSchemas,
searchPage: CustomerreturnRequestApi.pageItemCodeToBalance, // searchPage: CustomerreturnRequestApi.pageItemCodeToBalance,
searchCondition: [{ // searchCondition: [{
key:'customerCode', // 查询列表中字段 // key:'customerCode', // 查询列表中字段
value:'customerCode', // 指主表某字段 // value:'customerCode', // 指主表某字段
message: '请选择客户代码!', // 当前置条件为空时 弹出信息提示 // message: '请选择客户代码!', // 当前置条件为空时 弹出信息提示
isMainValue: true // 表示查询条件是主表的字段的值 // isMainValue: true // 表示查询条件是主表的字段的值
} // }
] // ]
}, // },
form: { // form: {
// labelMessage: '信息提示说明!!!', // // labelMessage: '信息提示说明!!!',
componentProps: { // componentProps: {
isSearchList: true, // 开启查询弹窗 // isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装号', // searchListPlaceholder: '请选择包装号',
searchField: 'packingNumber', // searchField: 'packingNumber',
searchTitle: '库存余额信息', // searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, // searchAllSchemas: Balance.allSchemas,
searchPage: CustomerreturnRequestApi.pageItemCodeToBalance, // searchPage: CustomerreturnRequestApi.pageItemCodeToBalance,
searchCondition: [{ // searchCondition: [{
key:'customerCode', // 查询列表中字段 // key:'customerCode', // 查询列表中字段
value:'customerCode', // 指主表某字段 // value:'customerCode', // 指主表某字段
message: '请选择客户代码!', // 当前置条件为空时 弹出信息提示 // message: '请选择客户代码!', // 当前置条件为空时 弹出信息提示
isMainValue: true // 表示查询条件是主表的字段的值 // isMainValue: true // 表示查询条件是主表的字段的值
} // }
] // ]
} // }
} // }
}, // },
// { // {
// label: '器具号', // label: '器具号',
// field: 'containerNumber', // field: 'containerNumber',

18
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -220,6 +220,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
value = obj.fromLocationCode value = obj.fromLocationCode
obj.fromLocationCode = obj.toLocationCode obj.fromLocationCode = obj.toLocationCode
obj.toLocationCode = '' obj.toLocationCode = ''
obj.packingNumber = '' //
CustomerreturnRequestDetail.allSchemas.tableFormColumns.map(item =>{ CustomerreturnRequestDetail.allSchemas.tableFormColumns.map(item =>{
if(item.field == 'packingNumber') { if(item.field == 'packingNumber') {
item.isInpuFocusShow = false item.isInpuFocusShow = false
@ -319,6 +320,7 @@ const isShowMainButton = (row,val) => {
} }
} }
// - // -
const butttondata = (row,$index) => { const butttondata = (row,$index) => {
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
@ -336,7 +338,8 @@ const butttondata = (row,$index) => {
{ {
label: '生成标签', label: '生成标签',
name: 'ssbq', name: 'ssbq',
hide: isShowMainButton(row, ['3','6']), // hide: isShowMainButton(row, ['3','6']),
hide: isShowMainButton(row, ['3']),
type: 'primary', type: 'primary',
icon: '', icon: '',
color: '', color: '',
@ -407,6 +410,19 @@ const buttonTableClick = async (val, row) => {
console.log(err) console.log(err)
}) })
} else if (val == 'mainHandle') { // } 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
}
await message.confirm('确认要处理吗?') await message.confirm('确认要处理吗?')
tableObject.loading = true tableObject.loading = true
CustomerreturnRequestMainApi.handle(row.masterId).then(() => { CustomerreturnRequestMainApi.handle(row.masterId).then(() => {

Loading…
Cancel
Save