@@ -34,6 +35,11 @@
start-placeholder="开始日期"
end-placeholder="结束日期"/>
查询
+
+
+
+
+
导出
@@ -60,7 +66,7 @@
{{ scope.row.机床图号 }}
-
+
{{ scope.row.组号 }}
@@ -154,9 +160,9 @@
未分配
- 未询价
- 已询价
- 已采购
+ 未询价
+ 已询价
+ 已采购
@@ -164,7 +170,7 @@
{{ scope.row.机床图号 }}
-
+
{{ scope.row.组号 }}
@@ -257,10 +263,10 @@
- 未分配
- 未询价
- 已询价
- 已采购
+ 未分配
+ 未询价
+ 已询价
+ 已采购
@@ -268,7 +274,7 @@
{{ scope.row.机床图号 }}
-
+
{{ scope.row.组号 }}
@@ -413,6 +419,26 @@ export default {
this.searchTable()
},
methods: {
+ // open2: function (mess) {
+ // this.$notify({
+ // title: '提示',
+ // message: '您有新的领料单需要备料确认,请及时处理,点击查看',
+ // onClick: this.message(mess).then((res) => {
+ //
+ // // this.message(mess)
+ // console.log(res, 1111)
+ // this.$router.push({path: '/PurchasingCenter/PurchaseTaskAllocate'})
+ // // this.$router.push({ path: '/Inventory/MaterialOut' })
+ // // setTimeout(this.noticeContractKG.close(), 1000)
+ // }),
+ // duration: 1000 * 60
+ // })
+ // },
+ // message (mess) {
+ // return mess
+ //
+ // // this.$router.push({path: '/PurchasingCenter/PurchaseTaskAllocate'})
+ // },
// 导出采购物料执行情况
exportDetail() {
let check1, check2, check3
@@ -574,37 +600,36 @@ export default {
this.startTime ? check6 = 1 : (check6 = 0, this.startTime = '')
this.loading0 = true
searchTable1(check1, this.machineNumberValue, check2, this.groupNumberValue, this.pageCurrent0, this.pageSize0, 1, check3, this.Name, check4, this.spec, check5, this.model, check6, this.startTime[0], this.startTime[1]).then(response => {
- console.log(this.tableData0)
- if (response.data.rows.length !== 0) {
- for (let i = 0; i < response.data.rows.length; i++) {
+ if (response.data.result !== 0) {
+ for (let i = 0; i < response.data.result.length; i++) {
this.tableData0.push({
- 人员编号: response.data.rows[i].人员编号,
- 询价状态编号: response.data.rows[i].询价状态编号,
- 采购状态编号: response.data.rows[i].采购状态编号,
- 机床图号: response.data.rows[i].机床图号,
- 组号: response.data.rows[i].组号,
- 物料名称: response.data.rows[i].物料名称,
- 物料型号: response.data.rows[i].物料型号,
- 物料规格: response.data.rows[i].物料规格,
- 供货商: response.data.rows[i].供货商,
- 零件数量: response.data.rows[i].零件数量,
- 数量: response.data.rows[i].数量,
- 离线采购数量: response.data.rows[i].离线采购数量,
- 已到货数量: response.data.rows[i].已到货数量,
- 离线到货数量: response.data.rows[i].离线到货数量,
- 供应商名称: response.data.rows[i].供应商名称,
- 离线合同供应商名称: response.data.rows[i].离线合同供应商名称,
- 采购合同编号: response.data.rows[i].采购合同编号,
- 离线合同编号: response.data.rows[i].离线合同编号,
- 备注: response.data.rows[i].备注,
- 采购数量: Number(response.data.rows[i].询价状态编号) === 1 && response.data.rows[i].人员编号 !== '' ? '—' : response.data.rows[i].数量 || response.data.rows[i].离线采购数量 || '—',
- 到货数量: Number(response.data.rows[i].询价状态编号) === 1 && response.data.rows[i].人员编号 !== '' ? '—' : response.data.rows[i].已到货数量 || response.data.rows[i].离线到货数量 || '—',
- 不合格数量: response.data.rows[i].不合格数量,
- 操作日期: response.data.rows[i].操作日期
+ 人员编号: response.data.result[i].人员编号,
+ 询价状态编号: response.data.result[i].询价状态编号,
+ 采购状态编号: response.data.result[i].采购状态编号,
+ 机床图号: response.data.result[i].机床图号,
+ 组号: response.data.result[i].组号,
+ 物料名称: response.data.result[i].物料名称,
+ 物料型号: response.data.result[i].物料型号,
+ 物料规格: response.data.result[i].物料规格,
+ 供货商: response.data.result[i].供货商,
+ 零件数量: response.data.result[i].零件数量,
+ 数量: response.data.result[i].数量,
+ 离线采购数量: response.data.result[i].离线采购数量,
+ 已到货数量: response.data.result[i].已到货数量,
+ 离线到货数量: response.data.result[i].离线到货数量,
+ 供应商名称: response.data.result[i].供应商名称,
+ 离线合同供应商名称: response.data.result[i].离线合同供应商名称,
+ 采购合同编号: response.data.result[i].采购合同编号,
+ 离线合同编号: response.data.result[i].离线合同编号,
+ 备注: response.data.result[i].备注,
+ 采购数量: Number(response.data.result[i].询价状态编号) === 1 && response.data.result[i].人员编号 !== '' ? '—' : response.data.result[i].数量 || response.data.result[i].离线采购数量 || '—',
+ 到货数量: Number(response.data.result[i].询价状态编号) === 1 && response.data.result[i].人员编号 !== '' ? '—' : response.data.result[i].已到货数量 || response.data.result[i].离线到货数量 || '—',
+ 不合格数量: response.data.result[i].不合格数量,
+ 操作日期: response.data.result[i].操作日期
})
}
}
- this.total0 = response.data.total
+ this.total0 = parseInt(response.data.output[0].ItemCount)
this.loading0 = false
}).catch(() => {
this.loading0 = false
@@ -621,33 +646,36 @@ export default {
this.startTime ? check6 = 1 : (check6 = 0, this.startTime = '')
this.loading1 = true
searchTable1(check1, this.machineNumberValue, check2, this.groupNumberValue, this.pageCurrent1, this.pageSize1, 2, check3, this.Name, check4, this.spec, check5, this.model, check6, this.startTime[0], this.startTime[1]).then(response => {
- this.total1 = response.data.total
- if (response.data.rows.length !== 0) {
- for (let i = 0; i < response.data.rows.length; i++) {
+ console.log(response.data.result.length, 222)
+ // this.total02 = parseInt(response.data.output[0].ItemCount)
+
+ this.total1 = parseInt(response.data.output[0].ItemCount)
+ if (response.data.result.length !== 0) {
+ for (let i = 0; i < response.data.result.length; i++) {
this.tableData1.push({
- 人员编号: response.data.rows[i].人员编号,
- 询价状态编号: response.data.rows[i].询价状态编号,
- 采购状态编号: response.data.rows[i].采购状态编号,
- 机床图号: response.data.rows[i].机床图号,
- 组号: response.data.rows[i].组号,
- 物料名称: response.data.rows[i].物料名称,
- 物料型号: response.data.rows[i].物料型号,
- 物料规格: response.data.rows[i].物料规格,
- 供货商: response.data.rows[i].供货商,
- 零件数量: response.data.rows[i].零件数量,
- 数量: response.data.rows[i].数量,
- 离线采购数量: response.data.rows[i].离线采购数量,
- 已到货数量: response.data.rows[i].已到货数量,
- 离线到货数量: response.data.rows[i].离线到货数量,
- 供应商名称: response.data.rows[i].供应商名称,
- 离线合同供应商名称: response.data.rows[i].离线合同供应商名称,
- 采购合同编号: response.data.rows[i].采购合同编号,
- 离线合同编号: response.data.rows[i].离线合同编号,
- 备注: response.data.rows[i].备注,
- 采购数量: Number(response.data.rows[i].询价状态编号) === 1 && response.data.rows[i].人员编号 !== '' ? '—' : response.data.rows[i].数量 || response.data.rows[i].离线采购数量 || '—',
- 到货数量: Number(response.data.rows[i].询价状态编号) === 1 && response.data.rows[i].人员编号 !== '' ? '—' : response.data.rows[i].已到货数量 || response.data.rows[i].离线到货数量 || '—',
- 不合格数量: response.data.rows[i].不合格数量,
- 操作日期: response.data.rows[i].操作日期
+ 人员编号: response.data.result[i].人员编号,
+ 询价状态编号: response.data.result[i].询价状态编号,
+ 采购状态编号: response.data.result[i].采购状态编号,
+ 机床图号: response.data.result[i].机床图号,
+ 组号: response.data.result[i].组号,
+ 物料名称: response.data.result[i].物料名称,
+ 物料型号: response.data.result[i].物料型号,
+ 物料规格: response.data.result[i].物料规格,
+ 供货商: response.data.result[i].供货商,
+ 零件数量: response.data.result[i].零件数量,
+ 数量: response.data.result[i].数量,
+ 离线采购数量: response.data.result[i].离线采购数量,
+ 已到货数量: response.data.result[i].已到货数量,
+ 离线到货数量: response.data.result[i].离线到货数量,
+ 供应商名称: response.data.result[i].供应商名称,
+ 离线合同供应商名称: response.data.result[i].离线合同供应商名称,
+ 采购合同编号: response.data.result[i].采购合同编号,
+ 离线合同编号: response.data.result[i].离线合同编号,
+ 备注: response.data.result[i].备注,
+ 采购数量: Number(response.data.result[i].询价状态编号) === 1 && response.data.result[i].人员编号 !== '' ? '—' : response.data.result[i].数量 || response.data.result[i].离线采购数量 || '—',
+ 到货数量: Number(response.data.result[i].询价状态编号) === 1 && response.data.result[i].人员编号 !== '' ? '—' : response.data.result[i].已到货数量 || response.data.result[i].离线到货数量 || '—',
+ 不合格数量: response.data.result[i].不合格数量,
+ 操作日期: response.data.result[i].操作日期
})
}
}
@@ -667,8 +695,8 @@ export default {
this.loading2 = true
this.startTime ? check6 = 1 : (check6 = 0, this.startTime = '')
searchTable2(check1, this.machineNumberValue, check2, this.groupNumberValue, this.pageCurrent2, this.pageSize2, check3, this.Name, check4, this.spec, check5, this.model, check6, this.startTime[0], this.startTime[1]).then(response => {
- this.tableData2 = response.data.rows
- this.total2 = response.data.total
+ this.tableData2 = response.data.result
+ this.total2 = parseInt(response.data.output[0].ItemCount)
this.loading2 = false
}).catch(() => {
this.loading2 = false