标准件
This commit is contained in:
@@ -422,6 +422,185 @@
|
||||
@current-change="handleCurrentChange12"/>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<!--<el-tab-pane v-show="false" label="标准件" name="标准件">-->
|
||||
<!--<el-row style="margin-bottom: 5px">-->
|
||||
<!--<span>项目名称:</span>-->
|
||||
<!--<el-select v-model="projectValue" style="width:200px" placeholder="项目名称" size="small" filterable clearable @change="projectChange">-->
|
||||
<!--<el-option-->
|
||||
<!--v-for="item in project"-->
|
||||
<!--:key="item.value"-->
|
||||
<!--:label="item.label"-->
|
||||
<!--:value="item.value"/>-->
|
||||
<!--</el-select>-->
|
||||
<!--<span>机床图号:</span>-->
|
||||
<!--<el-select v-model="machineValue" style="width:200px" placeholder="请选择" size="small" clearable filterable @change="machineChange">-->
|
||||
<!--<el-option-->
|
||||
<!--v-for="item in machine"-->
|
||||
<!--:key="item.value"-->
|
||||
<!--:label="item.label"-->
|
||||
<!--:value="item.value"/>-->
|
||||
<!--</el-select>-->
|
||||
<!--<span>组号:</span>-->
|
||||
<!--<el-select v-model="groupValue" style="width:200px" placeholder="请选择" size="small" clearable filterable>-->
|
||||
<!--<el-option-->
|
||||
<!--v-for="item in group"-->
|
||||
<!--:key="item.value"-->
|
||||
<!--:label="item.label"-->
|
||||
<!--:value="item.value"/>-->
|
||||
<!--</el-select>-->
|
||||
<!--</el-row>-->
|
||||
<!--<el-row style="margin-bottom: 5px">-->
|
||||
<!--<span style="margin-right: -10px">物料状态:</span>-->
|
||||
<!--<el-cascader :options="materialStatus" :props="{ checkStrictly: true }" v-model="materialStatusValue" size="small" style="margin-left: 10px"/>-->
|
||||
<!--<span>零件图号:</span>-->
|
||||
<!--<el-input v-model="partNum" placeholder="零件图号" size="small" clearable/>-->
|
||||
<!--</el-row>-->
|
||||
<!--<el-row style="margin-bottom: 10px">-->
|
||||
<!--<span>零件名称:</span>-->
|
||||
<!--<el-input v-model="partName" placeholder="零件名称" size="small" clearable/>-->
|
||||
<!--<span>零件规格:</span>-->
|
||||
<!--<el-input v-model="partSpec" placeholder="零件规格" size="small" clearable/>-->
|
||||
<!--<span style="margin-left: 10px">时间段:</span>-->
|
||||
<!--<el-date-picker-->
|
||||
<!--v-model="endTime"-->
|
||||
<!--size="small"-->
|
||||
<!--type="daterange"-->
|
||||
<!--align="center"-->
|
||||
<!--value-format="yyyy-MM-dd"-->
|
||||
<!--format="yyyy-MM-dd"-->
|
||||
<!--range-separator="~"-->
|
||||
<!--style="width:250px"-->
|
||||
<!--start-placeholder="开始日期"-->
|
||||
<!--end-placeholder="结束日期"/>-->
|
||||
<!--<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 10px" @click="pageCurrent12=1;pageSize12=100;total12=0;searchTable12()">查询</el-button>-->
|
||||
<!--<el-button type="warning" size="small" icon="el-icon-download" style="margin-left: 10px" @click="exportUninquirySheet">导出未询价物料清单</el-button>-->
|
||||
<!--<el-popover v-model="visible2" title="调整采购任务" placement="top" width="180">-->
|
||||
<!--<div style="text-align: right; margin: 0">-->
|
||||
<!--<el-select v-model="PersonValue" style="width:150px" placeholder="人员" size="small" filterable clearable>-->
|
||||
<!--<el-option-->
|
||||
<!--v-for="item in Person"-->
|
||||
<!--:key="item.value"-->
|
||||
<!--:label="item.label"-->
|
||||
<!--:value="item.value"/>-->
|
||||
<!--</el-select>-->
|
||||
<!--<el-button type="primary" size="mini" @click="visible2 = false;tiaozheng2()">确定</el-button>-->
|
||||
<!--</div>-->
|
||||
<!--<el-button slot="reference" type="success" size="small" plain style="float: right;margin-right: 20px">调整采购任务</el-button>-->
|
||||
<!--</el-popover>-->
|
||||
<!--</el-row>-->
|
||||
<!--<el-row style="margin-bottom: 10px">-->
|
||||
<!--<el-table v-loading="" :data="tableData13" size="mini" style="max-height: 600px" height="500px" border stripe @selection-change="handleSelectionChange3">-->
|
||||
<!--<el-table-column :selectable="selectable" align="center" type="selection"/>-->
|
||||
<!--<el-table-column align="center" label="采购情况" sortable prop="询价状态编号" min-width="100px">-->
|
||||
<!--<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" type="info" size="small">已采购</el-tag>-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" label="项目名称" sortable prop="项目名称" min-width="100px">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.项目名称 }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" sortable prop="机床图号" label="机床图号" min-width="100px">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.机床图号 }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" label="组号" min-width="80px">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.组号 }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" sortable prop="物料类别" label="物料类别" min-width="100px">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.物料类别 }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" sortable prop="物料品种" label="物料品种" min-width="100px">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.物料品种 }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" sortable prop="物料型号" label="图号或型号" min-width="110px">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.物料型号 }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" sortable prop="物料名称" label="名称" min-width="100px">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.物料名称 }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" sortable prop="物料规格" label="规格" min-width="100px">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.物料规格 }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" label="数量" min-width="80px">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.零件数量 }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" label="备注" min-width="100px">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.备注 }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" sortable prop="供货商" label="供货商" min-width="100px">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.供货商 }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" label="计划到货时间" min-width="100px">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.物料计划到货时间.split(' ')[0] }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" label="生产分配时间" min-width="100px">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.操作日期.split(' ')[0] }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" label="采购员" min-width="80px" prop="姓名">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.姓名 ? scope.row.姓名 : '—' }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" label="采购分配时间" min-width="100px">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.任务分配时间 ? scope.row.任务分配时间.split(' ')[0] : '—' }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--<el-table-column align="center" label="撤回分配" min-width="100px" fixed="right">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--<el-tooltip :open-delay="1200" effect="dark" content="撤回已分配的采购任务" placement="top">-->
|
||||
<!--<el-button-->
|
||||
<!--:disabled="!(parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='')"-->
|
||||
<!--type="primary"-->
|
||||
<!--size="mini"-->
|
||||
<!--plain-->
|
||||
<!--icon="el-icon-back"-->
|
||||
<!--@click="retract(scope.row)">撤回</el-button>-->
|
||||
<!--</el-tooltip>-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<!--</el-table>-->
|
||||
<!--</el-row>-->
|
||||
<!--<div class="block">-->
|
||||
<!--<el-pagination-->
|
||||
<!--:current-page="pageCurrent13"-->
|
||||
<!--:page-sizes="[10, 20, 30, 40]"-->
|
||||
<!--:page-size="pageSize13"-->
|
||||
<!--:total="total13"-->
|
||||
<!--style="display:inline-block;width:50%"-->
|
||||
<!--layout="total, sizes, prev, pager, next, jumper"-->
|
||||
<!--@size-change="handleSizeChange13"-->
|
||||
<!--@current-change="handleCurrentChange13"/>-->
|
||||
<!--</div>-->
|
||||
<!--</el-tab-pane>-->
|
||||
</el-tabs>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -1009,6 +1188,10 @@ export default {
|
||||
total12: 0,
|
||||
pageCurrent12: 1,
|
||||
pageSize12: 100,
|
||||
tableData13: [], // 外购件列表
|
||||
total13: 0,
|
||||
pageCurrent13: 1,
|
||||
pageSize13: 100,
|
||||
remarkFilters: [],
|
||||
supplierFilters: [],
|
||||
tableData2: [], // 询价单列表
|
||||
@@ -1587,6 +1770,41 @@ export default {
|
||||
this.pageCurrent12 = val
|
||||
this.searchTable12()
|
||||
},
|
||||
searchTable13() { // 查询基本件列表
|
||||
let check1, check2, check3, check4, check5, check6, check7
|
||||
this.partNum ? check1 = 1 : check1 = 0
|
||||
this.partName ? check2 = 1 : check2 = 0
|
||||
this.partSpec ? check3 = 1 : check3 = 0
|
||||
this.projectValue ? check4 = 1 : check4 = 0
|
||||
this.machineValue ? check5 = 1 : check5 = 0
|
||||
this.groupValue ? check6 = 1 : check6 = 0
|
||||
this.endTime ? check7 = 1 : (check7 = 0, this.endTime = '')
|
||||
searchPart(this.pageCurrent12, this.pageSize12, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.partNum, check2, this.partName, check3, this.partSpec, this.id, check4, this.projectValue, check5, this.machineValue, check6, this.groupValue, check7, this.endTime[0], this.endTime[1]).then(response => {
|
||||
this.tableData12 = response.data.rows
|
||||
this.total12 = response.data.total
|
||||
const remark = []
|
||||
const supplier = []
|
||||
this.remarkFilters = []
|
||||
this.supplierFilters = []
|
||||
response.data.rows.map(v => {
|
||||
if (!remark.includes(v.备注)) {
|
||||
remark.push(v.备注)
|
||||
supplier.push(v.供货商)
|
||||
this.remarkFilters.push({ text: v.备注, value: v.备注 })
|
||||
this.supplierFilters.push({ text: v.供货商, value: v.供货商 })
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
handleSizeChange13(val) { // 基本件列表分页
|
||||
this.pageSize13 = val
|
||||
this.pageCurrent13 = 1
|
||||
this.searchTable13()
|
||||
},
|
||||
handleCurrentChange13(val) { // 基本件列表分页
|
||||
this.pageCurrent13 = val
|
||||
this.searchTable13()
|
||||
},
|
||||
searchTable2() { // 查询询价单列表
|
||||
this.supplierName ? this.check3 = 1 : this.check3 = 0
|
||||
this.inquirySheetNum ? this.check4 = 1 : this.check4 = 0
|
||||
@@ -1856,6 +2074,16 @@ export default {
|
||||
this.基本件流水号[i] = val[i].基本件流水号
|
||||
}
|
||||
},
|
||||
handleSelectionChange3(val) { // 基本件多选
|
||||
this.groupPartBasicNum = []
|
||||
this.allNum = []
|
||||
this.基本件流水号 = []
|
||||
for (let i = 0; i < val.length; i++) {
|
||||
this.groupPartBasicNum[i] = val[i].组件零件基本件流水号
|
||||
this.allNum[i] = val[i].零件数量
|
||||
this.基本件流水号[i] = val[i].基本件流水号
|
||||
}
|
||||
},
|
||||
addInquirySheet() { // 追加物料
|
||||
const numGroup1 = [] // 空数组,放该询价单中已有的组件零件流水号
|
||||
const numGroup2 = [] // 空数组,放该询价单中已有的组件零件基本件流水号
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<el-divider content-position="right"/>
|
||||
</div>
|
||||
</el-card>
|
||||
<el-tabs v-model="tabName" type="border-card" @tab-click="searchTable0();searchTable1();searchTable2();">
|
||||
<el-tabs id="PurchasingCenter/PurchaseTaskAllocate" v-model="tabName" type="border-card" @tab-click="searchTable0();searchTable1();searchTable2();">
|
||||
<el-tab-pane label="标准件" name="标准件">
|
||||
<el-row style="margin-bottom: 5px">
|
||||
<span style="margin-left: 0">项目名称:</span>
|
||||
@@ -787,6 +787,19 @@ export default {
|
||||
'id'
|
||||
])
|
||||
},
|
||||
watch: {
|
||||
// 如果路由有变化,会再次执行该方法
|
||||
'$route': {
|
||||
handler(route) {
|
||||
const _this = this
|
||||
if (route.name === 'PurchaseTaskAllocate') {
|
||||
setTimeout(() => {
|
||||
_this.Jump()
|
||||
}, 1200)
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.searchTable0() // 查表1
|
||||
this.fetchData() // 初始化数据
|
||||
@@ -794,10 +807,18 @@ export default {
|
||||
this.timer2 = setInterval(this.searchUnallocatePartNumber, 20 * 60 * 1000) // 20 分钟一刷新
|
||||
this.getDefaultTime()
|
||||
},
|
||||
mounted() {
|
||||
setTimeout(() => {
|
||||
this.Jump()
|
||||
}, 500)
|
||||
},
|
||||
beforeDestroy() {
|
||||
clearInterval(this.timer2)
|
||||
},
|
||||
methods: {
|
||||
Jump() {
|
||||
window.location.hash = '#PurchasingCenter/PurchaseTaskAllocate'
|
||||
},
|
||||
getDefaultTime() {
|
||||
const end = new Date()
|
||||
const start = new Date()
|
||||
|
||||
Reference in New Issue
Block a user