diff --git a/src/App.vue b/src/App.vue index 721d3a32..cb46977e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,11 +1,29 @@ diff --git a/src/api/Assembly/AssemblyProcessPlanning.js b/src/api/Assembly/AssemblyProcessPlanning.js index a8b70aaf..41619c17 100644 --- a/src/api/Assembly/AssemblyProcessPlanning.js +++ b/src/api/Assembly/AssemblyProcessPlanning.js @@ -95,26 +95,26 @@ export function searchDetail(num) { }) } // 增加组件工艺 -export function submitAdd(machineNumberValue, SerialNumber, Group, AssemblyTask) { +export function submitAdd(machineNumberValue, SerialNumber, Group, AssemblyTask, GroupNumberValue1) { return request({ url: '', method: 'post', data: { type: '2', name: '车间装配管理_组件工艺_增加数据', - param: '机床流水号=' + machineNumberValue + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + param: '机床流水号=' + machineNumberValue + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + '&组件流水号=' + GroupNumberValue1 } }) } // 编辑组件工艺 -export function submitEdit(GroupProcessNumber, SerialNumber, Group, AssemblyTask) { +export function submitEdit(GroupProcessNumber, SerialNumber, Group, AssemblyTask, GroupNumberValue1) { return request({ url: '', method: 'post', data: { type: '2', name: '车间装配管理_组件工艺_编辑数据', - param: '组件工艺流水号=' + GroupProcessNumber + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + param: '组件工艺流水号=' + GroupProcessNumber + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + '&组件流水号=' + GroupNumberValue1 } }) } diff --git a/src/api/Assembly/TypicalAssemblyMaintenance.js b/src/api/Assembly/TypicalAssemblyMaintenance.js new file mode 100644 index 00000000..81e27e4d --- /dev/null +++ b/src/api/Assembly/TypicalAssemblyMaintenance.js @@ -0,0 +1,240 @@ +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 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, GroupNumberValue1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_组件工艺_增加数据', + param: '机床流水号=' + machineNumberValue + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + '&组件流水号=' + GroupNumberValue1 + } + }) +} +// 编辑组件工艺 +export function submitEdit(GroupProcessNumber, SerialNumber, Group, AssemblyTask, GroupNumberValue1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_组件工艺_编辑数据', + param: '组件工艺流水号=' + GroupProcessNumber + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + '&组件流水号=' + GroupNumberValue1 + } + }) +} +// 删除组件工艺 +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 update2(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 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 deleteTable(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_机床工艺_删除数据', + param: '机床流水号=' + num + } + }) +} diff --git a/src/api/Inventory/PickingList.js b/src/api/Inventory/PickingList.js index 16426f6c..dffc6797 100644 --- a/src/api/Inventory/PickingList.js +++ b/src/api/Inventory/PickingList.js @@ -136,14 +136,14 @@ export function dropListDetail(DetailNumberx) { }) } // 增加领料单明细 -export function addListDetail(PickingListNumberx, projectnumber, machinenumber, teamNumber, project, machine, team, materialName, materialNumber, materialType, outNumber, partType, Note, data1, data2, data3, data4, data5) { +export function addListDetail(PickingListNumberx, projectnumber, machinenumber, teamNumber, project, machine, team, materialName, materialNumber, materialType, outNumber, partType, Note, data1, data2, data3, data4, data5, data6) { return request({ url: '', method: 'post', data: { type: '2', name: '车间装配管理_领料单_领料单明细增加', - param: '领料单流水号=' + PickingListNumberx + '&项目流水号=' + projectnumber + '&机床流水号=' + machinenumber + '&组件流水号=' + teamNumber + '&项目名称=' + project + '&机床名称=' + machine + '&组件名称=' + team + '&物料名称=' + materialName + '&物料型号=' + materialNumber + '&物料规格=' + materialType + '&出库数量=' + outNumber + '&零件类型=' + partType + '&备注=' + Note + '&工艺计划流水号=' + data1 + '&收件信息ID=' + data2 + '&组件零件流水号=' + data3 + '&采购合同明细流水号=' + data4 + '&货位流水号=' + data5 + param: '领料单流水号=' + PickingListNumberx + '&项目流水号=' + projectnumber + '&机床流水号=' + machinenumber + '&组件流水号=' + teamNumber + '&项目名称=' + project + '&机床图号=' + machine + '&组号=' + team + '&物料名称=' + materialName + '&物料型号=' + materialNumber + '&物料规格=' + materialType + '&出库数量=' + outNumber + '&零件类型=' + partType + '&备注=' + Note + '&工艺计划流水号=' + data1 + '&收件信息ID=' + data2 + '&组件零件流水号=' + data3 + '&采购合同明细流水号=' + data4 + '&货位流水号=' + data5 + '&车间外购=' + data6 } }) } diff --git a/src/api/ManufacturingCenter/GroupMatching.js b/src/api/ManufacturingCenter/GroupMatching.js index 1b9b2502..a1a30ad5 100644 --- a/src/api/ManufacturingCenter/GroupMatching.js +++ b/src/api/ManufacturingCenter/GroupMatching.js @@ -44,3 +44,15 @@ export function searchTable(check, entryNameValue, check1, machine, check2, grou } }) } +export function searchPurchaseTable(check, entryNameValue, check1, machine, check2, groupNum, check3, year, check4, month, check5, time, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_外购件成组配套_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + entryNameValue + '=int&机床流水号_check=' + check1 + '=int&机床流水号=' + machine + '=int&组件流水号_check=' + check2 + '=int&组件流水号=' + groupNum + '=int&年_check=' + check3 + '=int&年=' + year + '=string&月_check=' + check4 + '=int&月=' + month + '=int&入库时间_check=' + check5 + '=int&入库时间=' + time + '=string', + pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/ManufacturingCenter/ProcessPlanning.js b/src/api/ManufacturingCenter/ProcessPlanning.js index 81d9727f..9fb095b0 100644 --- a/src/api/ManufacturingCenter/ProcessPlanning.js +++ b/src/api/ManufacturingCenter/ProcessPlanning.js @@ -174,7 +174,7 @@ export function initPerson() { data: { type: '1', name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', - param: '考核部门编号=10=int' + param: '考核部门编号=17' } }) } diff --git a/src/api/PurchasingCenter/BuyerRequestFund.js b/src/api/PurchasingCenter/BuyerRequestFund.js index 28c3cc8b..1e66716b 100644 --- a/src/api/PurchasingCenter/BuyerRequestFund.js +++ b/src/api/PurchasingCenter/BuyerRequestFund.js @@ -20,7 +20,7 @@ export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, data: { type: '1', name: '采购管理_请款表_查询数据', - param: '时间段_check=' + check1 + '&开始时间=' + start + '&结束时间=' + end + '&合同号_check=' + check2 + '&采购合同编号=' + num1 + '&采购员_check=' + check3 + '&采购员姓名=' + name1 + '&供应商_check=' + check4 + '&供应商名称=' + name2, + param: '时间段_check=' + check1 + '&开始时间=' + start + '&结束时间=' + end + '&合同号_check=' + check2 + '&采购合同编号=' + num1 + '&采购员_check=' + check3 + '&采购员流水号=' + name1 + '&供应商_check=' + check4 + '&供应商名称=' + name2, Pagination: pageCurrent + '&' + pageSize } }) diff --git a/src/api/PurchasingCenter/OfflineContract.js b/src/api/PurchasingCenter/OfflineContract.js index 6d3258b1..e08a6eb5 100644 --- a/src/api/PurchasingCenter/OfflineContract.js +++ b/src/api/PurchasingCenter/OfflineContract.js @@ -168,3 +168,15 @@ export function searchContractDemo(num1 = null) { } }) } +// 设置安全库存 +export function setSafeValue(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_物料安全库存_修改数据', + param: `物料流水号=${params[0]}&安全库存量=${params[1]}` + } + }) +} diff --git a/src/api/PurchasingCenter/qrcodeGeneration.js b/src/api/PurchasingCenter/qrcodeGeneration.js new file mode 100644 index 00000000..e69de29b diff --git a/src/utils/request.js b/src/utils/request.js index 0170140a..9b106373 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -10,7 +10,8 @@ export const name = `OP8888` 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://192.168.1.132:8411/submit/MESCommonBase.ashx`, + baseURL: `http://192.168.1.149:8411/submit/MESCommonBase.ashx`, + // baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`, timeout: 1500000 // 请求超时时间 }) diff --git a/src/views/Assembly/AssemblyInformationInput/index.vue b/src/views/Assembly/AssemblyInformationInput/index.vue index 148bac8e..4f0d9cf5 100644 --- a/src/views/Assembly/AssemblyInformationInput/index.vue +++ b/src/views/Assembly/AssemblyInformationInput/index.vue @@ -11,7 +11,7 @@ :value="item.value"/> 机床编号: - + { + for (let i = 0; i < response.data.rows.length; i++) { + console.log(response.data.rows[i].项目计划完成时间) + if (response.data.rows[i].项目计划完成时间 !== '') { + response.data.rows[i].项目计划完成时间 = (response.data.rows[i].项目计划完成时间).split(' ')[0] + } + } this.tableData = response.data.rows this.total = response.data.total this.loading = false diff --git a/src/views/Assembly/AssemblyProcessPlanning/index.vue b/src/views/Assembly/AssemblyProcessPlanning/index.vue index db88fa43..643b9306 100644 --- a/src/views/Assembly/AssemblyProcessPlanning/index.vue +++ b/src/views/Assembly/AssemblyProcessPlanning/index.vue @@ -38,7 +38,7 @@ 保存 是否核准 -
+
- + 工艺拷贝 -
+
工艺拷贝 -
+
{ for (let i = 0; i < response.data.length; i++) { this.GroupNumber.push({ label: response.data[i].组号, - value: response.data[i].组号 + value: response.data[i].组件流水号 }) } }) @@ -670,37 +669,55 @@ export default { }, handleAdd() { if (this.machineNumberValue !== '') { - // this.title = '增加组件工艺' - this.addForm('form2', [this.dialogFormVisible4 = true, this.title = '增加组件工艺', this.Group = '']) + this.addForm('form2', [this.dialogFormVisible4 = true, this.title = '增加组件工艺', this.Group = '', this.GroupNumberValue1 = '']) } else { this.$message.warning('请先选择机床编号') } }, handleEdit(row, formName) { - console.log(this.$refs[formName]) if (this.$refs[formName] !== undefined) { this.$refs[formName].resetFields() } - // this.editForm(row, 'form2', [this.title = '编辑组件工艺', this.GroupProcessNumber = row.组件工艺流水号, this.dialogFormVisible4 = true, this.Group = '', this.form2.组件 = []]) + this.GroupProcessNumber = row.组件工艺流水号 + this.GroupNumberValue1 = '' this.title = '编辑组件工艺' this.dialogFormVisible4 = true this.form2.序号 = row.序号 this.form2.装配任务 = row.装配任务 this.Group = '' - this.form2.组件 = [] - this.GroupProcessNumber = row.组件工艺流水号 + console.log(row, 1111) + this.form2.组件 = (row.组件流水号.split(',')).map(Number) + console.log(this.form2.组件) }, submitAdd() { - for (var i = 0; i < this.form2.组件.length; i++) { + this.GroupNumberValue1 = this.form2.组件[0] + for (let h = 1; h < this.form2.组件.length; h++) { + this.GroupNumberValue1 += ',' + this.form2.组件[h] + } + for (let i = 0; i < this.form2.组件.length; i++) { + for (let j = 0; j < this.GroupNumber.length; j++) { + if (this.form2.组件[i] === this.GroupNumber[j].value) { + this.form2.组件[i] = this.GroupNumber[j].label + } + } this.Group += this.form2.组件[i] + '组 ' } - this.addTable(submitAdd, [this.machineNumberValue, this.form2.序号, this.Group, this.form2.装配任务], 'form2', function() { this.dialogFormVisible4 = false; this.searchDetail() }) + this.addTable(submitAdd, [this.machineNumberValue, this.form2.序号, this.Group, this.form2.装配任务, this.GroupNumberValue1], 'form2', function() { this.dialogFormVisible4 = false; this.searchDetail() }) }, submitEdit() { - for (var i = 0; i < this.form2.组件.length; i++) { + this.GroupNumberValue1 = this.form2.组件[0] + for (let h = 1; h < this.form2.组件.length; h++) { + this.GroupNumberValue1 += ',' + this.form2.组件[h] + } + for (let i = 0; i < this.form2.组件.length; i++) { + for (let j = 0; j < this.GroupNumber.length; j++) { + if (this.form2.组件[i] === this.GroupNumber[j].value) { + this.form2.组件[i] = this.GroupNumber[j].label + } + } this.Group += this.form2.组件[i] + '组 ' } - this.editTable(submitEdit, [this.GroupProcessNumber, this.form2.序号, this.Group, this.form2.装配任务], 'form2', function() { this.searchDetail(); this.dialogFormVisible4 = false }) + this.editTable(submitEdit, [this.GroupProcessNumber, this.form2.序号, this.Group, this.form2.装配任务, this.GroupNumberValue1], 'form2', function() { this.searchDetail(); this.dialogFormVisible4 = false }) }, deleteGroup(row) { this.$confirm('此操作将永久删除该行, 是否继续?', '提示', { diff --git a/src/views/Assembly/PrintingAssemblyProcessCard/index.vue b/src/views/Assembly/PrintingAssemblyProcessCard/index.vue index 08164f7a..cb92e4b8 100644 --- a/src/views/Assembly/PrintingAssemblyProcessCard/index.vue +++ b/src/views/Assembly/PrintingAssemblyProcessCard/index.vue @@ -99,8 +99,8 @@ {{ list.工艺内容及装配具体要求 }} {{ list.质检 }} {{ list.工时 }} - {{ list.完成情况 }} - {{ list.检验情况 }} + {{ list.装配员 }} + {{ list.检验员 }} {{ list.备注 }} diff --git a/src/views/Assembly/TypicalAssemblyMaintenance/index.vue b/src/views/Assembly/TypicalAssemblyMaintenance/index.vue new file mode 100644 index 00000000..423324e9 --- /dev/null +++ b/src/views/Assembly/TypicalAssemblyMaintenance/index.vue @@ -0,0 +1,477 @@ + + + + + diff --git a/src/views/Inventory/DirectPart/index.vue b/src/views/Inventory/DirectPart/index.vue index 06ac5275..22dcde9c 100644 --- a/src/views/Inventory/DirectPart/index.vue +++ b/src/views/Inventory/DirectPart/index.vue @@ -59,12 +59,12 @@ diff --git a/src/views/Inventory/ExchangePart/index.vue b/src/views/Inventory/ExchangePart/index.vue index ca8adaa1..064a5477 100644 --- a/src/views/Inventory/ExchangePart/index.vue +++ b/src/views/Inventory/ExchangePart/index.vue @@ -46,12 +46,12 @@ diff --git a/src/views/Inventory/InventoryCheck/index.vue b/src/views/Inventory/InventoryCheck/index.vue index ef018d8c..4cee236b 100644 --- a/src/views/Inventory/InventoryCheck/index.vue +++ b/src/views/Inventory/InventoryCheck/index.vue @@ -45,14 +45,14 @@ {{ scope.row.项目名称 }} - + - + @@ -205,14 +205,14 @@ {{ scope.row.项目名称 }} - + - + @@ -358,14 +358,14 @@ {{ scope.row.项目名称 }} - + - + @@ -513,14 +513,14 @@ {{ scope.row.项目名称 }} - + - + diff --git a/src/views/Inventory/OfflinePartOut/index.vue b/src/views/Inventory/OfflinePartOut/index.vue index 972521a4..fb8e7574 100644 --- a/src/views/Inventory/OfflinePartOut/index.vue +++ b/src/views/Inventory/OfflinePartOut/index.vue @@ -113,14 +113,14 @@ {{ scope.row.项目名称 }} - + - + @@ -243,6 +243,7 @@ export default { }, // 打开表单 parOut(row) { + console.log(row) this.form = [] this.MachineValue = '' this.GroupNumValue = '' diff --git a/src/views/Inventory/PartOut/index.vue b/src/views/Inventory/PartOut/index.vue index b5ae6bd5..f5a151bb 100644 --- a/src/views/Inventory/PartOut/index.vue +++ b/src/views/Inventory/PartOut/index.vue @@ -52,14 +52,14 @@ {{ scope.row.项目名称 }} - + - + @@ -168,7 +168,7 @@ export default { // 出库 partOut(row) { console.log(row) - if (row.采购合同明细流水号 !== null) { + if (row.车间外购 === 1) { WorkShopPart(row.采购合同明细流水号, this.getpicikingPeople, row.出库数量, row.货位流水号, row.备注).then(response => { if (response.data[0].result === '1') { this.$message.success('出库成功') diff --git a/src/views/Inventory/PickingList/index.vue b/src/views/Inventory/PickingList/index.vue index 2ab5ffb1..2e3d5444 100644 --- a/src/views/Inventory/PickingList/index.vue +++ b/src/views/Inventory/PickingList/index.vue @@ -23,8 +23,8 @@ {{ scope.row.领料单编号 }} - - - + - + @@ -153,14 +153,14 @@ {{ scope.row.项目名称 }} - + - + @@ -230,14 +230,14 @@ {{ scope.row.项目名称 }} - + - + @@ -297,12 +297,12 @@ {{ scope.row.项目名称 }} - + - + @@ -314,7 +314,7 @@ @@ -336,61 +336,61 @@ - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -473,6 +473,22 @@ export default { OutNumber: [{ required: true, message: '请输入出库数量', trigger: 'blur' }], outNote: [{ required: true, message: '请输入出库备注', trigger: 'blur' }] }, + form3: { + OutNumber: '', // 出库数量 + outNote: '' // 出库备注 + }, + rules3: { // 表单验证规则 + OutNumber: [{ required: true, message: '请输入出库数量', trigger: 'blur' }], + outNote: [{ required: true, message: '请输入出库备注', trigger: 'blur' }] + }, + form4: { + OutNumber: '', // 出库数量 + outNote: '' // 出库备注 + }, + rules4: { // 表单验证规则 + OutNumber: [{ required: true, message: '请输入出库数量', trigger: 'blur' }], + outNote: [{ required: true, message: '请输入出库备注', trigger: 'blur' }] + }, partType: '', // 零件类型 craftplannumber: '', // 工艺计划流水号 receive: '', // 收件信息ID @@ -508,7 +524,8 @@ export default { tableDataHouse: [], listLoadingx: '', purchaseDetailNum: '', - dialogFormVisibleWork: false + dialogFormVisibleWork: false, + time: [] } }, computed: { @@ -617,9 +634,13 @@ export default { searchListinfor() { this.listLoading2 = true searchList(this.PageCurrent2, this.PageSize2, this.pickingListNumber).then(response => { + for (let i = 0; i < response.data.rows.length; i++) { + response.data.rows[i].领料时间 = response.data.rows[i].领料时间.substring(0, response.data.rows[i].领料时间.length - 8) + } this.tableData1 = response.data.rows this.listLoading2 = false this.total2 = response.data.total + console.log(response) }) }, handleSizeChange2(val) { @@ -707,9 +728,9 @@ export default { this.partProjectNumber = row.项目流水号 this.partProjectName = row.项目名称 this.partMachineNumber = row.机床流水号 - this.partMachineName = row.机床名称 + this.partMachineName = row.机床图号 this.partGroupNumber = row.组件流水号 - this.partGroupName = row.组件名称 + this.partGroupName = row.组号 this.partType = row.零件类型 this.craftplannumber = row.工艺计划流水号 this.receive = row.收件信息id @@ -721,23 +742,26 @@ export default { this.materialName = row.零件名称 this.materialType = row.零件类型名称 this.materialNumber = row.零件图号 - console.log(this.receive, 41645) }, - addBasicListDetail() { + addBasicListDetail(formName) { if (this.pickingListNumberx === '') { this.$message.error('请选择领料单') } if (this.form.OutNumber === '') { this.$message.error('请输入领用数量') } - addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.partProjectName, this.partMachineName, this.partGroupName, this.materialName, this.materialType, this.materialNumber, this.form.OutNumber, this.partType, this.form.outNote, this.craftplannumber, this.receive, this.teamPart, this.locatenumber).then(response => { - if (response.data[0].result === '1') { - this.$message.success('增加成功') - } else { - this.$message.error('增加失败') + this.$refs[formName].validate((valid) => { + if (valid) { + addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.partProjectName, this.partMachineName, this.partGroupName, this.materialName, this.materialType, this.materialNumber, this.form.OutNumber, this.partType, this.form.outNote, this.craftplannumber, this.receive, this.teamPart, this.locatenumber, 0).then(response => { + if (response.data[0].result === '1') { + this.$message.success('增加成功') + } else { + this.$message.error('增加失败') + } + }) + this.dialogFormVisible1 = false + this.searchListinfor() } }) - this.dialogFormVisible1 = false - this.searchListinfor() }, // 增加外购件领料单明细 addListDetailinfor(row) { @@ -745,9 +769,9 @@ export default { this.partProjectNumber = row.项目流水号 this.partProjectName = row.项目名称 this.partMachineNumber = row.机床流水号 - this.partMachineName = row.机床名称 + this.partMachineName = row.机床图号 this.partGroupNumber = row.组件流水号 - this.partGroupName = row.组件名称 + this.partGroupName = row.组号 this.partType = row.零件类型代码 this.craftplannumber = row.工艺计划流水号 this.receive = row.收件信息ID @@ -759,22 +783,26 @@ export default { this.dialogFormVisible = true this.purchaseDetailNum = row.采购合同明细流水号 }, - execaddListDetail() { + execaddListDetail(formName) { if (this.pickingListNumberx === '') { this.$message.error('请选择领料单') } else if (this.OutNumber === '') { this.$message.error('请输入领用数量') } else { - addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.partProjectName, this.partMachineName, this.partGroupName, this.materialName, this.materialType, this.materialNumber, this.form.OutNumber, this.partType, this.form.outNote, this.craftplannumber, this.receive, this.teamPart, this.locatenumber).then(response => { - if (response.data[0].result === '1') { - this.$message.success('增加成功') - } else { - this.$message.error('增加失败') + this.$refs[formName].validate((valid) => { + if (valid) { + addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.partProjectName, this.partMachineName, this.partGroupName, this.materialName, this.materialType, this.materialNumber, this.form2.OutNumber, this.partType, this.form2.outNote, this.craftplannumber, this.receive, this.teamPart, this.locatenumber, 0).then(response => { + if (response.data[0].result === '1') { + this.$message.success('增加成功') + } else { + this.$message.error('增加失败') + } + }) } }) + this.dialogFormVisible = false + this.searchListinfor() } - this.dialogFormVisible = false - this.searchListinfor() }, // 增加车间采购领料单明细 addWorkshopDetailinfor(row) { @@ -782,9 +810,9 @@ export default { this.partProjectNumber = row.项目流水号 this.partProjectName = row.项目名称 this.partMachineNumber = row.机床流水号 - this.partMachineName = row.机床名称 + this.partMachineName = row.机床图号 this.partGroupNumber = row.组件流水号 - this.partGroupName = row.组件名称 + this.partGroupName = row.组号 this.partType = row.零件类型 this.receive = row.收件信息ID this.locatenumber = row.货位流水号 @@ -794,20 +822,24 @@ export default { this.dialogFormVisibleWork = true this.purchaseDetailNum = row.采购合同明细流水号 }, - addWorkshopListDetail() { - if (this.pickingListNumberx === '') { - this.$message.error('请选择领料单') - } else if (this.OutNumber === '') { - this.$message.error('请输入领用数量') - } else { - addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.partProjectName, this.partMachineName, this.partGroupName, this.materialName, this.materialType, this.materialNumber, this.form.OutNumber, this.partType, this.form.outNote, this.craftplannumber, this.receive, this.teamPart, this.purchaseDetailNum, this.locatenumber).then(response => { - if (response.data[0].result === '1') { - this.$message.success('增加成功') + addWorkshopListDetail(formName) { + this.$refs[formName].validate((valid) => { + if (valid) { + if (this.pickingListNumberx === '') { + this.$message.error('请选择领料单') + } else if (this.OutNumber === '') { + this.$message.error('请输入领用数量') } else { - this.$message.error('增加失败') + addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.partProjectName, this.partMachineName, this.partGroupName, this.materialName, this.materialType, this.materialNumber, this.form3.OutNumber, this.partType, this.form3.outNote, this.craftplannumber, this.receive, this.teamPart, this.purchaseDetailNum, this.locatenumber, 1).then(response => { + if (response.data[0].result === '1') { + this.$message.success('增加成功') + } else { + this.$message.error('增加失败') + } + }) } - }) - } + } + }) this.dialogFormVisibleWork = false this.searchListinfor() }, @@ -817,7 +849,7 @@ export default { this.pickingListDetail = row.领料单明细流水号 }, submitChannge() { - editListDetail(this.pickingListDetail, this.form2.OutNumber, this.form2.outNote).then(response => { + editListDetail(this.pickingListDetail, this.form4.OutNumber, this.form4.outNote).then(response => { if (response.data[0].result === '1') { this.$message.success('修改成功') } else { diff --git a/src/views/Inventory/SubstitutePart/index.vue b/src/views/Inventory/SubstitutePart/index.vue index 19a44088..a3c908db 100644 --- a/src/views/Inventory/SubstitutePart/index.vue +++ b/src/views/Inventory/SubstitutePart/index.vue @@ -46,12 +46,12 @@ diff --git a/src/views/ManufacturingCenter/GroupMatching/index.vue b/src/views/ManufacturingCenter/GroupMatching/index.vue index a5e4c68d..162f5595 100644 --- a/src/views/ManufacturingCenter/GroupMatching/index.vue +++ b/src/views/ManufacturingCenter/GroupMatching/index.vue @@ -4,13 +4,11 @@ 项目名称: 机床号: - + 组号: - + 年: @@ -105,7 +103,70 @@ @current-change="handleCurrentChange"/>
- + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
- 提交 + @@ -202,13 +265,15 @@ @size-change="handleSizeChange3" @current-change="handleCurrentChange3"/>
- 提交 +
diff --git a/src/views/ManufacturingCenter/ProcessTaskAssignment/index.vue b/src/views/ManufacturingCenter/ProcessTaskAssignment/index.vue index e56ed66b..29bc3258 100644 --- a/src/views/ManufacturingCenter/ProcessTaskAssignment/index.vue +++ b/src/views/ManufacturingCenter/ProcessTaskAssignment/index.vue @@ -42,6 +42,7 @@ 全选 保存 +
@@ -143,6 +144,8 @@ import { getProject0, getProject, getGraphNum, getGroupNum, getTable0, getGraphN export default { data() { return { + num1: '', // 工艺员中间变量 + num2: '', // 工艺员流水号中间变量 loading: false, loading0: false, projectNameValue: '', @@ -323,8 +326,13 @@ export default { this.dialogFormVisible = true }, confirmPerson(row) { // 选择一行 - this.tableData[this.index].工艺员 = row.姓名 - this.tableData[this.index].人员编号 = row.人员编号 + this.num1 = row.姓名 + this.num2 = row.人员编号 + }, + tijiao() { + this.tableData[this.index].工艺员 = this.num1 + this.tableData[this.index].人员编号 = this.num2 + this.dialogFormVisible = false }, selectAll(rows) { if (this.tableData[0].工艺员 !== '') { diff --git a/src/views/ManufacturingCenter/ProcessingStatus/index.vue b/src/views/ManufacturingCenter/ProcessingStatus/index.vue index 58f6697d..33fe4419 100644 --- a/src/views/ManufacturingCenter/ProcessingStatus/index.vue +++ b/src/views/ManufacturingCenter/ProcessingStatus/index.vue @@ -40,11 +40,11 @@ 查询 进度颜色: - 全部 - 拖期 - 即将拖期 - 如期 - 工序外协 + + 拖期 + 即将拖期 + 如期 + 工序外协 @@ -396,6 +396,7 @@ export default { this.Groups = [] if (this.project !== '') { getMachines(this.project).then(response => { + console.log(response.data) for (let i = 0; i < response.data.length; i++) { this.Machines.push({ label: response.data[i].机床图号, @@ -539,7 +540,7 @@ export default { background-color: transparent; border: 0px solid white; } - .lightgreen{ + .green{ background-color: lightgreen; border: 1px solid #1f2d3d; } diff --git a/src/views/ManufacturingCenter/ProductionCapacityBalance/index.vue b/src/views/ManufacturingCenter/ProductionCapacityBalance/index.vue index f21e6f59..eaac00f1 100644 --- a/src/views/ManufacturingCenter/ProductionCapacityBalance/index.vue +++ b/src/views/ManufacturingCenter/ProductionCapacityBalance/index.vue @@ -136,7 +136,7 @@ type="primary" class="el-icon-edit" @click="PlateWelding(scope.$index, scope.row, 'form1')">板焊 - 分批 + diff --git a/src/views/ManufacturingCenter/StatusQuery/index.vue b/src/views/ManufacturingCenter/StatusQuery/index.vue index b2ff8692..d82822f5 100644 --- a/src/views/ManufacturingCenter/StatusQuery/index.vue +++ b/src/views/ManufacturingCenter/StatusQuery/index.vue @@ -5,13 +5,11 @@ 项目名称: 机床号: - + + + 组号: - + + + 零件号:
@@ -187,7 +189,9 @@ @size-change="handleSizeChange1" @current-change="handleCurrentChange1"/>
- 提交 + @@ -234,7 +238,9 @@ @size-change="handleSizeChange3" @current-change="handleCurrentChange3"/> - 提交 + @@ -242,7 +248,12 @@ + + diff --git a/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue b/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue index 0de8e68f..3eae8017 100644 --- a/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue +++ b/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue @@ -21,7 +21,7 @@ - + diff --git a/src/views/WorkshopProcurement/DepartmentBuyerRequestFund/index.vue b/src/views/WorkshopProcurement/DepartmentBuyerRequestFund/index.vue index ffedafcf..ab86dbdb 100644 --- a/src/views/WorkshopProcurement/DepartmentBuyerRequestFund/index.vue +++ b/src/views/WorkshopProcurement/DepartmentBuyerRequestFund/index.vue @@ -22,11 +22,10 @@ 采购员: 供应商: diff --git a/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue b/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue index 3d44e5e4..c2cfd8f3 100644 --- a/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue +++ b/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue @@ -23,7 +23,7 @@
采购员: - + 供应商:
采购员: - + 供应商: 审批情况: diff --git a/src/views/WorkshopProcurement/PurchaseContractChange/index.vue b/src/views/WorkshopProcurement/PurchaseContractChange/index.vue index bc686f43..3cc52b00 100644 --- a/src/views/WorkshopProcurement/PurchaseContractChange/index.vue +++ b/src/views/WorkshopProcurement/PurchaseContractChange/index.vue @@ -6,7 +6,7 @@ 时间段: 合同号: - + 采购员: - + 供应商: @@ -144,7 +144,7 @@ 时间段: 合同号: - + 采购员: - + 供应商: