ljlong_2630 2 days ago
parent
commit
23000ac3c6
  1. 5
      src/api/wms/package/index.ts
  2. 3
      src/views/wms/inventoryManage/balance/index.vue
  3. 22
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts
  4. 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) => { export const batchPrintingLableGet = async (params: any) => {
return await request.get({ url: `/wms/package/batchPrintingBalanceLable`, params }) 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) => { export const batchPrintingLables = async (data: any) => {
return await request.post({ url: `/wms/package/batchPrintingLables`, data }) 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, packingNumber:detatableData1.value[0].number,
batch:detatableData1.value[0].batch, batch:detatableData1.value[0].batch,
printQty:detatableData1.value[0].printQty, printQty:detatableData1.value[0].printQty,
packQty:detatableData1.value[0].packQty,
} }
// const isHave = detatableData1.value.find(item => parseFloat(item.printQty) <= 0) // const isHave = detatableData1.value.find(item => parseFloat(item.printQty) <= 0)
if(!parseFloat(obj.printQty) ){ if(!parseFloat(obj.printQty) ){
message.error(`物料号${obj.itemCode}打印数量不可以为0`) message.error(`物料号${obj.itemCode}打印数量不可以为0`)
return; return;
} }
await PackageApi.batchPrintingLableGet(obj).then(res => { await PackageApi.batchPrintingBalanceLableForCreate(obj).then(res => {
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
window.open(src.value+'&asn_number='+res) window.open(src.value+'&asn_number='+res)
}).catch(err => { }).catch(err => {

22
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts

@ -338,14 +338,14 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
}, },
{ // {
label: '部门', // label: '部门',
field: 'departmentCode', // field: 'departmentCode',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
}, // },
{ {
label: '接口类型', label: '接口类型',
field: 'interfaceType', field: 'interfaceType',
@ -535,9 +535,9 @@ export const UnplannedreceiptRecordMainRules = reactive({
available: [ available: [
{ required: true, message: '请输入是否可用', trigger: 'blur' } { required: true, message: '请输入是否可用', trigger: 'blur' }
], ],
departmentCode: [ // departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' } // { required: true, message: '请输入部门', trigger: 'blur' }
], // ],
interfaceType: [ interfaceType: [
{ required: true, message: '请选择接口类型', trigger: 'change' } { required: true, message: '请选择接口类型', trigger: 'change' }
], ],

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

Loading…
Cancel
Save