Browse Source

采购退货申请(新) 功能页面

hella_online_20240815
wangyufei 3 months ago
parent
commit
a103489f41
  1. 56
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue
  2. 8
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/purchasereturnRequestMain.data.ts

56
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue

@ -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]

8
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/purchasereturnRequestMain.data.ts

@ -209,7 +209,7 @@ export const PurchasereturnRequestMain = useCrudSchemas(
}, },
{ {
label: '供应商1', label: '供应商1',
field: 'supplierCode1', field: 'supplierCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -448,9 +448,9 @@ export const PurchasereturnRequestMainRules = reactive({
dueTime: [ dueTime: [
{ required: true, message: '请选择截止时间', trigger: 'blur' } { required: true, message: '请选择截止时间', trigger: 'blur' }
], ],
purchaseReceiptRecordNumber: [ // purchaseReceiptRecordNumber: [
{ required: true, message: '请输入采购收货记录单号', trigger: 'blur' } // { required: true, message: '请输入采购收货记录单号', trigger: 'blur' }
], // ],
carrierCode: [ carrierCode: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, { max: 50, message: '不得超过50个字符', trigger: 'blur' },
], ],

Loading…
Cancel
Save