diff --git a/src/api/Assembly/SparePartsOutStockRecord.js b/src/api/Assembly/SparePartsOutStockRecord.js
new file mode 100644
index 00000000..2cfefe58
--- /dev/null
+++ b/src/api/Assembly/SparePartsOutStockRecord.js
@@ -0,0 +1,38 @@
+import request from '@/utils/request'
+
+// 初始化机床项目
+export function initProject() {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: 'PDM_项目名称_查询数据'
+ }
+ })
+}
+// 组件查询
+export function searchgroup(num) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: 'PDM_组件名称_查询数据',
+ param: '机床流水号=' + num
+ }
+ })
+}
+// 车间生产管理工艺_备料管理_备料出库记录_视图_查询数据
+export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5) {
+ 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
+ }
+ })
+}
+
diff --git a/src/api/ManufacturingCenter/StatusQuery.js b/src/api/ManufacturingCenter/StatusQuery.js
index 2811ed77..e27efdec 100644
--- a/src/api/ManufacturingCenter/StatusQuery.js
+++ b/src/api/ManufacturingCenter/StatusQuery.js
@@ -50,7 +50,7 @@ export function searchTable(check, entryNameValue, check1, machine, check2, grou
method: 'post',
data: {
type: '1',
- name: '车间生产管理工艺_零件工艺计划_零件状态_查询数据',
+ name: '车间生产管理工艺_零件工艺计划_查询数据_状态_新_MESWORK',
param: '项目流水号_check=' + check + '=int&项目流水号=' + entryNameValue + '&机床流水号_check=' + check1 + '=int&机床流水号=' + machine + '=int&组件流水号_check=' + check2 + '=int&组件流水号=' + groupNum + '=int&零件图号_check=' + check3 + '=int&零件图号=' + partNumber + '=string&考核状态_check=' + check4 + '=int&考核状态=' + partStateValue + '=int&单件是否外协_check=' + check5 + '=int&单件是否外协=' + partTypeValue + '=int',
pagination: pageCurrent + '&' + pageSize
}
diff --git a/src/api/PurchasingCenter/CreateInquirySheet.js b/src/api/PurchasingCenter/CreateInquirySheet.js
index f271b239..45b96472 100644
--- a/src/api/PurchasingCenter/CreateInquirySheet.js
+++ b/src/api/PurchasingCenter/CreateInquirySheet.js
@@ -55,14 +55,14 @@ export function getExport2(num) {
})
}
// 查询分配后的标准件和外购件
-export function searchMaterial(pageCurrent, pageSize, num1, check1, val1, check2, val2, check3, val3, person, check4, val4, check5, val5, check6, val6) {
+export function searchMaterial(pageCurrent, pageSize, num1, check1, val1, check2, val2, check3, val3, person, check4, val4, check5, val5, check6, val6, val7) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '采购管理_采购部采购_查询物料_分配后',
- param: `物料状态编号=${num1}&物料名称_check=${check1}&物料名称=${val1}&物料规格_check=${check2}&物料规格=${val2}&物料型号_check=${check3}&物料型号=${val3}&人员编号=${person}&项目流水号_check=${check4}&项目流水号=${val4}&机床流水号_check=${check5}&机床流水号=${val5}&组件流水号_check=${check6}&组件流水号=${val6}`,
+ param: `物料状态编号=${num1}&物料名称_check=${check1}&物料名称=${val1}&物料规格_check=${check2}&物料规格=${val2}&物料型号_check=${check3}&物料型号=${val3}&人员编号=${person}&项目流水号_check=${check4}&项目流水号=${val4}&机床流水号_check=${check5}&机床流水号=${val5}&组件流水号_check=${check6}&组件流水号=${val6}&零件类型=${val7}`,
Pagination: pageCurrent + '&' + pageSize
}
})
diff --git a/src/api/PurchasingCenter/OfflineContract.js b/src/api/PurchasingCenter/OfflineContract.js
index 0cd9792f..11414bc7 100644
--- a/src/api/PurchasingCenter/OfflineContract.js
+++ b/src/api/PurchasingCenter/OfflineContract.js
@@ -171,14 +171,14 @@ export function setSafeValue(...params) {
})
}
// 查询分配后的标准件和外购件
-export function searchMaterial(pageCurrent, pageSize, num1, check1, val1, check2, val2, check3, val3, person) {
+export function searchMaterial(pageCurrent, pageSize, num1, check1, val1, check2, val2, check3, val3, person, type) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '采购管理_采购部采购_查询物料_分配后',
- param: `物料状态编号=${num1}&物料名称_check=${check1}&物料名称=${val1}&物料规格_check=${check2}&物料规格=${val2}&物料型号_check=${check3}&物料型号=${val3}&人员编号=${person}`,
+ param: `物料状态编号=${num1}&物料名称_check=${check1}&物料名称=${val1}&物料规格_check=${check2}&物料规格=${val2}&物料型号_check=${check3}&物料型号=${val3}&人员编号=${person}&零件类型=${type}`,
Pagination: pageCurrent + '&' + pageSize
}
})
diff --git a/src/api/PurchasingCenter/PurchaseSituationSearch.js b/src/api/PurchasingCenter/PurchaseSituationSearch.js
index 29d56ee3..b650c6eb 100644
--- a/src/api/PurchasingCenter/PurchaseSituationSearch.js
+++ b/src/api/PurchasingCenter/PurchaseSituationSearch.js
@@ -31,7 +31,7 @@ export function searchTable1(...params) {
data: {
type: '1',
name: '采购管理_采购部采购_查询物料_分配后_加供应商',
- param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}`,
+ param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}&零件类型=${params[6]}`,
Pagination: params[4] + '&' + params[5]
}
})
diff --git a/src/api/PurchasingCenter/PurchaseTaskAllocate.js b/src/api/PurchasingCenter/PurchaseTaskAllocate.js
index bd1c5039..2b1e345a 100644
--- a/src/api/PurchasingCenter/PurchaseTaskAllocate.js
+++ b/src/api/PurchasingCenter/PurchaseTaskAllocate.js
@@ -77,7 +77,7 @@ export function searchTable1(...params) {
data: {
type: '1',
name: '采购管理_采购部采购_查询物料_分配后',
- param: `物料类别流水号_check=${params[2]}&物料类别流水号=${params[3]}&物料品种流水号_check=${params[4]}&物料品种流水号=${params[5]}&项目流水号_check=${params[6]}&项目流水号=${params[7]}&机床流水号_check=${params[8]}&机床流水号=${params[9]}&组件流水号_check=${params[10]}&组件流水号=${params[11]}&物料名称_check=${params[12]}&物料名称=${params[13]}&物料状态编号=${params[14]}&物料规格_check=${params[15]}&物料规格=${params[16]}&物料型号_check=${params[17]}&物料型号=${params[18]}`,
+ param: `物料类别流水号_check=${params[2]}&物料类别流水号=${params[3]}&物料品种流水号_check=${params[4]}&物料品种流水号=${params[5]}&项目流水号_check=${params[6]}&项目流水号=${params[7]}&机床流水号_check=${params[8]}&机床流水号=${params[9]}&组件流水号_check=${params[10]}&组件流水号=${params[11]}&物料名称_check=${params[12]}&物料名称=${params[13]}&物料状态编号=${params[14]}&物料规格_check=${params[15]}&物料规格=${params[16]}&物料型号_check=${params[17]}&物料型号=${params[18]}&零件类型=${params[19]}`,
Pagination: params[0] + '&' + params[1]
}
})
diff --git a/src/icons/svg/AssemblyExecution.svg b/src/icons/svg/AssemblyExecution.svg
new file mode 100644
index 00000000..9ee2e989
--- /dev/null
+++ b/src/icons/svg/AssemblyExecution.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/icons/svg/DeliveryApplication.svg b/src/icons/svg/DeliveryApplication.svg
new file mode 100644
index 00000000..fca39892
--- /dev/null
+++ b/src/icons/svg/DeliveryApplication.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/icons/svg/QualityInspectionInformationInquiry.svg b/src/icons/svg/QualityInspectionInformationInquiry.svg
new file mode 100644
index 00000000..7339fb9c
--- /dev/null
+++ b/src/icons/svg/QualityInspectionInformationInquiry.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/icons/svg/SparePartsOutStockRecord.svg b/src/icons/svg/SparePartsOutStockRecord.svg
new file mode 100644
index 00000000..ca0c397d
--- /dev/null
+++ b/src/icons/svg/SparePartsOutStockRecord.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/views/Assembly/SparePartsOutStockRecord/index.vue b/src/views/Assembly/SparePartsOutStockRecord/index.vue
new file mode 100644
index 00000000..94b32697
--- /dev/null
+++ b/src/views/Assembly/SparePartsOutStockRecord/index.vue
@@ -0,0 +1,159 @@
+
+
+
+
+ 机床编号:
+
+
+ {{ item.label }}
+ {{ item.name }}
+
+
+ 组号:
+
+
+
+ 零件图号:
+
+ 时间区间:
+
+ ~
+
+ 查询
+
+
+
+
+
+
+ {{ scope.row.项目名称 }}
+
+
+
+
+ {{ scope.row.机床图号 }}
+
+
+
+
+ {{ scope.row.机床名称 }}
+
+
+
+
+ {{ scope.row.组号 }}
+
+
+
+
+ {{ scope.row.零件图号 }}
+
+
+
+
+ {{ scope.row.零件名称 }}
+
+
+
+
+ {{ scope.row.质检类型 }}
+
+
+
+
+ {{ scope.row.数量 }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Inventory/InventoryCheck/index.vue b/src/views/Inventory/InventoryCheck/index.vue
index aba0b89e..d612721c 100644
--- a/src/views/Inventory/InventoryCheck/index.vue
+++ b/src/views/Inventory/InventoryCheck/index.vue
@@ -75,7 +75,7 @@
-
+
取消
{{ scope.row.货位存量 }}
@@ -173,7 +173,7 @@
货位存量:
-
+
是否为滞货:
diff --git a/src/views/ManufacturingCenter/StatusQuery/index.vue b/src/views/ManufacturingCenter/StatusQuery/index.vue
index 217c0221..1f6f39b1 100644
--- a/src/views/ManufacturingCenter/StatusQuery/index.vue
+++ b/src/views/ManufacturingCenter/StatusQuery/index.vue
@@ -50,28 +50,28 @@
-
-
+
+
{{ scope.row.机床图号 }}
-
+
{{ scope.row.组号 }}
-
+
{{ scope.row.零件图号 }}
-
+
{{ scope.row.零件名称 }}
@@ -81,15 +81,14 @@
{{ scope.row.投产总数量 }}
-
+
- {{ scope.row.传递时间 ? scope.row.传递时间 : '—' }}
+ {{ scope.row.传递时间 }}
-
+
-
-
+
@@ -352,10 +351,12 @@ export default {
}
this.loading0 = true
searchTable(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.partNumber, this.check4, this.partStateValue, this.check5, this.partTypeValue, this.pageSize, this.pageCurrent).then(response => {
- response.data.rows.map(v => {
- this.$set(v, '零件状态码', v.考核状态 ? parseInt(v.考核状态) - 2 : 0)
- v.传递时间 = v.传递时间 ? v.传递时间.split(' ')[0] : ''
- })
+ for (let i = 0; i < response.data.rows.length; i++) {
+ response.data.rows[i].考核状态 = parseInt(response.data.rows[i].考核状态) - 2
+ if (response.data.rows[i].传递时间 !== undefined || response.data.rows[i].hasOwnProperty('传递时间')) {
+ response.data.rows[i].传递时间 = response.data.rows[i].传递时间.split(' ', 2)[0]
+ }
+ }
this.loading0 = false
this.tableData = response.data.rows
this.total = parseInt(response.data.total)
@@ -490,8 +491,3 @@ export default {
margin: 10px 0 10px 10px;
}
-
diff --git a/src/views/PurchasingCenter/CreateInquirySheet/index.vue b/src/views/PurchasingCenter/CreateInquirySheet/index.vue
index 6c69590b..00f0aac7 100644
--- a/src/views/PurchasingCenter/CreateInquirySheet/index.vue
+++ b/src/views/PurchasingCenter/CreateInquirySheet/index.vue
@@ -3,7 +3,7 @@
-
+
项目名称:
@@ -457,6 +457,11 @@
+
+
+ {{ scope.row.计量单位 }}
+
+
@@ -503,7 +508,8 @@
图号 |
名称 |
规格 |
- 数量 |
+ 数量 |
+ 单位 |
单价 |
备注 |
@@ -809,7 +815,7 @@ export default {
value: 2
}
],
- tabName: '标准件和外购件',
+ tabName: '外购件',
baseInfoLoading: false,
dialogVisible5: false,
form3: { // 询价单基础信息表单
@@ -868,7 +874,7 @@ export default {
materialName: '',
materialSpec: '',
materialModel: '',
- tableData11: [], // 标准件和外购件列表
+ tableData11: [], // 外购件列表
total11: 0,
pageCurrent11: 1,
pageSize11: 10,
@@ -996,7 +1002,7 @@ export default {
const data2 = res2.data.map(v => filterVal2.map(j => v[j]))
dataGroup.push(data2)
const headerGroup = [['任务分配时间', '项目名称', '机床图号', '组号', '名称', '图号或型号', '规格', '待询价数量', '备注', '供货商'], ['任务分配时间', '项目名称', '机床图号', '组号', '名称', '图号或型号', '规格', '材料', '待询价数量', '备注', '供货商']]
- const sheetGroup = ['标准件和外购件(未询价)', '基本件(未询价)']
+ const sheetGroup = ['外购件(未询价)', '基本件(未询价)']
excel.export_json_to_excel({
headerGroup: headerGroup,
dataGroup: dataGroup,
@@ -1149,7 +1155,7 @@ export default {
filterHandler(value, row) { // 筛选供货商
return row['供货商'] === value
},
- searchTable11() { // 查询标准件和外购件列表
+ searchTable11() { // 查询外购件列表
let check1, check2, check3, check4, check5, check6
this.materialName ? check1 = 1 : check1 = 0
this.materialSpec ? check2 = 1 : check2 = 0
@@ -1157,7 +1163,7 @@ export default {
this.projectValue ? check4 = 1 : check4 = 0
this.machineValue ? check5 = 1 : check5 = 0
this.groupValue ? check6 = 1 : check6 = 0
- searchMaterial(this.pageCurrent11, this.pageSize11, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.materialName, check2, this.materialSpec, check3, this.materialModel, this.id, check4, this.projectValue, check5, this.machineValue, check6, this.groupValue).then(response => {
+ searchMaterial(this.pageCurrent11, this.pageSize11, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.materialName, check2, this.materialSpec, check3, this.materialModel, this.id, check4, this.projectValue, check5, this.machineValue, check6, this.groupValue, 2).then(response => {
this.tableData11 = response.data.rows
this.total11 = response.data.total
const remark = []
@@ -1364,7 +1370,7 @@ export default {
for (let i = 0; i < length; i++) {
tr[i] = document.createElement('tr')
tr[i].setAttribute('class', 'tableData')
- tr[i].innerHTML = ` | | | | | | | `
+ tr[i].innerHTML = ` | | | | | | | | `
$('#tablehead').after(tr[i])
}
for (let j = 0; j < res.data.length; j++) {
@@ -1373,7 +1379,8 @@ export default {
document.getElementsByClassName('tableData')[j].children[2].innerHTML = res.data[j].物料名称 || res.data[j].零件名称
document.getElementsByClassName('tableData')[j].children[3].innerHTML = res.data[j].物料规格 || res.data[j].规格
document.getElementsByClassName('tableData')[j].children[4].innerHTML = res.data[j].数量
- document.getElementsByClassName('tableData')[j].children[6].innerHTML = res.data[j].备注
+ document.getElementsByClassName('tableData')[j].children[5].innerHTML = res.data[j].计量单位
+ document.getElementsByClassName('tableData')[j].children[7].innerHTML = res.data[j].备注
}
document.getElementById('inquirySheetNum').innerHTML = this.orderExport
document.getElementById('supplier').innerHTML = ''
@@ -1422,7 +1429,7 @@ export default {
for (let i = 0; i < length; i++) {
tr[i] = document.createElement('tr')
tr[i].setAttribute('class', 'tableData')
- tr[i].innerHTML = ` | | | | | | | `
+ tr[i].innerHTML = ` | | | | | | | | `
$('#tablehead').after(tr[i])
}
for (let j = 0; j < res.data.length; j++) {
@@ -1431,7 +1438,8 @@ export default {
document.getElementsByClassName('tableData')[j].children[2].innerHTML = res.data[j].物料名称 || res.data[j].零件名称
document.getElementsByClassName('tableData')[j].children[3].innerHTML = res.data[j].物料规格 || res.data[j].规格
document.getElementsByClassName('tableData')[j].children[4].innerHTML = res.data[j].数量
- document.getElementsByClassName('tableData')[j].children[6].innerHTML = res.data[j].备注
+ document.getElementsByClassName('tableData')[j].children[5].innerHTML = res.data[j].计量单位
+ document.getElementsByClassName('tableData')[j].children[7].innerHTML = res.data[j].备注
}
document.getElementById('inquirySheetNum').innerHTML = this.orderExport
document.getElementById('supplier').innerHTML = ''
diff --git a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
index 68b91821..3ec55c56 100644
--- a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
+++ b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
@@ -122,6 +122,11 @@
{{ scope.row.数量 }}
+
+
+ {{ scope.row.计量单位 }}
+
+
@@ -361,6 +366,7 @@ export default {
名称: response.data[i].组件零件流水号 ? response.data[i].物料名称 : response.data[i].零件名称,
规格: response.data[i].组件零件流水号 ? response.data[i].物料规格 : response.data[i].规格,
数量: response.data[i].数量,
+ 计量单位: response.data[i].计量单位,
未税单价: 0,
未税总额: 0,
含税单价: 0,
@@ -518,7 +524,8 @@ export default {
名称 |
规格型号 |
数量 |
- 单价 |
+ 单位 |
+ 单价 |
合计 |
交货时间 |
备注 |
@@ -569,6 +576,7 @@ export default {
名称: v.名称,
规格: v.规格,
数量: Number(v.数量),
+ 计量单位: v.计量单位,
单价: this.hasTax === '含税' ? v.含税单价 : v.未税单价,
合计: (Number(v.数量) * (this.hasTax === '含税' ? Number(v.含税单价) : Number(v.未税单价))).toFixed(2),
交货期: v.交货期 ? v.交货期.split(' ')[0] : '',
@@ -576,7 +584,7 @@ export default {
})
})
let mergeData = []
- mergeData = groupBy(merge, ['图号', '名称', '规格', '单价', '合计', '交货期', '备注'], (mergeData, v) => {
+ mergeData = groupBy(merge, ['图号', '名称', '规格', '计量单位', '单价', '合计', '交货期', '备注'], (mergeData, v) => {
mergeData = mergeData || 0
mergeData += v.数量
return mergeData
@@ -587,7 +595,7 @@ export default {
for (let i = 0; i < mergeData.length; i++) {
tr[i] = document.createElement('tr')
tr[i].setAttribute('class', 'tableData')
- tr[i].innerHTML = ' | | | | | | | | | | | '
+ tr[i].innerHTML = ' | | | | | | | | | | | | '
const tableHead = $('#tableHead')
tableHead ? tableHead.after(tr[i]) : ''
}
@@ -606,10 +614,11 @@ export default {
document.getElementsByClassName('tableData')[j].children[4].innerHTML = mergeData[j].名称
document.getElementsByClassName('tableData')[j].children[5].innerHTML = mergeData[j].规格
document.getElementsByClassName('tableData')[j].children[6].innerHTML = mergeData[j].数量
- document.getElementsByClassName('tableData')[j].children[7].innerHTML = mergeData[j].单价
- document.getElementsByClassName('tableData')[j].children[8].innerHTML = (Number(mergeData[j].数量) * Number(mergeData[j].单价)).toFixed(2)
- document.getElementsByClassName('tableData')[j].children[9].innerHTML = mergeData[j].交货期
- document.getElementsByClassName('tableData')[j].children[10].innerHTML = mergeData[j].备注
+ document.getElementsByClassName('tableData')[j].children[7].innerHTML = mergeData[j].计量单位
+ document.getElementsByClassName('tableData')[j].children[8].innerHTML = mergeData[j].单价
+ document.getElementsByClassName('tableData')[j].children[9].innerHTML = (Number(mergeData[j].数量) * Number(mergeData[j].单价)).toFixed(2)
+ document.getElementsByClassName('tableData')[j].children[10].innerHTML = mergeData[j].交货期
+ document.getElementsByClassName('tableData')[j].children[11].innerHTML = mergeData[j].备注
}
}
this.actualTotal = this.actualTotal.toFixed(2)
diff --git a/src/views/PurchasingCenter/OfflineContract/index.vue b/src/views/PurchasingCenter/OfflineContract/index.vue
index f69e947d..dbd58239 100644
--- a/src/views/PurchasingCenter/OfflineContract/index.vue
+++ b/src/views/PurchasingCenter/OfflineContract/index.vue
@@ -371,6 +371,11 @@
+
+
+ {{ scope.row.计量单位 }}
+
+
{{ scope.row.参考价格 }}
@@ -383,7 +388,7 @@
- {{ (parseFloat(scope.row.单价||0) * parseInt(scope.row.数量||0)).toFixed(2) }}
+ {{ (Number(scope.row.单价||0) * Number(scope.row.数量||0)).toFixed(2) }}
@@ -1130,7 +1135,7 @@ export default {
if (index === 0) {
sums[index] = '总价'
} else if (index === 7) {
- const values = data.map(item => Number(parseFloat(item['单价']) * parseInt(item['数量'])))
+ const values = data.map(item => Number(Number(item['单价']) * Number(item['数量'])))
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
@@ -1360,7 +1365,7 @@ export default {
this.materialName ? check1 = 1 : check1 = 0
this.materialSpec ? check2 = 1 : check2 = 0
this.materialModel ? check3 = 1 : check3 = 0
- searchMaterial(this.pageCurrent00, this.pageSize00, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.materialName, check2, this.materialSpec, check3, this.materialModel, this.id).then(response => {
+ searchMaterial(this.pageCurrent00, this.pageSize00, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.materialName, check2, this.materialSpec, check3, this.materialModel, this.id, 1).then(response => {
this.tableData00 = response.data.rows
this.total00 = response.data.total
const remark = []
diff --git a/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue b/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue
index 78e23b62..405897d0 100644
--- a/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue
+++ b/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue
@@ -24,7 +24,85 @@
-
+
+
+
+
+ 未分配
+ 未询价
+ 已询价
+ 已采购
+
+
+
+
+ {{ scope.row.机床图号 }}
+
+
+
+
+ {{ scope.row.组号 }}
+
+
+
+
+ {{ scope.row.物料名称 }}
+
+
+
+
+ {{ scope.row.物料型号 }}
+
+
+
+
+ {{ scope.row.物料规格 }}
+
+
+
+
+ {{ scope.row.零件数量 || '—' }}
+
+
+
+
+ {{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.数量 || scope.row.离线采购数量 || '—' }}
+
+
+
+
+ {{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.已到货数量 || scope.row.离线到货数量 || '—' }}
+
+
+
+
+ {{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.供应商名称 || scope.row.离线合同供应商名称 || '—' }}
+
+
+
+
+ {{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.采购合同编号 || scope.row.离线合同编号 || '—' }}
+
+
+
+
+ {{ scope.row.姓名 || '—' }}
+
+
+
+
+
+
+
+
@@ -200,10 +278,14 @@ export default {
machineNumber: [],
groupNumberValue: '',
groupNumber: [],
- PartType: '标准件和外购件',
+ PartType: '标准件',
+ tableData0: [],
tableData1: [],
tableData2: [],
tableData3: [],
+ pageCurrent0: 1,
+ pageSize0: 20,
+ total0: 0,
pageCurrent1: 1,
pageSize1: 20,
total1: 0,
@@ -247,18 +329,23 @@ export default {
})
},
searchTable() {
- if (this.PartType === '标准件和外购件') {
- this.pageCurrent1 = 1
- this.pageSize1 = 20
- this.total1 = 0
+ if (this.PartType === '标准件') {
+ this.searchTable0()
+ } else if (this.PartType === '外购件') {
this.searchTable1()
} else if (this.PartType === '基本件') {
- this.pageCurrent2 = 1
- this.pageSize2 = 20
- this.total2 = 0
this.searchTable2()
}
},
+ handleSizeChange0(val) {
+ this.pageSize0 = val
+ this.pageCurrent0 = 1
+ this.searchTable0()
+ },
+ handleCurrentChange0(val) {
+ this.pageCurrent0 = val
+ this.searchTable0()
+ },
handleSizeChange1(val) {
this.pageSize1 = val
this.pageCurrent1 = 1
@@ -277,11 +364,20 @@ export default {
this.pageCurrent2 = val
this.searchTable2()
},
- searchTable1() { // 查询标准件和外购件
+ searchTable0() { // 查询标准件
let check1, check2
this.machineNumberValue ? check1 = 1 : check1 = 0
this.groupNumberValue ? check2 = 1 : check2 = 0
- searchTable1(check1, this.machineNumberValue, check2, this.groupNumberValue, this.pageCurrent1, this.pageSize1).then(response => {
+ searchTable1(check1, this.machineNumberValue, check2, this.groupNumberValue, this.pageCurrent0, this.pageSize0, 1).then(response => {
+ this.tableData0 = response.data.rows
+ this.total0 = response.data.total
+ })
+ },
+ searchTable1() { // 查询外购件
+ let check1, check2
+ this.machineNumberValue ? check1 = 1 : check1 = 0
+ this.groupNumberValue ? check2 = 1 : check2 = 0
+ searchTable1(check1, this.machineNumberValue, check2, this.groupNumberValue, this.pageCurrent1, this.pageSize1, 2).then(response => {
this.tableData1 = response.data.rows
this.total1 = response.data.total
})
diff --git a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
index 64086b12..b0d220fe 100644
--- a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
+++ b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
@@ -1,7 +1,221 @@
-
-
+
+
+
+ 项目名称:
+
+
+
+ 机床图号:
+
+
+ {{ item.label }}
+ {{ item.name }}
+
+
+ 查询
+
+ 采购员:
+
+
+
+
+
+
+ 组 号:
+
+
+
+ 物料状态:
+
+
+ 分配
+ 退回
+
+
+
+ 物料类别:
+
+
+
+ 物料品种:
+
+
+
+
+
+ 物料名称:
+
+ 物料规格:
+
+ 物料型号:
+
+
+
+
+
+
+
+ 未分配
+ 未询价
+ 已询价
+ 已采购
+
+
+
+
+ {{ scope.row.项目名称 }}
+
+
+
+
+ {{ scope.row.机床图号 }}
+
+
+
+
+ {{ scope.row.组号 }}
+
+
+
+
+ {{ scope.row.物料类别 }}
+
+
+
+
+ {{ scope.row.物料品种 }}
+
+
+
+
+ {{ scope.row.物料型号 }}
+
+
+
+
+ {{ scope.row.物料名称 }}
+
+
+
+
+ {{ scope.row.物料规格 }}
+
+
+
+
+ {{ scope.row.零件数量 }}
+
+
+
+
+ {{ scope.row.备注 }}
+
+
+
+
+ {{ scope.row.供货商 }}
+
+
+
+
+ {{ Number(scope.row.零件类型) === 1 ? 'BZ' : 'WG' }}
+
+
+
+
+ {{ scope.row.物料计划到货时间.split(' ')[0] }}
+
+
+
+
+ {{ scope.row.操作日期.split(' ')[0] }}
+
+
+
+
+ {{ scope.row.姓名 ? scope.row.姓名 : '—' }}
+
+
+
+
+ {{ scope.row.任务分配时间 ? scope.row.任务分配时间.split(' ')[0] : '—' }}
+
+
+
+
+ 撤回
+
+
+
+
+
+
+
+
+
项目名称:
@@ -419,7 +633,7 @@ export default {
value: 2
}
],
- tabName: '标准件和外购件',
+ tabName: '标准件',
partNum: '',
partName: '',
partSpec: '',
@@ -472,12 +686,16 @@ export default {
check2: 0,
check3: 0,
check4: 0,
+ tableData0: [],
tableData1: [],
tableData2: [],
standardAndPurchase: [],
basic: [],
groupAndPart: [],
groupAndPartBasic: [],
+ pageCurrent0: 1,
+ pageSize0: 20,
+ total0: 0,
pageCurrent1: 1,
pageSize1: 20,
total1: 0,
@@ -493,7 +711,7 @@ export default {
])
},
created() {
- this.searchTable1() // 查表1
+ this.searchTable0() // 查表1
this.fetchData() // 初始化数据
},
methods: {
@@ -520,6 +738,7 @@ export default {
retract1(row.标准件和外购件流水号).then(res => {
if (Number(res.data[0].result) === 1) {
this.$message.success('撤回成功')
+ this.searchTable0()
this.searchTable1()
} else {
this.$message.error('撤回失败')
@@ -585,7 +804,7 @@ export default {
this.MaterialVarietyValue = ''
this.getSelect(initMaterialVariety, ['物料品种', '物料品种流水号'], 'MaterialVariety', this.MaterialCategoryValue)
},
- searchTable1() { // 查询标准件和外购件
+ searchTable0() { // 查询标准件
this.MaterialCategoryValue ? this.check1 = 1 : this.check1 = 0
this.MaterialVarietyValue ? this.check2 = 1 : this.check2 = 0
this.projectValue ? this.check3 = 1 : this.check3 = 0
@@ -595,8 +814,22 @@ export default {
this.materialName ? this.check4 = 1 : this.check4 = 0
this.materialSpec ? check2 = 1 : check2 = 0
this.materialModel ? check3 = 1 : check3 = 0
- searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.MaterialCategoryValue, this.check2, this.MaterialVarietyValue, this.check3, this.projectValue, check0, this.machineValue, check1, this.groupValue, this.check4, this.materialName, this.materialStatusValue[this.materialStatusValue.length - 1], check2, this.materialSpec, check3, this.materialModel).then(response => {
- console.log(response.data.rows)
+ searchTable1(this.pageCurrent0, this.pageSize0, this.check1, this.MaterialCategoryValue, this.check2, this.MaterialVarietyValue, this.check3, this.projectValue, check0, this.machineValue, check1, this.groupValue, this.check4, this.materialName, this.materialStatusValue[this.materialStatusValue.length - 1], check2, this.materialSpec, check3, this.materialModel, 1).then(response => {
+ this.tableData0 = response.data.rows
+ this.total0 = response.data.total
+ })
+ },
+ searchTable1() { // 查询外购件
+ this.MaterialCategoryValue ? this.check1 = 1 : this.check1 = 0
+ this.MaterialVarietyValue ? this.check2 = 1 : this.check2 = 0
+ this.projectValue ? this.check3 = 1 : this.check3 = 0
+ let check0, check1, check2, check3
+ this.machineValue ? check0 = 1 : check0 = 0
+ this.groupValue ? check1 = 1 : check1 = 0
+ this.materialName ? this.check4 = 1 : this.check4 = 0
+ this.materialSpec ? check2 = 1 : check2 = 0
+ this.materialModel ? check3 = 1 : check3 = 0
+ searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.MaterialCategoryValue, this.check2, this.MaterialVarietyValue, this.check3, this.projectValue, check0, this.machineValue, check1, this.groupValue, this.check4, this.materialName, this.materialStatusValue[this.materialStatusValue.length - 1], check2, this.materialSpec, check3, this.materialModel, 2).then(response => {
this.tableData1 = response.data.rows
this.total1 = response.data.total
})
@@ -648,6 +881,7 @@ export default {
allocateTask1(this.standardAndPurchase, this.personValue).then(response => {
if (response.data[0].result === '1') {
this.$message.success('操作成功')
+ this.searchTable0()
this.searchTable1()
} else { this.$message.error('操作失败') }
})
@@ -687,6 +921,15 @@ export default {
filterHandler(value, row) {
return parseInt(row['人员编号']) === parseInt(value)
},
+ handleSizeChange0(val) {
+ this.pageSize0 = val
+ this.pageCurrent0 = 1
+ this.searchTable0()
+ },
+ handleCurrentChange0(val) {
+ this.pageCurrent0 = val
+ this.searchTable0()
+ },
handleSizeChange1(val) {
this.pageSize1 = val
this.pageCurrent1 = 1
@@ -717,6 +960,7 @@ export default {
executeReturn1(this.standardAndPurchase, this.groupAndPart).then(response => {
if (response.data[0].result === '1') {
this.$message.success('操作成功')
+ this.searchTable0()
this.searchTable1()
} else { this.$message.error('操作失败') }
})