|
@ -39,9 +39,7 @@ |
|
|
:apiCreate="ItemApplyDetailApi.createItemApplyDetail" :apiUpdate="ItemApplyDetailApi.updateItemApplyDetail" |
|
|
:apiCreate="ItemApplyDetailApi.createItemApplyDetail" :apiUpdate="ItemApplyDetailApi.updateItemApplyDetail" |
|
|
:apiPage="ItemApplyDetailApi.getItemApplyDetailPage" :apiDelete="ItemApplyDetailApi.deleteItemApplyDetail" |
|
|
:apiPage="ItemApplyDetailApi.getItemApplyDetailPage" :apiDelete="ItemApplyDetailApi.deleteItemApplyDetail" |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" @detailSubmitForm='detailSubmitForm' |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" @detailSubmitForm='detailSubmitForm' |
|
|
:isShowAddBtn="isShowAddBtn" |
|
|
:isShowAddBtn="isShowAddBtn" :detailButtonIsShow="detailButtonIsShow" /> |
|
|
:detailButtonIsShow="detailButtonIsShow" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
|
<ImportForm ref="importFormRef" url="/wms/purchase-main/import" :importTemplateData="importTemplateData" |
|
|
<ImportForm ref="importFormRef" url="/wms/purchase-main/import" :importTemplateData="importTemplateData" |
|
@ -84,7 +82,8 @@ |
|
|
let flag = false; |
|
|
let flag = false; |
|
|
if (subList.length > 0) { |
|
|
if (subList.length > 0) { |
|
|
subList.forEach((item) => { |
|
|
subList.forEach((item) => { |
|
|
if (item.itemNumber == val[0]['itemNumber']) { |
|
|
if (item.itemNumber == val[0]['itemNumber'] &&item.isInAccount == val[0]['isInAccount'] |
|
|
|
|
|
) { |
|
|
flag = true; |
|
|
flag = true; |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -95,13 +94,13 @@ |
|
|
} |
|
|
} |
|
|
row[formField] = val[0][searchField] |
|
|
row[formField] = val[0][searchField] |
|
|
row['itemNumber'] = val[0]['itemNumber'] |
|
|
row['itemNumber'] = val[0]['itemNumber'] |
|
|
row['isRadeIn'] = val[0]['isInAccount'] |
|
|
row['isInAccount'] = val[0]['isInAccount'] |
|
|
row['currentQty'] = val[0]['qty'] |
|
|
row['currentQty'] = val[0]['qty'] |
|
|
row['available'] = val[0]['available'] |
|
|
row['available'] = val[0]['available'] |
|
|
} |
|
|
} |
|
|
if (formField == 'deviceNumber') { |
|
|
if (formField == 'deviceNumber') { |
|
|
row['deviceNumber'] = val[0]['number'] |
|
|
row['deviceNumber'] = val[0]['number'] |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
@ -115,20 +114,21 @@ |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
if (formField == 'itemNumber') { |
|
|
if (formField == 'itemNumber') { |
|
|
setV['itemNumber'] = val[0]['itemNumber'] |
|
|
setV['itemNumber'] = val[0]['itemNumber'] |
|
|
setV['isRadeIn'] = val[0]['isInAccount'] |
|
|
|
|
|
|
|
|
setV['isInAccount'] = val[0]['isInAccount'] |
|
|
setV['currentQty'] = val[0]['qty'] |
|
|
setV['currentQty'] = val[0]['qty'] |
|
|
setV['available'] = val[0]['available'] |
|
|
setV['available'] = val[0]['available'] |
|
|
} else if (formField == 'deviceNumber') { |
|
|
} else if (formField == 'deviceNumber') { |
|
|
setV['deviceNumber'] = val[0]['number'] |
|
|
setV['deviceNumber'] = val[0]['number'] |
|
|
} |
|
|
} |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
const formSelectChange = (field, val, row) => { |
|
|
const formSelectChange = (field, val, row) => { |
|
|
if (field == 'type') { |
|
|
if (field == 'type') { |
|
|
row['deviceNumber'] = "" |
|
|
row['deviceNumber'] = "" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 子表新增的时候选择表格之后需要会显得字段 |
|
|
// 子表新增的时候选择表格之后需要会显得字段 |
|
@ -171,7 +171,7 @@ |
|
|
} else if (val == 'refresh') { // 刷新 |
|
|
} else if (val == 'refresh') { // 刷新 |
|
|
getList() |
|
|
getList() |
|
|
} else if (val == 'filtrate') { // 筛选 |
|
|
} else if (val == 'filtrate') { // 筛选 |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
// 根据状态返回该按钮是否显示 |
|
@ -228,12 +228,12 @@ |
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|
const detailRef = ref() |
|
|
const detailRef = ref() |
|
|
const openDetail = (row : any, titleName : any, titleValue : any) => { |
|
|
const openDetail = (row : any, titleName : any, titleValue : any) => { |
|
|
if(row.status!='0'){ |
|
|
if (row.status != '0') { |
|
|
isShowAddBtn.value=false |
|
|
isShowAddBtn.value = false |
|
|
detailButtonIsShow.value=true |
|
|
detailButtonIsShow.value = true |
|
|
}else{ |
|
|
} else { |
|
|
isShowAddBtn.value=true |
|
|
isShowAddBtn.value = true |
|
|
detailButtonIsShow.value=false |
|
|
detailButtonIsShow.value = false |
|
|
} |
|
|
} |
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'basicItemApplyMain') |
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'basicItemApplyMain') |
|
|
} |
|
|
} |
|
@ -348,7 +348,7 @@ |
|
|
formRef.dialogVisible = false |
|
|
formRef.dialogVisible = false |
|
|
await detailRef.value.getList() |
|
|
await detailRef.value.getList() |
|
|
} |
|
|
} |
|
|
}catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
formRef.formLoading = false |
|
|
formRef.formLoading = false |
|
|
} |
|
|
} |
|
@ -360,4 +360,4 @@ |
|
|
getList() |
|
|
getList() |
|
|
importTemplateData.templateUrl = await ItemApplyMainApi.importTemplate() |
|
|
importTemplateData.templateUrl = await ItemApplyMainApi.importTemplate() |
|
|
}) |
|
|
}) |
|
|
</script> |
|
|
</script> |
|
|