Browse Source

生产退料和计划外入库创建标签

intex_online20241205
张立 2 months ago
parent
commit
28abd96252
  1. 14
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
  2. 4
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts
  3. 13
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  4. 4
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

14
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

@ -505,7 +505,7 @@ const buttonTableClick = async (val, row) => {
formLabelRef.value.open('create', row) formLabelRef.value.open('create', row)
detatableData.tableList.map((item) => { detatableData.tableList.map((item) => {
if (item.itemType=='可采购') { if (item.itemType=='可采购') {
detailListTableColumns.tableFormColumns = UnplannedreceiptRequestDetailLabel.allSchemas.tableFormColumns.filter(item=>item.field != 'productionLineCodePackage') detailListTableColumns.tableFormColumns = UnplannedreceiptRequestDetailLabel.allSchemas.tableFormColumns.filter(item=>item.field != 'productionLineCode')
// tableform // tableform
SupplieritemApi.getSupplieritemPage({ SupplieritemApi.getSupplieritemPage({
pageSize: 10, pageSize: 10,
@ -515,13 +515,13 @@ const buttonTableClick = async (val, row) => {
by: 'ASC', by: 'ASC',
}).then(response => { }).then(response => {
detailListTableColumns.tableFormColumns.map(itemColumns => { detailListTableColumns.tableFormColumns.map(itemColumns => {
if(itemColumns.field == 'supplierItemCode') { if(itemColumns.field == 'supplierCode') {
item.supplierItemCode = response?.list[0]?.supplierCode item.supplierCode = response?.list[0]?.supplierCode
} }
}) })
}) })
}else if (item.itemType=='可制造') { }else if (item.itemType=='可制造') {
detailListTableColumns.tableFormColumns = UnplannedreceiptRequestDetailLabel.allSchemas.tableFormColumns.filter(item => item.field != 'supplierItemCode') detailListTableColumns.tableFormColumns = UnplannedreceiptRequestDetailLabel.allSchemas.tableFormColumns.filter(item => item.field != 'supplierCode')
ProductionlineitemApi.getProductionlineitemPage({ ProductionlineitemApi.getProductionlineitemPage({
pageNo: 1, pageNo: 1,
itemCode: item.itemCode, itemCode: item.itemCode,
@ -529,8 +529,8 @@ const buttonTableClick = async (val, row) => {
by: 'ASC', by: 'ASC',
}).then(response => { }).then(response => {
detailListTableColumns.tableFormColumns.map(itemColumns => { detailListTableColumns.tableFormColumns.map(itemColumns => {
if(itemColumns.field == 'productionLineCodePackage') { if(itemColumns.field == 'productionLineCode') {
item.productionLineCodePackage = response?.list[0]?.productionLineCode item.productionLineCode = response?.list[0]?.productionLineCode
} }
}) })
}) })
@ -930,7 +930,7 @@ const tableFormSelectOnBlur = (field, val, row, index) => {
// //
const BASE_URL = getJmreportBaseUrl() const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/936912164754612224?token=' + getAccessToken()) const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
const labelPrint = async (row) => { const labelPrint = async (row) => {
await UnplannedreceiptRequestDetailApi.getDetailList(row.masterId).then((res) => { await UnplannedreceiptRequestDetailApi.getDetailList(row.masterId).then((res) => {
if (res.length > 0) { if (res.length > 0) {

4
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts

@ -1770,7 +1770,7 @@ export const UnplannedreceiptRequestDetailLabel = useCrudSchemas(reactive<CrudSc
}, },
{ {
label: '标签生产线代码', label: '标签生产线代码',
field: 'productionLineCodePackage', field: 'productionLineCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -1792,7 +1792,7 @@ export const UnplannedreceiptRequestDetailLabel = useCrudSchemas(reactive<CrudSc
}, },
{ {
label: '标签供应商代码', label: '标签供应商代码',
field: 'supplierItemCode', field: 'supplierCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

13
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -577,7 +577,7 @@ const buttonTableClick = async (val, row) => {
delete detailListTableColumnsRules.value.productionLineCodePackage delete detailListTableColumnsRules.value.productionLineCodePackage
// tableform // tableform
detailListTableColumns.tableFormColumns.map(itemColumns => { detailListTableColumns.tableFormColumns.map(itemColumns => {
if(itemColumns.field == 'supplierItemCode') { if(itemColumns.field == 'supplierCode') {
SupplieritemApi.getSupplieritemPage({ SupplieritemApi.getSupplieritemPage({
pageSize: 10, pageSize: 10,
pageNo: 1, pageNo: 1,
@ -585,7 +585,7 @@ const buttonTableClick = async (val, row) => {
sort: '', sort: '',
by: 'ASC', by: 'ASC',
}).then(response => { }).then(response => {
item.supplierItemCode = response.list[0].supplierCode item.supplierCode = response.list[0].supplierCode
formLabelRef.value.formLoading = false formLabelRef.value.formLoading = false
}) })
} }
@ -594,17 +594,16 @@ const buttonTableClick = async (val, row) => {
// //
if (res.list[0].enableMake == "TRUE") { if (res.list[0].enableMake == "TRUE") {
// tableform // tableform
detailListTableColumns.tableFormColumns = ProductionreturnRequestDetailLabel.allSchemas.tableFormColumns.filter(item=>item.field != 'supplierItemCode') detailListTableColumns.tableFormColumns = ProductionreturnRequestDetailLabel.allSchemas.tableFormColumns.filter(item=>item.field != 'supplierCode')
delete detailListTableColumnsRules.value.supplierItemCode
detailListTableColumns.tableFormColumns.map(itemColumns => { detailListTableColumns.tableFormColumns.map(itemColumns => {
if(itemColumns.field == 'productionLineCodePackage') { if(itemColumns.field == 'productionLineCode') {
ProductionlineitemApi.getProductionlineitemPage({ ProductionlineitemApi.getProductionlineitemPage({
pageNo: 1, pageNo: 1,
itemCode: item.itemCode, itemCode: item.itemCode,
sort: '', sort: '',
by: 'ASC', by: 'ASC',
}).then(response => { }).then(response => {
item.supplierItemCode = response.list[0].supplierCode item.productionLineCode = response.list[0].productionLineCode
formLabelRef.value.formLoading = false formLabelRef.value.formLoading = false
}) })
} }
@ -729,7 +728,7 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r
if (array1.length > 0) { if (array1.length > 0) {
await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => { await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => {
console.log(res) console.log(res)
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?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 => {
console.log(err) console.log(err)

4
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

@ -1621,7 +1621,7 @@ export const ProductionreturnRequestDetailLabel = useCrudSchemas(reactive<CrudSc
}, },
{ {
label: '标签生产线代码', label: '标签生产线代码',
field: 'productionLineCodePackage', field: 'productionLineCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -1643,7 +1643,7 @@ export const ProductionreturnRequestDetailLabel = useCrudSchemas(reactive<CrudSc
}, },
{ {
label: '标签供应商代码', label: '标签供应商代码',
field: 'supplierItemCode', field: 'supplierCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

Loading…
Cancel
Save