Browse Source

库存余额修改标签

intex
YEJIAXING-PC\lenovo 2 days ago
parent
commit
4b0db9f4ca
  1. 5
      src/api/wms/package/index.ts
  2. 3
      src/views/wms/inventoryManage/balance/index.vue
  3. 86
      src/views/wms/supplierManage/purchaseClaim/purchaseClaimRecord/PurchaseClaimRecordMain.data.ts

5
src/api/wms/package/index.ts

@ -105,6 +105,11 @@ export const batchPrintingLable = async (data: any) => {
export const batchPrintingLableGet = async (params: any) => {
return await request.get({ url: `/wms/package/batchPrintingBalanceLable`, params })
}
// 批量打印标签+创建新标签
export const batchPrintingBalanceLableForCreate = async (params: any) => {
return await request.get({ url: `/wms/package/batchPrintingBalanceLableForCreate`, params })
}
// 批量打印标签多选
export const batchPrintingLables = async (data: any) => {
return await request.post({ url: `/wms/package/batchPrintingLables`, data })

3
src/views/wms/inventoryManage/balance/index.vue

@ -507,13 +507,14 @@ const pointLabel = async () => {
packingNumber:detatableData1.value[0].number,
batch:detatableData1.value[0].batch,
printQty:detatableData1.value[0].printQty,
packQty:detatableData1.value[0].packQty,
}
// const isHave = detatableData1.value.find(item => parseFloat(item.printQty) <= 0)
if(!parseFloat(obj.printQty) ){
message.error(`物料号${obj.itemCode}打印数量不可以为0`)
return;
}
await PackageApi.batchPrintingLableGet(obj).then(res => {
await PackageApi.batchPrintingBalanceLableForCreate(obj).then(res => {
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
window.open(src.value+'&asn_number='+res)
}).catch(err => {

86
src/views/wms/supplierManage/purchaseClaim/purchaseClaimRecord/PurchaseClaimRecordMain.data.ts

@ -83,27 +83,58 @@ export const PurchaseClaimRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
// {
// label: '索赔时间',
// field: 'claimTime',
// sort: 'custom',
// formatter: dateFormatter,
// table: {
// width: 180
// },
// 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')]
// }
// },
// form: {
// component: 'DatePicker',
// componentProps: {
// type: 'datetime',
// valueFormat: 'x'
// }
// },
// },
{
label: '索赔时间',
field: 'claimTime',
sort: 'custom',
formatter: dateFormatter,
isForm:false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
search: {
form: {
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')]
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
form: {
isSearch: false,
search: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
},
@ -122,25 +153,6 @@ export const PurchaseClaimRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 200
},
},
{
label: '状态',
field: 'status',
dictType: DICT_TYPE.PURCHASECLAIM_REQUEST_STATUS,
dictClass: 'string',
isTable: false,
isForm:false,
sort: 'custom',
table: {
width: 150
},
isSearch: false,
form: {
value: '1',
componentProps: {
disabled: true
}
}
},
{
label: '创建时间',
field: 'createTime',
@ -180,16 +192,16 @@ export const PurchaseClaimRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
},
{
label: '操作',
field: 'action',
isForm: false,
isDetail: false,
table: {
width: 150,
fixed: 'right'
}
}
// {
// label: '操作',
// field: 'action',
// isForm: false,
// isDetail: false,
// table: {
// width: 150,
// fixed: 'right'
// }
// }
]))
// 表单校验
export const PurchaseClaimRecordDetailRules = reactive({

Loading…
Cancel
Save