From ee11a01ff344a1d239e4eb3e8fea77997df78062 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Sat, 24 Nov 2018 14:59:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E7=AE=A1=E7=90=86=EF=BC=9A?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PurchasingCenter/MaterialManagement.js | 197 +++++ .../MaterialManagement/index.vue | 763 ++++++++++++++++++ 2 files changed, 960 insertions(+) create mode 100644 src/api/PurchasingCenter/MaterialManagement.js create mode 100644 src/views/PurchasingCenter/MaterialManagement/index.vue diff --git a/src/api/PurchasingCenter/MaterialManagement.js b/src/api/PurchasingCenter/MaterialManagement.js new file mode 100644 index 00000000..ab4513ce --- /dev/null +++ b/src/api/PurchasingCenter/MaterialManagement.js @@ -0,0 +1,197 @@ +import request from '@/utils/request' + +export function initDepartmentName() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料主文件_基本_物料部门_查询数据' + } + }) +} +export function initMaterialCategory(check, DepartmentValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料类别编号_查询数据_根据物料部门编号', + param: '物料部门流水号_check=' + check + '=int&物料部门流水号=' + DepartmentValue + } + }) +} +export function initMaterialVariety(MaterialCategoryValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料品种编号_查询数据', + param: '物料类别流水号=' + MaterialCategoryValue + } + }) +} +export function initMeasurementUnit() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_计量单位主文件_查询数据' + } + }) +} +export function initMaterialSource() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料来源_查询数据' + } + }) +} +export function searchmaterial(check1, MaterialName, check2, FullNameOfMaterial, check3, MaterialSpecification, check4, MaterialModel, pageCurrent, pageSize, check5, MaterialCategoryValue, check6, MaterialVarietyValue, check7, MeasurementUnitValue, check8, MaterialSourceValue, check9, supplierValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料主文件_基本_查询数据_分页', + param: '物料流水号_check=0&物料代码_check=0&物料名称_check=' + check1 + '=int&物料名称=' + MaterialName + '&物料全名_check=' + check2 + '=int&物料全名=' + FullNameOfMaterial + '&物料规格_check=' + check3 + '=int&物料规格=' + MaterialSpecification + '&物料型号_check=' + check4 + '=int&物料型号=' + MaterialModel + '&物料类别流水号_check=' + check5 + '=int&物料类别流水号=' + MaterialCategoryValue + '&物料品种流水号_check=' + check6 + '=int&物料品种流水号=' + MaterialVarietyValue + '&供货商流水号_check=' + check9 + '&供货商流水号=' + supplierValue + '&计量单位流水号_check=' + check7 + '&计量单位流水号=' + MeasurementUnitValue + '&物料来源流水号_check=' + check8 + '&物料来源流水号=' + MaterialSourceValue + '&PageCurrent=' + pageCurrent + '=int&PageSize=' + pageSize + '=int&PageCount=1=int=output&ItemCount=1=int=output' + } + }) +} +export function getSupplier(check, num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_供货商_查询数据_根据条件', + param: '供货商_check=' + check + '=int&供货商=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function addData(MaterialVariety, MaterialName, FullNameOfMaterial, MaterialSpecification, MaterialModel, MeasurementUnitValue, MaterialSourceValue, supplierValue1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料主文件_基本_增加数据', + param: '物料品种流水号=' + MaterialVariety + '&物料名称=' + MaterialName + '&物料全名=' + FullNameOfMaterial + '&物料规格=' + MaterialSpecification + '&物料型号=' + MaterialModel + '&计量单位流水号=' + MeasurementUnitValue + '&物料来源流水号=' + MaterialSourceValue + '&供货商流水号=' + supplierValue1 + } + }) +} +export function editData(MaterialValue, MaterialVariety, MaterialName, FullNameOfMaterial, MaterialSpecification, MaterialModel, MeasurementUnitValue, MaterialSourceValue, supplierValue1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料主文件_基本_修改数据', + param: '物料流水号=' + MaterialValue + '&物料品种流水号=' + MaterialVariety + '&物料名称=' + MaterialName + '&物料全名=' + FullNameOfMaterial + '&物料规格=' + MaterialSpecification + '&物料型号=' + MaterialModel + '&计量单位流水号=' + MeasurementUnitValue + '&物料来源流水号=' + MaterialSourceValue + '&供货商流水号=' + supplierValue1 + } + }) +} +export function deleteData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料主文件_基本_删除数据', + param: '物料流水号=' + num + } + }) +} +export function searchCategory() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料类别编号_查询数据_根据物料部门编号' + } + }) +} +export function searchVarieties(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料品种编号_查询数据', + param: '物料类别流水号=' + num + } + }) +} +export function editCategory(MaterialCategoryNum, MaterialCategory2, CategoryNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料类别编号_修改数据', + param: '物料类别流水号=' + MaterialCategoryNum + '&物料类别=' + MaterialCategory2 + '&类别编号=' + CategoryNumber + } + }) +} +export function addCategory(MaterialCategory2, CategoryNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料类别编号_增加数据', + param: '物料类别=' + MaterialCategory2 + '&类别编号=' + CategoryNumber + } + }) +} +export function deleteCategory(MaterialCategoryNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料类别编号_删除数据', + param: '物料类别流水号=' + MaterialCategoryNum + } + }) +} +export function editVariety(MaterialVarietyNum, MaterialCategoryNum, MaterialVariety2, VarietyNumber, Specifications1, Specifications2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料品种编号_修改数据', + param: '物料品种流水号=' + MaterialVarietyNum + '&物料类别流水号=' + MaterialCategoryNum + '&物料品种=' + MaterialVariety2 + '&品种编号=' + VarietyNumber + '&规格1=' + Specifications1 + '&规格2=' + Specifications2 + } + }) +} +export function addVariety(MaterialCategoryNum, MaterialVariety2, VarietyNumber, Specifications1, Specifications2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料品种编号_增加数据', + param: '物料类别流水号=' + MaterialCategoryNum + '&物料品种=' + MaterialVariety2 + '&品种编号=' + VarietyNumber + '&规格1=' + Specifications1 + '&规格2=' + Specifications2 + } + }) +} +export function deleteVariety(MaterialVarietyNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料品种编号_删除数据', + param: '物料品种流水号=' + MaterialVarietyNum + } + }) +} diff --git a/src/views/PurchasingCenter/MaterialManagement/index.vue b/src/views/PurchasingCenter/MaterialManagement/index.vue new file mode 100644 index 00000000..194c71b5 --- /dev/null +++ b/src/views/PurchasingCenter/MaterialManagement/index.vue @@ -0,0 +1,763 @@ + + + + +