刘璐珈
This commit is contained in:
@@ -42,8 +42,8 @@
|
||||
|
||||
<el-tabs v-model="PartType" type="border-card" @tab-click="searchTable()">
|
||||
<el-tab-pane label="标准件" name="标准件">
|
||||
<el-table :data="tableData0" size="mini" height="700px" border stripe>
|
||||
<el-table-column align="center" prop="询价状态编号" label="采购状态" width="100px">
|
||||
<el-table v-loading="loading0" :data="tableData0" size="mini" height="700px" border stripe>
|
||||
<el-table-column align="center" prop="询价状态编号" label="采购状态" 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>-->
|
||||
@@ -55,32 +55,32 @@
|
||||
<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="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="机床图号" prop="机床图号" width="94px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.机床图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="组号" prop="组号" width="80px">
|
||||
<el-table-column align="center" label="组号" prop="组号" width="50px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.组号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="名称" prop="物料名称" width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="名称" prop="物料名称" width="153px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="型号" min-width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="型号" width="128px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料型号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="规格" prop="物料规格" min-width="200px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="规格" prop="物料规格" width="128px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料规格 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="供货商" prop="供货商" min-width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="供货商" prop="供货商" width="132px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.供货商 || '—' }}
|
||||
</template>
|
||||
@@ -105,7 +105,7 @@
|
||||
{{ scope.row.不合格数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="到货状态" width="100px">
|
||||
<el-table-column align="center" label="到货状态" width="90px">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="Number(scope.row.到货数量) >= Number(scope.row.采购数量)">已到货</span>
|
||||
<span v-else>未到货</span>
|
||||
@@ -131,7 +131,7 @@
|
||||
{{ scope.row.备注 || '—' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="下达任务时间" min-width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="下达时间" min-width="100px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.操作日期 ? scope.row.操作日期.split(' ')[0] : '-' }}
|
||||
</template>
|
||||
@@ -150,8 +150,8 @@
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="外购件" name="外购件">
|
||||
<el-table :data="tableData1" size="mini" height="700px" border stripe>
|
||||
<el-table-column align="center" label="采购状态" prop="询价状态编号" width="100px">
|
||||
<el-table v-loading="loading1" :data="tableData1" 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>
|
||||
@@ -159,32 +159,32 @@
|
||||
<el-tag v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="机床图号" prop="机床图号" width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="机床图号" prop="机床图号" width="94px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.机床图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="组号" prop="组号" width="80px">
|
||||
<el-table-column align="center" label="组号" prop="组号" width="50px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.组号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="名称" prop="物料名称" width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="名称" prop="物料名称" width="153px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="型号" min-width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="型号" width="128px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料型号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="规格" prop="物料规格" min-width="200px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="规格" prop="物料规格" width="128px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料规格 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="供货商" prop="供货商" min-width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="供货商" prop="供货商" width="132px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.供货商 || '—' }}
|
||||
</template>
|
||||
@@ -209,7 +209,7 @@
|
||||
{{ scope.row.不合格数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="到货状态" width="100px">
|
||||
<el-table-column align="center" label="到货状态" width="90px">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="Number(scope.row.到货数量) >= Number(scope.row.采购数量)">已到货</span>
|
||||
<span v-else>未到货</span>
|
||||
@@ -235,7 +235,7 @@
|
||||
{{ scope.row.备注 || '—' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="下达任务时间" min-width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="下达时间" min-width="100px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.操作日期 ? scope.row.操作日期.split(' ')[0] : '-' }}
|
||||
</template>
|
||||
@@ -254,8 +254,8 @@
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="基本件" name="基本件">
|
||||
<el-table :data="tableData2" size="mini" height="700px" border stripe>
|
||||
<el-table-column align="center" label="采购状态" prop="询价状态编号" width="100px">
|
||||
<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>
|
||||
@@ -263,37 +263,37 @@
|
||||
<el-tag v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="机床图号" prop="机床图号" width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="机床图号" prop="机床图号" width="94px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.机床图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="组号" prop="组号" width="80px">
|
||||
<el-table-column align="center" label="组号" prop="组号" width="50px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.组号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="名称" prop="物料名称" min-width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="名称" prop="物料名称" width="153px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="图号" min-width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="图号" width="100px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="规格" prop="规格" min-width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="规格" prop="规格" width="128px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.规格 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="材料" min-width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="材料" width="119px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.材料 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="供货商" prop="供货商" min-width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="供货商" prop="供货商" width="132px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.供货商 || '—' }}
|
||||
</template>
|
||||
@@ -320,7 +320,7 @@
|
||||
{{ scope.row.不合格数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="到货状态" width="100px">
|
||||
<el-table-column align="center" label="到货状态" width="90px">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="Number(scope.row.到货数量) >= Number(scope.row.采购数量)">已到货</span>
|
||||
<span v-else>未到货</span>
|
||||
@@ -331,7 +331,7 @@
|
||||
{{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.供应商名称 || '—' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="采购合同编号" min-width="100px">
|
||||
<el-table-column align="center" label="采购合同编号" width="110px">
|
||||
<template slot-scope="scope">
|
||||
{{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.采购合同编号 || '—' }}
|
||||
</template>
|
||||
@@ -346,7 +346,7 @@
|
||||
{{ scope.row.备注 || '—' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="下达任务时间" min-width="100px" show-overflow-tooltip>
|
||||
<el-table-column align="center" label="下达时间" min-width="100px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.操作日期 ? scope.row.操作日期.split(' ')[0] : '-' }}
|
||||
</template>
|
||||
@@ -375,6 +375,9 @@ export default {
|
||||
name: '', // 采购件采购查询
|
||||
data() {
|
||||
return {
|
||||
loading0: false,
|
||||
loading1: false,
|
||||
loading2: false,
|
||||
startTime: '',
|
||||
Name: '',
|
||||
spec: '',
|
||||
@@ -569,6 +572,7 @@ export default {
|
||||
this.spec ? check4 = 1 : check4 = 0
|
||||
this.model ? check5 = 1 : check5 = 0
|
||||
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) {
|
||||
@@ -601,6 +605,9 @@ export default {
|
||||
}
|
||||
}
|
||||
this.total0 = response.data.total
|
||||
this.loading0 = false
|
||||
}).catch(() => {
|
||||
this.loading0 = false
|
||||
})
|
||||
},
|
||||
searchTable1() { // 查询外购件
|
||||
@@ -612,6 +619,7 @@ export default {
|
||||
this.spec ? check4 = 1 : check4 = 0
|
||||
this.model ? check5 = 1 : check5 = 0
|
||||
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) {
|
||||
@@ -644,6 +652,9 @@ export default {
|
||||
}
|
||||
}
|
||||
console.log(response.data.total, this.total1, 898989)
|
||||
this.loading1 = false
|
||||
}).catch(() => {
|
||||
this.loading1 = false
|
||||
})
|
||||
},
|
||||
searchTable2() { // 查询基本件
|
||||
@@ -653,10 +664,14 @@ export default {
|
||||
this.Name ? check3 = 1 : check3 = 0
|
||||
this.spec ? check4 = 1 : check4 = 0
|
||||
this.model ? check5 = 1 : check5 = 0
|
||||
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.loading2 = false
|
||||
}).catch(() => {
|
||||
this.loading2 = false
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user