From 666c65dd0f70fc9d64060acb18ff407ec53311a4 Mon Sep 17 00:00:00 2001 From: hedekun <200858424@qq.com> Date: Wed, 14 Nov 2018 09:22:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E3=80=81=E8=A3=85=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/api/Assembly/AssemblyInformationInput.js | 98 + src/api/Assembly/AssemblyPlan.js | 50 + src/api/Assembly/AssemblyProcessAssignment.js | 61 + src/api/Assembly/AssemblyProcessPlanning.js | 276 +++ src/api/Assembly/AssemblyQuotaSetting.js | 86 + src/api/Assembly/InstallationAndMonitoring.js | 123 ++ .../Assembly/PrintingAssemblyProcessCard.js | 62 + .../ProductionCapacityBalance.js | 314 ++++ .../PurchasingCenter/ArrivalStateSearch.js | 38 + src/api/PurchasingCenter/BuyerRequestFund.js | 87 + src/api/PurchasingCenter/ContractChange.js | 121 ++ .../PurchasingCenter/ContractStateSearch.js | 38 + src/api/PurchasingCenter/CreateContract.js | 97 + .../PurchasingCenter/CreateInquirySheet.js | 159 ++ src/api/PurchasingCenter/FundApproval.js | 64 + .../PurchasingCenter/InvoiceStateSearch.js | 50 + src/api/PurchasingCenter/OfflineContract.js | 170 ++ .../OfflineContractRequestFund.js | 63 + src/api/PurchasingCenter/PayStateSearch.js | 26 + .../PurchasingCenter/ProjectTotalSearch.js | 25 + .../PurchasingCenter/PurchaseBudgetSearch.js | 62 + .../PurchaseContractApproval.js | 74 + .../PurchaseContractSearch.js | 73 + .../PurchaseMaterielModify.js | 25 + .../PurchasingCenter/PurchaseTaskAllocate.js | 50 + .../ReceiptConnectionSheet.js | 74 + src/api/PurchasingCenter/ReceiveCheck.js | 26 + .../PurchasingCenter/SupplierManagement.js | 98 + src/api/TechnologyCenter/ImportParts.js | 4 +- src/directive/clipboard/clipboard.js | 49 + src/directive/clipboard/index.js | 13 + src/directive/el-dragDialog/drag.js | 46 + src/directive/el-dragDialog/index.js | 13 + src/directive/sticky.js | 91 + src/directive/waves/index.js | 13 + src/directive/waves/waves.css | 26 + src/directive/waves/waves.js | 42 + src/icons/svg/ArrivalStateSearch.svg | 1 + src/icons/svg/BuyerRequestFund.svg | 1 + src/icons/svg/ContractCapitalManagement.svg | 2 +- src/icons/svg/ContractChange.svg | 1 + .../svg/ContractInformationManagement.svg | 2 +- src/icons/svg/ContractStateSearch.svg | 1 + src/icons/svg/CreateContract.svg | 1 + src/icons/svg/CreateInquirySheet.svg | 1 + src/icons/svg/FundApproval1.svg | 1 + src/icons/svg/FundApproval2.svg | 1 + src/icons/svg/FundApproval3.svg | 1 + src/icons/svg/InvoiceStateSearch.svg | 1 + src/icons/svg/OfflineContract.svg | 1 + src/icons/svg/OfflineContractRequestFund.svg | 1 + src/icons/svg/PayStateSearch.svg | 1 + src/icons/svg/ProjectTotalSearch.svg | 1 + src/icons/svg/PurchaseBudgetSearch.svg | 1 + src/icons/svg/PurchaseContractApproval.svg | 1 + src/icons/svg/PurchaseContractSearch.svg | 1 + src/icons/svg/PurchaseMaterielModify.svg | 1 + src/icons/svg/PurchaseTaskAllocate.svg | 1 + src/icons/svg/ReceiptConnectionSheet.svg | 1 + src/icons/svg/ReceiveCheck.svg | 1 + src/icons/svg/SafetyMargin.svg | 2 +- src/icons/svg/SupplierManagement.svg | 1 + src/store/modules/user.js | 17 +- src/utils/request.js | 2 +- src/utils/tool.js | 6 + .../AssemblyInformationInput/index.vue | 258 +++ src/views/Assembly/AssemblyPlan/index.vue | 219 +++ .../AssemblyProcessAssignment/index.vue | 257 +++ .../AssemblyProcessPlanning/index.vue | 834 +++++++++ .../Assembly/AssemblyQuotaSetting/index.vue | 213 +++ .../InstallationAndMonitoring/index.vue | 381 ++++ .../PrintingAssemblyProcessCard/index.vue | 217 +++ .../ProductionCapacityBalance/index.vue | 1667 +++++++++++++++++ src/views/MarketingCenter/BidBond/index.vue | 5 +- src/views/MarketingCenter/CRM/index.vue | 115 +- .../ContractCapitalManagement/index.vue | 295 +-- .../ContractInformationManagement/index.vue | 42 + .../MarketingCenter/SafetyMargin/index.vue | 8 +- .../ContractStateSearch/index.vue | 221 +++ .../PurchasingCenter/CreateContract/index.vue | 595 ++++++ .../CreateInquirySheet/index.vue | 835 +++++++++ .../PurchasingCenter/FundApproval1/index.vue | 304 +++ .../PurchasingCenter/FundApproval2/index.vue | 303 +++ .../PurchasingCenter/FundApproval3/index.vue | 304 +++ .../InvoiceStateSearch/index.vue | 224 +++ .../OfflineContract/index.vue | 1026 ++++++++++ .../OfflineContractRequestFund/index.vue | 357 ++++ .../PurchasingCenter/PayStateSearch/index.vue | 180 ++ .../ProjectTotalSearch/index.vue | 145 ++ .../PurchaseBudgetSearch/index.vue | 397 ++++ .../PurchaseContractApproval/index.vue | 374 ++++ .../PurchaseContractSearch/index.vue | 412 ++++ .../PurchaseMaterielModify/index.vue | 169 ++ .../PurchaseTaskAllocate/index.vue | 252 +++ .../ReceiptConnectionSheet/index.vue | 420 +++++ .../PurchasingCenter/ReceiveCheck/index.vue | 130 ++ .../SupplierManagement/index.vue | 675 +++++++ .../TechnologyCenter/ImportParts/index.vue | 81 +- .../ImportParts/specificationData.vue | 10 +- src/views/dashboard/index.vue | 4 +- 101 files changed, 14504 insertions(+), 266 deletions(-) create mode 100644 src/api/Assembly/AssemblyInformationInput.js create mode 100644 src/api/Assembly/AssemblyPlan.js create mode 100644 src/api/Assembly/AssemblyProcessAssignment.js create mode 100644 src/api/Assembly/AssemblyProcessPlanning.js create mode 100644 src/api/Assembly/AssemblyQuotaSetting.js create mode 100644 src/api/Assembly/InstallationAndMonitoring.js create mode 100644 src/api/Assembly/PrintingAssemblyProcessCard.js create mode 100644 src/api/ManufacturingCenter/ProductionCapacityBalance.js create mode 100644 src/api/PurchasingCenter/ArrivalStateSearch.js create mode 100644 src/api/PurchasingCenter/BuyerRequestFund.js create mode 100644 src/api/PurchasingCenter/ContractChange.js create mode 100644 src/api/PurchasingCenter/ContractStateSearch.js create mode 100644 src/api/PurchasingCenter/CreateContract.js create mode 100644 src/api/PurchasingCenter/CreateInquirySheet.js create mode 100644 src/api/PurchasingCenter/FundApproval.js create mode 100644 src/api/PurchasingCenter/InvoiceStateSearch.js create mode 100644 src/api/PurchasingCenter/OfflineContract.js create mode 100644 src/api/PurchasingCenter/OfflineContractRequestFund.js create mode 100644 src/api/PurchasingCenter/PayStateSearch.js create mode 100644 src/api/PurchasingCenter/ProjectTotalSearch.js create mode 100644 src/api/PurchasingCenter/PurchaseBudgetSearch.js create mode 100644 src/api/PurchasingCenter/PurchaseContractApproval.js create mode 100644 src/api/PurchasingCenter/PurchaseContractSearch.js create mode 100644 src/api/PurchasingCenter/PurchaseMaterielModify.js create mode 100644 src/api/PurchasingCenter/PurchaseTaskAllocate.js create mode 100644 src/api/PurchasingCenter/ReceiptConnectionSheet.js create mode 100644 src/api/PurchasingCenter/ReceiveCheck.js create mode 100644 src/api/PurchasingCenter/SupplierManagement.js create mode 100644 src/directive/clipboard/clipboard.js create mode 100644 src/directive/clipboard/index.js create mode 100644 src/directive/el-dragDialog/drag.js create mode 100644 src/directive/el-dragDialog/index.js create mode 100644 src/directive/sticky.js create mode 100644 src/directive/waves/index.js create mode 100644 src/directive/waves/waves.css create mode 100644 src/directive/waves/waves.js create mode 100644 src/icons/svg/ArrivalStateSearch.svg create mode 100644 src/icons/svg/BuyerRequestFund.svg create mode 100644 src/icons/svg/ContractChange.svg create mode 100644 src/icons/svg/ContractStateSearch.svg create mode 100644 src/icons/svg/CreateContract.svg create mode 100644 src/icons/svg/CreateInquirySheet.svg create mode 100644 src/icons/svg/FundApproval1.svg create mode 100644 src/icons/svg/FundApproval2.svg create mode 100644 src/icons/svg/FundApproval3.svg create mode 100644 src/icons/svg/InvoiceStateSearch.svg create mode 100644 src/icons/svg/OfflineContract.svg create mode 100644 src/icons/svg/OfflineContractRequestFund.svg create mode 100644 src/icons/svg/PayStateSearch.svg create mode 100644 src/icons/svg/ProjectTotalSearch.svg create mode 100644 src/icons/svg/PurchaseBudgetSearch.svg create mode 100644 src/icons/svg/PurchaseContractApproval.svg create mode 100644 src/icons/svg/PurchaseContractSearch.svg create mode 100644 src/icons/svg/PurchaseMaterielModify.svg create mode 100644 src/icons/svg/PurchaseTaskAllocate.svg create mode 100644 src/icons/svg/ReceiptConnectionSheet.svg create mode 100644 src/icons/svg/ReceiveCheck.svg create mode 100644 src/icons/svg/SupplierManagement.svg create mode 100644 src/views/Assembly/AssemblyInformationInput/index.vue create mode 100644 src/views/Assembly/AssemblyPlan/index.vue create mode 100644 src/views/Assembly/AssemblyProcessAssignment/index.vue create mode 100644 src/views/Assembly/AssemblyProcessPlanning/index.vue create mode 100644 src/views/Assembly/AssemblyQuotaSetting/index.vue create mode 100644 src/views/Assembly/InstallationAndMonitoring/index.vue create mode 100644 src/views/Assembly/PrintingAssemblyProcessCard/index.vue create mode 100644 src/views/ManufacturingCenter/ProductionCapacityBalance/index.vue create mode 100644 src/views/PurchasingCenter/ContractStateSearch/index.vue create mode 100644 src/views/PurchasingCenter/CreateContract/index.vue create mode 100644 src/views/PurchasingCenter/CreateInquirySheet/index.vue create mode 100644 src/views/PurchasingCenter/FundApproval1/index.vue create mode 100644 src/views/PurchasingCenter/FundApproval2/index.vue create mode 100644 src/views/PurchasingCenter/FundApproval3/index.vue create mode 100644 src/views/PurchasingCenter/InvoiceStateSearch/index.vue create mode 100644 src/views/PurchasingCenter/OfflineContract/index.vue create mode 100644 src/views/PurchasingCenter/OfflineContractRequestFund/index.vue create mode 100644 src/views/PurchasingCenter/PayStateSearch/index.vue create mode 100644 src/views/PurchasingCenter/ProjectTotalSearch/index.vue create mode 100644 src/views/PurchasingCenter/PurchaseBudgetSearch/index.vue create mode 100644 src/views/PurchasingCenter/PurchaseContractApproval/index.vue create mode 100644 src/views/PurchasingCenter/PurchaseContractSearch/index.vue create mode 100644 src/views/PurchasingCenter/PurchaseMaterielModify/index.vue create mode 100644 src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue create mode 100644 src/views/PurchasingCenter/ReceiptConnectionSheet/index.vue create mode 100644 src/views/PurchasingCenter/ReceiveCheck/index.vue create mode 100644 src/views/PurchasingCenter/SupplierManagement/index.vue diff --git a/package.json b/package.json index 98cf47a5..9ef2dba1 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "node-sass": "^4.9.3", "normalize.css": "7.0.0", "nprogress": "0.2.0", + "qrcode": "^1.3.2", "time-formater": "^1.0.3", "vue": "2.5.17", "vue-router": "3.0.1", diff --git a/src/api/Assembly/AssemblyInformationInput.js b/src/api/Assembly/AssemblyInformationInput.js new file mode 100644 index 00000000..b95b0656 --- /dev/null +++ b/src/api/Assembly/AssemblyInformationInput.js @@ -0,0 +1,98 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 机床查询 +export function searchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床_查询数据', + param: '项目流水号=' + num + } + }) +} +// 查询组件工艺 +export function searchDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_组件工艺_查询数据', + param: '机床流水号=' + num + } + }) +} +// 查询工序 +export function searchProcess(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_装配工序_查询数据', + param: '组件工艺流水号=' + num + } + }) +} +// 编辑 +export function update(num, num1, num2, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序工时_编辑数据', + param: '装配工序流水号=' + num + '&实际工时=' + num1 + '&完成情况=' + num2 + '&检验情况=' + num3 + '&备注=' + num4 + } + }) +} +export function getTree() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_部门关系_查询节点', + param: '子节点=0=int' + } + }) +} +export function getTable8(code) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=' + code + '=int' + } + }) +} +export function fn(data, pid) { + const result = [] + let temp + for (let i = 0; i < data.length; i++) { + if (data[i].父节点 === pid) { + const obj = { label: data[i].节点名称, id: data[i].子节点 } + temp = fn(data, data[i].子节点) + if (temp.length > 0) { + obj.children = temp + } + result.push(obj) + } + } + return result +} diff --git a/src/api/Assembly/AssemblyPlan.js b/src/api/Assembly/AssemblyPlan.js new file mode 100644 index 00000000..d5ea1cdb --- /dev/null +++ b/src/api/Assembly/AssemblyPlan.js @@ -0,0 +1,50 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 机床查询 +export function searchmachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_计划下达_机床_查询数据', + param: '项目流水号=' + num + } + }) +} +// 主表查询 +export function searchTable(check, projectValue, check1, machineNumberValue, check2, time, time1, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_计划信息_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + projectValue + '&机床流水号_check=' + check1 + '=int&机床流水号=' + machineNumberValue + '&计划完成日期_check=' + check2 + '=int&开始时间=' + time + '&结束时间=' + time1, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 计划下发 +export function goDown(ProjectSerialNumber, MachineSerialNumber, ProcessStartTime, ProcessEndTime, TimeToGo) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配计划_下发', + param: '项目流水号=' + ProjectSerialNumber + '&机床流水号=' + MachineSerialNumber + '&工艺开始时间=' + ProcessStartTime + '&工艺结束时间=' + ProcessEndTime + '&下发时间=' + TimeToGo + } + }) +} diff --git a/src/api/Assembly/AssemblyProcessAssignment.js b/src/api/Assembly/AssemblyProcessAssignment.js new file mode 100644 index 00000000..fbe7519b --- /dev/null +++ b/src/api/Assembly/AssemblyProcessAssignment.js @@ -0,0 +1,61 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 机床查询 +export function searchmachine(num, check) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + } + }) +} +export function initPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=17=int' + } + }) +} +// 主表查询 +export function searchTable(check, projectValue, check1, machineNumberValue, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_工艺任务_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + projectValue + '&机床流水号_check=' + check1 + '=int&机床流水号=' + machineNumberValue, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 任务分配 +export function Preservation(ProcessSerialNumber, PersonnelNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工艺_任务分配', + param: '工艺计划流水号=' + ProcessSerialNumber + '&人员编号=' + PersonnelNumber + } + }) +} diff --git a/src/api/Assembly/AssemblyProcessPlanning.js b/src/api/Assembly/AssemblyProcessPlanning.js new file mode 100644 index 00000000..a8b70aaf --- /dev/null +++ b/src/api/Assembly/AssemblyProcessPlanning.js @@ -0,0 +1,276 @@ +import request from '@/utils/request' + +// 初始化 工艺员A +export function initCraftmen() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=17' + } + }) +} +// 初始化 工序分类 +export function initprocessNameClass() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_工序分类_查询数据' + } + }) +} +// 初始化 机床分类 +export function initmachineType() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床分类_查询数据' + } + }) +} +// 查询机床编号 +export function SearchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_典型机床_查询数据', + param: '机床分类流水号=' + num + } + }) +} +// 查询工序名称 +export function initProcessName(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_工序名称_查询数据', + param: '工序分类流水号=' + num + } + }) +} +// 查询机床 +export function searchMachine(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床编号_查询数据', + param: '人员编号=' + num + '&是否编制=' + num1 + } + }) +} +// 查询组件 +export function searchGroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 查询组件工艺 +export function searchDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_组件工艺_查询数据', + param: '机床流水号=' + num + } + }) +} +// 增加组件工艺 +export function submitAdd(machineNumberValue, SerialNumber, Group, AssemblyTask) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_组件工艺_增加数据', + param: '机床流水号=' + machineNumberValue + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + } + }) +} +// 编辑组件工艺 +export function submitEdit(GroupProcessNumber, SerialNumber, Group, AssemblyTask) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_组件工艺_编辑数据', + param: '组件工艺流水号=' + GroupProcessNumber + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + } + }) +} +// 删除组件工艺 +export function deleteGroup(GroupProcessNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_组件工艺_删除数据', + param: '组件工艺流水号=' + GroupProcessNumber + } + }) +} +// 查询工序 +export function searchProcess(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_装配工序_查询数据', + param: '组件工艺流水号=' + num + } + }) +} +// 增加工序 +export function insertOne(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_增加数据', + param: '组件工艺流水号=' + num + } + }) +} +// 编辑工序 +export function update(num, num1, num2, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_编辑数据', + param: '装配工序流水号=' + num + '&序号=' + num1 + '&工序名称=' + num2 + '&工艺内容及装配具体要求=' + num3 + '&质检=' + num4 + } + }) +} +// 编辑工序1 +export function update1(num, num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_编辑数据', + param: '装配工序流水号=' + num + '&序号=' + num1 + '&工序名称=' + num2 + '&工艺内容及装配具体要求=' + num3 + } + }) +} +// 上移 +export function upOne(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_上移', + param: '装配工序流水号=' + num + '&组件工艺流水号=' + num1 + '&工序顺序=' + num2 + } + }) +} +// 下移 +export function downOne(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_下移', + param: '装配工序流水号=' + num + '&组件工艺流水号=' + num1 + '&工序顺序=' + num2 + } + }) +} +// 删除工序 +export function deleteOne(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_删除数据', + param: '装配工序流水号=' + num + } + }) +} +// 保存 +export function saveApprove(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_机床工艺_编制完成', + param: '机床流水号=' + num + } + }) +} +// 工艺调整 +export function returnEdit(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_机床工艺_调整', + param: '机床流水号=' + num + } + }) +} +// 工艺删除 +export function deleteTable(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_机床工艺_删除数据', + param: '机床流水号=' + num + } + }) +} +// 增加已完组件工艺 工艺拷贝 +export function processCopy1(machineNumberValue, SerialNumber, Group, AssemblyTask) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_已完组件工艺_增加数据', + param: '机床流水号=' + machineNumberValue + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + '&组件工艺流水号=10=int=output' + } + }) +} +// 增加已完装配工序 工艺拷贝 +export function procedureCopy1(GroupNum, SerialNumberGroup, ProcedureNameGroup, ProcessContentGroup, QualityTesting, ProcessSequence) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_已完装配工序_增加数据', + param: '组件工艺流水号=' + GroupNum + '&序号=' + SerialNumberGroup + '&工序名称=' + ProcedureNameGroup + '&工艺内容及装配具体要求=' + ProcessContentGroup + '&质检=' + QualityTesting + '&工序顺序=' + ProcessSequence + } + }) +} diff --git a/src/api/Assembly/AssemblyQuotaSetting.js b/src/api/Assembly/AssemblyQuotaSetting.js new file mode 100644 index 00000000..f1769456 --- /dev/null +++ b/src/api/Assembly/AssemblyQuotaSetting.js @@ -0,0 +1,86 @@ +import request from '@/utils/request' + +// 初始化 工艺员A +export function initCraftmen() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=17' + } + }) +} +// 查询机床 +export function searchMachine(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床编号_查询数据_根据定额', + param: '是否定额=' + num1 + } + }) +} +// 查询组件工艺 +export function searchDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_组件工艺_查询数据', + param: '机床流水号=' + num + } + }) +} +// 查询工序 +export function searchProcess(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_装配工序_查询数据', + param: '组件工艺流水号=' + num + } + }) +} +// 编辑工时 +export function update(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序工时_编辑数据', + param: '装配工序流水号=' + num + '&工艺工时=' + num1 + } + }) +} +// 保存 +export function saveApprove(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_机床工艺_定额完成', + param: '机床流水号=' + num + } + }) +} +// 工艺调整 +export function returnEdit(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_机床工艺_定额调整', + param: '机床流水号=' + num + } + }) +} diff --git a/src/api/Assembly/InstallationAndMonitoring.js b/src/api/Assembly/InstallationAndMonitoring.js new file mode 100644 index 00000000..ee9e4f46 --- /dev/null +++ b/src/api/Assembly/InstallationAndMonitoring.js @@ -0,0 +1,123 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 机床查询 +export function searchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床_查询数据', + param: '项目流水号=' + num + } + }) +} +// 关键节点查询 +export function searchTable(num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_安装调试_关键节点_查询数据', + param: '机床流水号=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 工作记录查询 +export function searchTable1(num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_安装调试_工作记录_查询数据', + param: '机床流水号=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 增加关键节点 +export function addData(machineNumberValue, KeyNode, completion, Remarks) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_安装调试_关键节点_增加数据', + param: '机床流水号=' + machineNumberValue + '&关键节点=' + KeyNode + '&完成情况=' + completion + '&备注=' + Remarks + } + }) +} +// 编辑关键节点 +export function editData(KeyNodeNum, KeyNode, completion, Remarks) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_安装调试_关键节点_编辑数据', + param: '关键节点流水号=' + KeyNodeNum + '&关键节点=' + KeyNode + '&完成情况=' + completion + '&备注=' + Remarks + } + }) +} +// 删除关键节点 +export function deleteData(KeyNodeNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_安装调试_关键节点_删除数据', + param: '关键节点流水号=' + KeyNodeNum + } + }) +} +// 增加工作记录 +export function addData1(machineNumberValue, WorkRecord, WorkDay) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_安装调试_工作记录_增加数据', + param: '机床流水号=' + machineNumberValue + '&工作情况=' + WorkRecord + '&工作日期=' + WorkDay + } + }) +} +// 编辑工作记录 +export function editData1(WorkRecordNum, WorkRecord, WorkDay) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_安装调试_工作记录_编辑数据', + param: '工作记录流水号=' + WorkRecordNum + '&工作情况=' + WorkRecord + '&工作日期=' + WorkDay + } + }) +} +// 删除工作记录 +export function deleteData1(WorkRecordNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_安装调试_工作记录_删除数据', + param: '工作记录流水号=' + WorkRecordNum + } + }) +} diff --git a/src/api/Assembly/PrintingAssemblyProcessCard.js b/src/api/Assembly/PrintingAssemblyProcessCard.js new file mode 100644 index 00000000..4b5ffbbc --- /dev/null +++ b/src/api/Assembly/PrintingAssemblyProcessCard.js @@ -0,0 +1,62 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 机床查询 +export function searchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床_查询数据', + param: '项目流水号=' + num + } + }) +} +// 查询组件工艺 +export function searchDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_组件工艺_查询数据', + param: '机床流水号=' + num + } + }) +} +// 查询工序 +export function searchProcess(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_装配工序_查询数据', + param: '组件工艺流水号=' + num + } + }) +} +// 主表查询 +export function searchTable(check, projectValue, check1, machineNumberValue, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_项目打印_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + projectValue + '&机床流水号_check=' + check1 + '=int&机床流水号=' + machineNumberValue, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/ManufacturingCenter/ProductionCapacityBalance.js b/src/api/ManufacturingCenter/ProductionCapacityBalance.js new file mode 100644 index 00000000..2b415313 --- /dev/null +++ b/src/api/ManufacturingCenter/ProductionCapacityBalance.js @@ -0,0 +1,314 @@ +import request from '@/utils/request' +// 初始化 项目名称 +export function getEntryNameValue() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_项目名称_查询数据', + param: '考核状态=5=int' + } + }) +} +// 项目名称 +export function getToolNum(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_机床名称_查询数据', + param: '项目流水号=' + num + '=int&是否传递=2=int&考核状态=5=int&工艺任务分配状态=2=int&定额任务分配状态=2=int&单件是否外协=1=int' + } + }) +} +// 组号 +export function getNum(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_组件名称_查询数据', + param: '机床流水号=' + num + '=int&是否传递=2=int&考核状态=5=int&工艺任务分配状态=2=int&定额任务分配状态=2=int&单件是否外协=1=int' + } + }) +} +// 获取表格数据 +export function getTable(num, a, b, c, d, e, f, g, pageList, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_能力平衡_查询数据_要平衡的零件', + param: '项目流水号_check=' + num + '=string&项目流水号=' + a + '=int&机床流水号_check=' + b + '=string&机床流水号=' + c + '=int&组件流水号_check=' + d + '=string&组件流水号=' + e + '=int&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=1=int&考核状态=5=int', + Pagination: pageList + '&' + pageSize + } + }) +} +// 全部选入专用 +export function getTable12580(num, a, b, c, d, e, f, g, pageList, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_能力平衡_查询数据_要平衡的零件', + param: '项目流水号_check=' + num + '=string&项目流水号=' + a + '=int&机床流水号_check=' + b + '=string&机床流水号=' + c + '=int&组件流水号_check=' + d + '=string&组件流水号=' + e + '=int&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=1=int&考核状态=5=int' + } + }) +} +// 扫描查询 +export function getTable5(pageList, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_能力平衡_查询数据_要平衡的零件_扫描平衡', + Pagination: pageList + '&' + pageSize + } + }) +} +// 选入 +export function selection(num, a, b, c) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_要排产零件_增加数据', + param: '工艺计划流水号=' + num + '=int&工序数量=' + a + '=int&排序顺序=' + b + '=string&人员编号=' + c + } + }) +} +// 选入后查询 +export function selection1(a, pageList, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_要排产零件_查询数据', + param: '人员编号=' + a, + Pagination: pageList + '&' + pageSize + } + }) +} +// 全部选出查询专用 +export function selection10086(a) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_要排产零件_查询数据', + param: '人员编号=' + a + } + }) +} +export function selection2(a) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_能力平衡_工序信息查询_根据工艺计划流水号', + param: '工艺计划流水号=' + a + '=int' + } + }) +} +// 排产 +export function discharge(a) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_工序应完成时间_平均算法', + param: '工艺计划流水号=' + a + '=int' + } + }) +} +// 确定零件计划4.1 +export function plan(a) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_要排产零件_删除数据', + param: '工艺计划流水号=' + a + '=int&操作类型=2=int' + } + }) +} +// 判断板焊 +export function han(a) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_设备能力_清除占用_板焊后序能力', + param: '工艺计划流水号=' + a + '=int' + } + }) +} +// 全部选出 +export function allOut(a) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_要排产零件_删除数据', + param: '工艺计划流水号=' + a + '=int&操作类型=1=int' + } + }) +} +// 是否划为外协 +export function out(a, b) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_划为外协', + param: '工艺计划流水号=' + a + '=int&单件是否外协=' + b + '=int&单件是否外协分类=1=int' + } + }) +} +// 选出 +export function xuanchu(a) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_要排产零件_删除数据', + param: '工艺计划流水号=' + a + '=int&操作类型=1=int' + } + }) +} +// 板焊 +export function platewelding(a, b, c) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改数据_修改板焊工段计划完成时间_new', + param: '工艺计划流水号=' + a + '=int&板焊工段计划完成时间=' + b + '=string&是否焊接=' + c + '=int' + } + }) +} +// 确定零件计划 车间生产管理工艺_新排产算法_设备能力_系数有效时间设定 +export function partPlan(a, b, c) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_修改数据_机加工时间', + param: '工艺计划流水号=' + a + '=int&机加工开始时间=' + b + '=string&机加工结束时间=' + c + '=string&state=1=int=output' + } + }) +} +// 刷新 +export function refreshChart(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_调整工序计划_查询数据', + param: '零件图号=' + num + } + }) +} +// 更新 +export function updateDate(num1, num2, date) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_制定计划_调整计划_增加数据New', + param: '工序流水号=' + num1 + '&调整人编号=' + num2 + '&调整计划完成日期=' + date + } + }) +} +// 查图表1 +export function searchChart1(num, start, end) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_调整工序计划_设备情况_查询数据1', + param: '工序流水号=' + num + '&开始日期=' + start + '&结束日期=' + end + } + }) +} +// 查图表的表1 +export function searchChartTable1(num, start, end) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_调整工序计划_设备情况_查询数据2', + param: '工序流水号=' + num + '&开始日期=' + start + '&结束日期=' + end + } + }) +} +// 查图表2 +export function searchChart2(start, end, type) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_工时统计_总工时与总能力对比', + param: '开始=' + start + '&结束=' + end + '&查询类型=' + type + } + }) +} +// 导出 +export function Export(num, a, b, c, d, e, f, g) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_New_外协报表', + param: '项目流水号_check=' + num + '=string&项目流水号=' + a + '=int&机床流水号_check=' + b + '=string&机床流水号=' + c + '=int&组件流水号_check=' + d + '=string&组件流水号=' + e + '=int&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=1=int&考核状态=5=int' + } + }) +} +// 主表1外协改变 +export function table1Out(num, preOut) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_外协平衡', + param: '工艺计划流水号=' + num + '&是否预计外协=' + preOut + '&是否预计外协分类=1' + } + }) +} +// 修改加工件合格时间 +export function timeChange(num, a) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改数据_修改加工件合格时间', + param: '工艺计划流水号=' + num + '&加工件合格时间=' + a + } + }) +} diff --git a/src/api/PurchasingCenter/ArrivalStateSearch.js b/src/api/PurchasingCenter/ArrivalStateSearch.js new file mode 100644 index 00000000..49eb1f35 --- /dev/null +++ b/src/api/PurchasingCenter/ArrivalStateSearch.js @@ -0,0 +1,38 @@ +import request from '@/utils/request' + +// 初始化合同 +export function initArrivalStateContact() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_到货情况_查询数据' + } + }) +} +// 查询到货情况 +export function searchArrivalState(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_到货情况_查询数据', + param: `采购合同流水号_check=${check1}&采购合同流水号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询到货情况 +export function searchArrivalNum(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同物料到货情况_查询数据', + param: `采购合同流水号=${num}` + } + }) +} diff --git a/src/api/PurchasingCenter/BuyerRequestFund.js b/src/api/PurchasingCenter/BuyerRequestFund.js new file mode 100644 index 00000000..28c3cc8b --- /dev/null +++ b/src/api/PurchasingCenter/BuyerRequestFund.js @@ -0,0 +1,87 @@ +import request from '@/utils/request' + +// 查询供应商 +export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '&供应商名称=' + value1 + '&企业性质_check=' + check2 + '&企业性质=' + value2 + '&创立日期_check=' + check3 + '&创立日期=' + value3 + '&注册资本_check=' + check4 + '&注册资本=' + value4 + '&税号_check=' + check5 + '&税号=' + value5 + '&电子信箱_check=' + check6 + '&电子信箱=' + value6 + '&地址_check=' + check7 + '&地址=' + value7 + '&帐号_check=' + check8 + '&帐号=' + value8 + '&开户行_check=' + check9 + '&开户行=' + value9 + '&电话号码_check=' + check10 + '&电话号码=' + value10 + '&传真_check=' + check11 + '&传真=' + value11 + '&货期_check=' + check12 + '&货期=' + value12 + } + }) +} +// 查询表1 +export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, num1, check3, name1, check4, name2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_请款表_查询数据', + param: '时间段_check=' + check1 + '&开始时间=' + start + '&结束时间=' + end + '&合同号_check=' + check2 + '&采购合同编号=' + num1 + '&采购员_check=' + check3 + '&采购员姓名=' + name1 + '&供应商_check=' + check4 + '&供应商名称=' + name2, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 请款 +export function requestFund(num1, money, time, id) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_请款表_增加数据', + param: `采购合同流水号=${num1}&请款金额=${money}&请款人=${id}&请款时间=${time}` + } + }) +} +// 查询请款付款情况 +export function searchCondition(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_请款表_查询数据_已请款', + param: '采购合同流水号=' + num1 + } + }) +} +// 取消请款 +export function cancelRequestFund(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_请款表_删除数据', + param: '采购科请款流水号=' + num1 + } + }) +} +// 查询请款表 +export function searchRequestTable(check, start, end) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_请款表_查询数据_请款Excel', + param: '请款时间段_check=' + check + '&开始时间=' + start + '&结束时间=' + end + } + }) +} +// 初始化采购员 考核部门编号:采购部改16 +export function initBuyer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=16' + } + }) +} diff --git a/src/api/PurchasingCenter/ContractChange.js b/src/api/PurchasingCenter/ContractChange.js new file mode 100644 index 00000000..f3da87d8 --- /dev/null +++ b/src/api/PurchasingCenter/ContractChange.js @@ -0,0 +1,121 @@ +import request from '@/utils/request' + +// 初始化合同号 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同_查询_采购部采购' + } + }) +} +// 初始化采购员(考核部门编号:采购部:16) +export function initBuyer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=16' + } + }) +} +// 采购合同查询 +export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, contract, check3, name, check4, supplier) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同_查询数据_采购部采购', + param: '时间段_check=' + check1 + '&开始时间=' + start + '=datetime&结束时间=' + end + '=datetime&采购合同流水号_check=' + check2 + '&采购合同流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 采购合同明细查询 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同明细_查询数据', + param: '采购合同流水号=' + num + } + }) +} +// 采购合同变更 +export function contractChange(num, reason) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购合同变更_增加数据', + param: '采购合同流水号=' + num + '&合同变更原因=' + reason + } + }) +} +// 查询变更合同 +export function searchChangeContract(pageCurrent, pageSize, check1, start, end, check2, contract, check3, person, check4, supplier, check5, project, check6, payType) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同变更_查询数据_根据条件_cjn', + param: '时间段_check=' + check1 + '&开始时间=' + start + '=datetime&结束时间=' + end + '=datetime&采购合同流水号_check=' + check2 + '&采购合同流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + person + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier + '&项目流水号_check=' + check5 + '&项目流水号=' + project + '&付款方式流水号_check=' + check6 + '&付款方式流水号=' + payType, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 初始化变更合同号 +export function initChangeContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同变更_查询_cjn' + } + }) +} +// 采购变更合同明细查询 +export function searchTable4(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同明细变更_查询数据', + param: '采购合同变更流水号=' + num + } + }) +} +// 初始化付款方式 +export function initPayMethod() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款方式_查询数据' + } + }) +} +// 合同作废 +export function deleteContract(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购合同_删除数据', + param: `采购合同流水号=${num}` + } + }) +} diff --git a/src/api/PurchasingCenter/ContractStateSearch.js b/src/api/PurchasingCenter/ContractStateSearch.js new file mode 100644 index 00000000..603e9cfa --- /dev/null +++ b/src/api/PurchasingCenter/ContractStateSearch.js @@ -0,0 +1,38 @@ +import request from '@/utils/request' + +// 初始化项目(车间传递来的) +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_采购部采购_查询数据' + } + }) +} +// 初始化采购员 考核部门编号:采购部16 +export function initBuyer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=16' + } + }) +} +// 查询表1 +export function searchTable1(pageCurrent, pageSize, check1, num1, check2, name, check3, num2, state) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_采购情况查询', + param: `项目流水号_check=${check1}&项目流水号=${num1}&物料名称_check=${check2}&物料名称=${name}&人员编号_check=${check3}&人员编号=${num2}&采购情况=${state}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/PurchasingCenter/CreateContract.js b/src/api/PurchasingCenter/CreateContract.js new file mode 100644 index 00000000..32a54969 --- /dev/null +++ b/src/api/PurchasingCenter/CreateContract.js @@ -0,0 +1,97 @@ +import request from '@/utils/request' + +// 查询询价单列表 表1 +export function searchInquirySheet(check1, value1, check2, value2, check3, id) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_询价单_查询数据', + param: `供应商名称_check=${check1}&供应商名称=${value1}&询价单编号_check=${check2}&询价单编号=${value2}&采购员流水号_check=${check3}&采购员流水号=${id}` + } + }) +} +// 根据询价单流水号查询物料详情 +export function searchSheetContract(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_询价单明细_查询数据_根据询价单', + param: '询价单流水号=' + num1 + } + }) +} +// 查询合同模板 +export function searchContractDemo(num1 = null) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同模板_查询数据', + param: '合同模板流水号=' + num1 + } + }) +} +// 初始化付款方式 +export function initPayMethod() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款方式_查询数据' + } + }) +} +// 初始化付款时间节点 +export function initPayTimeNode() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款时间节点_查询数据' + } + }) +} +// 生成采购合同 +export function doneContract(num1, name1, time1, time2, method, num2, text, freight, num3, numGroup, priceGroup, dayGroup, payGroup, planGroup, taxGroup, currency, cala, weight, id, groupPartGroup) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购合同_增加数据', + param: `采购合同编号=${num1}&采购合同名称=${name1}&预到货时间=${time1}&规定到货时间=${time2}&付款方式=${method}&采购员=${id}&供应商流水号=${num2}&合同文本=${text}&运费=${freight}&物料流水号组=${num3}&数量组=${numGroup}&单价组=${priceGroup}&发货天数组=${dayGroup}&付款比例组=${payGroup}&计划付款时间组=${planGroup}&税率组=${taxGroup}&币种流水号组=${currency}&采购合同计算方式流水号组=${cala}&重量组=${weight}&组件零件流水号组=${groupPartGroup}` + } + }) +} +// 生成采购合同 +export function insertFile(name, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_图片附件_增加数据', + param: `文件名=${name}&采购合同编号=${num}` + } + }) +} + +// 生成采购合同 +export function searchFile(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_图片附件_查询数据', + param: `采购合同编号=${num}` + } + }) +} diff --git a/src/api/PurchasingCenter/CreateInquirySheet.js b/src/api/PurchasingCenter/CreateInquirySheet.js new file mode 100644 index 00000000..1fd165f9 --- /dev/null +++ b/src/api/PurchasingCenter/CreateInquirySheet.js @@ -0,0 +1,159 @@ +import request from '@/utils/request' + +// 初始化询价状态 +export function initInquiryState() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购部采购_询价状态_查询' + } + }) +} +// 根据续表查物料表 +export function searchMaterial(pageCurrent, pageSize, check1, num1, check2, num2, person) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_分配后', + param: `询价状态编号_check=${check1}&询价状态编号=${num1}&物料名称_check=${check2}&物料名称=${num2}&人员编号=${person}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询供应商 +export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '&供应商名称=' + value1 + '&企业性质_check=' + check2 + '&企业性质=' + value2 + '&创立日期_check=' + check3 + '&创立日期=' + value3 + '&注册资本_check=' + check4 + '&注册资本=' + value4 + '&税号_check=' + check5 + '&税号=' + value5 + '&电子信箱_check=' + check6 + '&电子信箱=' + value6 + '&地址_check=' + check7 + '&地址=' + value7 + '&帐号_check=' + check8 + '&帐号=' + value8 + '&开户行_check=' + check9 + '&开户行=' + value9 + '&电话号码_check=' + check10 + '&电话号码=' + value10 + '&传真_check=' + check11 + '&传真=' + value11 + '&货期_check=' + check12 + '&货期=' + value12 + } + }) +} +// 查询询价单 +export function searchCreateInquirySheet(pageCurrent, pageSize, check1, name, check2, num, id) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_询价单_查询数据', + param: `供应商名称_check=${check1}&供应商名称=${name}&询价单编号_check=${check2}&询价单编号=${num}&采购员流水号_check=1&采购员流水号=${id}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询询价单--不分页 +export function searchCreateInquirySheet2() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_询价单_查询数据', + param: `供应商名称_check=0&供应商名称=0&询价单编号_check=0&询价单编号=0&采购员流水号_check=0&采购员流水号=0` + } + }) +} +// 查询询价单明细 +export function searchSheetDetail(num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_询价单明细_查询数据', + param: '询价单流水号_check=1&询价单流水号=' + num2 + } + }) +} +// 创建询价单 +export function createInquirySheet(num1, num2, remark, id) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_询价单_增加数据', + param: `询价单编号=${num1}&采购员=${id}&供应商流水号=${num2}&备注=${remark}&identity=1=output` + } + }) +} +// 删除询价单 +export function deleteInquirySheet(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_询价单_删除数据', + param: '询价单流水号=' + num1 + } + }) +} +// 追加现有询价单 +export function addInquirySheet(num1, num2, num3, num4, remark) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_询价单明细_增加数据', + param: '询价单流水号=' + num1 + '&组件零件流水号=' + num2 + '&总数量=' + num3 + '&备量=' + num4 + '&备注=' + remark + '&identity=1=output' + } + }) +} +// 移出询价单 +export function outInquirySheet(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_询价单明细_删除数据', + param: '询价单流水号=' + num1 + '&组件零件流水号=' + num2 + } + }) +} +// 查询物料 +export function searchAllMaterial(MaterialName, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料主文件_基本_查询数据_分页', + param: '物料名称_check=1&物料名称=' + MaterialName + '&PageCurrent=' + pageCurrent + '=int&PageSize=' + pageSize + '=int&PageCount=1=int=output&ItemCount=1=int=output' + } + }) +} +// 物料变更 +export function materialChange(num1, num2, num3, num4, person) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购物料修改_修改数据', + param: `组件零件流水号=${num1}&标准件和外购件流水号=${num2}&原物料流水号=${num3}&新物料流水号=${num4}&申请人=${person}` + } + }) +} +// 编辑询价单 +export function editInquirySheet(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_询价单_修改数据', + param: `询价单流水号=${num1}&询价单编号=${num2}&供应商流水号=${num3}` + } + }) +} diff --git a/src/api/PurchasingCenter/FundApproval.js b/src/api/PurchasingCenter/FundApproval.js new file mode 100644 index 00000000..09da01e8 --- /dev/null +++ b/src/api/PurchasingCenter/FundApproval.js @@ -0,0 +1,64 @@ +import request from '@/utils/request' + +// 查询审核/审批/付款 +export function initApproval(pageCurrent, pageSize, state) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_请款表_查询数据_审核审批', + param: `审核_审批_付款状态=${state}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 执行审核/审批/付款 +export function execApproval(num1, num2, reason, person, state) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_请款表_修改数据_审核审批', + param: `采购科请款流水号=${num1}&审核_审批_付款情况流水号=${num2}&未通过原因=${reason}&操作员编号=${person}&审核_审批_付款状态=${state}` + } + }) +} +// 查询离线合同审核/审批/付款 +export function initApprovalOffline(pageCurrent, pageSize, state) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_审核审批付款_查询数据', + param: `审核_审批_付款状态=${state}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询离线合同请款信息明细 +export function searchRequsetFundDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_请款明细_查询数据', + param: `离线合同请款流水号=${num}` + } + }) +} +// 执行审核/审批/付款(离线合同) +export function execApprovalOffline(num1, num2, reason, person, state) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_审核审批付款_修改数据', + param: `离线合同请款流水号=${num1}&审核_审批_付款情况流水号=${num2}&未通过原因=${reason}&操作员编号=${person}&审核_审批_付款状态=${state}` + } + }) +} diff --git a/src/api/PurchasingCenter/InvoiceStateSearch.js b/src/api/PurchasingCenter/InvoiceStateSearch.js new file mode 100644 index 00000000..9d5be917 --- /dev/null +++ b/src/api/PurchasingCenter/InvoiceStateSearch.js @@ -0,0 +1,50 @@ +import request from '@/utils/request' + +// 发票合同 +export function searchContractInvoice(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_到票情况_查询数据', + param: `采购合同流水号_check=${check1}&采购合同流水号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 发票查询 +export function searchInvoice(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_发票_查询数据', + param: '采购合同流水号_check=1&采购合同流水号=' + num + } + }) +} +// 传送人接收人初始化 采购科改16 +export function initPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=16' + } + }) +} +// 初始化合同号 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款情况_查询数据' + } + }) +} diff --git a/src/api/PurchasingCenter/OfflineContract.js b/src/api/PurchasingCenter/OfflineContract.js new file mode 100644 index 00000000..6d3258b1 --- /dev/null +++ b/src/api/PurchasingCenter/OfflineContract.js @@ -0,0 +1,170 @@ +import request from '@/utils/request' + +// 查询库存数 +export function searchInventoryNum(pageCurrent, pageSize, check1, name, check2, state1, state2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_物料余量_查询数据', + param: `物料名称_check=${check1}&物料名称=${name}&库存状态_check=${check2}&库存状态=${state1}&采购状态=${state2}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询离线合同 +export function searchOfflineContract(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_查询数据', + param: `离线合同编号_check=${check1}&离线合同编号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询离线合同 (不分页) +export function searchOfflineContract2() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_查询数据', + param: `离线合同编号_check=0&离线合同编号=0&供应商名称_check=0&供应商名称=0` + } + }) +} +// 查询供应商 +export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '&供应商名称=' + value1 + '&企业性质_check=' + check2 + '&企业性质=' + value2 + '&创立日期_check=' + check3 + '&创立日期=' + value3 + '&注册资本_check=' + check4 + '&注册资本=' + value4 + '&税号_check=' + check5 + '&税号=' + value5 + '&电子信箱_check=' + check6 + '&电子信箱=' + value6 + '&地址_check=' + check7 + '&地址=' + value7 + '&帐号_check=' + check8 + '&帐号=' + value8 + '&开户行_check=' + check9 + '&开户行=' + value9 + '&电话号码_check=' + check10 + '&电话号码=' + value10 + '&传真_check=' + check11 + '&传真=' + value11 + '&货期_check=' + check12 + '&货期=' + value12 + } + }) +} +// 初始化付款方式 +export function initPayMethod() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款方式_查询数据' + } + }) +} +// 初始化付款时间节点 +export function initPayTimeNode() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款时间节点_查询数据' + } + }) +} +// 增加离线合同 +export function addOfflineContract(contractNum, contractName, supplier, person, date, freight, type, one, two, three, four) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_增加数据', + param: `离线合同编号=${contractNum}&离线合同名称=${contractName}&供应商流水号=${supplier}&人员编号=${person}&规定到货时间=${date}&运费=${freight}&付款方式流水号=${type}&第一次付款时间节点流水号=${one}&第二次付款时间节点流水号=${two}&第三次付款时间节点流水号=${three}&第四次付款时间节点流水号=${four}` + } + }) +} +// 编辑离线合同 +export function editOfflineContract(contractNumValue, contractNum, contractName, supplier, person, date, freight, type, one, two, three, four) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_修改数据', + param: `离线合同流水号=${contractNumValue}&离线合同编号=${contractNum}&离线合同名称=${contractName}&供应商流水号=${supplier}&人员编号=${person}&规定到货时间=${date}&运费=${freight}&付款方式流水号=${type}&第一次付款时间节点流水号=${one}&第二次付款时间节点流水号=${two}&第三次付款时间节点流水号=${three}&第四次付款时间节点流水号=${four}` + } + }) +} +// 作废离线合同 +export function deleteOfflineContract(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_删除数据', + param: '离线合同流水号=' + num + } + }) +} +// 查询离线合同明细 +export function searchMateriel(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同明细_查询数据', + param: `离线合同流水号=${num}` + } + }) +} +// 增加离线合同明细 +export function addMateriel(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同明细_增加数据', + param: `离线合同流水号=${num1}&物料流水号组=${num2}` + } + }) +} +// 删除离线合同明细 +export function deleteMateriel(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同明细_删除数据', + param: `离线合同明细流水号=${num}` + } + }) +} +// 生成离线合同 +export function doneOfflineContact(contractNum, total, text, partGroup, numGroup, priceGroup) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_生成合同', + param: `离线合同流水号=${contractNum}&合同总额=${total}&合同文本=${text}&离线合同明细流水号组=${partGroup}&数量组=${numGroup}&单价组=${priceGroup}` + } + }) +} +// 查询合同模板 +export function searchContractDemo(num1 = null) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同模板_查询数据', + param: '合同模板流水号=' + num1 + } + }) +} diff --git a/src/api/PurchasingCenter/OfflineContractRequestFund.js b/src/api/PurchasingCenter/OfflineContractRequestFund.js new file mode 100644 index 00000000..2c72eb31 --- /dev/null +++ b/src/api/PurchasingCenter/OfflineContractRequestFund.js @@ -0,0 +1,63 @@ +import request from '@/utils/request' + +// 查询请款表 +export function searchRequestFund(pageCurrent, pageSize, check1, start, end) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_请款_查询数据', + param: `时间段_check=${check1}&开始时间=${start}&结束时间=${end}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询离线合同待请款信息 +export function searchOfflineContract(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_待请款_查询数据', + param: `供应商流水号=${num}` + } + }) +} +// 查询离线合同待请款信息 +export function submitRequestFund(contractGroup, sumGroup, supplier, money, person) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_请款_增加数据', + param: `离线合同流水号组=${contractGroup}&合同总额组=${sumGroup}&供应商流水号=${supplier}&请款金额=${money}&请款人=${person}` + } + }) +} +// 查询离线合同待请款信息 +export function searchRequsetFundDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_请款明细_查询数据', + param: `离线合同请款流水号=${num}` + } + }) +} +// 取消请款 +export function cancelRequestFund(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_请款_删除数据', + param: `离线合同请款流水号=${num}` + } + }) +} diff --git a/src/api/PurchasingCenter/PayStateSearch.js b/src/api/PurchasingCenter/PayStateSearch.js new file mode 100644 index 00000000..7b87f61c --- /dev/null +++ b/src/api/PurchasingCenter/PayStateSearch.js @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 初始化合同 +export function initPayState() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款情况_查询数据' + } + }) +} +// 查询表1 +export function searchPayState(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款情况_查询数据', + param: `采购合同流水号_check=${check1}&采购合同流水号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/PurchasingCenter/ProjectTotalSearch.js b/src/api/PurchasingCenter/ProjectTotalSearch.js new file mode 100644 index 00000000..1e46e7a1 --- /dev/null +++ b/src/api/PurchasingCenter/ProjectTotalSearch.js @@ -0,0 +1,25 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 初始化项目金额统计表 +export function searchProjectTotal(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_项目总价_明细_查询数据', + param: `项目流水号=${num}` + } + }) +} diff --git a/src/api/PurchasingCenter/PurchaseBudgetSearch.js b/src/api/PurchasingCenter/PurchaseBudgetSearch.js new file mode 100644 index 00000000..606932b9 --- /dev/null +++ b/src/api/PurchasingCenter/PurchaseBudgetSearch.js @@ -0,0 +1,62 @@ +import request from '@/utils/request' + +// 初始化合同 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款情况_查询数据' + } + }) +} +// 查询合同付款时间节点 +export function searchPayTimeNode(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购预算_合同付款时间节点_查询数据', + param: `采购合同流水号_check=${check1}&采购合同流水号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询合同付款时间节点及金额 +export function searchPayTimeNodeMoney(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购预算_合同付款时间节点及金额_查询数据', + param: `采购合同流水号=${num}` + } + }) +} +// 设置合同付款时间节点其他 +export function editPayTimeNodeOther(num, date1, date2, date3, date4, date5) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_合同付款时间节点_其他_修改数据', + param: `采购合同流水号=${num}&项目预验收日期=${date1}&项目终验收日期=${date2}&发货日期=${date3}&货到用户现场日期=${date4}&用户现场开通日期=${date5}` + } + }) +} +// 查询采购预算 +export function searchPurchaseBudget(check, date1, date2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购预算_查询数据', + param: `时间段_check=${check}&开始时间=${date1}&结束时间=${date2}` + } + }) +} diff --git a/src/api/PurchasingCenter/PurchaseContractApproval.js b/src/api/PurchasingCenter/PurchaseContractApproval.js new file mode 100644 index 00000000..02f86e2d --- /dev/null +++ b/src/api/PurchasingCenter/PurchaseContractApproval.js @@ -0,0 +1,74 @@ +import request from '@/utils/request' + +// 初始化合同号 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同审批_查询数据' + } + }) +} +// 初始化采购员 考核部门编号:采购部16 +export function initBuyer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=16' + } + }) +} +// 查询供应商 +export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '&供应商名称=' + value1 + '&企业性质_check=' + check2 + '&企业性质=' + value2 + '&创立日期_check=' + check3 + '&创立日期=' + value3 + '&注册资本_check=' + check4 + '&注册资本=' + value4 + '&税号_check=' + check5 + '&税号=' + value5 + '&电子信箱_check=' + check6 + '&电子信箱=' + value6 + '&地址_check=' + check7 + '&地址=' + value7 + '&帐号_check=' + check8 + '&帐号=' + value8 + '&开户行_check=' + check9 + '&开户行=' + value9 + '&电话号码_check=' + check10 + '&电话号码=' + value10 + '&传真_check=' + check11 + '&传真=' + value11 + '&货期_check=' + check12 + '&货期=' + value12 + } + }) +} +// 采购合同查询 +export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, contract, check3, name, check4, supplier) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同审批_查询数据', + param: '时间段_check=' + check1 + '&开始时间=' + start + '=datetime&结束时间=' + end + '=datetime&采购合同流水号_check=' + check2 + '&采购合同流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 采购合同明细查询 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同明细_查询数据', + param: '采购合同流水号=' + num + } + }) +} +// 执行审批 +export function submitApproval(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_合同审批_修改数据', + param: '采购合同流水号=' + num + '&审批情况流水号=' + num1 + '&未通过原因=' + num2 + } + }) +} diff --git a/src/api/PurchasingCenter/PurchaseContractSearch.js b/src/api/PurchasingCenter/PurchaseContractSearch.js new file mode 100644 index 00000000..787ddd9c --- /dev/null +++ b/src/api/PurchasingCenter/PurchaseContractSearch.js @@ -0,0 +1,73 @@ +import request from '@/utils/request' + +// 初始化合同号 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同_查询_采购部采购' + } + }) +} +// 初始化采购员(考核部门编号:采购部:16) +export function initBuyer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=16' + } + }) +} +// 查询供应商 +export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '&供应商名称=' + value1 + '&企业性质_check=' + check2 + '&企业性质=' + value2 + '&创立日期_check=' + check3 + '&创立日期=' + value3 + '&注册资本_check=' + check4 + '&注册资本=' + value4 + '&税号_check=' + check5 + '&税号=' + value5 + '&电子信箱_check=' + check6 + '&电子信箱=' + value6 + '&地址_check=' + check7 + '&地址=' + value7 + '&帐号_check=' + check8 + '&帐号=' + value8 + '&开户行_check=' + check9 + '&开户行=' + value9 + '&电话号码_check=' + check10 + '&电话号码=' + value10 + '&传真_check=' + check11 + '&传真=' + value11 + '&货期_check=' + check12 + '&货期=' + value12 + } + }) +} +// 采购合同查询 +export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, contract, check3, name, check4, supplier, check5, approval) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同_查询数据_采购部采购', + param: '时间段_check=' + check1 + '&开始时间=' + start + '=datetime&结束时间=' + end + '=datetime&采购合同流水号_check=' + check2 + '&采购合同流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier + '&审批情况流水号_check=' + check5 + '&审批情况流水号=' + approval, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 采购合同明细查询 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同明细_查询数据', + param: '采购合同流水号=' + num + } + }) +} +export function submitApproval(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_合同审批_修改数据', + param: '采购合同流水号=' + num + '&审批情况流水号=' + num1 + '&未通过原因=' + num2 + } + }) +} diff --git a/src/api/PurchasingCenter/PurchaseMaterielModify.js b/src/api/PurchasingCenter/PurchaseMaterielModify.js new file mode 100644 index 00000000..4ca3392f --- /dev/null +++ b/src/api/PurchasingCenter/PurchaseMaterielModify.js @@ -0,0 +1,25 @@ +import request from '@/utils/request' + +export function searchTable(PageCurrent, PageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购物料修改确认_查询数据', + Pagination: PageCurrent + '&' + PageSize + } + }) +} +export function edit(num, num1, num2, num3, num4, num5) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购物料修改确认_是否通过', + param: '组件零件流水号=' + num + '&标准件和外购件流水号=' + num1 + '&物料变更记录流水号=' + num2 + '&确认通过状态=' + num3 + '&确认人=' + num4 + '&原物料流水号=' + num5 + } + }) +} + diff --git a/src/api/PurchasingCenter/PurchaseTaskAllocate.js b/src/api/PurchasingCenter/PurchaseTaskAllocate.js new file mode 100644 index 00000000..f9a5dd9c --- /dev/null +++ b/src/api/PurchasingCenter/PurchaseTaskAllocate.js @@ -0,0 +1,50 @@ +import request from '@/utils/request' + +// 初始化项目(车间传递来的) +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_采购部采购_查询数据' + } + }) +} +// 初始化采购员 考核部门编号:采购部16 +export function initBuyer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=16' + } + }) +} +// 查询表1 +export function searchTable1(pageCurrent, pageSize, check1, num1, check2, name, state) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料', + param: `项目流水号_check=${check1}&项目流水号=${num1}&物料名称_check=${check2}&物料名称=${name}&分配状态=${state}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 分配任务 +export function allocateTask(group, person) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购部采购_分配任务', + param: `标准件和外购件流水号组=${group}&人员编号=${person}` + } + }) +} diff --git a/src/api/PurchasingCenter/ReceiptConnectionSheet.js b/src/api/PurchasingCenter/ReceiptConnectionSheet.js new file mode 100644 index 00000000..e916b988 --- /dev/null +++ b/src/api/PurchasingCenter/ReceiptConnectionSheet.js @@ -0,0 +1,74 @@ +import request from '@/utils/request' + +// 发票查询 +export function searchInvoice(pageCurrent, pageSize, check1, num1, check2, time, check3, transmit, check4, recipient, check5, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_发票_查询数据', + param: '发票号_check=' + check1 + '&发票号=' + num1 + '&开票时间_check=' + check2 + '&开票时间=' + time + '&传送人_check=' + check3 + '&传送人=' + transmit + '&接收人_check=' + check4 + '&接收人=' + recipient + '&采购合同流水号_check=' + check5 + '&采购合同流水号=' + num2, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 发票增加 +export function addInvoice(num1, num2, time1, money, send, receive, remark, time2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_发票_增加数据', + param: '采购合同流水号=' + num1 + '&发票号=' + num2 + '&开票时间=' + time1 + '&开票金额=' + money + '&传送人=' + send + '&接收人=' + receive + '&备注=' + remark + '&操作时间=' + time2 + '&identity_receiptLiushuihao=1=int=output' + } + }) +} +// 发票编辑 +export function editInvoice(num1, num2, num3, time1, money, send, receive, remark) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_发票_修改数据', + param: '发票流水号=' + num1 + '&采购合同流水号=' + num2 + '&发票号=' + num3 + '&开票时间=' + time1 + '&开票金额=' + money + '&传送人=' + send + '&接收人=' + receive + '&备注=' + remark + } + }) +} +// 发票删除 +export function deleteInvoice(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_发票_删除数据', + param: '发票流水号=' + num1 + } + }) +} +// 传送人接收人初始化 采购科改16 +export function initPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=16' + } + }) +} +// 初始化合同号 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款情况_查询数据' + } + }) +} diff --git a/src/api/PurchasingCenter/ReceiveCheck.js b/src/api/PurchasingCenter/ReceiveCheck.js new file mode 100644 index 00000000..8fe18b05 --- /dev/null +++ b/src/api/PurchasingCenter/ReceiveCheck.js @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 初始化项目金额统计表 +export function searchReceiveCheck(pageCurrent, pageSize, check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_领用核算_查询数据', + param: `项目流水号_check=${check}&项目流水号=${num}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/PurchasingCenter/SupplierManagement.js b/src/api/PurchasingCenter/SupplierManagement.js new file mode 100644 index 00000000..5e02aeee --- /dev/null +++ b/src/api/PurchasingCenter/SupplierManagement.js @@ -0,0 +1,98 @@ +import request from '@/utils/request' + +export function searchData(check1, supplierName, check2, businessNature, check3, creationDate, check4, registeredCapital, check5, taxNumber, check6, bank, check7, account, check8, email, check9, address, check10, telephone, check11, fax, check12, deliveryPeriod, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '=int&供应商名称=' + supplierName + '&企业性质_check=' + check2 + '=int&企业性质=' + businessNature + '&创立日期_check=' + check3 + '=int&创立日期=' + creationDate + '&注册资本_check=' + check4 + '=int&注册资本=' + registeredCapital + '&税号_check=' + check5 + '=int&税号=' + taxNumber + '&开户行_check=' + check6 + '=int&开户行=' + bank + '&帐号_check=' + check7 + '=int&帐号=' + account + '&电子信箱_check=' + check8 + '=int&电子信箱=' + email + '&地址_check=' + check9 + '=int&地址=' + address + '&电话号码_check=' + check10 + '=int&电话号码=' + telephone + '&传真_check=' + check11 + '=int&传真=' + fax + '&货期_check=' + check12 + '=int&货期=' + deliveryPeriod, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 增加新的数据 +export function addTable(supplierName, businessNature, creationDate, registeredCapital, taxNumber, bank, account, email, address, telephone, fax, deliveryPeriod) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_供应商_增加数据', + param: '供应商名称=' + supplierName + '&企业性质=' + businessNature + '&创立日期=' + creationDate + '&注册资本=' + registeredCapital + '&税号=' + taxNumber + '&开户行=' + bank + '&账号=' + account + '&电子信箱=' + email + '&地址=' + address + '&电话号码=' + telephone + '&传真=' + fax + '&货期=' + deliveryPeriod + } + }) +} + +export function editTable(supplierName, businessNature, creationDate, registeredCapital, taxNumber, bank, account, email, address, supplierSerialNumber, fax, deliveryPeriod, telephone) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_供应商_修改数据', + param: '供应商名称=' + supplierName + '&企业性质=' + businessNature + '&创立日期=' + creationDate + '&注册资本=' + registeredCapital + '&税号=' + taxNumber + '&开户行=' + bank + '&账号=' + account + '&电子信箱=' + email + '&地址=' + address + '&供应商流水号=' + supplierSerialNumber + '&传真=' + fax + '&货期=' + deliveryPeriod + '&电话号码=' + telephone + } + }) +} + +export function deleteData(supplierSerialNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_供应商_删除数据', + param: '供应商流水号=' + supplierSerialNumber + } + }) +} + +export function getName(supplierSerialNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商联系人_查询数据', + param: '供应商流水号=' + supplierSerialNumber + } + }) +} +// 增加联系人 +export function addPerson(name, work, phone, telephone, fax, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_供应商联系人_增加数据', + param: '姓名=' + name + '&职务=' + work + '&电话=' + phone + '&手机=' + telephone + '&传真=' + fax + '&供应商流水号=' + num + } + }) +} +// 编辑联系人 +export function editPerson(name, work, phone, telephone, fax, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_供应商联系人_修改数据', + param: '姓名=' + name + '&职务=' + work + '&电话=' + phone + '&手机=' + telephone + '&传真=' + fax + '&供应商联系人流水号=' + num + } + }) +} +// 删除联系人 +export function deletePerson(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_供应商联系人_删除数据', + param: '供应商联系人流水号=' + num + } + }) +} diff --git a/src/api/TechnologyCenter/ImportParts.js b/src/api/TechnologyCenter/ImportParts.js index a90bbca2..22f79d22 100644 --- a/src/api/TechnologyCenter/ImportParts.js +++ b/src/api/TechnologyCenter/ImportParts.js @@ -76,7 +76,7 @@ export function specificationQueryWB(projectCheck, project, machineCheck, machin method: 'post', data: { type: '1', - name: 'PDM_零件明细表_外购件和标准件_规范数据查询_gj', + name: 'PDM_零件明细表_外购件和标准件_规范数据查询_gj2', param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}` } }) @@ -98,7 +98,7 @@ export function unSpecificationQueryWB(projectCheck, project, machineCheck, mach method: 'post', data: { type: '1', - name: 'PDM_零件明细表_外购件和标准件_不规范数据查询gj', + name: 'PDM_零件明细表_外购件和标准件_不规范数据查询gj2', param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}` } }) diff --git a/src/directive/clipboard/clipboard.js b/src/directive/clipboard/clipboard.js new file mode 100644 index 00000000..49c9b391 --- /dev/null +++ b/src/directive/clipboard/clipboard.js @@ -0,0 +1,49 @@ +// Inspired by https://github.com/Inndy/vue-clipboard2 +const Clipboard = require('clipboard') +if (!Clipboard) { + throw new Error('you shold npm install `clipboard` --save at first ') +} + +export default { + bind(el, binding) { + if (binding.arg === 'success') { + el._v_clipboard_success = binding.value + } else if (binding.arg === 'error') { + el._v_clipboard_error = binding.value + } else { + const clipboard = new Clipboard(el, { + text() { return binding.value }, + action() { return binding.arg === 'cut' ? 'cut' : 'copy' } + }) + clipboard.on('success', e => { + const callback = el._v_clipboard_success + callback && callback(e) // eslint-disable-line + }) + clipboard.on('error', e => { + const callback = el._v_clipboard_error + callback && callback(e) // eslint-disable-line + }) + el._v_clipboard = clipboard + } + }, + update(el, binding) { + if (binding.arg === 'success') { + el._v_clipboard_success = binding.value + } else if (binding.arg === 'error') { + el._v_clipboard_error = binding.value + } else { + el._v_clipboard.text = function() { return binding.value } + el._v_clipboard.action = function() { return binding.arg === 'cut' ? 'cut' : 'copy' } + } + }, + unbind(el, binding) { + if (binding.arg === 'success') { + delete el._v_clipboard_success + } else if (binding.arg === 'error') { + delete el._v_clipboard_error + } else { + el._v_clipboard.destroy() + delete el._v_clipboard + } + } +} diff --git a/src/directive/clipboard/index.js b/src/directive/clipboard/index.js new file mode 100644 index 00000000..02c98163 --- /dev/null +++ b/src/directive/clipboard/index.js @@ -0,0 +1,13 @@ +import Clipboard from './clipboard' + +const install = function(Vue) { + Vue.directive('Clipboard', Clipboard) +} + +if (window.Vue) { + window.clipboard = Clipboard + Vue.use(install); // eslint-disable-line +} + +Clipboard.install = install +export default Clipboard diff --git a/src/directive/el-dragDialog/drag.js b/src/directive/el-dragDialog/drag.js new file mode 100644 index 00000000..7d49e4bb --- /dev/null +++ b/src/directive/el-dragDialog/drag.js @@ -0,0 +1,46 @@ +export default{ + bind(el, binding) { + const dialogHeaderEl = el.querySelector('.el-dialog__header') + const dragDom = el.querySelector('.el-dialog') + dialogHeaderEl.style = 'cursor:move;' + + // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null); + const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null) + + dialogHeaderEl.onmousedown = (e) => { + // 鼠标按下,计算当前元素距离可视区的距离 + const disX = e.clientX - dialogHeaderEl.offsetLeft + const disY = e.clientY - dialogHeaderEl.offsetTop + + // 获取到的值带px 正则匹配替换 + let styL, styT + + // 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px + if (sty.left.includes('%')) { + styL = +document.body.clientWidth * (+sty.left.replace(/\%/g, '') / 100) + styT = +document.body.clientHeight * (+sty.top.replace(/\%/g, '') / 100) + } else { + styL = +sty.left.replace(/\px/g, '') + styT = +sty.top.replace(/\px/g, '') + } + + document.onmousemove = function(e) { + // 通过事件委托,计算移动的距离 + const l = e.clientX - disX + const t = e.clientY - disY + + // 移动当前元素 + dragDom.style.left = `${l + styL}px` + dragDom.style.top = `${t + styT}px` + + // 将此时的位置传出去 + // binding.value({x:e.pageX,y:e.pageY}) + } + + document.onmouseup = function(e) { + document.onmousemove = null + document.onmouseup = null + } + } + } +} diff --git a/src/directive/el-dragDialog/index.js b/src/directive/el-dragDialog/index.js new file mode 100644 index 00000000..29facbfb --- /dev/null +++ b/src/directive/el-dragDialog/index.js @@ -0,0 +1,13 @@ +import drag from './drag' + +const install = function(Vue) { + Vue.directive('el-drag-dialog', drag) +} + +if (window.Vue) { + window['el-drag-dialog'] = drag + Vue.use(install); // eslint-disable-line +} + +drag.install = install +export default drag diff --git a/src/directive/sticky.js b/src/directive/sticky.js new file mode 100644 index 00000000..bc234660 --- /dev/null +++ b/src/directive/sticky.js @@ -0,0 +1,91 @@ +const vueSticky = {} +let listenAction +vueSticky.install = Vue => { + Vue.directive('sticky', { + inserted(el, binding) { + const params = binding.value || {} + const stickyTop = params.stickyTop || 0 + const zIndex = params.zIndex || 1000 + const elStyle = el.style + + elStyle.position = '-webkit-sticky' + elStyle.position = 'sticky' + // if the browser support css sticky(Currently Safari, Firefox and Chrome Canary) + // if (~elStyle.position.indexOf('sticky')) { + // elStyle.top = `${stickyTop}px`; + // elStyle.zIndex = zIndex; + // return + // } + const elHeight = el.getBoundingClientRect().height + const elWidth = el.getBoundingClientRect().width + elStyle.cssText = `top: ${stickyTop}px; z-index: ${zIndex}` + + const parentElm = el.parentNode || document.documentElement + const placeholder = document.createElement('div') + placeholder.style.display = 'none' + placeholder.style.width = `${elWidth}px` + placeholder.style.height = `${elHeight}px` + parentElm.insertBefore(placeholder, el) + + let active = false + + const getScroll = (target, top) => { + const prop = top ? 'pageYOffset' : 'pageXOffset' + const method = top ? 'scrollTop' : 'scrollLeft' + let ret = target[prop] + if (typeof ret !== 'number') { + ret = window.document.documentElement[method] + } + return ret + } + + const sticky = () => { + if (active) { + return + } + if (!elStyle.height) { + elStyle.height = `${el.offsetHeight}px` + } + + elStyle.position = 'fixed' + elStyle.width = `${elWidth}px` + placeholder.style.display = 'inline-block' + active = true + } + + const reset = () => { + if (!active) { + return + } + + elStyle.position = '' + placeholder.style.display = 'none' + active = false + } + + const check = () => { + const scrollTop = getScroll(window, true) + const offsetTop = el.getBoundingClientRect().top + if (offsetTop < stickyTop) { + sticky() + } else { + if (scrollTop < elHeight + stickyTop) { + reset() + } + } + } + listenAction = () => { + check() + } + + window.addEventListener('scroll', listenAction) + }, + + unbind() { + window.removeEventListener('scroll', listenAction) + } + }) +} + +export default vueSticky + diff --git a/src/directive/waves/index.js b/src/directive/waves/index.js new file mode 100644 index 00000000..65f9b308 --- /dev/null +++ b/src/directive/waves/index.js @@ -0,0 +1,13 @@ +import waves from './waves' + +const install = function(Vue) { + Vue.directive('waves', waves) +} + +if (window.Vue) { + window.waves = waves + Vue.use(install); // eslint-disable-line +} + +waves.install = install +export default waves diff --git a/src/directive/waves/waves.css b/src/directive/waves/waves.css new file mode 100644 index 00000000..af7a7efd --- /dev/null +++ b/src/directive/waves/waves.css @@ -0,0 +1,26 @@ +.waves-ripple { + position: absolute; + border-radius: 100%; + background-color: rgba(0, 0, 0, 0.15); + background-clip: padding-box; + pointer-events: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + -webkit-transform: scale(0); + -ms-transform: scale(0); + transform: scale(0); + opacity: 1; +} + +.waves-ripple.z-active { + opacity: 0; + -webkit-transform: scale(2); + -ms-transform: scale(2); + transform: scale(2); + -webkit-transition: opacity 1.2s ease-out, -webkit-transform 0.6s ease-out; + transition: opacity 1.2s ease-out, -webkit-transform 0.6s ease-out; + transition: opacity 1.2s ease-out, transform 0.6s ease-out; + transition: opacity 1.2s ease-out, transform 0.6s ease-out, -webkit-transform 0.6s ease-out; +} \ No newline at end of file diff --git a/src/directive/waves/waves.js b/src/directive/waves/waves.js new file mode 100644 index 00000000..ac1d8611 --- /dev/null +++ b/src/directive/waves/waves.js @@ -0,0 +1,42 @@ +import './waves.css' + +export default{ + bind(el, binding) { + el.addEventListener('click', e => { + const customOpts = Object.assign({}, binding.value) + const opts = Object.assign({ + ele: el, // 波纹作用元素 + type: 'hit', // hit点击位置扩散center中心点扩展 + color: 'rgba(0, 0, 0, 0.15)' // 波纹颜色 + }, customOpts) + const target = opts.ele + if (target) { + target.style.position = 'relative' + target.style.overflow = 'hidden' + const rect = target.getBoundingClientRect() + let ripple = target.querySelector('.waves-ripple') + if (!ripple) { + ripple = document.createElement('span') + ripple.className = 'waves-ripple' + ripple.style.height = ripple.style.width = Math.max(rect.width, rect.height) + 'px' + target.appendChild(ripple) + } else { + ripple.className = 'waves-ripple' + } + switch (opts.type) { + case 'center': + ripple.style.top = (rect.height / 2 - ripple.offsetHeight / 2) + 'px' + ripple.style.left = (rect.width / 2 - ripple.offsetWidth / 2) + 'px' + break + default: + ripple.style.top = (e.pageY - rect.top - ripple.offsetHeight / 2 - document.body.scrollTop) + 'px' + ripple.style.left = (e.pageX - rect.left - ripple.offsetWidth / 2 - document.body.scrollLeft) + 'px' + } + ripple.style.backgroundColor = opts.color + ripple.className = 'waves-ripple z-active' + return false + } + }, false) + } +} + diff --git a/src/icons/svg/ArrivalStateSearch.svg b/src/icons/svg/ArrivalStateSearch.svg new file mode 100644 index 00000000..23df5d35 --- /dev/null +++ b/src/icons/svg/ArrivalStateSearch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/BuyerRequestFund.svg b/src/icons/svg/BuyerRequestFund.svg new file mode 100644 index 00000000..a5c6b119 --- /dev/null +++ b/src/icons/svg/BuyerRequestFund.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/ContractCapitalManagement.svg b/src/icons/svg/ContractCapitalManagement.svg index 5c08ce66..c188706a 100644 --- a/src/icons/svg/ContractCapitalManagement.svg +++ b/src/icons/svg/ContractCapitalManagement.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/ContractChange.svg b/src/icons/svg/ContractChange.svg new file mode 100644 index 00000000..e99015a9 --- /dev/null +++ b/src/icons/svg/ContractChange.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/ContractInformationManagement.svg b/src/icons/svg/ContractInformationManagement.svg index 44df9be7..c498df81 100644 --- a/src/icons/svg/ContractInformationManagement.svg +++ b/src/icons/svg/ContractInformationManagement.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/ContractStateSearch.svg b/src/icons/svg/ContractStateSearch.svg new file mode 100644 index 00000000..d1cd42d1 --- /dev/null +++ b/src/icons/svg/ContractStateSearch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/CreateContract.svg b/src/icons/svg/CreateContract.svg new file mode 100644 index 00000000..f0698135 --- /dev/null +++ b/src/icons/svg/CreateContract.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/CreateInquirySheet.svg b/src/icons/svg/CreateInquirySheet.svg new file mode 100644 index 00000000..ba1dcc80 --- /dev/null +++ b/src/icons/svg/CreateInquirySheet.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/FundApproval1.svg b/src/icons/svg/FundApproval1.svg new file mode 100644 index 00000000..d8f31f33 --- /dev/null +++ b/src/icons/svg/FundApproval1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/FundApproval2.svg b/src/icons/svg/FundApproval2.svg new file mode 100644 index 00000000..f38ebcb3 --- /dev/null +++ b/src/icons/svg/FundApproval2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/FundApproval3.svg b/src/icons/svg/FundApproval3.svg new file mode 100644 index 00000000..10a903c8 --- /dev/null +++ b/src/icons/svg/FundApproval3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/InvoiceStateSearch.svg b/src/icons/svg/InvoiceStateSearch.svg new file mode 100644 index 00000000..766a1ebd --- /dev/null +++ b/src/icons/svg/InvoiceStateSearch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/OfflineContract.svg b/src/icons/svg/OfflineContract.svg new file mode 100644 index 00000000..fa56a437 --- /dev/null +++ b/src/icons/svg/OfflineContract.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/OfflineContractRequestFund.svg b/src/icons/svg/OfflineContractRequestFund.svg new file mode 100644 index 00000000..7959ba59 --- /dev/null +++ b/src/icons/svg/OfflineContractRequestFund.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/PayStateSearch.svg b/src/icons/svg/PayStateSearch.svg new file mode 100644 index 00000000..3d295eee --- /dev/null +++ b/src/icons/svg/PayStateSearch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/ProjectTotalSearch.svg b/src/icons/svg/ProjectTotalSearch.svg new file mode 100644 index 00000000..8838e6f3 --- /dev/null +++ b/src/icons/svg/ProjectTotalSearch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/PurchaseBudgetSearch.svg b/src/icons/svg/PurchaseBudgetSearch.svg new file mode 100644 index 00000000..02539f8b --- /dev/null +++ b/src/icons/svg/PurchaseBudgetSearch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/PurchaseContractApproval.svg b/src/icons/svg/PurchaseContractApproval.svg new file mode 100644 index 00000000..4bc1de49 --- /dev/null +++ b/src/icons/svg/PurchaseContractApproval.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/PurchaseContractSearch.svg b/src/icons/svg/PurchaseContractSearch.svg new file mode 100644 index 00000000..60fcb677 --- /dev/null +++ b/src/icons/svg/PurchaseContractSearch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/PurchaseMaterielModify.svg b/src/icons/svg/PurchaseMaterielModify.svg new file mode 100644 index 00000000..c56d0e8d --- /dev/null +++ b/src/icons/svg/PurchaseMaterielModify.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/PurchaseTaskAllocate.svg b/src/icons/svg/PurchaseTaskAllocate.svg new file mode 100644 index 00000000..559e34f6 --- /dev/null +++ b/src/icons/svg/PurchaseTaskAllocate.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/ReceiptConnectionSheet.svg b/src/icons/svg/ReceiptConnectionSheet.svg new file mode 100644 index 00000000..ecac0203 --- /dev/null +++ b/src/icons/svg/ReceiptConnectionSheet.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/ReceiveCheck.svg b/src/icons/svg/ReceiveCheck.svg new file mode 100644 index 00000000..70b918bf --- /dev/null +++ b/src/icons/svg/ReceiveCheck.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/SafetyMargin.svg b/src/icons/svg/SafetyMargin.svg index 17c5f1e1..705d48be 100644 --- a/src/icons/svg/SafetyMargin.svg +++ b/src/icons/svg/SafetyMargin.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/icons/svg/SupplierManagement.svg b/src/icons/svg/SupplierManagement.svg new file mode 100644 index 00000000..d654401b --- /dev/null +++ b/src/icons/svg/SupplierManagement.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 7a99b4f0..3f5fc90e 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -1,11 +1,13 @@ import { login, getInfo } from '@/api/login' import { getToken, setToken, removeToken } from '@/utils/auth' +import Cookies from 'js-cookie' import { Message } from 'element-ui' const user = { state: { token: getToken(), - name: '', - roles: [] + name: Cookies.get('name'), + roles: [], + id: Cookies.get('id') }, mutations: { @@ -17,6 +19,9 @@ const user = { }, SET_ROLES: (state, roles) => { state.roles = roles + }, + SET_ID: (state, id) => { + state.id = id } }, @@ -32,7 +37,11 @@ const user = { this.$router.push({ path: '/login' }) } else { setToken(data[0].角色编号) + Cookies.set('id', data[0].人员编号, { expires: 1 }) + Cookies.set('name', data[0].姓名, { expires: 1 }) commit('SET_TOKEN', data[0].角色编号) + commit('SET_NAME', data[0].姓名) + commit('SET_ID', data[0].人员编号) resolve() } }).catch(error => { @@ -43,10 +52,10 @@ const user = { // 获取用户信息 GetInfo({ commit, state }) { + console.log(state.token) return new Promise((resolve, reject) => { getInfo(state.token).then(response => { commit('SET_ROLES', 'admin') - commit('SET_NAME', 'admin') resolve(response) }).catch(error => { reject(error) @@ -57,6 +66,8 @@ const user = { FedLogOut({ commit }) { return new Promise(resolve => { commit('SET_TOKEN', '') + Cookies.remove('name') + Cookies.remove('id') removeToken() resolve() }) diff --git a/src/utils/request.js b/src/utils/request.js index 13bfc172..2e5d84eb 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -7,7 +7,7 @@ import axios from 'axios' export const upload = `http://123.56.95.229:8411/submit/uploadFile.ashx` export const download = `http://123.56.95.229:8411/submit/downloadFile.ashx` const service = axios.create({ - baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`, + baseURL: `http://192.168.1.122:8411/submit/MESCommonBase.ashx`, timeout: 1500000 // 请求超时时间 }) diff --git a/src/utils/tool.js b/src/utils/tool.js index e027fe25..d4a25900 100644 --- a/src/utils/tool.js +++ b/src/utils/tool.js @@ -99,3 +99,9 @@ export function SectionToChinese(section) { } return chnStr } + +export function sleep(time) { + return new Promise(resolve => { + setTimeout(resolve, time) + }) +} diff --git a/src/views/Assembly/AssemblyInformationInput/index.vue b/src/views/Assembly/AssemblyInformationInput/index.vue new file mode 100644 index 00000000..148bac8e --- /dev/null +++ b/src/views/Assembly/AssemblyInformationInput/index.vue @@ -0,0 +1,258 @@ + + + + + diff --git a/src/views/Assembly/AssemblyPlan/index.vue b/src/views/Assembly/AssemblyPlan/index.vue new file mode 100644 index 00000000..0304bc31 --- /dev/null +++ b/src/views/Assembly/AssemblyPlan/index.vue @@ -0,0 +1,219 @@ + + + + + diff --git a/src/views/Assembly/AssemblyProcessAssignment/index.vue b/src/views/Assembly/AssemblyProcessAssignment/index.vue new file mode 100644 index 00000000..8bd0533e --- /dev/null +++ b/src/views/Assembly/AssemblyProcessAssignment/index.vue @@ -0,0 +1,257 @@ + + + + + diff --git a/src/views/Assembly/AssemblyProcessPlanning/index.vue b/src/views/Assembly/AssemblyProcessPlanning/index.vue new file mode 100644 index 00000000..db88fa43 --- /dev/null +++ b/src/views/Assembly/AssemblyProcessPlanning/index.vue @@ -0,0 +1,834 @@ + + + + + diff --git a/src/views/Assembly/AssemblyQuotaSetting/index.vue b/src/views/Assembly/AssemblyQuotaSetting/index.vue new file mode 100644 index 00000000..4b4986dc --- /dev/null +++ b/src/views/Assembly/AssemblyQuotaSetting/index.vue @@ -0,0 +1,213 @@ + + + + + diff --git a/src/views/Assembly/InstallationAndMonitoring/index.vue b/src/views/Assembly/InstallationAndMonitoring/index.vue new file mode 100644 index 00000000..d8adfad1 --- /dev/null +++ b/src/views/Assembly/InstallationAndMonitoring/index.vue @@ -0,0 +1,381 @@ + + + + + + diff --git a/src/views/Assembly/PrintingAssemblyProcessCard/index.vue b/src/views/Assembly/PrintingAssemblyProcessCard/index.vue new file mode 100644 index 00000000..08164f7a --- /dev/null +++ b/src/views/Assembly/PrintingAssemblyProcessCard/index.vue @@ -0,0 +1,217 @@ + + + + + + diff --git a/src/views/ManufacturingCenter/ProductionCapacityBalance/index.vue b/src/views/ManufacturingCenter/ProductionCapacityBalance/index.vue new file mode 100644 index 00000000..f21e6f59 --- /dev/null +++ b/src/views/ManufacturingCenter/ProductionCapacityBalance/index.vue @@ -0,0 +1,1667 @@ + + + + + + diff --git a/src/views/MarketingCenter/BidBond/index.vue b/src/views/MarketingCenter/BidBond/index.vue index 4ffa32a0..ca647a37 100644 --- a/src/views/MarketingCenter/BidBond/index.vue +++ b/src/views/MarketingCenter/BidBond/index.vue @@ -15,7 +15,7 @@ 投标人: 招标企业: - + 开始日期: - - - - - - - - - - - - 查询 @@ -34,7 +22,6 @@ tooltip-effect="dark" style="width: 100%" height="730" - highlight-current-row border>