|
@ -44,7 +44,6 @@ |
|
|
@success="getList" |
|
|
@success="getList" |
|
|
:rules="SupplierdeliverRequestMainRules" |
|
|
:rules="SupplierdeliverRequestMainRules" |
|
|
:formAllSchemas="SupplierdeliverRequestMain.allSchemas" |
|
|
:formAllSchemas="SupplierdeliverRequestMain.allSchemas" |
|
|
:searchTableParams="searchTableParams" |
|
|
|
|
|
:tableAllSchemas="SupplierdeliverRequestDetail.allSchemas" |
|
|
:tableAllSchemas="SupplierdeliverRequestDetail.allSchemas" |
|
|
:tableFormRules="SupplierdeliverRequestDetailRules" |
|
|
:tableFormRules="SupplierdeliverRequestDetailRules" |
|
|
:tableData="tableData" |
|
|
:tableData="tableData" |
|
@ -64,12 +63,12 @@ |
|
|
:allSchemas="SupplierdeliverRequestMain.allSchemas" |
|
|
:allSchemas="SupplierdeliverRequestMain.allSchemas" |
|
|
:detailAllSchemas="SupplierdeliverRequestDetail.allSchemas" |
|
|
:detailAllSchemas="SupplierdeliverRequestDetail.allSchemas" |
|
|
:detailAllSchemasRules="SupplierdeliverRequestDetailRules" |
|
|
:detailAllSchemasRules="SupplierdeliverRequestDetailRules" |
|
|
:searchTableParams="searchTableParams" |
|
|
|
|
|
:apiCreate="SupplierdeliverRequestDetailApi.createSupplierdeliverRequestDetail" |
|
|
:apiCreate="SupplierdeliverRequestDetailApi.createSupplierdeliverRequestDetail" |
|
|
:apiUpdate="SupplierdeliverRequestDetailApi.updateSupplierdeliverRequestDetail" |
|
|
:apiUpdate="SupplierdeliverRequestDetailApi.updateSupplierdeliverRequestDetail" |
|
|
:apiPage="SupplierdeliverRequestDetailApi.getSupplierdeliverRequestDetailPage" |
|
|
:apiPage="SupplierdeliverRequestDetailApi.getSupplierdeliverRequestDetailPage" |
|
|
:apiDelete="SupplierdeliverRequestDetailApi.deleteSupplierdeliverRequestDetail" |
|
|
:apiDelete="SupplierdeliverRequestDetailApi.deleteSupplierdeliverRequestDetail" |
|
|
:Echo="Echo" |
|
|
:Echo="Echo" |
|
|
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
@ -82,16 +81,6 @@ import { SupplierdeliverRequestMain,SupplierdeliverRequestMainRules,Supplierdeli |
|
|
import * as SupplierdeliverRequestMainApi from '@/api/wms/supplierdeliverRequestMain' |
|
|
import * as SupplierdeliverRequestMainApi from '@/api/wms/supplierdeliverRequestMain' |
|
|
import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail' |
|
|
import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import { PurchasePlanMain } from '@/utils/disposition/tableColumns' |
|
|
|
|
|
import * as PurchasePlanMainApi from '@/api/wms/purchasePlanMain' |
|
|
|
|
|
import { SupplierdeliverRecordMain } from '@/utils/disposition/tableColumns' |
|
|
|
|
|
import * as supplierdeliverRecordMainApi from '@/api/wms/supplierdeliverRecordMain' |
|
|
|
|
|
import { Supplier } from '../../../basicDataManage/supplierManage/supplier/supplier.data' |
|
|
|
|
|
import * as SupplierApi from '@/api/wms/supplier' |
|
|
|
|
|
import { Dock } from '../../../basicDataManage/factoryModeling/dock/dock.data' |
|
|
|
|
|
import * as DockApi from '@/api/wms/dock' |
|
|
|
|
|
import { Carrier } from '../../../basicDataManage/orderManage/carrier/carrier.data' |
|
|
|
|
|
import * as CarrierApi from '@/api/wms/carrier' |
|
|
|
|
|
|
|
|
|
|
|
// 供应商发货申请 |
|
|
// 供应商发货申请 |
|
|
defineOptions({ name: 'SupplierdeliverRequestMain' }) |
|
|
defineOptions({ name: 'SupplierdeliverRequestMain' }) |
|
@ -109,65 +98,41 @@ const updataTableColumns = (val) => { |
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 查询列表页面参数设置 |
|
|
|
|
|
const searchTableParams = ref([ |
|
|
|
|
|
{ |
|
|
|
|
|
formField: 'ppNumber', |
|
|
|
|
|
searchTableTitle: '要货计划', |
|
|
|
|
|
searchTableAllSchemas: PurchasePlanMain.allSchemas, |
|
|
|
|
|
searchTablePage: PurchasePlanMainApi.getPurchasePlanMainPage |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
formField: 'asnNumber', |
|
|
|
|
|
searchTableTitle: '供应商发货记录', |
|
|
|
|
|
searchTableAllSchemas: SupplierdeliverRecordMain.allSchemas, |
|
|
|
|
|
searchTablePage: supplierdeliverRecordMainApi.getSupplierdeliverRecordMainPage |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
formField: 'supplierCode', |
|
|
|
|
|
searchTableTitle: '供应商信息', |
|
|
|
|
|
searchTableAllSchemas: Supplier.allSchemas, |
|
|
|
|
|
searchTablePage: SupplierApi.getSupplierPage |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
formField: 'toDockCode', |
|
|
|
|
|
searchTableTitle: '月台信息', |
|
|
|
|
|
searchTableAllSchemas: Dock.allSchemas, |
|
|
|
|
|
searchTablePage: DockApi.getDockPage |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
formField: 'carrierCode', |
|
|
|
|
|
searchTableTitle: '承运商信息', |
|
|
|
|
|
searchTableAllSchemas: Carrier.allSchemas, |
|
|
|
|
|
searchTablePage: CarrierApi.getCarrierPage |
|
|
|
|
|
}, |
|
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
// 明细查询页赋值 |
|
|
// 明细查询页赋值 |
|
|
//row[formField] = val[0][searchField] |
|
|
row[formField] = val[0][searchField] |
|
|
//row['poLine'] = val[0]['poLine'] |
|
|
row['itemCode'] = val[0]['code'] |
|
|
//row['batch'] = val[0]['toBatch'] |
|
|
row['itemName'] = val[0]['name'] |
|
|
//row['altBatch'] = val[0]['altBatch'] |
|
|
row['itemDesc1'] = val[0]['desc1'] |
|
|
//row['itemCode'] = val[0]['itemCode'] |
|
|
row['itemDesc2'] = val[0]['desc2'] |
|
|
//row['itemName'] = val[0]['itemName'] |
|
|
row['projectCode'] = val[0]['project'] |
|
|
//row['itemDesc1'] = val[0]['itemDesc1'] |
|
|
row['uom'] = val[0]['uom'] |
|
|
//row['itemDesc2'] = val[0]['itemDesc2'] |
|
|
|
|
|
//row['projectCode'] = val[0]['projectCode'] |
|
|
|
|
|
//row['qty'] = val[0]['qty'] |
|
|
|
|
|
//row['uom'] = val[0]['uom'] |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
//setV['ppNumber'] = val[0]['ppNumber'] |
|
|
setV['supplierCode'] = val[0]['code'] |
|
|
//setV['supplierCode'] = val[0]['supplierCode'] |
|
|
|
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
// 查询页面返回——详情 |
|
|
|
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
|
|
|
nextTick(() => { |
|
|
|
|
|
const setV = {} |
|
|
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
|
|
setV['itemCode'] = val[0]['code'] |
|
|
|
|
|
setV['itemName'] = val[0]['name'] |
|
|
|
|
|
setV['itemDesc1'] = val[0]['desc1'] |
|
|
|
|
|
setV['itemDesc2'] = val[0]['desc2'] |
|
|
|
|
|
setV['projectCode'] = val[0]['project'] |
|
|
|
|
|
setV['uom'] = val[0]['uom'] |
|
|
|
|
|
formRef.setValues(setV) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 子表新增的时候选择表格之后需要会显得字段 |
|
|
// 子表新增的时候选择表格之后需要会显得字段 |
|
|
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom'] |
|
|
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom'] |
|
|
const Echo = [] |
|
|
const Echo = [] |
|
|