|
|
@ -133,7 +133,10 @@ const searchTableSuccess = (formField, searchField, val, basicFormRef, type, row |
|
|
|
} |
|
|
|
if (formField == 'toDockCode') { |
|
|
|
setV['receivedLocation'] = val[0]['name'] |
|
|
|
setV['defaultReceivingArea'] = val[0]['remark'] |
|
|
|
setV['defaultReceivingArea'] = val[0]['areaCode'] |
|
|
|
} |
|
|
|
if (formField == 'packUnit') { |
|
|
|
setV['packQty'] = val[0]['packQty'] |
|
|
|
} |
|
|
|
basicFormRef.setValues(setV) |
|
|
|
}) |
|
|
@ -229,7 +232,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
|
handleDelete(row.id) |
|
|
|
} else if (val == 'point') { // 标签打印 |
|
|
|
handlePoint(row) |
|
|
|
handleDocumentPrint(row.id) |
|
|
|
} else if (val == 'enable') { |
|
|
|
handleEnable(row.id) |
|
|
|
} else if (val == 'disable') { |
|
|
@ -306,6 +309,12 @@ const handleExport = async () => { |
|
|
|
} |
|
|
|
|
|
|
|
const BASE_URL = getJmreportBaseUrl() |
|
|
|
const documentSrc = ref(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()) |
|
|
|
const handleDocumentPrint = async (id) => { |
|
|
|
window.open(documentSrc.value + '&id=' + id) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const labelType = ref('') // 标签类别 采购还是制造等 |
|
|
|
const handlePoint = async (row) => { |
|
|
|
PackageApi.getBalanceToPackage(row.relateNumber).then(res => { |
|
|
|