Browse Source

Merge branch 'hella_online_20240803' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into hella_online_20240803

hella_online_20240821
zhaoxuebing 3 months ago
parent
commit
0a85fbac78
  1. 106
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  2. 96
      src/views/wms/inventoryManage/package/index.vue
  3. 1
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts
  4. 2
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts
  5. 31
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
  6. 3
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts
  7. 14
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

106
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

@ -895,24 +895,24 @@ export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ // {
label: '承运商', // label: '承运商',
field: 'carrierCode', // field: 'carrierCode',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
}, // },
{ // {
label: '运输方式', // label: '运输方式',
field: 'transferMode', // field: 'transferMode',
sort: 'custom', // sort: 'custom',
dictType: DICT_TYPE.TRANSFER_MODE, // dictType: DICT_TYPE.TRANSFER_MODE,
dictClass: 'string', // dictClass: 'string',
table: { // table: {
width: 150 // width: 150
}, // },
}, // },
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
@ -997,41 +997,41 @@ export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{ // {
label: '备注', // label: '备注',
field: 'remark', // field: 'remark',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
isTable: false, // isTable: false,
}, // },
{ // {
label: '计划数量', // label: '计划数量',
field: 'planQty', // field: 'planQty',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
isTable: false, // isTable: false,
tableForm: { // tableForm: {
disabled: true // disabled: true
}, // },
isForm: false, // isForm: false,
}, // },
{ // {
label: '已收货数量', // label: '已收货数量',
field: 'shippedQty', // field: 'shippedQty',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
isTable: false, // isTable: false,
tableForm: { // tableForm: {
disabled: true // disabled: true
}, // },
isForm: false, // isForm: false,
}, // },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

96
src/views/wms/inventoryManage/package/index.vue

@ -71,7 +71,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import * as EquipmentInspectionRecordMainApi from "@/api/eam/equipmentInspectionRecordMain"; import * as EquipmentInspectionRecordMainApi from "@/api/eam/equipmentInspectionRecordMain";
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
//
defineOptions({ name: 'package' }) defineOptions({ name: 'package' })
const message = useMessage() // const message = useMessage() //
@ -193,26 +193,26 @@ const handleSelectionPoint = async ()=>{
text: 'loading...', text: 'loading...',
background: 'rgba(0, 0, 0, 0.7)' background: 'rgba(0, 0, 0, 0.7)'
}) })
// InventoryinitRecordDetailApi.printLabelBatchByIdSelection(rows.join(",")).then(res => { PackageApi.batchPrintingLable(rows).then(res => {
// console.log('res',res); console.log('批量打印res',res);
// getLoading?.close() getLoading?.close()
// if(res.zzLabel){ if(res.zzLabel){
// // //
// 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.zzLabel) window.open(src.value+'&asn_number='+res.zzLabel)
// } }
// if (res.cgLabel) { if (res.cgLabel) {
// // //
// const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
// window.open(src.value+'&asn_number='+res.cgLabel) window.open(src.value+'&asn_number='+res.cgLabel)
// } }
// if(!res.cgLabel&&!res.zzLabel){ if(!res.cgLabel&&!res.zzLabel){
// message.warning('线!') message.warning('包装不存在,无法打印或者是线边物料数据不生成包装!')
// } }
// }).catch(err => { }).catch(err => {
// console.log(err) console.log(err)
// getLoading?.close() getLoading?.close()
// }) })
} }
@ -359,28 +359,46 @@ const formsSuccess = async (formType,data) => {
const labelType = ref('') // const labelType = ref('') //
const handlePoint = async (row) => { const handlePoint = async (row) => {
console.log(row.packingNumber,445555555555555); console.log(row.packingNumber,445555555555555);
PackageApi.getBalanceToPackage(row.number).then(res => { PackageApi.batchPrintingLable([row.number]).then(res => {
console.log(777,res); console.log('批量打印res',res);
if (res.productionLineCode != null) { if(res.zzLabel){
labelType.value = 'zz' //
} else { const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
labelType.value = 'cg' window.open(src.value+'&asn_number='+res.zzLabel)
}
if (res.cgLabel) {
//
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
window.open(src.value+'&asn_number='+res.cgLabel)
}
if(!res.cgLabel&&!res.zzLabel){
message.warning('包装不存在,无法打印或者是线边物料数据不生成包装!')
} }
PackageApi.batchPrintingLable((res.number)).then((resLable) =>{
console.log(159,resLable )
//
if (labelType.value == 'cg') {
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
console.log(159,resLable )
window.open(src.value+'&asn_number='+resLable)
} else {
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
window.open(src.value+'&asn_number='+resLable)
}
})
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
}) })
// PackageApi.getBalanceToPackage(row.number).then(res => {
// console.log(777,res);
// if (res.productionLineCode != null) {
// labelType.value = 'zz'
// } else {
// labelType.value = 'cg'
// }
// PackageApi.batchPrintingLable((res.number)).then((resLable) =>{
// console.log(159,resLable )
// //
// if (labelType.value == 'cg') {
// const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
// console.log(159,resLable )
// window.open(src.value+'&asn_number='+resLable)
// } else {
// const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
// window.open(src.value+'&asn_number='+resLable)
// }
// })
// }).catch(err => {
// console.log(err)
// })
} }
/** 导入 */ /** 导入 */

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

@ -115,6 +115,7 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 180 width: 180
}, },
isSearch: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {

2
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts

@ -564,11 +564,13 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
disabled:true,
min:0, min:0,
precision: 6 precision: 6
} }
}, },
tableForm: { tableForm: {
disabled:true,
type: 'InputNumber', type: 'InputNumber',
min:0, min:0,
precision: 6 precision: 6

31
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

@ -59,7 +59,21 @@
@tableSelectionDelete="tableSelectionDelete" @tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@submitForm="submitForm" @submitForm="submitForm"
/> >
<template v-slot="{ row }">
<el-date-picker
v-bind:modelValue="
row['expireTime']
? addDay(row['produceDate'], row['expireTime'])
: dayjs('2099-12-31').valueOf()
"
:clearable="true"
style="width: 100%"
:disabled="true"
:placeholder="t('ts.选择日期')"
/>
</template>
</BasicForm>
<!-- 详情 --> <!-- 详情 -->
<Detail <Detail
@ -142,9 +156,12 @@ import {
} from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts' } from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import dayjs from 'dayjs'
import { addDay } from '@/utils/formatTime'
// //
// //
//
defineOptions({ name: 'ProductreceiptRequestMain' }) defineOptions({ name: 'ProductreceiptRequestMain' })
const message = useMessage() // const message = useMessage() //
@ -221,6 +238,12 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro
row['bomVersion'] = res.list[0].version row['bomVersion'] = res.list[0].version
} }
}) })
//
row['produceDate'] = dayjs().valueOf()
if(res.length>0){
row['expireTime'] = res[0]['expireTime']
}
}else if(formField == 'workStationCode'){ }else if(formField == 'workStationCode'){
// //
val.forEach(item=>{ val.forEach(item=>{
@ -595,7 +618,13 @@ const submitForm = async (formType, submitData) => {
if(data.masterId){ if(data.masterId){
data.id = data.masterId data.id = data.masterId
} }
data.subList = tableData.value // data.subList = tableData.value //
tableData.value.forEach((row, index) => {
row['expireDate'] = row['expireTime']
? addDay(row['produceDate'], row['expireTime']).valueOf()
: dayjs('2099-12-31').valueOf()
})
if(data.subList.find(item => (item.qty <= 0))) { if(data.subList.find(item => (item.qty <= 0))) {
message.warning('数量必须大于0') message.warning('数量必须大于0')
return return

3
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts

@ -1238,7 +1238,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 180 width: 180
}, },
tableForm: { tableForm: {
type: 'FormDate', type: 'slot',
disabled: true,
valueFormat: 'x', valueFormat: 'x',
}, },
form: { form: {

14
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

@ -510,15 +510,15 @@ const blurOne = (oneRow, twoRow) => {
if (!twoRow.xNumber) { if (!twoRow.xNumber) {
twoRow.qtyOne = '' twoRow.qtyOne = ''
} }
// if (parseFloat(twoRow.xNumber) > parseFloat(oneRow.otherNumber)) { if (parseFloat(twoRow.xNumber) > parseFloat(oneRow.otherNumber)) {
// message.warning('' + oneRow.otherNumber + '') message.warning('每托箱个数最多' + oneRow.otherNumber + '箱')
// twoRow.xNumber = oneRow.otherNumber twoRow.xNumber = oneRow.otherNumber
// twoRow.children = [] twoRow.children = []
// twoRow.qtyOne = parseFloat(twoRow.xNumber) * parseFloat(oneRow.packQty) twoRow.qtyOne = parseFloat(twoRow.xNumber) * parseFloat(oneRow.packQty)
// } }
twoRow.qtyOne = parseFloat(twoRow.xNumber) twoRow.qtyOne = parseFloat(twoRow.xNumber)
? accuracyFun.multiply(parseFloat(twoRow.xNumber), parseFloat(oneRow.packQty)) ? accuracyFun.multiply(parseFloat(twoRow.xNumber), parseFloat(oneRow.packQty))
: '' : ''
// let num = 0 // let num = 0
// oneRow.packageList.forEach((item) => { // oneRow.packageList.forEach((item) => {
// num += parseFloat(item.xNumber) || 0 // num += parseFloat(item.xNumber) || 0

Loading…
Cancel
Save