Browse Source

采购收货申请生成标签EDI可以输入生产标签,饼带出批次

hella_online_20240829
zhang_li 5 months ago
parent
commit
e6415d3f17
  1. 23
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

23
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -112,6 +112,7 @@
:isShowReduceButton="false"
@submitForm="submitFormLabel"
@searchTableSuccess="searchTableSuccessLabel"
@formFormDateChange="onChangeLabel"
/>
<!-- 子包装弹窗 -->
@ -168,6 +169,7 @@ import * as PurchaseDetailApi from '@/api/wms/purchaseDetail'
import * as ItembasicApi from '@/api/wms/itembasic'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { getReportUrl } from '@/utils/systemParam'
import { dateFormatter2 } from '@/utils/formatTime'
//
defineOptions({ name: 'PurchasereceiptRequestMain' })
@ -394,6 +396,20 @@ const buttonTableClick = async (val, row) => {
masterId:row.masterId
}
genLabelId.value = row.masterId
// EDI
if (row.sourceType == 'EDI') {
PurchasereceiptRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => {
if (item.field == 'produceDate') {
item.tableForm.disabled = false
}
})
} else {
PurchasereceiptRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => {
if (item.field == 'produceDate') {
item.tableForm.disabled = true
}
})
}
await getDetailList()
formLabelRef.value.open('create', row, null,'createLabel')// createLabel
}else if (val == 'point') {
@ -404,7 +420,12 @@ const buttonTableClick = async (val, row) => {
checkQualityReport(row)
}
}
//
const onChangeLabel =(field,e,row, index) => {
const arr = dateFormatter2('', '', e)?.split('-')
const str = arr[0]+arr[1]+arr[2]
row.batch = str
}
//
const showQualityReport = ref(false)
const qualityReport = ref('')

Loading…
Cancel
Save