diff --git a/src/api/ManufacturingCenter/Enter0therData.js b/src/api/ManufacturingCenter/Enter0therData.js
index 9f328a07..3dd9b6c8 100644
--- a/src/api/ManufacturingCenter/Enter0therData.js
+++ b/src/api/ManufacturingCenter/Enter0therData.js
@@ -21,25 +21,25 @@ export function fetchDate(month) {
}
})
}
-export function saveDate(time, num, partNum, partName, procedure, num1, num2, num3, number, time1) {
+export function saveDate(num, partNum, procedure, num3, number, time1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间管理_其他数据_增加数据',
- param: '加工日期=' + time + '&操作工流水号=' + num + '&零件图号=' + partNum + '&名称=' + partName + '&工序=' + procedure + '&责任人流水号=' + num1 + '&确认人流水号=' + num2 + '&录入人流水号=' + num3 + '&数量=' + number + '&单件工时=' + time1
+ param: '操作工流水号=' + num + '&零件图号=' + partNum + '&工序=' + procedure + '&录入人流水号=' + num3 + '&数量=' + number + '&单件工时=' + time1
}
})
}
-export function editDate(ID, time, num, partNum, partName, procedure, num1, num2, num3, number, time1) {
+export function editDate(ID, num, partNum, procedure, num3, number, time1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间管理_其他数据_编辑数据',
- param: 'ID=' + ID + '&加工日期=' + time + '&操作工流水号=' + num + '&零件图号=' + partNum + '&名称=' + partName + '&工序=' + procedure + '&责任人流水号=' + num1 + '&确认人流水号=' + num2 + '&录入人流水号=' + num3 + '&数量=' + number + '&单件工时=' + time1
+ param: 'ID=' + ID + '&操作工流水号=' + num + '&零件图号=' + partNum + '&工序=' + procedure + '&录入人流水号=' + num3 + '&数量=' + number + '&单件工时=' + time1
}
})
}
diff --git a/src/api/ManufacturingCenter/ProcessPlanningNew.js b/src/api/ManufacturingCenter/ProcessPlanningNew.js
index c4da0966..a3935913 100644
--- a/src/api/ManufacturingCenter/ProcessPlanningNew.js
+++ b/src/api/ManufacturingCenter/ProcessPlanningNew.js
@@ -322,6 +322,18 @@ export function insertOne(num0, num1) {
}
})
}
+// 主界面主表插入功能
+export function insertOne1(num0, num1) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '2',
+ name: '车间生产管理工艺_零件工序_修改数据_工艺计划流水号和工序流水号_更改',
+ param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int'
+ }
+ })
+}
// 主界面主表删除功能
export function deleteOne(num0, num1) {
return request({
@@ -371,14 +383,14 @@ export function saveMaterial(num0, num1) {
})
}
// 核准保存
-export function saveApprove(num0, num1, request0, spec, num2, outhelp, num3, num4, weight, area, num5, level) {
+export function saveApprove(num0, num1, request0, spec, num2, outhelp, num3, num4, weight, area, num5, level, num6) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_增加数据_同时修改工艺计划',
- param: '工艺计划流水号=' + num0 + '&工艺编号=' + num1 + '&工艺要求=' + request0 + '&原材料规格=' + spec + '&工序顺序=' + num2 + '&工序间是否外协=' + outhelp + '&工序流水号=' + num3 + '&材料流水号=' + num4 + '&重量=' + weight + '&面积=' + area + '&工艺人员编号=' + num5 + '&工艺难度等级=' + level
+ param: '工艺计划流水号=' + num0 + '&工艺编号=' + num1 + '&工艺要求=' + request0 + '&原材料规格=' + spec + '&工序顺序=' + num2 + '&工序间是否外协=' + outhelp + '&工序流水号=' + num3 + '&材料流水号=' + num4 + '&重量=' + weight + '&面积=' + area + '&工艺人员编号=' + num5 + '&工艺难度等级=' + level + '&工艺是否更改=' + num6
}
})
}
@@ -492,14 +504,14 @@ export function TableAddLi1(a, b) {
})
}
// 已编制定额保存
-export function TableAddLi(a, b, c, num0, num1) {
+export function TableAddLi(a, b, c, num0, num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_增加数据_修改数据',
- param: '单件定额工时=' + a + '=string&准结定额工时=' + b + '=string&零件图号=' + c + '=string&工序流水号=' + num0 + '=int&工艺计划流水号=' + num1 + '=int'
+ param: '单件定额工时=' + a + '=string&准结定额工时=' + b + '=string&零件图号=' + c + '=string&工序流水号=' + num0 + '=int&工艺计划流水号=' + num1 + '=int&是否加序=' + num2 + '=int'
}
})
}
diff --git a/src/api/TechnologyCenter/ImportParts.js b/src/api/TechnologyCenter/ImportParts.js
index 9a81df76..0603c068 100644
--- a/src/api/TechnologyCenter/ImportParts.js
+++ b/src/api/TechnologyCenter/ImportParts.js
@@ -23,6 +23,18 @@ export function isExit(projectNum, machineNum) {
}
})
}
+// 替换
+export function updateNum(num, id) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '2',
+ name: 'PDM_零件明细表_外购件和标准件_数据导入保存_更改物料流水号',
+ param: `物料流水号=${num}&id=${id}`
+ }
+ })
+}
export function isExit1(projectNum, machineNum, groupNum) {
return request({
url: '',
diff --git a/src/utils/request.js b/src/utils/request.js
index 5b272345..fc41e22d 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -17,8 +17,8 @@ export const uploadInvoiceScan1 = `http://192.168.1.231:8411/submit/uploadInvoic
export const download = `http://192.168.1.231:8411/submit/downloadFile.ashx` // ContractInformationManagement
export const uploadPerson = `http://192.168.1.231:8411/submit/uploadPerson.ashx`
export const uploadOP = `http://192.168.1.231:8411/submit/uploadOP.ashx`
-export const url = `http://192.168.0.107:8079/submit/MESCommonBase.ashx` // 采购件入库、离线件入库
-export const ExcelDownLoad = 'http://192.168.0.107:8079/submit/downloadFile.ashx' // 导出excel
+export const url = `http://192.168.1.231:8411/submit/MESCommonBase.ashx` // 采购件入库、离线件入库
+export const ExcelDownLoad = 'http://192.168.1.231:8411/submit/downloadFile.ashx' // 导出excel
// 技术中心程序发布时要更改下面所有的IP到0段
export const ServerIP = `http://192.168.1.231:8411/webpage/file/`
export const uploadFileMachine = `http://192.168.1.231:8411/submit/uploadFileMachine.ashx` // 机床总图 发布时改成0.231
diff --git a/src/views/ManufacturingCenter/Enter0therData/index.vue b/src/views/ManufacturingCenter/Enter0therData/index.vue
index d810ddd5..3ba78ae4 100644
--- a/src/views/ManufacturingCenter/Enter0therData/index.vue
+++ b/src/views/ManufacturingCenter/Enter0therData/index.vue
@@ -2,16 +2,6 @@
-
-
-
+
数量
单件工时
-
-
-
-
-
-
保存
@@ -66,16 +41,11 @@
{{ scope.row.操作工姓名 }}
-
+
{{ scope.row.零件图号 }}
-
-
- {{ scope.row.名称 }}
-
-
{{ scope.row.工序 }}
@@ -91,16 +61,6 @@
{{ scope.row.单件工时 }}
-
-
- {{ scope.row.责任人姓名 }}
-
-
-
-
- {{ scope.row.确认人姓名 }}
-
-
{{ scope.row.录入人姓名 }}
@@ -116,7 +76,6 @@ import { mapGetters } from 'vuex'
export default {
data() {
return {
- time: '',
Person: '',
Persons: [],
partNumber: '',
@@ -124,10 +83,8 @@ export default {
procedureName: '',
number: '',
workTime: '',
- PersonLiable: '',
- ConfirmingPerson: '',
tableData: [],
- monthValue: ''
+ monthValue: new Date()
}
},
computed: {
@@ -141,11 +98,9 @@ export default {
},
created() {
this.searchPerson()
+ this.getNowFormatDate()
},
methods: {
- change() {
- console.log(this.time.slice(0, 7))
- },
searchPerson() {
searchPerson().then(response => {
for (let i = 0; i < response.data.length; i++) {
@@ -156,6 +111,14 @@ export default {
}
})
},
+ getNowFormatDate() {
+ var year = this.monthValue.getFullYear()
+ var month = this.monthValue.getMonth() + 1
+ if (month >= 1 && month <= 9) {
+ month = '0' + month
+ }
+ this.monthValue = year + '-' + month
+ },
fetchDate() {
if (this.monthValue) {
fetchDate(this.monthValue).then(response => {
@@ -166,11 +129,10 @@ export default {
}
},
saveDate() {
- if (this.time && this.Person && this.partNumber && this.partName && this.procedureName && this.number && this.workTime) {
- saveDate(this.time, this.Person, this.partNumber, this.partName, this.procedureName, this.PersonLiable, this.ConfirmingPerson, this.id, this.number, this.workTime).then(response => {
+ if (this.Person && this.partNumber && this.procedureName && this.number && this.workTime) {
+ saveDate(this.Person, this.partNumber, this.procedureName, this.id, this.number, this.workTime).then(response => {
if (response.data[0].result === '1') {
this.$message.success('增加成功')
- this.monthValue = this.time.slice(0, 7)
this.RemoveDate()
this.fetchDate()
} else {
@@ -182,11 +144,10 @@ export default {
}
},
editDate() {
- if (this.time && this.Person && this.partNumber && this.partName && this.procedureName && this.number && this.workTime) {
- editDate(this.ID, this.time, this.Person, this.partNumber, this.partName, this.procedureName, this.PersonLiable, this.ConfirmingPerson, this.id, this.number, this.workTime).then(response => {
+ if (this.Person && this.partNumber && this.procedureName && this.number && this.workTime) {
+ editDate(this.ID, this.Person, this.partNumber, this.procedureName, this.id, this.number, this.workTime).then(response => {
if (response.data[0].result === '1') {
this.$message.success('编辑成功')
- this.monthValue = this.time.slice(0, 7)
this.RemoveDate()
this.fetchDate()
} else {
@@ -218,26 +179,18 @@ export default {
})
},
RemoveDate() {
- this.time = ''
this.Person = ''
this.partNumber = ''
- this.partName = ''
this.number = 0
this.workTime = 0
this.procedureName = ''
- this.PersonLiable = ''
- this.ConfirmingPerson = ''
},
searchTable(row) {
- this.time = row.加工日期
this.Person = row.操作工流水号
this.partNumber = row.零件图号
- this.partName = row.名称
this.procedureName = row.工序
this.number = row.数量
this.workTime = row.单件工时
- this.PersonLiable = row.责任人流水号
- this.ConfirmingPerson = row.确认人流水号
this.ID = row.ID
}
}
diff --git a/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue b/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue
index 4a51526e..5ed0c664 100644
--- a/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue
+++ b/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue
@@ -47,7 +47,7 @@
{{ scope.row.修补准结工时 }}
-
+
{{ scope.row.设备工时 }}
@@ -67,9 +67,9 @@
{{ scope.row.备注 }}
-
+
- {{ scope.row.操作时间 }}
+ {{ scope.row.操作时间 ? scope.row.操作时间.split(' ')[0] : '' }}
diff --git a/src/views/ManufacturingCenter/PartAssignment/index.vue b/src/views/ManufacturingCenter/PartAssignment/index.vue
index d8687e34..8e79bcae 100644
--- a/src/views/ManufacturingCenter/PartAssignment/index.vue
+++ b/src/views/ManufacturingCenter/PartAssignment/index.vue
@@ -95,6 +95,16 @@
{{ scope.row.机床数量 }}
+
+
+ {{ scope.row.总数量 }}
+
+
+
+
+
+
+
{{ scope.row.零件备注 }}
@@ -140,6 +150,16 @@
{{ scope.row.机床数量 }}
+
+
+ {{ scope.row.总数量 }}
+
+
+
+
+
+
+
{{ scope.row.备注 }}
@@ -180,6 +200,16 @@
{{ scope.row.机床数量 }}
+
+
+ {{ scope.row.总数量 }}
+
+
+
+
+
+
+
{{ scope.row.备注 }}
@@ -601,6 +631,7 @@ export default {
MaterialSpecification: [],
MaterialModel: [],
NumberOfParts: [],
+ multipleSelection: [],
ReMarks: [],
projectName: '',
MachineToolNumber: '',
@@ -1113,67 +1144,29 @@ export default {
})
},
handleSelectionChange(val) {
- if (this.PartType === '基本件') {
- this.MaterialNum = []
- this.BasicPartsNumber = []
- this.MaterialName = []
- this.PartToolNumber = []
- this.Material = []
- this.NumberOfParts = []
- for (let i = 0; i < val.length; i++) {
- this.MaterialNum[i] = val[i].物料流水号
- this.BasicPartsNumber[i] = val[i].基本件流水号
- this.MaterialName[i] = val[i].零件名称
- this.PartToolNumber[i] = val[i].零件图号
- this.Material[i] = val[i].材料
- this.NumberOfParts[i] = val[i].零件数量
- this.ReMarks[i] = val[i].零件备注
- }
- console.log(this.NumberOfParts, 1111)
- } else if (this.PartType === '外购件') {
- this.MaterialNum = []
- this.MaterialCode = []
- this.StandardPartsAndOutsourcing = []
- this.MaterialName = []
- this.MaterialSpecification = []
- this.MaterialModel = []
- this.NumberOfParts = []
- for (let i = 0; i < val.length; i++) {
- this.StandardPartsAndOutsourcing[i] = val[i].标准件和外购件流水号
- this.MaterialNum[i] = val[i].物料流水号
- this.MaterialCode[i] = val[i].物料代码
- this.MaterialName[i] = val[i].物料名称
- this.MaterialSpecification[i] = val[i].物料规格
- this.MaterialModel[i] = val[i].物料型号
- this.NumberOfParts[i] = val[i].零件数量
- this.ReMarks[i] = val[i].备注
- }
- } else if (this.PartType === '标准件') {
- this.MaterialNum = []
- this.MaterialCode = []
- this.StandardPartsAndOutsourcing = []
- this.MaterialName = []
- this.MaterialSpecification = []
- this.MaterialModel = []
- this.NumberOfParts = []
- for (let i = 0; i < val.length; i++) {
- this.StandardPartsAndOutsourcing[i] = val[i].标准件和外购件流水号
- this.MaterialNum[i] = val[i].物料流水号
- this.MaterialCode[i] = val[i].物料代码
- this.MaterialName[i] = val[i].物料名称
- this.MaterialSpecification[i] = val[i].物料规格
- this.MaterialModel[i] = val[i].物料型号
- this.NumberOfParts[i] = val[i].零件数量
- this.ReMarks[i] = val[i].备注
- }
- }
+ this.multipleSelection = val
},
purchaseRequisition() {
if (this.RequisitionList !== '') {
if (this.time !== '' && this.time !== null) {
- if (this.BasicPartsNumber.length !== 0 || this.StandardPartsAndOutsourcing.length !== 0) {
+ if (this.multipleSelection.length !== 0) {
this.result = 0
if (this.PartType === '基本件') {
+ this.MaterialNum = []
+ this.BasicPartsNumber = []
+ this.MaterialName = []
+ this.PartToolNumber = []
+ this.Material = []
+ this.NumberOfParts = []
+ for (let i = 0; i < this.multipleSelection.length; i++) {
+ this.MaterialNum[i] = this.multipleSelection[i].物料流水号
+ this.BasicPartsNumber[i] = this.multipleSelection[i].基本件流水号
+ this.MaterialName[i] = this.multipleSelection[i].零件名称
+ this.PartToolNumber[i] = this.multipleSelection[i].零件图号
+ this.Material[i] = this.multipleSelection[i].材料
+ this.NumberOfParts[i] = this.multipleSelection[i].投产总数量
+ this.ReMarks[i] = this.multipleSelection[i].零件备注
+ }
for (let i = 0; i < this.BasicPartsNumber.length; i++) {
purchaseRequisition(this.RequisitionList, this.projectName, this.projectFloatValue, this.MachineToolNumber, this.machineFloatValue, this.groupName, this.groupFloatValue, this.BasicPartsNumber[i], this.MaterialName[i], this.PartToolNumber[i], this.Material[i], this.NumberOfParts[i], 3, this.time, this.MaterialNum[i], this.ReMarks[i]).then(response => {
this.result += parseInt(response.data[0].result)
@@ -1204,6 +1197,23 @@ export default {
})
}
} else if (this.PartType === '外购件') {
+ this.MaterialNum = []
+ this.MaterialCode = []
+ this.StandardPartsAndOutsourcing = []
+ this.MaterialName = []
+ this.MaterialSpecification = []
+ this.MaterialModel = []
+ this.NumberOfParts = []
+ for (let i = 0; i < this.multipleSelection.length; i++) {
+ this.StandardPartsAndOutsourcing[i] = this.multipleSelection[i].标准件和外购件流水号
+ this.MaterialNum[i] = this.multipleSelection[i].物料流水号
+ this.MaterialCode[i] = this.multipleSelection[i].物料代码
+ this.MaterialName[i] = this.multipleSelection[i].物料名称
+ this.MaterialSpecification[i] = this.multipleSelection[i].物料规格
+ this.MaterialModel[i] = this.multipleSelection[i].物料型号
+ this.NumberOfParts[i] = this.multipleSelection[i].采购总数量
+ this.ReMarks[i] = this.multipleSelection[i].备注
+ }
for (let i = 0; i < this.StandardPartsAndOutsourcing.length; i++) {
purchaseRequisition1(this.RequisitionList, this.projectName, this.projectFloatValue, this.MachineToolNumber, this.machineFloatValue, this.groupName, this.groupFloatValue, this.StandardPartsAndOutsourcing[i], this.MaterialName[i], this.MaterialCode[i], this.MaterialSpecification[i], this.MaterialModel[i], this.NumberOfParts[i], 2, this.time, this.MaterialNum[i], this.ReMarks[i]).then(response => {
this.result += parseInt(response.data[0].result)
@@ -1234,6 +1244,23 @@ export default {
})
}
} else if (this.PartType === '标准件') {
+ this.MaterialNum = []
+ this.MaterialCode = []
+ this.StandardPartsAndOutsourcing = []
+ this.MaterialName = []
+ this.MaterialSpecification = []
+ this.MaterialModel = []
+ this.NumberOfParts = []
+ for (let i = 0; i < this.multipleSelection.length; i++) {
+ this.StandardPartsAndOutsourcing[i] = this.multipleSelection[i].标准件和外购件流水号
+ this.MaterialNum[i] = this.multipleSelection[i].物料流水号
+ this.MaterialCode[i] = this.multipleSelection[i].物料代码
+ this.MaterialName[i] = this.multipleSelection[i].物料名称
+ this.MaterialSpecification[i] = this.multipleSelection[i].物料规格
+ this.MaterialModel[i] = this.multipleSelection[i].物料型号
+ this.NumberOfParts[i] = this.multipleSelection[i].采购总数量
+ this.ReMarks[i] = this.multipleSelection[i].备注
+ }
for (let i = 0; i < this.StandardPartsAndOutsourcing.length; i++) {
purchaseRequisition1(this.RequisitionList, this.projectName, this.projectFloatValue, this.MachineToolNumber, this.machineFloatValue, this.groupName, this.groupFloatValue, this.StandardPartsAndOutsourcing[i], this.MaterialName[i], this.MaterialCode[i], this.MaterialSpecification[i], this.MaterialModel[i], this.NumberOfParts[i], 1, this.time, this.MaterialNum[i], this.ReMarks[i]).then(response => {
this.result += parseInt(response.data[0].result)
@@ -1276,8 +1303,23 @@ export default {
},
PurchasingDepartment() {
if (this.time !== '' && this.time !== null) {
- if (this.BasicPartsNumber.length !== 0 || this.StandardPartsAndOutsourcing.length !== 0) {
+ if (this.multipleSelection.length !== 0) {
if (this.PartType === '基本件') {
+ this.MaterialNum = []
+ this.BasicPartsNumber = []
+ this.MaterialName = []
+ this.PartToolNumber = []
+ this.Material = []
+ this.NumberOfParts = []
+ for (let i = 0; i < this.multipleSelection.length; i++) {
+ this.MaterialNum[i] = this.multipleSelection[i].物料流水号
+ this.BasicPartsNumber[i] = this.multipleSelection[i].基本件流水号
+ this.MaterialName[i] = this.multipleSelection[i].零件名称
+ this.PartToolNumber[i] = this.multipleSelection[i].零件图号
+ this.Material[i] = this.multipleSelection[i].材料
+ this.NumberOfParts[i] = this.multipleSelection[i].投产总数量
+ this.ReMarks[i] = this.multipleSelection[i].零件备注
+ }
purchaseRequisition2(this.projectFloatValue, this.machineFloatValue, this.groupFloatValue, this.BasicPartsNumber, this.NumberOfParts, this.time).then(response => {
if (response.data[0].result !== '0') {
console.log(response.data[0].result)
@@ -1290,6 +1332,23 @@ export default {
}
})
} else {
+ this.MaterialNum = []
+ this.MaterialCode = []
+ this.StandardPartsAndOutsourcing = []
+ this.MaterialName = []
+ this.MaterialSpecification = []
+ this.MaterialModel = []
+ this.NumberOfParts = []
+ for (let i = 0; i < this.multipleSelection.length; i++) {
+ this.StandardPartsAndOutsourcing[i] = this.multipleSelection[i].标准件和外购件流水号
+ this.MaterialNum[i] = this.multipleSelection[i].物料流水号
+ this.MaterialCode[i] = this.multipleSelection[i].物料代码
+ this.MaterialName[i] = this.multipleSelection[i].物料名称
+ this.MaterialSpecification[i] = this.multipleSelection[i].物料规格
+ this.MaterialModel[i] = this.multipleSelection[i].物料型号
+ this.NumberOfParts[i] = this.multipleSelection[i].采购总数量
+ this.ReMarks[i] = this.multipleSelection[i].备注
+ }
PurchasingDepartment(this.groupFloatValue, this.StandardPartsAndOutsourcing, this.time, this.MaterialNum, this.NumberOfParts, this.projectFloatValue, this.machineFloatValue).then(response => {
if (response.data[0].result !== '0') {
this.$message.success('请购成功')
@@ -1315,7 +1374,22 @@ export default {
}
},
Production() {
- if (this.PartType === '基本件' && this.BasicPartsNumber.length !== 0) {
+ if (this.PartType === '基本件' && this.multipleSelection.length !== 0) {
+ this.MaterialNum = []
+ this.BasicPartsNumber = []
+ this.MaterialName = []
+ this.PartToolNumber = []
+ this.Material = []
+ this.NumberOfParts = []
+ for (let i = 0; i < this.multipleSelection.length; i++) {
+ this.MaterialNum[i] = this.multipleSelection[i].物料流水号
+ this.BasicPartsNumber[i] = this.multipleSelection[i].基本件流水号
+ this.MaterialName[i] = this.multipleSelection[i].零件名称
+ this.PartToolNumber[i] = this.multipleSelection[i].零件图号
+ this.Material[i] = this.multipleSelection[i].材料
+ this.NumberOfParts[i] = this.multipleSelection[i].投产总数量
+ this.ReMarks[i] = this.multipleSelection[i].零件备注
+ }
Production(this.groupFloatValue, this.BasicPartsNumber, this.NumberOfParts, this.projectFloatValue, this.machineFloatValue).then(response => {
if (response.data[0].result !== '0') {
this.$message.success('投产成功')
diff --git a/src/views/ManufacturingCenter/ProcessPlanningNew/index.vue b/src/views/ManufacturingCenter/ProcessPlanningNew/index.vue
index c37d106b..fdc5d7b2 100644
--- a/src/views/ManufacturingCenter/ProcessPlanningNew/index.vue
+++ b/src/views/ManufacturingCenter/ProcessPlanningNew/index.vue
@@ -532,6 +532,7 @@ import {
getPartnames3,
getPartnames4,
modifyRemark,
+ insertOne1,
detailInfo
} from '@/api/ManufacturingCenter/ProcessPlanningNew'
import elInput from 'element-ui/packages/input'
@@ -697,6 +698,7 @@ export default {
result: 0,
oldNum: '',
newNum: '',
+ 工艺是否更改: '',
// tableRecord: [],
materialName2: '',
material2: ''
@@ -1130,7 +1132,8 @@ export default {
label: response.data[i].零件图号,
value: response.data[i].工艺计划流水号,
machine: response.data[i].机床图号,
- group: response.data[i].组号
+ group: response.data[i].组号,
+ update: response.data[i].工艺是否更改
})
}
})
@@ -1203,6 +1206,7 @@ export default {
this.material = response.data[0].材料流水号
this.materialName = response.data[0].材料
this.spec = response.data[0].原材料规格
+ this.工艺是否更改 = response.data[0].工艺是否更改
if (response.data[0].重量 === null) {
this.weight = ''
} else {
@@ -1509,13 +1513,13 @@ export default {
let 零件图号
let flag = 0
for (let i = 0; i < this.tableData.length; i++) {
- saveApprove(this.tableData[i].工艺计划流水号, this.tableData[i].工艺编号, this.tableData[i].工艺要求, this.spec, this.tableData[i].工序顺序, this.tableData[i].工序间是否外协, this.tableData[i].工序流水号, this.material, '', '', this.CraftmenValue, this.tableData[i].工艺难度等级).then(() => {
+ saveApprove(this.tableData[i].工艺计划流水号, this.tableData[i].工艺编号, this.tableData[i].工艺要求, this.spec, this.tableData[i].工序顺序, this.tableData[i].工序间是否外协, this.tableData[i].工序流水号, this.material, '', '', this.CraftmenValue, this.tableData[i].工艺难度等级, this.工艺是否更改).then(() => {
for (let j = 0; j < this.partNum.length; j++) {
if (this.partNum[j].value === this.partNumValue) {
零件图号 = this.partNum[j].label
}
}
- TableAddLi(this.tableData[i].单件定额工时, this.tableData[i].准结定额工时, 零件图号, this.tableData[i].工序流水号, this.tableData[i].工艺计划流水号).then(() => {
+ TableAddLi(this.tableData[i].单件定额工时, this.tableData[i].准结定额工时, 零件图号, this.tableData[i].工序流水号, this.tableData[i].工艺计划流水号, this.tableData[i].是否加序).then(() => {
flag++
if (flag === this.tableData.length) {
TableAddLi1(this.partNumValue, this.CraftmenValue).then(() => {
@@ -1544,9 +1548,15 @@ export default {
if (this.partNumValue === '') {
this.$message.error('请先选择一个零件')
} else {
- insertOne(this.partNumValue, row.工序流水号).then(response => {
- this.searchDetail()
- })
+ if (this.工艺是否更改 === 1) {
+ insertOne1(this.partNumValue, row.工序流水号).then(response => {
+ this.searchDetail()
+ })
+ } else {
+ insertOne(this.partNumValue, row.工序流水号).then(response => {
+ this.searchDetail()
+ })
+ }
}
},
deleteOne(row) { // 删除行
diff --git a/src/views/PurchasingCenter/CreateInquirySheet/index.vue b/src/views/PurchasingCenter/CreateInquirySheet/index.vue
index c4c4ffc5..1373d7bd 100644
--- a/src/views/PurchasingCenter/CreateInquirySheet/index.vue
+++ b/src/views/PurchasingCenter/CreateInquirySheet/index.vue
@@ -179,13 +179,15 @@
- {{ Number(scope.row.零件类型) === 1 ? scope.row.库存 = Number(scope.row.货位存量 ? scope.row.货位存量 : 0) - Number(scope.row.占用数量) : '-' }}
+ {{ scope.row.库存 }}
- -
-
+
+ —
+
+
diff --git a/src/views/TechnologyCenter/ImportParts/index.vue b/src/views/TechnologyCenter/ImportParts/index.vue
index 71247480..dabe83fe 100644
--- a/src/views/TechnologyCenter/ImportParts/index.vue
+++ b/src/views/TechnologyCenter/ImportParts/index.vue
@@ -341,6 +341,7 @@ export default {
return
} else {
if (this.worksheet[j].M2.v.substring(0, 1) !== '9') {
+ console.log(this.worksheet[j].P1, 123344)
this.worksheet[j].G1 ? establishment = this.worksheet[j].G1.v : establishment = ''
this.worksheet[j].I1 ? proofread = this.worksheet[j].I1.v : proofread = ''
this.worksheet[j].L1 ? review = this.worksheet[j].L1.v : review = ''
diff --git a/src/views/TechnologyCenter/ImportParts/specificationData.vue b/src/views/TechnologyCenter/ImportParts/specificationData.vue
index 954738ef..520c9ec6 100644
--- a/src/views/TechnologyCenter/ImportParts/specificationData.vue
+++ b/src/views/TechnologyCenter/ImportParts/specificationData.vue
@@ -144,11 +144,6 @@
highlight-current-row
border
stripe>
-
{{ scope.row.物料名称 }}
@@ -169,6 +164,15 @@
{{ scope.row.供货商 }}
+
+
+ 替换
+
+
+
@@ -279,7 +283,7 @@