20200212lljV1
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
</el-card>
|
||||
<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">
|
||||
<el-row style="margin-bottom: 3px">
|
||||
<!--<el-select v-model="projectValue" placeholder="项目名称" size="small" filterable clearable @change="projectChange">-->
|
||||
<!--<el-option-->
|
||||
<!--v-for="item in project"-->
|
||||
@@ -87,28 +87,29 @@
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-button type="primary" size="small" icon="el-icon-search" plain style="margin-left: 10px;" @click="pageCurrent0=1;pageSize0=50;total0=0;searchTable0()">查询</el-button>
|
||||
<el-radio v-model="radio" label="1" style="margin-left: 10px" @change="pageCurrent0=1;pageSize0=50;total0=0;searchTable0()">未分配</el-radio>
|
||||
<el-radio v-model="radio" label="2" style="margin-left: 10px" @change="pageCurrent0=1;pageSize0=50;total0=0;searchTable0()">已分配</el-radio>
|
||||
<el-checkbox v-model="checked" style="margin-left: 10px" @change="pageCurrent0=1;pageSize0=50;total0=0;searchTable0()">已分配</el-checkbox>
|
||||
<!--<el-radio v-model="radio" label="1" style="margin-left: 10px" @change="pageCurrent0=1;pageSize0=50;total0=0;searchTable0()">未分配</el-radio>-->
|
||||
<!--<el-radio v-model="radio" label="2" style="margin-left: 10px" @change="pageCurrent0=1;pageSize0=50;total0=0;searchTable0()">已分配</el-radio>-->
|
||||
<!--<div style="float:right;">-->
|
||||
<!--<span style="margin-left: 0">采购员:</span>-->
|
||||
<el-select v-model="personValue" placeholder="采购员" size="small" style="width: 100px;margin-left: 140px">
|
||||
<el-select v-model="personValue" placeholder="采购员" size="small" style="width: 100px;margin-left: 162px">
|
||||
<el-option
|
||||
v-for="item in person"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-tooltip :open-delay="1000" effect="dark" content="选择采购员后,将物料分配给所选的采购员" placement="top">
|
||||
<el-tooltip :open-delay="1000" effect="dark" content="采购任务分配到采购员" placement="top">
|
||||
<el-button
|
||||
type="primary"
|
||||
type="distribution"
|
||||
size="small"
|
||||
icon="el-icon-menu"
|
||||
style="margin-left: 10px"
|
||||
@click="allocateTask1">分配</el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="1000" effect="dark" content="退回勾选的未分配的物料至车间" placement="top">
|
||||
<el-tooltip :open-delay="1000" effect="dark" content="打回制造部重新分配" placement="top">
|
||||
<el-button
|
||||
type="danger"
|
||||
type="repulse"
|
||||
size="small"
|
||||
icon="el-icon-back"
|
||||
style="margin-left: 10px"
|
||||
@@ -116,20 +117,20 @@
|
||||
</el-tooltip>
|
||||
<!--</div>-->
|
||||
</el-row>
|
||||
<el-row style="margin-bottom: 10px">
|
||||
<el-row style="margin-bottom: 3px">
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="tableData0"
|
||||
:header-cell-style="{fontFamily:'MicrosoftYaHeiUI',fontSize:'14px',fontWeight:200}"
|
||||
size="mini"
|
||||
height="800px"
|
||||
style="width: 1285px"
|
||||
height="740px"
|
||||
style="width: 1265px"
|
||||
border
|
||||
stripe
|
||||
highlight-current-row
|
||||
@selection-change="handleSelectionChange1">
|
||||
<el-table-column :selectable="selectable" align="center" type="selection"/>
|
||||
<el-table-column align="center" label="采购状态" prop="询价状态编号" min-width="100px" width="80px">
|
||||
<el-table-column :selectable="selectable" align="center" type="selection" width="42px"/>
|
||||
<el-table-column align="center" label="进程" prop="询价状态编号" min-width="100px" width="60px">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.人员编号===''" type="primary" size="small">未分配</span>
|
||||
<span v-if="parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!==''" type="warning" size="small">未询价</span>
|
||||
@@ -172,7 +173,7 @@
|
||||
{{ scope.row.组号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" prop="物料类别" label="物料类别" min-width="100px" width="80px">
|
||||
<el-table-column align="center" prop="物料类别" label="物料类别" min-width="100px" width="90px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料类别 }}
|
||||
</template>
|
||||
@@ -239,6 +240,7 @@
|
||||
:page-size="pageSize0"
|
||||
:total="total0"
|
||||
style="display:inline-block;width:50%"
|
||||
small
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange0"
|
||||
@current-change="handleCurrentChange0"/>
|
||||
@@ -414,7 +416,8 @@
|
||||
:page-sizes="[10, 20, 30, 40, 50]"
|
||||
:page-size="pageSize1"
|
||||
:total="total1"
|
||||
style="display:inline-block;width:50%"
|
||||
small
|
||||
style="display:inline-block;width:30%"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange1"
|
||||
@current-change="handleCurrentChange1"/>
|
||||
@@ -697,7 +700,8 @@ export default {
|
||||
total1: 0,
|
||||
pageCurrent2: 1,
|
||||
pageSize2: 50,
|
||||
total2: 0
|
||||
total2: 0,
|
||||
checked: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -861,6 +865,8 @@ export default {
|
||||
}
|
||||
},
|
||||
searchTable0() { // 查询标准件
|
||||
console.log(this.checked)
|
||||
this.checked ? this.radio = 2 : this.radio = 1
|
||||
this.loading = true
|
||||
this.MaterialCategoryValue ? this.check1 = 1 : this.check1 = 0
|
||||
this.MaterialVarietyValue ? this.check2 = 1 : this.check2 = 0
|
||||
|
||||
Reference in New Issue
Block a user