diff --git a/src/api/Assembly/QualityInspectionInformationInquiry.js b/src/api/Assembly/QualityInspectionInformationInquiry.js
index 33c13d88..cf9639fd 100644
--- a/src/api/Assembly/QualityInspectionInformationInquiry.js
+++ b/src/api/Assembly/QualityInspectionInformationInquiry.js
@@ -59,6 +59,19 @@ export function selecttable(check1, value1, check2, value2, check3, value3, chec
}
})
}
+// 质检管理_质量情况_查询数据
+export function selecttable22(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8) {
+ 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
+ }
+ })
+}
export function searchPic(num) {
return request({
url: '',
@@ -115,3 +128,14 @@ export function processingStatus(num) {
}
})
}
+export function Prohibit(num, num1) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '2',
+ name: '质检管理_质检情况_禁用',
+ param: '质检流水号=' + num + '&质检类型代码=' + num1
+ }
+ })
+}
diff --git a/src/api/BasicData/maintenanceEquipmentPerson.js b/src/api/BasicData/maintenanceEquipmentPerson.js
index 2b0af7d9..e33a68c5 100644
--- a/src/api/BasicData/maintenanceEquipmentPerson.js
+++ b/src/api/BasicData/maintenanceEquipmentPerson.js
@@ -72,26 +72,26 @@ export function getStaff() {
})
}
-export function addTable(equipmentNumber, equipment, shift, operator, operatorNumber) {
+export function addTable(equipmentNumber, shift, operator, operatorNumber) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '设备管理_设备名称_人员关系_增加数据',
- param: '设备流水号=' + equipmentNumber + '=int&设备名称=' + equipment + '=string&班次代码=' + shift + '=int&操作者=' + operator + '=string&操作者编号=' + operatorNumber + '=int'
+ param: '设备流水号=' + equipmentNumber + '=int&班次代码=' + shift + '=int&操作者=' + operator + '=string&操作者编号=' + operatorNumber + '=int'
}
})
}
-export function editTable(equipment, equipmentNumber, shift, operator, operatorNumber, Number) {
+export function editTable(equipmentNumber, shift, operator, operatorNumber, Number) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '设备管理_设备名称_人员关系_修改数据',
- param: '设备流水号=' + equipmentNumber + '=int&设备名称=' + equipment + '=string&班次代码=' + shift + '=int&操作者=' + operator + '=string&操作者编号=' + operatorNumber + '=int&设备人员关系流水号=' + Number + '=int'
+ param: '设备流水号=' + equipmentNumber + '=int&班次代码=' + shift + '=int&操作者=' + operator + '=string&操作者编号=' + operatorNumber + '=int&设备人员关系流水号=' + Number + '=int'
}
})
}
diff --git a/src/api/ManufacturingCenter/ActualTimeSupplement.js b/src/api/ManufacturingCenter/ActualTimeSupplement.js
new file mode 100644
index 00000000..1e282db5
--- /dev/null
+++ b/src/api/ManufacturingCenter/ActualTimeSupplement.js
@@ -0,0 +1,97 @@
+import request from '@/utils/request'
+// 查询加工工时统计表
+export function searchTable() {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '车间生产管理工艺_工时统计_综合_查询数据',
+ param: '工艺名称=' + arguments[0] + '&工艺名称_check=' + arguments[1] + '&工作者姓名=' + arguments[2] + '&工作者姓名_check=' + arguments[3] + '&开始加工时间_check=' + arguments[4] + '&开始加工时间结束=' + arguments[5] + '&开始加工时间开始=' + arguments[6] + '&零件图号=' + arguments[7] + '&零件图号_check=' + arguments[8] + '&完成加工时间_check=' + arguments[9] + '&完成加工时间结束=' + arguments[10] + '&完成加工时间开始=' + arguments[11],
+ Pagination: arguments[12] + '&' + arguments[13]
+ }
+ })
+}
+// 查询加工工时统计表
+export function editTime() {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '2',
+ name: '车间生产管理工艺_工时统计_修补工时_修改数据',
+ param: '人员编号=' + arguments[0] + '&完成过程流水号=' + arguments[1] + '&修补工时=' + arguments[2] + '&数量=' + arguments[3]
+ }
+ })
+}
+// 初始化项目
+export function initProject() {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '车间生产管理工艺_传递后_项目名称_查询数据_加工进度修改'
+ }
+ })
+}
+// 查机床
+export function getMachines(gongyi) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '车间生产管理工艺_传递后_机床名称_查询数据_查询所有机床',
+ param: '项目流水号=' + gongyi + '=int'
+ }
+ })
+}
+// 查分组
+export function getGroups(stepNumber) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '车间生产管理工艺_传递后_组件名称_查询数据_查询所有组',
+ param: '机床流水号=' + stepNumber + '=int'
+ }
+ })
+}
+// 查零件
+export function getParts(stepNumber, a, b, c, d, e, f, g) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '车间生产管理_基础表_员工月修补工时_查询零件',
+ param: '项目流水号_check=' + stepNumber + '=string&项目流水号=' + a + '=string&机床流水号_check=' + b + '=string&机床流水号=' + c + '=string&组件流水号_check=' + d + '=string&组件流水号=' + e + '=string&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=0'
+ }
+ })
+}
+// 提交新增
+export function submitAdd(num1, time, num2, person) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '2',
+ name: '车间生产管理_修补工时_增加数据',
+ param: `工序流水号=${num1}&修补工时=${time}&数量=${num2}&修补人员编号=${person}`
+ }
+ })
+}
+// 根据部门查人员
+export function getTable8(code) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: 1,
+ name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
+ param: '考核部门编号=' + code + '=int'
+ }
+ })
+}
diff --git a/src/api/ManufacturingCenter/InitialProduction.js b/src/api/ManufacturingCenter/InitialProduction.js
index bc39c86d..e4f26004 100644
--- a/src/api/ManufacturingCenter/InitialProduction.js
+++ b/src/api/ManufacturingCenter/InitialProduction.js
@@ -62,14 +62,14 @@ export function production(num, a, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q,
})
}
// 合并投产
-export function production2(num1, num, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w) {
+export function production2(num1, num2, num, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '设备管理_可安排生产计划零件排序_制定组时间_同时传递_合并投产',
- param: '零件图号=' + num1 + '&机床流水号=' + num + '&投产类型流水号=' + 1 + '=int&数据类型=' + b + '=int&投产批次=1=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int'
+ param: '零件图号=' + num1 + '&规格=' + num2 + '&机床流水号=' + num + '&投产类型流水号=' + 1 + '=int&数据类型=' + b + '=int&投产批次=1=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int'
}
})
}
diff --git a/src/api/MarketingCenter/DeliveryApplication.js b/src/api/MarketingCenter/DeliveryApplication.js
index a13a6315..b513f798 100644
--- a/src/api/MarketingCenter/DeliveryApplication.js
+++ b/src/api/MarketingCenter/DeliveryApplication.js
@@ -106,7 +106,7 @@ export function InvoiceSave() {
data: {
type: '2',
name: '发货管理_发货申请_发货单_保存',
- param: '发货单流水号=' + arguments[0] + '\\&收货单位=' + arguments[1] + '\\&收货地址=' + arguments[2] + '\\&收货人员=' + arguments[3] + '\\&联系电话=' + arguments[4] + '\\&注意事项=' + arguments[5] + '\\&发货单名称=' + arguments[6]
+ param: '发货单流水号=' + arguments[0] + '\\&收货单位=' + arguments[1] + '\\&收货地址=' + arguments[2] + '\\&收货人员=' + arguments[3] + '\\&联系电话=' + arguments[4] + '\\&注意事项=' + arguments[5] + '\\&发货单名称=' + arguments[6] + '\\&机床流水号=' + arguments[7]
}
})
}
diff --git a/src/api/Outsourcing/OutsourcingTaskExecution.js b/src/api/Outsourcing/OutsourcingTaskExecution.js
index 8bfec972..a445f1f5 100644
--- a/src/api/Outsourcing/OutsourcingTaskExecution.js
+++ b/src/api/Outsourcing/OutsourcingTaskExecution.js
@@ -1,14 +1,14 @@
import request from '@/utils/request'
// 初始化获取已生成的外协加工任务单
-export function getTable(checked, contractNumber, checked1, manufacturers, checked2, time1, time2, num, pageCurrent, pageSize) {
+export function getTable(checked, contractNumber, checked1, manufacturers, checked2, time1, time2, num, pageCurrent, pageSize, documentStatus, num3) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_外协加工任务单_查询数据',
- param: '外协加工任务单_check=0&外协加工任务单流水号=null&表单号_check=' + checked + '&表单号=' + contractNumber + '&外协厂家_check=' + checked1 + '&外协厂家=' + manufacturers + '&任务下达日期_时间段=' + checked2 + '&开始时间=' + time1 + '&结束时间=' + time2 + '&单据状态_check=0&单据状态=1&外协员编号_check=0&外协员编号=' + num,
+ param: '外协加工任务单_check=0&外协加工任务单流水号=null&表单号_check=' + checked + '&表单号=' + contractNumber + '&外协厂家_check=' + checked1 + '&外协厂家=' + manufacturers + '&任务下达日期_时间段=' + checked2 + '&开始时间=' + time1 + '&结束时间=' + time2 + '&单据状态_check=' + num3 + '&单据状态=' + documentStatus + '&外协员编号_check=0&外协员编号=' + num,
Pagination: pageCurrent + '&' + pageSize
}
})
@@ -104,7 +104,7 @@ export function editData(Number, manufacturers, freight, Explain) {
data: {
type: '2',
name: '车间生产管理_外协加工任务单_修改数据',
- param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&单据状态=2&入库标志=1&扣款说明=' + Explain
+ param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&扣款说明=' + Explain
}
})
}
diff --git a/src/views/Assembly/QualityBasicData/index.vue b/src/views/Assembly/QualityBasicData/index.vue
index 189cb991..e0226b11 100644
--- a/src/views/Assembly/QualityBasicData/index.vue
+++ b/src/views/Assembly/QualityBasicData/index.vue
@@ -318,6 +318,7 @@ export default {
}
},
handleDelete(row) {
+ console.log(row)
if (row.不合格原因) {
this.deleteRow(deleteReasons, row.不合格原因, function() { this.searchReasons() })
} else if (row.不合格处理) {
diff --git a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue
index c835edd2..86b8d676 100644
--- a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue
+++ b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue
@@ -66,10 +66,17 @@
:value="item.value"/>
查询
+ 导出
+
+
+ 未禁用
+ 已禁用
+
+
{{ scope.row.机床图号 }}
@@ -444,7 +451,7 @@
+
+
diff --git a/src/views/ManufacturingCenter/InitialProduction/index.vue b/src/views/ManufacturingCenter/InitialProduction/index.vue
index f46e9daa..d7d19599 100644
--- a/src/views/ManufacturingCenter/InitialProduction/index.vue
+++ b/src/views/ManufacturingCenter/InitialProduction/index.vue
@@ -112,6 +112,11 @@
{{ scope.row.零件名称 }}
+
+
+ {{ scope.row.规格 }}
+
+
{{ scope.row.投产总数量 }}
@@ -835,7 +840,7 @@ export default {
} else {
this.checked_baitu = 1
}
- production2(this.multipleSelection[i].零件图号, this.toolNumValue, this.multipleSelection[i].数据类型, this.multipleSelection[i].投产总数量, this.time_planStart, this.time_planFinish, this.time_gongyiStart, this.time_gongyiFinish, this.time_dingeStart, this.time_dingeFinish, this.time_planpinghengStart, this.time_planpinghengFinish, this.time_machiningStart, this.time_machiningFinish, this.time_planStart, this.multipleSelection[i].checked_waixie, this.multipleSelection[i].checked_dailiao, this.id, this.multipleSelection[i].材料流水号, this.radio, this.checked_gaonandu, this.multipleSelection[i].checked_zhaoji, this.checked_baitu).then(response => {
+ production2(this.multipleSelection[i].零件图号, this.multipleSelection[i].规格, this.toolNumValue, this.multipleSelection[i].数据类型, this.multipleSelection[i].投产总数量, this.time_planStart, this.time_planFinish, this.time_gongyiStart, this.time_gongyiFinish, this.time_dingeStart, this.time_dingeFinish, this.time_planpinghengStart, this.time_planpinghengFinish, this.time_machiningStart, this.time_machiningFinish, this.time_planStart, this.multipleSelection[i].checked_waixie, this.multipleSelection[i].checked_dailiao, this.id, this.multipleSelection[i].材料流水号, this.radio, this.checked_gaonandu, this.multipleSelection[i].checked_zhaoji, this.checked_baitu).then(response => {
this.result += parseInt(response.data[0].result)
if (this.result === this.multipleSelection.length) {
this.$message.success('投产成功')
diff --git a/src/views/MarketingCenter/DeliveryApplication/index.vue b/src/views/MarketingCenter/DeliveryApplication/index.vue
index 030bea18..0c1e35b6 100644
--- a/src/views/MarketingCenter/DeliveryApplication/index.vue
+++ b/src/views/MarketingCenter/DeliveryApplication/index.vue
@@ -202,13 +202,15 @@
placeholder="请输入内容"/>
-
发货单名:
-
机床名称:
+
+ size="mini"
+ class="inline-input"
+ @select="handleSelectMachine"/>
注意事项:
{
+ const res = response.data
+ res.forEach(item => {
+ this.restaurants_Machine.push({
+ value: item.货品编号,
+ num: item.机床流水号
+ })
+ })
+ return this.restaurants_Machine
+ }).then(data => {
+ var restaurants = data
+ var results = queryString ? restaurants.filter(this.createFilterMachine(queryString)) : restaurants
+ return results
+ }).then(data => {
+ // 调用 callback 返回建议列表的数据
+ cb(data)
+ })
+ }
+ },
+ createFilterMachine(queryString) {
+ return (restaurant) => {
+ return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) !== -1)
+ // !== -1为全字匹配 === 0为首字匹配
+ }
+ },
+ handleSelectMachine(item) {
+ // 在此方法中可以把下拉框选中值中的内容赋值给其他变量使用
+ console.log(item, 998)
+ this.machineNum = item.num
+ this.machineName = item.value
+ },
// function_Refresh() {
// this.$confirm('检测到有未保存的单据', {
// confirmButtonText: '确定',
@@ -888,7 +928,7 @@ export default {
this.typeE = []
this.typeF = []
this.typeG = []
- InvoiceSave(this.invoiceNum, this.input_Company, this.input_Adress, this.input_People, this.input_Mobile, this.input_Remake, this.input_Name).then(response => {
+ InvoiceSave(this.invoiceNum, this.input_Company, this.input_Adress, this.input_People, this.input_Mobile, this.input_Remake, this.machineName, this.machineNum).then(response => {
if (response.data[0].result === '1') {
this.$message.success('保存成功!')
this.function_InvoiceFeach()
diff --git a/src/views/Outsourcing/OutsourcingTaskExecution/index.vue b/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
index 216b91d3..bfcf76d5 100644
--- a/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
+++ b/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
@@ -11,6 +11,17 @@
type="date"
size="small"
placeholder="选择日期"/>
+ 单据状态:
+
+
+ {{ item.label }}
+ {{ item.name }}
+
+
查询
增加
@@ -50,7 +61,7 @@
- 编辑
+ 编辑
删除
@@ -489,6 +500,7 @@ export default {
num: null,
num1: null,
num2: null,
+ num3: null,
name1: '',
time: '',
time1: '',
@@ -558,7 +570,14 @@ export default {
total: null, // 总条数
pageSize: 10, // 每页显示条数
pageList: 1, // 后台获取页
- currentPage: 1 // 显示当前页
+ currentPage: 1, // 显示当前页
+ options: [{
+ value: '1',
+ label: '未成交'
+ }, {
+ value: '2',
+ label: '成交'
+ }]
}
},
computed: {
@@ -628,6 +647,11 @@ export default {
} else {
this.num2 = 1
}
+ if (this.documentStatus === '' || this.documentStatus === null) {
+ this.num3 = 0
+ } else {
+ this.num3 = 1
+ }
if (this.time1 === 'NaN/NaN/NaN') {
this.time1 = ''
}
@@ -636,7 +660,7 @@ export default {
}
this.List = []
this.List3 = []
- getTable(this.num, this.formNumber, this.num1, this.manufacturers, this.num2, this.time1, this.time2, this.id, this.pageList, this.pageSize).then(response => {
+ getTable(this.num, this.formNumber, this.num1, this.manufacturers, this.num2, this.time1, this.time2, this.id, this.pageList, this.pageSize, this.documentStatus, this.num3).then(response => {
this.total = parseInt(response.data.total)
for (let i = 0; i < response.data.rows.length; i++) {
if (response.data.rows[i].任务下达日期 !== null) {
diff --git a/src/views/PurchasingCenter/CreateInquirySheet/index.vue b/src/views/PurchasingCenter/CreateInquirySheet/index.vue
index 0380f3c3..a284d243 100644
--- a/src/views/PurchasingCenter/CreateInquirySheet/index.vue
+++ b/src/views/PurchasingCenter/CreateInquirySheet/index.vue
@@ -114,6 +114,11 @@
已采购
+
+
+ {{ scope.row.供货商 }}
+
+
{{ scope.row.任务分配时间.split(' ')[0] }}
@@ -202,11 +207,6 @@
{{ scope.row.备注 }}
-
-
- {{ scope.row.供货商 }}
-
-
{{ scope.row.询价单编号 }}
@@ -307,6 +307,11 @@
已采购
+
+
+ {{ scope.row.供货商 }}
+
+
{{ scope.row.任务分配时间.split(' ')[0] }}
@@ -362,11 +367,6 @@
{{ scope.row.备注 }}
-
-
- {{ scope.row.供货商 }}
-
-
{{ scope.row.询价单编号 }}
diff --git a/src/views/PurchasingCenter/OfflineContract/index.vue b/src/views/PurchasingCenter/OfflineContract/index.vue
index 8f086007..1b721d91 100644
--- a/src/views/PurchasingCenter/OfflineContract/index.vue
+++ b/src/views/PurchasingCenter/OfflineContract/index.vue
@@ -48,7 +48,12 @@
未询价
已询价
- 已采购
+ 已采购
+
+
+
+
+ {{ scope.row.供货商 }}
@@ -111,11 +116,6 @@
{{ scope.row.备注 }}
-
-
- {{ scope.row.供货商 }}
-
-
{{ Number(scope.row.零件类型) === 1 ? 'BZ' : 'WG' }}
@@ -691,6 +691,7 @@ import { searchInventoryNum, searchOfflineContract, searchOfflineContract2, sear
import QRCode from 'qrcode'
import $ from 'jquery'
import { mapGetters } from 'vuex'
+import request from '@/utils/request'
export default {
name: '', // 离线合同
@@ -865,6 +866,34 @@ export default {
this.initDirection()
},
methods: {
+ unbindPart(row) {
+ this.$confirm('确定还原状态?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '4',
+ name: `update MRP_计划订单_组件零件清单 set 询价状态编号 = 1 , 采购状态编号 = 1 where 标准件和外购件流水号 =${row.标准件和外购件流水号}`
+ }
+ }).then(res => {
+ if (res.data[0].result === '1') {
+ this.$message.success('操作成功')
+ this.searchTable00()
+ } else {
+ this.$message.error('操作失败')
+ }
+ })
+ }).catch(() => {
+ this.$message({
+ type: 'info',
+ message: '已取消操作'
+ })
+ })
+ },
initDirection() {
const direction = this.$getDirection()
direction.on('keyup', function(e, val) {
@@ -884,10 +913,10 @@ export default {
})
},
filterHandler0(value, row) { // 筛选备注
- return row['备注'] === value
+ return row['备注'].trim() === value
},
filterHandler(value, row) { // 筛选供货商
- return row['供货商'] === value
+ return row['供货商'].trim() === value
},
filterSource(value, row) {
return Number(row['零件类型']) === Number(value)