|
|
@ -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('') |
|
|
|