|
|
@ -73,7 +73,7 @@ |
|
|
|
@onChange="onChangeForm" |
|
|
|
> |
|
|
|
<template #hahaha> |
|
|
|
<el-button style="margin-left:90px;width:100%" type="primary">选择收货单明细</el-button> |
|
|
|
<el-button style="margin-left:90px;width:100%" type="primary" @click="chooseReceiptList">选择收货单明细</el-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
<template #hehehe> |
|
|
@ -81,8 +81,18 @@ |
|
|
|
</template> |
|
|
|
</BasicForm> |
|
|
|
<!-- 添加明细:采购收货记录单号 --> |
|
|
|
<SearchTable ref="searchTableRef" @searchTableSuccess="searchTableSuccess1" /> |
|
|
|
|
|
|
|
<SearchTable ref="searchTableRef" @searchTableSuccess="searchTableSuccess1" > |
|
|
|
<template #searchQueryhahaha> |
|
|
|
<el-form :inline="true"> |
|
|
|
<el-form-item label="供应商"> |
|
|
|
<el-input v-model="formRef.formRef.formModel.supplierName" placeholder="请输入供应商" disabled></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="物料号"> |
|
|
|
<el-input v-model="formRef.formRef.formModel.itemCode" placeholder="请输入物料号" disabled></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</template> |
|
|
|
</SearchTable> |
|
|
|
<!-- 详情 --> |
|
|
|
<Detail |
|
|
|
ref="detailRef" |
|
|
@ -114,7 +124,7 @@ |
|
|
|
@searchTableSuccess="searchTableSuccessLabel" |
|
|
|
/> |
|
|
|
<!-- 标签打印 --> |
|
|
|
<SearchTable style="width: 905px" ref="showLabelRef" @searchTableSuccess="showLabelSuccess" /> |
|
|
|
<SearchTable style="width: 905px" ref="showLabelRef" @searchTableSuccess="showLabelSuccess"/> |
|
|
|
<!-- 导入 --> |
|
|
|
<ImportForm |
|
|
|
ref="importFormRef" |
|
|
@ -149,6 +159,8 @@ import * as BalanceApi from '@/api/wms/balance' |
|
|
|
import { async } from '@antv/x6/lib/registry/marker/async' |
|
|
|
import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
|
// 采购退货申请 |
|
|
|
defineOptions({ name: 'PurchasereturnRequestMainNew' }) |
|
|
|
|
|
|
@ -243,6 +255,7 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
if(formField=='itemCode'){ |
|
|
|
// 更换查询 供应商下拉框数据 |
|
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach(item=>{ |
|
|
@ -659,6 +672,43 @@ const handleAddTable = () => { |
|
|
|
// } |
|
|
|
// }) |
|
|
|
} |
|
|
|
// 选择收货单明细 |
|
|
|
const chooseReceiptList = ()=>{ |
|
|
|
// searchTableRef.value.open( |
|
|
|
// ('供应商信息', |
|
|
|
// // _searchTableAllSchemas, |
|
|
|
// // _searchTablePage, // 接口 |
|
|
|
// // formField, |
|
|
|
// // searchField, |
|
|
|
// true,//是否多选 |
|
|
|
// // type, |
|
|
|
// // row, |
|
|
|
// _searchCondition |
|
|
|
// ) |
|
|
|
// ) |
|
|
|
|
|
|
|
searchTableRef.value.open( |
|
|
|
"收货单明细", |
|
|
|
Itembasic.allSchemas, |
|
|
|
ItembasicApi.getItembasicPage, |
|
|
|
"hahaha", |
|
|
|
"hahaha", |
|
|
|
false, |
|
|
|
'tableForm', |
|
|
|
null, |
|
|
|
[{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
action: '==', |
|
|
|
isSearch: true, |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
undefined, |
|
|
|
false, |
|
|
|
null |
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
const searchTableSuccess1 = (formField, searchField, val, formRef, type, row) => { |
|
|
|
console.log(val) |
|
|
|
tableData.value = [...tableData.value, ...val] |
|
|
|