|
@ -73,7 +73,7 @@ |
|
|
@onChange="onChangeForm" |
|
|
@onChange="onChangeForm" |
|
|
> |
|
|
> |
|
|
<template #hahaha> |
|
|
<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> |
|
|
<template #hehehe> |
|
|
<template #hehehe> |
|
@ -81,8 +81,18 @@ |
|
|
</template> |
|
|
</template> |
|
|
</BasicForm> |
|
|
</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 |
|
|
<Detail |
|
|
ref="detailRef" |
|
|
ref="detailRef" |
|
@ -149,6 +159,8 @@ import * as BalanceApi from '@/api/wms/balance' |
|
|
import { async } from '@antv/x6/lib/registry/marker/async' |
|
|
import { async } from '@antv/x6/lib/registry/marker/async' |
|
|
import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
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' }) |
|
|
defineOptions({ name: 'PurchasereturnRequestMainNew' }) |
|
|
|
|
|
|
|
@ -243,6 +255,7 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro |
|
|
row[formField] = val[0][searchField] |
|
|
row[formField] = val[0][searchField] |
|
|
} else { |
|
|
} else { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
|
|
|
setV[formField] = val[0][searchField] |
|
|
if(formField=='itemCode'){ |
|
|
if(formField=='itemCode'){ |
|
|
// 更换查询 供应商下拉框数据 |
|
|
// 更换查询 供应商下拉框数据 |
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach(item=>{ |
|
|
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) => { |
|
|
const searchTableSuccess1 = (formField, searchField, val, formRef, type, row) => { |
|
|
console.log(val) |
|
|
console.log(val) |
|
|
tableData.value = [...tableData.value, ...val] |
|
|
tableData.value = [...tableData.value, ...val] |
|
|