|
@ -33,8 +33,8 @@ |
|
|
<span>{{ row.number }}</span> |
|
|
<span>{{ row.number }}</span> |
|
|
</el-button> |
|
|
</el-button> |
|
|
</template> |
|
|
</template> |
|
|
<template #action="{ row }"> |
|
|
<template #action="{ row,$index }"> |
|
|
<ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event,row)" /> |
|
|
<ButtonBase :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event,row)" /> |
|
|
</template> |
|
|
</template> |
|
|
</Table> |
|
|
</Table> |
|
|
</ContentWrap> |
|
|
</ContentWrap> |
|
@ -100,9 +100,12 @@ |
|
|
:tableData="detatableData.tableList" |
|
|
:tableData="detatableData.tableList" |
|
|
:isBusiness="true" |
|
|
:isBusiness="true" |
|
|
:isShowButton="false" |
|
|
:isShowButton="false" |
|
|
|
|
|
:isShowReduceButton="false" |
|
|
@submitForm="submitFormLabel" |
|
|
@submitForm="submitFormLabel" |
|
|
/> |
|
|
@searchTableSuccess="searchTableSuccessLabel" |
|
|
|
|
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 子包装弹窗 --> |
|
|
<!-- 子包装弹窗 --> |
|
|
<BasicForm |
|
|
<BasicForm |
|
|
ref="detailParenPackingRef" |
|
|
ref="detailParenPackingRef" |
|
@ -160,6 +163,24 @@ const updataTableColumns = (val) => { |
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
|
|
|
const searchTableSuccessLabel = (formField, searchField, val, formRef, type, row) => { |
|
|
|
|
|
nextTick(() => { |
|
|
|
|
|
if (type == 'tableForm') { |
|
|
|
|
|
// 明细查询页赋值 |
|
|
|
|
|
row[formField] = val[0][searchField] |
|
|
|
|
|
if (formField == 'packUnit' || formField == 'packQty') { |
|
|
|
|
|
row['packUnit'] = val[0]['packUnit'] |
|
|
|
|
|
row['packQty'] = val[0]['packQty'] |
|
|
|
|
|
} |
|
|
|
|
|
if (formField == 'secondPackUnit') { |
|
|
|
|
|
row['secondPackUnit'] = val[0]['packUnit'] |
|
|
|
|
|
row['secondPackQty'] = val[0]['packQty'] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
//console.log("formRef",formRef) |
|
|
//console.log("formRef",formRef) |
|
@ -290,7 +311,11 @@ const isASNShowMainButton = (row,val) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row) => { |
|
|
const butttondata = (row,$index) => { |
|
|
|
|
|
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 |
|
|
|
|
|
if(findIndex>0&&findIndex<$index){ |
|
|
|
|
|
return [] |
|
|
|
|
|
} |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['5']),hasPermi:'wms:purchasereceipt-request-main:reAdd'}), //重新添加 |
|
|
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['5']),hasPermi:'wms:purchasereceipt-request-main:reAdd'}), //重新添加 |
|
|
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-request-main:submit'}), // 提交审批 |
|
|
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-request-main:submit'}), // 提交审批 |
|
@ -355,8 +380,12 @@ const { getList:getDetailList } = detatableMethods |
|
|
// 生成标签按钮操作 |
|
|
// 生成标签按钮操作 |
|
|
const submitFormLabel = async (formType, data) => { |
|
|
const submitFormLabel = async (formType, data) => { |
|
|
try { |
|
|
try { |
|
|
|
|
|
console.log("formType==",formType) |
|
|
|
|
|
console.log("data==",data) |
|
|
|
|
|
data.subList = detatableData.tableList |
|
|
|
|
|
console.log("detatableData",detatableData) |
|
|
await message.confirm('是否为此数据生成标签?') |
|
|
await message.confirm('是否为此数据生成标签?') |
|
|
await PurchasereceiptRequestMainApi.genLabel(genLabelId.value) |
|
|
await PurchasereceiptRequestMainApi.genLabel(data) //genLabelId.value |
|
|
isCreateLabel.value = true |
|
|
isCreateLabel.value = true |
|
|
message.success('创建标签成功') |
|
|
message.success('创建标签成功') |
|
|
} finally { |
|
|
} finally { |
|
|