采购、装配

This commit is contained in:
hedekun
2018-11-14 09:22:04 +08:00
parent f7eb22e5bb
commit 666c65dd0f
101 changed files with 14504 additions and 266 deletions

View File

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

View File

@@ -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
}
})
}

View File

@@ -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
}
})
}

View File

@@ -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
}
})
}

View File

@@ -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
}
})
}

View File

@@ -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
}
})
}

View File

@@ -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
}
})
}

View File

@@ -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
}
})
}

View File

@@ -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}`
}
})
}

View File

@@ -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'
}
})
}

View File

@@ -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}`
}
})
}

View File

@@ -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
}
})
}

View File

@@ -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}`
}
})
}

View File

@@ -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}`
}
})
}

View File

@@ -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}`
}
})
}

View File

@@ -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: '采购管理_付款情况_查询数据'
}
})
}

View File

@@ -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
}
})
}

View File

@@ -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}`
}
})
}

View File

@@ -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
}
})
}

View File

@@ -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}`
}
})
}

View File

@@ -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}`
}
})
}

View File

@@ -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
}
})
}

View File

@@ -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
}
})
}

View File

@@ -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
}
})
}

View File

@@ -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}`
}
})
}

View File

@@ -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: '采购管理_付款情况_查询数据'
}
})
}

View File

@@ -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
}
})
}

View File

@@ -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
}
})
}

View File

@@ -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}`
}
})