|
|
|
@@ -22,13 +22,6 @@
|
|
|
|
<el-tabs id="PurchasingCenter/PurchaseTaskAllocate" v-model="tabName" type="border-card" @tab-click="selecttabs">
|
|
|
|
<el-tabs id="PurchasingCenter/PurchaseTaskAllocate" v-model="tabName" type="border-card" @tab-click="selecttabs">
|
|
|
|
<el-tab-pane label="标准件" name="标准件">
|
|
|
|
<el-tab-pane label="标准件" name="标准件">
|
|
|
|
<el-row style="margin-bottom: 3px">
|
|
|
|
<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"-->
|
|
|
|
|
|
|
|
<!--:key="item.value"-->
|
|
|
|
|
|
|
|
<!--:label="item.label"-->
|
|
|
|
|
|
|
|
<!--:value="item.value"/>-->
|
|
|
|
|
|
|
|
<!--</el-select>-->
|
|
|
|
|
|
|
|
<el-input v-model="materialName" placeholder="名称规格型号" size="small" clearable @keyup.enter.native="pageCurrent0=1;pageSize0=50;total0=0;searchTable0()"/>
|
|
|
|
<el-input v-model="materialName" placeholder="名称规格型号" size="small" clearable @keyup.enter.native="pageCurrent0=1;pageSize0=50;total0=0;searchTable0()"/>
|
|
|
|
<el-select v-model="machineValue" placeholder="机床图号" size="small" filterable clearable @change="machineChange">
|
|
|
|
<el-select v-model="machineValue" placeholder="机床图号" size="small" filterable clearable @change="machineChange">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
@@ -40,13 +33,6 @@
|
|
|
|
<b style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</b>
|
|
|
|
<b style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</b>
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
<!--<el-select v-model="groupValue" placeholder="组号" size="small" filterable clearable width="100px">-->
|
|
|
|
|
|
|
|
<!--<el-option-->
|
|
|
|
|
|
|
|
<!--v-for="item in group"-->
|
|
|
|
|
|
|
|
<!--:key="item.value"-->
|
|
|
|
|
|
|
|
<!--:label="item.label"-->
|
|
|
|
|
|
|
|
<!--:value="item.value"/>-->
|
|
|
|
|
|
|
|
<!--</el-select>-->
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
v-show="false"
|
|
|
|
v-show="false"
|
|
|
|
v-model="dateRange"
|
|
|
|
v-model="dateRange"
|
|
|
|
@@ -60,7 +46,6 @@
|
|
|
|
style="width:250px"
|
|
|
|
style="width:250px"
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
end-placeholder="结束日期"/>
|
|
|
|
end-placeholder="结束日期"/>
|
|
|
|
<!--<el-cascader :options="materialStatus" :props="{ checkStrictly: true }" v-model="materialStatusValue" size="small" width="100px"/>-->
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
<el-select
|
|
|
|
v-model="MaterialCategoryValue"
|
|
|
|
v-model="MaterialCategoryValue"
|
|
|
|
placeholder="物料类别"
|
|
|
|
placeholder="物料类别"
|
|
|
|
@@ -88,10 +73,6 @@
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
<el-button type="primary" size="small" icon="el-icon-search" plain style="margin-left: 10px;" @click="pageCurrent0=1;pageSize0=30;total0=0;searchTable0()">查询</el-button>
|
|
|
|
<el-button type="primary" size="small" icon="el-icon-search" plain style="margin-left: 10px;" @click="pageCurrent0=1;pageSize0=30;total0=0;searchTable0()">查询</el-button>
|
|
|
|
<el-checkbox v-model="checked" style="margin-left: 10px" @change="pageCurrent0=1;pageSize0=30;total0=0;searchTable0()">已分配</el-checkbox>
|
|
|
|
<el-checkbox v-model="checked" style="margin-left: 10px" @change="pageCurrent0=1;pageSize0=30;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: 100px">
|
|
|
|
<el-select v-model="personValue" placeholder="采购员" size="small" style="width: 100px;margin-left: 100px">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in person"
|
|
|
|
v-for="item in person"
|
|
|
|
@@ -115,7 +96,6 @@
|
|
|
|
style="margin-left: 170px"
|
|
|
|
style="margin-left: 170px"
|
|
|
|
@click="executeReturn1">打回</el-button>
|
|
|
|
@click="executeReturn1">打回</el-button>
|
|
|
|
</el-tooltip>
|
|
|
|
</el-tooltip>
|
|
|
|
<!--</div>-->
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row style="margin-bottom: 5px">
|
|
|
|
<el-row style="margin-bottom: 5px">
|
|
|
|
<el-table
|
|
|
|
<el-table
|
|
|
|
@@ -132,8 +112,8 @@
|
|
|
|
<el-table-column :selectable="selectable" align="center" type="selection" width="42px"/>
|
|
|
|
<el-table-column :selectable="selectable" align="center" type="selection" width="42px"/>
|
|
|
|
<el-table-column align="center" label="进程" prop="询价状态编号" width="60px">
|
|
|
|
<el-table-column align="center" label="进程" prop="询价状态编号" width="60px">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row.人员编号===''" type="primary" size="small">未分配</span>
|
|
|
|
<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.询价状态编号)===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="success" size="small">已询价</span>
|
|
|
|
<span v-if="parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</span>
|
|
|
|
<span v-if="parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
@@ -158,11 +138,6 @@
|
|
|
|
{{ scope.row.零件数量 }}
|
|
|
|
{{ scope.row.零件数量 }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<!--<el-table-column align="center" label="项目名称" prop="项目名称" min-width="100px" width="140px">-->
|
|
|
|
|
|
|
|
<!--<template slot-scope="scope">-->
|
|
|
|
|
|
|
|
<!--{{ scope.row.项目名称 }}-->
|
|
|
|
|
|
|
|
<!--</template>-->
|
|
|
|
|
|
|
|
<!--</el-table-column>-->
|
|
|
|
|
|
|
|
<el-table-column align="center" prop="机床图号" label="机床图号" min-width="100px" width="120px">
|
|
|
|
<el-table-column align="center" prop="机床图号" label="机床图号" min-width="100px" width="120px">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ scope.row.机床图号 }}
|
|
|
|
{{ scope.row.机床图号 }}
|
|
|
|
@@ -203,31 +178,11 @@
|
|
|
|
{{ scope.row.供货商 }}
|
|
|
|
{{ scope.row.供货商 }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<!--<el-table-column :filters="source" :filter-method="filterSource" align="center" label="数据来源" min-width="90px" prop="零件类型">-->
|
|
|
|
|
|
|
|
<!--<template slot-scope="scope">-->
|
|
|
|
|
|
|
|
<!--{{ Number(scope.row.零件类型) === 1 ? 'BZ' : 'WG' }}-->
|
|
|
|
|
|
|
|
<!--</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" prop="接收日期" label="接收日期" min-width="100px" width="100px" show-overflow-tooltip>
|
|
|
|
<el-table-column align="center" prop="接收日期" label="接收日期" min-width="100px" width="100px" show-overflow-tooltip>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ scope.row.接收日期 }}
|
|
|
|
{{ scope.row.接收日期 }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</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 v-if="radio===2" align="center" label="撤回分配" min-width="100px" width="120px" fixed="right">
|
|
|
|
<el-table-column v-if="radio===2" align="center" label="撤回分配" min-width="100px" width="120px" fixed="right">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-tooltip :open-delay="1200" effect="dark" content="撤回已分配的采购任务" placement="top">
|
|
|
|
<el-tooltip :open-delay="1200" effect="dark" content="撤回已分配的采购任务" placement="top">
|
|
|
|
@@ -258,13 +213,6 @@
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="外购件" name="外购件">
|
|
|
|
<el-tab-pane label="外购件" name="外购件">
|
|
|
|
<el-row style="margin-bottom: 5px">
|
|
|
|
<el-row style="margin-bottom: 5px">
|
|
|
|
<!--<el-select v-model="projectValue" 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>-->
|
|
|
|
|
|
|
|
<el-input v-model="materialName" placeholder="名称规格型号" size="small" clearable @keyup.enter.native="pageCurrent1=1;pageSize1=50;total1=0;searchTable1()"/>
|
|
|
|
<el-input v-model="materialName" placeholder="名称规格型号" size="small" clearable @keyup.enter.native="pageCurrent1=1;pageSize1=50;total1=0;searchTable1()"/>
|
|
|
|
<el-select v-model="machineValue" placeholder="机床图号" size="small" filterable clearable>
|
|
|
|
<el-select v-model="machineValue" placeholder="机床图号" size="small" filterable clearable>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
@@ -276,14 +224,6 @@
|
|
|
|
<b style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</b>
|
|
|
|
<b style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</b>
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
<!--<el-select v-model="groupValue" placeholder="组号" size="small" filterable clearable>-->
|
|
|
|
|
|
|
|
<!--<el-option-->
|
|
|
|
|
|
|
|
<!--v-for="item in group"-->
|
|
|
|
|
|
|
|
<!--:key="item.value"-->
|
|
|
|
|
|
|
|
<!--:label="item.label"-->
|
|
|
|
|
|
|
|
<!--:value="item.value"/>-->
|
|
|
|
|
|
|
|
<!--</el-select>-->
|
|
|
|
|
|
|
|
<!--<el-cascader :options="materialStatus" :props="{ checkStrictly: true }" v-model="materialStatusValue" size="small"/>-->
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
<el-select
|
|
|
|
v-model="MaterialCategoryValue"
|
|
|
|
v-model="MaterialCategoryValue"
|
|
|
|
placeholder="物料类别"
|
|
|
|
placeholder="物料类别"
|
|
|
|
@@ -311,8 +251,6 @@
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
<el-button type="primary" size="small" icon="el-icon-search" plain style="margin-left: 10px;" @click="pageCurrent1=1;pageSize1=50;total1=0;searchTable1()">查询</el-button>
|
|
|
|
<el-button type="primary" size="small" icon="el-icon-search" plain style="margin-left: 10px;" @click="pageCurrent1=1;pageSize1=50;total1=0;searchTable1()">查询</el-button>
|
|
|
|
<el-checkbox v-model="checked2" style="margin-left: 10px" @change="pageCurrent1=1;pageSize1=50;total1=0;searchTable1()">已分配</el-checkbox>
|
|
|
|
<el-checkbox v-model="checked2" style="margin-left: 10px" @change="pageCurrent1=1;pageSize1=50;total1=0;searchTable1()">已分配</el-checkbox>
|
|
|
|
<!--<el-radio v-model="radio" label="1" style="margin-left: 10px" @change="pageCurrent1=1;pageSize1=50;total1=0;searchTable1()">未分配</el-radio>-->
|
|
|
|
|
|
|
|
<!--<el-radio v-model="radio" label="2" style="margin-left: 10px" @change="pageCurrent1=1;pageSize1=50;total1=0;searchTable1()">已分配</el-radio>-->
|
|
|
|
|
|
|
|
<el-select v-model="personValue" placeholder="采购员" size="small" style="width: 100px;margin-left: 210px">
|
|
|
|
<el-select v-model="personValue" placeholder="采购员" size="small" style="width: 100px;margin-left: 210px">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in person"
|
|
|
|
v-for="item in person"
|
|
|
|
@@ -336,16 +274,14 @@
|
|
|
|
style="margin-left: 50px"
|
|
|
|
style="margin-left: 50px"
|
|
|
|
@click="executeReturn1">打回</el-button>
|
|
|
|
@click="executeReturn1">打回</el-button>
|
|
|
|
</el-tooltip>
|
|
|
|
</el-tooltip>
|
|
|
|
<!--<el-button type="primary" size="small" icon="el-icon-menu" style="margin-left: 10px" @click="allocateTask1">分配</el-button>-->
|
|
|
|
|
|
|
|
<!--<el-button type="danger" size="small" icon="el-icon-back" style="margin-left: 10px" @click="executeReturn1">打回</el-button>-->
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row style="margin-bottom: 10px">
|
|
|
|
<el-row style="margin-bottom: 10px">
|
|
|
|
<el-table v-loading="loading" :data="tableData1" size="mini" height="780px" style="width: 1650px" border stripe @selection-change="handleSelectionChange1">
|
|
|
|
<el-table v-loading="loading" :data="tableData1" size="mini" height="780px" style="width: 1650px" border stripe @selection-change="handleSelectionChange1">
|
|
|
|
<el-table-column :selectable="selectable" align="center" type="selection" width="42px"/>
|
|
|
|
<el-table-column :selectable="selectable" align="center" type="selection" width="42px"/>
|
|
|
|
<el-table-column align="center" prop="询价状态编号" label="进程" min-width="100px" width="60px">
|
|
|
|
<el-table-column align="center" prop="询价状态编号" label="进程" min-width="100px" width="60px">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row.人员编号===''" type="primary" size="small">未分配</span>
|
|
|
|
<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.询价状态编号)===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="success" size="small">已询价</span>
|
|
|
|
<span v-if="parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</span>
|
|
|
|
<span v-if="parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
@@ -463,13 +399,6 @@
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="基本件" name="基本件">
|
|
|
|
<el-tab-pane label="基本件" name="基本件">
|
|
|
|
<el-row style="margin-bottom: 5px">
|
|
|
|
<el-row style="margin-bottom: 5px">
|
|
|
|
<!--<el-select v-model="projectValue" 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>-->
|
|
|
|
|
|
|
|
<el-input v-model="partNum" placeholder="图号名称规格材料" size="small" clearable @keyup.enter.native="pageCurrent2=1;pageSize2=50;total2=0;searchTable2()"/>
|
|
|
|
<el-input v-model="partNum" placeholder="图号名称规格材料" size="small" clearable @keyup.enter.native="pageCurrent2=1;pageSize2=50;total2=0;searchTable2()"/>
|
|
|
|
<el-select v-model="machineValue" placeholder="机床图号" size="small" filterable clearable>
|
|
|
|
<el-select v-model="machineValue" placeholder="机床图号" size="small" filterable clearable>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
@@ -481,18 +410,8 @@
|
|
|
|
<b style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</b>
|
|
|
|
<b style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</b>
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
<!--<el-select v-model="groupValue" placeholder="组号" size="small" filterable clearable>-->
|
|
|
|
|
|
|
|
<!--<el-option-->
|
|
|
|
|
|
|
|
<!--v-for="item in group"-->
|
|
|
|
|
|
|
|
<!--:key="item.value"-->
|
|
|
|
|
|
|
|
<!--:label="item.label"-->
|
|
|
|
|
|
|
|
<!--:value="item.value"/>-->
|
|
|
|
|
|
|
|
<!--</el-select>-->
|
|
|
|
|
|
|
|
<!--<el-cascader :options="materialStatus" :props="{ checkStrictly: true }" v-model="materialStatusValue" size="small"/>-->
|
|
|
|
|
|
|
|
<el-button type="primary" size="small" icon="el-icon-search" plain style="margin-left: 10px;" @click="pageCurrent2=1;pageSize2=50;total2=0;searchTable2()">查询</el-button>
|
|
|
|
<el-button type="primary" size="small" icon="el-icon-search" plain style="margin-left: 10px;" @click="pageCurrent2=1;pageSize2=50;total2=0;searchTable2()">查询</el-button>
|
|
|
|
<el-checkbox v-model="checked3" style="margin-left: 10px" @change="pageCurrent2=1;pageSize2=50;total2=0;searchTable2()">已分配</el-checkbox>
|
|
|
|
<el-checkbox v-model="checked3" style="margin-left: 10px" @change="pageCurrent2=1;pageSize2=50;total2=0;searchTable2()">已分配</el-checkbox>
|
|
|
|
<!--<el-radio v-model="radio" label="1" style="margin-left: 10px" @change="pageCurrent2=1;pageSize2=50;total2=0;searchTable2()">未分配</el-radio>-->
|
|
|
|
|
|
|
|
<!--<el-radio v-model="radio" label="2" style="margin-left: 10px" @change="pageCurrent2=1;pageSize2=50;total2=0;searchTable2()">已分配</el-radio>-->
|
|
|
|
|
|
|
|
<el-select v-model="personValue" placeholder="采购员" size="small" style="width: 100px;margin-left: 480px">
|
|
|
|
<el-select v-model="personValue" placeholder="采购员" size="small" style="width: 100px;margin-left: 480px">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in person"
|
|
|
|
v-for="item in person"
|
|
|
|
@@ -516,16 +435,14 @@
|
|
|
|
style="margin-left: 50px"
|
|
|
|
style="margin-left: 50px"
|
|
|
|
@click="executeReturn2">打回</el-button>
|
|
|
|
@click="executeReturn2">打回</el-button>
|
|
|
|
</el-tooltip>
|
|
|
|
</el-tooltip>
|
|
|
|
<!--<el-button type="primary" size="small" icon="el-icon-menu" style="margin-left: 10px" @click="allocateTask2">分配</el-button>-->
|
|
|
|
|
|
|
|
<!--<el-button type="danger" size="small" icon="el-icon-back" style="margin-left: 10px" @click="executeReturn2">打回</el-button>-->
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row style="margin-bottom: 10px">
|
|
|
|
<el-row style="margin-bottom: 10px">
|
|
|
|
<el-table v-loading="loading" :data="tableData2" size="mini" height="774px" style="width: 16505px" border stripe @selection-change="handleSelectionChange2">
|
|
|
|
<el-table v-loading="loading" :data="tableData2" size="mini" height="774px" style="width: 16505px" border stripe @selection-change="handleSelectionChange2">
|
|
|
|
<el-table-column :selectable="selectable" align="center" type="selection" width="42px"/>
|
|
|
|
<el-table-column :selectable="selectable" align="center" type="selection" width="42px"/>
|
|
|
|
<el-table-column align="center" prop="询价状态编号" label="进程" min-width="80px" width="60px">
|
|
|
|
<el-table-column align="center" prop="询价状态编号" label="进程" min-width="80px" width="60px">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row.人员编号===''" type="primary" size="small">未分配</span>
|
|
|
|
<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.询价状态编号)===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="success" size="small">已询价</span>
|
|
|
|
<span v-if="parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</span>
|
|
|
|
<span v-if="parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
@@ -555,11 +472,6 @@
|
|
|
|
{{ scope.row.零件数量 }}
|
|
|
|
{{ scope.row.零件数量 }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<!--<el-table-column align="center" prop="项目名称" label="项目名称" min-width="100px" width="140px">-->
|
|
|
|
|
|
|
|
<!--<template slot-scope="scope">-->
|
|
|
|
|
|
|
|
<!--{{ scope.row.项目名称 }}-->
|
|
|
|
|
|
|
|
<!--</template>-->
|
|
|
|
|
|
|
|
<!--</el-table-column>-->
|
|
|
|
|
|
|
|
<el-table-column align="center" prop="机床图号" label="机床图号" width="120px" show-overflow-tooltip>
|
|
|
|
<el-table-column align="center" prop="机床图号" label="机床图号" width="120px" show-overflow-tooltip>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ scope.row.机床图号 }}
|
|
|
|
{{ scope.row.机床图号 }}
|
|
|
|
@@ -577,7 +489,7 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column v-if="radio2===2" align="center" prop="任务分配时间" label="分配日期" width="120px" show-overflow-tooltip>
|
|
|
|
<el-table-column v-if="radio2===2" align="center" prop="任务分配时间" label="分配日期" width="120px" show-overflow-tooltip>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ scope.row.任务分配时间.split(' ')[0] }}
|
|
|
|
{{ scope.row.任务分配时间 }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column align="center" label="备注" width="120px" show-overflow-tooltip>
|
|
|
|
<el-table-column align="center" label="备注" width="120px" show-overflow-tooltip>
|
|
|
|
@@ -590,26 +502,11 @@
|
|
|
|
{{ scope.row.供货商 }}
|
|
|
|
{{ scope.row.供货商 }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</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" prop="接收日期" label="接收日期" min-width="100px" width="100px" show-overflow-tooltip>
|
|
|
|
<el-table-column align="center" prop="接收日期" label="接收日期" min-width="100px" width="100px" show-overflow-tooltip>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ scope.row.操作日期.split(' ')[0] }}
|
|
|
|
{{ scope.row.操作日期 }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</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 v-if="radio2===2" align="center" label="撤回分配" width="80px" fixed="right">
|
|
|
|
<el-table-column v-if="radio2===2" align="center" label="撤回分配" width="80px" fixed="right">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
@@ -953,7 +850,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
searchTable0() { // 查询标准件
|
|
|
|
searchTable0() { // 查询标准件
|
|
|
|
this.checked ? this.radio = 2 : this.radio = 1
|
|
|
|
this.checked ? this.radio = 2 : this.radio = 1
|
|
|
|
console.log(this.checked, this.radio, 991)
|
|
|
|
|
|
|
|
this.loading = true
|
|
|
|
this.loading = true
|
|
|
|
this.MaterialCategoryValue ? this.check1 = 1 : this.check1 = 0
|
|
|
|
this.MaterialCategoryValue ? this.check1 = 1 : this.check1 = 0
|
|
|
|
this.MaterialVarietyValue ? this.check2 = 1 : this.check2 = 0
|
|
|
|
this.MaterialVarietyValue ? this.check2 = 1 : this.check2 = 0
|
|
|
|
@@ -965,11 +861,10 @@ export default {
|
|
|
|
this.materialSpec ? check2 = 1 : check2 = 0
|
|
|
|
this.materialSpec ? check2 = 1 : check2 = 0
|
|
|
|
this.materialModel ? check3 = 1 : check3 = 0
|
|
|
|
this.materialModel ? check3 = 1 : check3 = 0
|
|
|
|
this.totalnumber = 0
|
|
|
|
this.totalnumber = 0
|
|
|
|
// this.dateRange ? check4 = 0 : (check4 = 0, this.dateRange = '')
|
|
|
|
|
|
|
|
searchTable1(this.pageCurrent0, this.pageSize0, this.check1, this.MaterialCategoryValue, this.check2, this.MaterialVarietyValue, this.check3, this.projectValue, check0, this.machineValue, check1, this.groupValue, this.check4, this.materialName, parseInt(this.radio), check2, this.materialSpec, check3, this.materialModel, 1, 0, '', '').then(response => {
|
|
|
|
searchTable1(this.pageCurrent0, this.pageSize0, this.check1, this.MaterialCategoryValue, this.check2, this.MaterialVarietyValue, this.check3, this.projectValue, check0, this.machineValue, check1, this.groupValue, this.check4, this.materialName, parseInt(this.radio), check2, this.materialSpec, check3, this.materialModel, 1, 0, '', '').then(response => {
|
|
|
|
this.tableData0 = response.data.rows
|
|
|
|
this.tableData0 = response.data.result
|
|
|
|
this.totalnumber = response.data.rows.length
|
|
|
|
this.totalnumber = parseInt(response.data.output[0].TotalCount)
|
|
|
|
this.total0 = response.data.total
|
|
|
|
this.total0 = parseInt(response.data.output[0].TotalCount)
|
|
|
|
this.loading = false
|
|
|
|
this.loading = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@@ -987,9 +882,9 @@ export default {
|
|
|
|
this.checked2 ? this.radio1 = 2 : this.radio1 = 1
|
|
|
|
this.checked2 ? this.radio1 = 2 : this.radio1 = 1
|
|
|
|
this.totalnumber = 0
|
|
|
|
this.totalnumber = 0
|
|
|
|
searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.MaterialCategoryValue, this.check2, this.MaterialVarietyValue, this.check3, this.projectValue, check0, this.machineValue, check1, this.groupValue, this.check4, this.materialName, parseInt(this.radio1), check2, this.materialSpec, check3, this.materialModel, 2, 0, '', '').then(response => {
|
|
|
|
searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.MaterialCategoryValue, this.check2, this.MaterialVarietyValue, this.check3, this.projectValue, check0, this.machineValue, check1, this.groupValue, this.check4, this.materialName, parseInt(this.radio1), check2, this.materialSpec, check3, this.materialModel, 2, 0, '', '').then(response => {
|
|
|
|
this.tableData1 = response.data.rows
|
|
|
|
this.tableData1 = response.data.result
|
|
|
|
this.totalnumber = response.data.rows.length
|
|
|
|
this.totalnumber = parseInt(response.data.output[0].TotalCount)
|
|
|
|
this.total1 = response.data.total
|
|
|
|
this.total1 = parseInt(response.data.output[0].TotalCount)
|
|
|
|
this.loading = false
|
|
|
|
this.loading = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@@ -1006,9 +901,9 @@ export default {
|
|
|
|
this.checked3 ? this.radio2 = 2 : this.radio2 = 1
|
|
|
|
this.checked3 ? this.radio2 = 2 : this.radio2 = 1
|
|
|
|
this.totalnumber = 0
|
|
|
|
this.totalnumber = 0
|
|
|
|
searchTable2(this.pageCurrent2, this.pageSize2, this.check3, this.projectValue, check5, this.machineValue, check6, this.groupValue, parseInt(this.radio2), check1, this.partNum, check2, this.partName, check3, this.partSpec, check4, this.partMaterial).then(response => {
|
|
|
|
searchTable2(this.pageCurrent2, this.pageSize2, this.check3, this.projectValue, check5, this.machineValue, check6, this.groupValue, parseInt(this.radio2), check1, this.partNum, check2, this.partName, check3, this.partSpec, check4, this.partMaterial).then(response => {
|
|
|
|
this.tableData2 = response.data.rows
|
|
|
|
this.tableData2 = response.data.result
|
|
|
|
this.totalnumber = response.data.rows.length
|
|
|
|
this.totalnumber = parseInt(response.data.output[0].TotalCount)
|
|
|
|
this.total2 = response.data.total
|
|
|
|
this.total2 = parseInt(response.data.output[0].TotalCount)
|
|
|
|
this.loading = false
|
|
|
|
this.loading = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|