|
|
|
|
@@ -1,3 +1,4 @@
|
|
|
|
|
<!--suppress ALL -->
|
|
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
<el-card>
|
|
|
|
|
@@ -34,6 +35,11 @@
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"/>
|
|
|
|
|
<el-button type="primary" size="small" icon="el-icon-search" plain style="margin-left: 15px" @click="searchTable()">查询</el-button>
|
|
|
|
|
<!--<el-button-->
|
|
|
|
|
<!--plain-->
|
|
|
|
|
<!--@click="open2(1)">-->
|
|
|
|
|
<!--成功-->
|
|
|
|
|
<!--</el-button>-->
|
|
|
|
|
<el-tooltip :open-delay="1000" effect="dark" content="将全部采购件导出到表格" placement="top">
|
|
|
|
|
<el-button type="warning" size="small" icon="el-icon-download" plain style="margin-left: 15px" @click="exportDetail()">导出</el-button>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
@@ -60,7 +66,7 @@
|
|
|
|
|
{{ scope.row.机床图号 }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column align="center" label="组号" prop="组号" width="50px">
|
|
|
|
|
<el-table-column align="center" label="组号" prop="组号" width="70px">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.组号 }}
|
|
|
|
|
</template>
|
|
|
|
|
@@ -154,9 +160,9 @@
|
|
|
|
|
<el-table-column align="center" label="采购状态" prop="询价状态编号" width="90px">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag v-if="!scope.row.人员编号" type="primary" size="small">未分配</el-tag>
|
|
|
|
|
<el-tag v-if="parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!==''" type="warning" size="small">未询价</el-tag>
|
|
|
|
|
<el-tag v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)!==3" type="success" size="small">已询价</el-tag>
|
|
|
|
|
<el-tag v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</el-tag>
|
|
|
|
|
<span v-if="parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!==''" type="warning" size="small">未询价</span>
|
|
|
|
|
<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)!==3" type="success" size="small">已询价</span>
|
|
|
|
|
<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column align="center" label="机床图号" prop="机床图号" width="94px" show-overflow-tooltip>
|
|
|
|
|
@@ -164,7 +170,7 @@
|
|
|
|
|
{{ scope.row.机床图号 }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column align="center" label="组号" prop="组号" width="50px">
|
|
|
|
|
<el-table-column align="center" label="组号" prop="组号" width="70px">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.组号 }}
|
|
|
|
|
</template>
|
|
|
|
|
@@ -257,10 +263,10 @@
|
|
|
|
|
<el-table v-loading="loading2" :data="tableData2" size="mini" height="700px" border stripe>
|
|
|
|
|
<el-table-column align="center" label="采购状态" prop="询价状态编号" width="90px">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag v-if="!scope.row.人员编号" type="primary" size="small">未分配</el-tag>
|
|
|
|
|
<el-tag v-if="parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!==''" type="warning" size="small">未询价</el-tag>
|
|
|
|
|
<el-tag v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)!==3" type="success" size="small">已询价</el-tag>
|
|
|
|
|
<el-tag v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</el-tag>
|
|
|
|
|
<span v-if="!scope.row.人员编号" type="primary" size="small">未分配</span>
|
|
|
|
|
<span v-if="parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!==''" type="warning" size="small">未询价</span>
|
|
|
|
|
<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)!==3" type="success" size="small">已询价</span>
|
|
|
|
|
<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column align="center" label="机床图号" prop="机床图号" width="94px" show-overflow-tooltip>
|
|
|
|
|
@@ -268,7 +274,7 @@
|
|
|
|
|
{{ scope.row.机床图号 }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column align="center" label="组号" prop="组号" width="50px">
|
|
|
|
|
<el-table-column align="center" label="组号" prop="组号" width="70px">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.组号 }}
|
|
|
|
|
</template>
|
|
|
|
|
@@ -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
|
|
|
|
|
|