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/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/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/PickingList/index.vue b/src/views/Inventory/PickingList/index.vue index 2ab5ffb1..91df82e9 100644 --- a/src/views/Inventory/PickingList/index.vue +++ b/src/views/Inventory/PickingList/index.vue @@ -23,8 +23,8 @@ {{ scope.row.领料单编号 }} - - @@ -238,7 +240,6 @@ export default { title: '', dialogFormVisible2: false, dialogFormVisible3: false, - List: [], check: null, check1: null, check2: null, @@ -289,8 +290,6 @@ export default { } }, created() { - }, - mounted() { this.getList() }, methods: { @@ -346,30 +345,15 @@ export default { } }, getList() { // 初始化项目名称 - this.list = [] initProject().then(response => { for (let i = 0; i < response.data.length; i++) { - this.list.push({ + this.entryName.push({ label: response.data[i].项目名称, value: response.data[i].项目流水号 }) } }) }, - remoteMethod(query) { - if (query !== '') { - setTimeout(() => { - this.entryName = this.list.filter(item => { - if (item.label !== null) { - return item.label.toLowerCase() - .indexOf(query.toLowerCase()) > -1 - } - }) - }, 1000) - } else { - this.entryName = [] - } - }, empty() { this.machineToolNumber = '' this.groupNumber = '' diff --git a/src/views/ManufacturingCenter/PartAssignment/index.vue b/src/views/ManufacturingCenter/PartAssignment/index.vue index 39201f1e..f1babfd4 100644 --- a/src/views/ManufacturingCenter/PartAssignment/index.vue +++ b/src/views/ManufacturingCenter/PartAssignment/index.vue @@ -299,7 +299,7 @@ style="width:200px"/> - + { + for (let i = 0; i < response.data.length; i++) { + console.log(response.data[i].请购时间) + if (response.data[i].请购时间 !== '') { + response.data[i].请购时间 = (response.data[i].请购时间).split(' ')[0] + } + } this.tableData4 = response.data }) }, diff --git a/src/views/ManufacturingCenter/StatusQuery/index.vue b/src/views/ManufacturingCenter/StatusQuery/index.vue index fcaa7b86..db28e5b1 100644 --- a/src/views/ManufacturingCenter/StatusQuery/index.vue +++ b/src/views/ManufacturingCenter/StatusQuery/index.vue @@ -5,13 +5,11 @@ 项目名称: 机床号: +<<<<<<< HEAD @@ -27,6 +26,11 @@ +======= + + 组号: + +>>>>>>> 45d3903a226c57546658abf8697edd180bd01975 零件号:
@@ -191,7 +195,9 @@ @size-change="handleSizeChange1" @current-change="handleCurrentChange1"/>
- 提交 + @@ -238,7 +244,9 @@ @size-change="handleSizeChange3" @current-change="handleCurrentChange3"/>
- 提交 +
@@ -311,8 +319,6 @@ export default { }, created() { this.fetchData() - }, - mounted() { this.getList() }, methods: { @@ -372,28 +378,15 @@ export default { }) }, getList() { // 初始化项目名称 - this.list = [] initProject().then(response => { for (let i = 0; i < response.data.length; i++) { - this.list.push({ + this.entryName.push({ label: response.data[i].项目名称, value: response.data[i].项目流水号 }) } }) }, - remoteMethod(query) { - if (query !== '') { - setTimeout(() => { - this.entryName = this.list.filter(item => { - return item.label.toLowerCase() - .indexOf(query.toLowerCase()) > -1 - }) - }, 1000) - } else { - this.entryName = [] - } - }, empty() { this.machineToolNumber = '' this.groupNumber = '' diff --git a/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue b/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue index a6f5bd35..42603b0d 100644 --- a/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue +++ b/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue @@ -253,6 +253,7 @@ export default { this.form.设备型号 = row.设备型号 this.form.设备性能指标 = row.设备性能指标 this.form.设备加工能力 = row.设备加工能力工时 + this.form.设备加工工艺 = parseInt(row.工艺属性代码) this.form.班次类型 = row.班次类型 this.form.设备工时系数 = row.设备工时系数 this.form.整改工时系数 = row.整改工时比例 diff --git a/src/views/PurchasingCenter/ArrivalStateSearch/index.vue b/src/views/PurchasingCenter/ArrivalStateSearch/index.vue index f2b638ac..f31b247a 100644 --- a/src/views/PurchasingCenter/ArrivalStateSearch/index.vue +++ b/src/views/PurchasingCenter/ArrivalStateSearch/index.vue @@ -14,6 +14,9 @@ 供应商: + 提前 + + 天预警 @@ -114,7 +117,7 @@ @@ -130,6 +133,7 @@ export default { name: '', // 项目总价查询 data() { return { + warningValue: 3, check1: 0, check2: 0, contractNumValue: '', @@ -169,6 +173,7 @@ export default { }) }, searchTable1() { + this.warningValue ? this.warningValue : this.warningValue = 1 this.arrival = [] // 规定到货时间数组 this.now = new Date() this.contractNumValue ? this.check1 = 1 : this.check1 = 0 @@ -177,13 +182,13 @@ export default { for (let i = 0; i < response.data.rows.length; i++) { this.arrival.push(new Date(response.data.rows[i].规定到货时间)) if (parseInt(response.data.rows[i].合同物料到货总数) === parseInt(response.data.rows[i].合同物料采购总数)) { - this.judge[i] = 1 - } else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.now - this.arrival[i]) > 0 && (this.now - this.arrival[i]) < 86400000) { - this.judge[i] = 2 - } else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.now - this.arrival[i]) > 86400000) { - this.judge[i] = 3 - } else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.now - this.arrival[i]) < 0) { - this.judge[i] = 4 + this.judge[i] = 1 // 全部到货 + } else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.arrival[i] - this.now) > 0 && (this.arrival[i] - this.now) < (86400000 * this.warningValue)) { + this.judge[i] = 2 // 即将拖期 + } else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.arrival[i] - this.now) < 0) { + this.judge[i] = 3 // 已拖期 + } else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.arrival[i] - this.now) > (86400000 * this.warningValue)) { + this.judge[i] = 4 // 进度正常 } } this.tableData1 = response.data.rows diff --git a/src/views/PurchasingCenter/BuyerRequestFund/index.vue b/src/views/PurchasingCenter/BuyerRequestFund/index.vue index 762352a6..300f5fe0 100644 --- a/src/views/PurchasingCenter/BuyerRequestFund/index.vue +++ b/src/views/PurchasingCenter/BuyerRequestFund/index.vue @@ -20,24 +20,20 @@ 合同号: 采购员: - + + + 供应商: + style="width:180px"/> - + - + @@ -78,7 +74,7 @@ {{ scope.row.付款方式内容 }} - + @@ -93,7 +89,7 @@ - + - + @@ -142,7 +138,6 @@ 取消请款 @@ -217,15 +212,10 @@ - - - - + @@ -257,170 +247,23 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 查询 - 确定 - 清空 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -