Browse Source

上线结算申请

master
李胜楠 1 year ago
parent
commit
ed5d2e831b
  1. 18
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue
  2. 46
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/onlinesettlementRequestMain.data.ts

18
src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue

@ -82,6 +82,7 @@ import { OnlinesettlementRequestMain,OnlinesettlementRequestMainRules,Onlinesett
import * as OnlinesettlementRequestMainApi from '@/api/wms/onlinesettlementRequestMain'
import * as OnlinesettlementRequestDetailApi from '@/api/wms/onlinesettlementRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as SupplieritemApi from '@/api/wms/supplieritem'
// 线
defineOptions({ name: 'OnlinesettlementRequestMain' })
@ -114,7 +115,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
nextTick(() => {
if (type == 'tableForm') {
//
//row[formField] = val[0][searchField]
row[formField] = val[0][searchField]
//row['poLine'] = val[0]['poLine']
//row['batch'] = val[0]['toBatch']
//row['altBatch'] = val[0]['altBatch']
@ -127,10 +128,17 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
//row['uom'] = val[0]['uom']
} else {
const setV = {}
setV[formField] = val[0][searchField]
//setV['ppNumber'] = val[0]['ppNumber']
//setV['supplierCode'] = val[0]['supplierCode']
formRef.setValues(setV)
SupplieritemApi.getSupplieritemPage({
supplierCode: val[0]['supplierCode'],
itemCode: val[0]['itemCode']
}).then(res => {
if(res?.list[0]?.settlementType == 'ONLINE'){
setV['issueRecordNumber'] = val[0]['number']
formRef.setValues(setV)
} else{
message.error('找不到对应的结算方式')
}
})
}
})
}

46
src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/onlinesettlementRequestMain.data.ts

@ -1,8 +1,12 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
const { t } = useI18n() // 国际化
import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as IssueRecordDetailApi from '@/api/wms/issueRecordDetail'
import { IssueRecordDetail } from '../../issue/issueRecordMain/issueRecordMain.data'
const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = {
pageSize:10,
@ -29,6 +33,17 @@ export const OnlinesettlementRequestMain = useCrudSchemas(reactive<CrudSchema[]>
width: 150
},
isSearch: true,
form: {
labelMessage: '该记录中物料代码、供应商代码会影响单号的选择,请在供应商物品信息中维护',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择发料记录单号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段
searchTitle: '发料记录', // 查询弹窗标题
searchAllSchemas: IssueRecordDetail.allSchemas, // 查询弹窗所需类
searchPage: IssueRecordDetailApi.getIssueRecordDetailPage, // 查询弹窗所需分页方法
}
}
},
{
label: '仓库代码',
@ -332,6 +347,35 @@ export const OnlinesettlementRequestDetail = useCrudSchemas(reactive<CrudSchema[
table: {
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装号', // 输入框占位文本
searchField: 'toPackingNumber', // 查询弹窗赋值字段
searchTitle: '发料记录', // 查询弹窗标题
searchAllSchemas: IssueRecordDetail.allSchemas, // 查询弹窗所需类
searchPage: IssueRecordDetailApi.getIssueRecordDetailPage, // 查询弹窗所需分页方法
searchCondition: [{
key:'number',
value:'issueRecordNumber',
isMainValue: true
}]
}
},
tableForm:{
isInpuFocusShow: true,
searchListPlaceholder: '请选择包装号', // 输入框占位文本
searchField: 'toPackingNumber', // 查询弹窗赋值字段
searchTitle: '发料记录', // 查询弹窗标题
searchAllSchemas: IssueRecordDetail.allSchemas, // 查询弹窗所需类
searchPage: IssueRecordDetailApi.getIssueRecordDetailPage, // 查询弹窗所需分页方法
searchCondition: [{
key:'number',
value:'issueRecordNumber',
isMainValue: true
}]
},
},
{
label: '器具号',

Loading…
Cancel
Save