采购任务分配
This commit is contained in:
@@ -16,8 +16,8 @@ export const uploadInvoiceScan1 = `http://192.168.1.231:8411/submit/uploadInvoic
|
||||
export const download = `http://192.168.1.231:8411/submit/downloadFile.ashx` // ContractInformationManagement
|
||||
export const uploadPerson = `http://192.168.1.231:8411/submit/uploadPerson.ashx`
|
||||
export const uploadOP = `http://192.168.1.231:8411/submit/uploadOP.ashx`
|
||||
export const url = `http://192.168.1.231:8411/submit/MESCommonBase.ashx` // 采购件入库、离线件入库
|
||||
export const ExcelDownLoad = 'http://192.168.1.231:8411/submit/downloadFile.ashx' // 导出excel
|
||||
export const url = `http://192.168.0.110:8002/submit/MESCommonBase.ashx` // 采购件入库、离线件入库
|
||||
export const ExcelDownLoad = 'http://192.168.0.110:8002/submit/downloadFile.ashx' // 导出excel
|
||||
|
||||
// 技术中心程序发布时要更改下面所有的IP到0段
|
||||
export const ServerIP = `http://192.168.1.231:8411/webpage/file/`
|
||||
@@ -26,7 +26,7 @@ export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFil
|
||||
export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx`
|
||||
export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx`
|
||||
const service = axios.create({
|
||||
baseURL: `http://192.168.1.231:8411/submit/MESCommonBase.ashx`,
|
||||
baseURL: `http://192.168.0.110:8002/submit/MESCommonBase.ashx`,
|
||||
timeout: 1500000 // 请求超时时间
|
||||
})
|
||||
export default service
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
<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>
|
||||
<el-select v-model="projectValue" placeholder="项目名称" size="small" filterable clearable @change="projectChange">
|
||||
<el-option
|
||||
v-for="item in project"
|
||||
@@ -30,7 +29,6 @@
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<span>机床图号:</span>
|
||||
<el-select v-model="machineValue" placeholder="机床图号" size="small" filterable clearable @change="machineChange">
|
||||
<el-option
|
||||
v-for="item in machine"
|
||||
@@ -41,7 +39,6 @@
|
||||
<b style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</b>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<span style="margin-left: 5px">组号:</span>
|
||||
<el-select v-model="groupValue" placeholder="组号" size="small" filterable clearable width="100px">
|
||||
<el-option
|
||||
v-for="item in group"
|
||||
@@ -49,8 +46,8 @@
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<span style="margin-left: 10px">时间段:</span>
|
||||
<el-date-picker
|
||||
v-show="false"
|
||||
v-model="dateRange"
|
||||
:picker-options="pickerOptions"
|
||||
size="small"
|
||||
@@ -62,14 +59,10 @@
|
||||
style="width:250px"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"/>
|
||||
</el-row>
|
||||
<el-row style="margin-bottom: 5px">
|
||||
<span>物料状态:</span>
|
||||
<el-cascader :options="materialStatus" :props="{ checkStrictly: true }" v-model="materialStatusValue" size="small" width="100px" style="margin-top: 5px"/>
|
||||
<span style="margin-left: 0">物料类别:</span>
|
||||
<el-cascader :options="materialStatus" :props="{ checkStrictly: true }" v-model="materialStatusValue" size="small" width="100px"/>
|
||||
<el-select
|
||||
v-model="MaterialCategoryValue"
|
||||
placeholder="请选择物料类别"
|
||||
placeholder="物料类别"
|
||||
size="small"
|
||||
clearable
|
||||
@change="searchMaterialVariety">
|
||||
@@ -79,18 +72,6 @@
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<span>物料品种:</span>
|
||||
<el-select
|
||||
v-model="MaterialVarietyValue"
|
||||
placeholder="请选择物料品种"
|
||||
size="small"
|
||||
clearable>
|
||||
<el-option
|
||||
v-for="item in MaterialVariety"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<div style="float:right;">
|
||||
<span style="margin-left: 0">采购员:</span>
|
||||
<el-select v-model="personValue" placeholder="采购员" size="small" style="width: 100px">
|
||||
@@ -102,20 +83,23 @@
|
||||
</el-select>
|
||||
</div>
|
||||
</el-row>
|
||||
<el-row style="margin-bottom: 10px">
|
||||
<span style="margin-left: 0">物料名称:</span>
|
||||
<el-input v-model="materialName" placeholder="请选择物料名称" size="small" style="margin-top: 5px" clearable/>
|
||||
<span>物料规格:</span>
|
||||
<el-input v-model="materialSpec" placeholder="请选择物料规格" size="small" clearable/>
|
||||
<span>物料型号:</span>
|
||||
<el-input v-model="materialModel" placeholder="请选择物料型号" size="small" clearable/>
|
||||
<el-button
|
||||
type="success"
|
||||
<el-row style="margin-bottom: 5px">
|
||||
<el-select
|
||||
v-model="MaterialVarietyValue"
|
||||
placeholder="物料品种"
|
||||
size="small"
|
||||
icon="el-icon-search"
|
||||
style="margin-left: 10px;"
|
||||
@click="pageCurrent0=1;pageSize0=20;total0=0;searchTable0()">查询</el-button>
|
||||
<div style="float:right;padding-top:5px;">
|
||||
clearable>
|
||||
<el-option
|
||||
v-for="item in MaterialVariety"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-input v-model="materialName" placeholder="物料名称" size="small" clearable/>
|
||||
<el-input v-model="materialSpec" placeholder="物料规格" size="small" clearable/>
|
||||
<el-input v-model="materialModel" placeholder="物料型号" size="small" clearable/>
|
||||
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 10px;" @click="pageCurrent0=1;pageSize0=20;total0=0;searchTable0()">查询</el-button>
|
||||
<div style="float:right">
|
||||
<el-tooltip :open-delay="1000" effect="dark" content="选择采购员后,将物料分配给所选的采购员" placement="top">
|
||||
<el-button
|
||||
type="primary"
|
||||
@@ -137,7 +121,7 @@
|
||||
<el-row style="margin-bottom: 10px">
|
||||
<el-table v-loading="" :data="tableData0" size="mini" style="max-height: 600px" height="500px" border stripe @selection-change="handleSelectionChange1">
|
||||
<el-table-column :selectable="selectable" align="center" type="selection"/>
|
||||
<el-table-column align="center" label="采购情况" sortable prop="询价状态编号" min-width="100px">
|
||||
<el-table-column align="center" label="采购情况" 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>
|
||||
@@ -145,12 +129,12 @@
|
||||
<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">
|
||||
<el-table-column align="center" label="项目名称" 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">
|
||||
<el-table-column align="center" prop="机床图号" label="机床图号" min-width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.机床图号 }}
|
||||
</template>
|
||||
@@ -160,27 +144,27 @@
|
||||
{{ scope.row.组号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" sortable prop="物料类别" label="物料类别" min-width="100px">
|
||||
<el-table-column align="center" 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">
|
||||
<el-table-column align="center" 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">
|
||||
<el-table-column align="center" 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">
|
||||
<el-table-column align="center" 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">
|
||||
<el-table-column align="center" prop="物料规格" label="规格" min-width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料规格 }}
|
||||
</template>
|
||||
@@ -195,7 +179,7 @@
|
||||
{{ scope.row.备注 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" sortable prop="供货商" label="供货商" min-width="100px">
|
||||
<el-table-column align="center" prop="供货商" label="供货商" min-width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.供货商 }}
|
||||
</template>
|
||||
@@ -254,7 +238,6 @@
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="外购件" name="外购件">
|
||||
<el-row style="margin-bottom: 5px">
|
||||
<span style="margin-left: 0">项目名称:</span>
|
||||
<el-select v-model="projectValue" placeholder="项目名称" size="small" filterable clearable @change="projectChange">
|
||||
<el-option
|
||||
v-for="item in project"
|
||||
@@ -262,7 +245,6 @@
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<span>机床图号:</span>
|
||||
<el-select v-model="machineValue" placeholder="机床图号" size="small" filterable clearable @change="machineChange">
|
||||
<el-option
|
||||
v-for="item in machine"
|
||||
@@ -273,12 +255,26 @@
|
||||
<b style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</b>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<el-button
|
||||
type="success"
|
||||
<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
|
||||
v-model="MaterialCategoryValue"
|
||||
placeholder="物料类别"
|
||||
size="small"
|
||||
icon="el-icon-search"
|
||||
style="margin-left: 10px;"
|
||||
@click="pageCurrent1=1;pageSize1=20;total1=0;searchTable1()">查询</el-button>
|
||||
clearable
|
||||
@change="searchMaterialVariety">
|
||||
<el-option
|
||||
v-for="item in MaterialCategory"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<div style="float:right;">
|
||||
<span style="margin-left: 0">采购员:</span>
|
||||
<el-select v-model="personValue" placeholder="采购员" size="small" style="width: 100px">
|
||||
@@ -291,17 +287,27 @@
|
||||
</div>
|
||||
</el-row>
|
||||
<el-row style="margin-bottom: 5px">
|
||||
<span style="margin-left: 0">组 号:</span>
|
||||
<el-select v-model="groupValue" placeholder="组号" size="small" filterable clearable>
|
||||
<el-select
|
||||
v-model="MaterialVarietyValue"
|
||||
placeholder="物料品种"
|
||||
size="small"
|
||||
clearable>
|
||||
<el-option
|
||||
v-for="item in group"
|
||||
v-for="item in MaterialVariety"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<span style="margin-right: -10px">物料状态:</span>
|
||||
<el-cascader :options="materialStatus" :props="{ checkStrictly: true }" v-model="materialStatusValue" size="small" style="margin-left: 10px"/>
|
||||
<div style="float:right;padding-top:10px;">
|
||||
<el-input v-model="materialName" placeholder="物料名称" size="small" clearable/>
|
||||
<el-input v-model="materialSpec" placeholder="物料规格" size="small" clearable/>
|
||||
<el-input v-model="materialModel" placeholder="物料型号" size="small" clearable/>
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
icon="el-icon-search"
|
||||
style="margin-left: 10px;"
|
||||
@click="pageCurrent1=1;pageSize1=20;total1=0;searchTable1()">查询</el-button>
|
||||
<div style="float:right">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
@@ -316,45 +322,10 @@
|
||||
@click="executeReturn1">退回</el-button>
|
||||
</div>
|
||||
</el-row>
|
||||
<el-row style="margin-bottom: 15px">
|
||||
<span style="margin-left: 0">物料类别:</span>
|
||||
<el-select
|
||||
v-model="MaterialCategoryValue"
|
||||
placeholder="请选择"
|
||||
size="small"
|
||||
clearable
|
||||
@change="searchMaterialVariety">
|
||||
<el-option
|
||||
v-for="item in MaterialCategory"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<span>物料品种:</span>
|
||||
<el-select
|
||||
v-model="MaterialVarietyValue"
|
||||
placeholder="请选择"
|
||||
size="small"
|
||||
clearable>
|
||||
<el-option
|
||||
v-for="item in MaterialVariety"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
</el-row>
|
||||
<el-row style="margin-bottom: 15px">
|
||||
<span style="margin-left: 0">物料名称:</span>
|
||||
<el-input v-model="materialName" placeholder="物料名称" size="small" clearable/>
|
||||
<span>物料规格:</span>
|
||||
<el-input v-model="materialSpec" placeholder="物料规格" size="small" clearable/>
|
||||
<span>物料型号:</span>
|
||||
<el-input v-model="materialModel" placeholder="物料型号" size="small" clearable/>
|
||||
</el-row>
|
||||
<el-row style="margin-bottom: 10px">
|
||||
<el-table v-loading="" :data="tableData1" size="mini" style="max-height: 600px" height="500px" border stripe @selection-change="handleSelectionChange1">
|
||||
<el-table-column :selectable="selectable" align="center" type="selection"/>
|
||||
<el-table-column align="center" sortable prop="询价状态编号" label="采购情况" min-width="100px">
|
||||
<el-table-column align="center" prop="询价状态编号" label="采购情况" 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>
|
||||
@@ -362,12 +333,12 @@
|
||||
<el-tag v-if="parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" sortable prop="项目名称" label="项目名称" min-width="100px">
|
||||
<el-table-column align="center" 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">
|
||||
<el-table-column align="center" prop="机床图号" label="机床图号" min-width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.机床图号 }}
|
||||
</template>
|
||||
@@ -377,27 +348,27 @@
|
||||
{{ scope.row.组号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" sortable prop="物料类别" label="物料类别" min-width="100px">
|
||||
<el-table-column align="center" prop="物料类别" label="物料类别" min-width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料类别 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="物料品种" sortable prop="物料品种" min-width="100px">
|
||||
<el-table-column align="center" label="物料品种" prop="物料品种" min-width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料品种 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" sortable prop="物料型号" label="图号或型号" min-width="110px">
|
||||
<el-table-column align="center" 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">
|
||||
<el-table-column align="center" 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">
|
||||
<el-table-column align="center" prop="物料规格" label="规格" min-width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料规格 }}
|
||||
</template>
|
||||
@@ -412,7 +383,7 @@
|
||||
{{ scope.row.备注 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" sortable prop="供货商" label="供货商" min-width="100px">
|
||||
<el-table-column align="center" prop="供货商" label="供货商" min-width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.供货商 }}
|
||||
</template>
|
||||
@@ -468,7 +439,6 @@
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="基本件" name="基本件">
|
||||
<el-row style="margin-bottom: 5px">
|
||||
<span style="margin-left: 0">项目名称:</span>
|
||||
<el-select v-model="projectValue" placeholder="项目名称" size="small" filterable clearable @change="projectChange">
|
||||
<el-option
|
||||
v-for="item in project"
|
||||
@@ -476,7 +446,6 @@
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<span>机床图号:</span>
|
||||
<el-select v-model="machineValue" placeholder="机床图号" size="small" filterable clearable @change="machineChange">
|
||||
<el-option
|
||||
v-for="item in machine"
|
||||
@@ -487,12 +456,15 @@
|
||||
<b style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</b>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
icon="el-icon-search"
|
||||
style="margin-left: 10px;"
|
||||
@click="pageCurrent2=1;pageSize2=20;total2=0;searchTable2()">查询</el-button>
|
||||
<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-input v-model="partNum" placeholder="零件图号" size="small" clearable/>
|
||||
<div style="float:right">
|
||||
<span style="margin-left: 0">采购员:</span>
|
||||
<el-select v-model="personValue" placeholder="采购员" size="small" style="width: 100px">
|
||||
@@ -505,17 +477,16 @@
|
||||
</div>
|
||||
</el-row>
|
||||
<el-row style="margin-bottom: 5px">
|
||||
<span style="margin-left: 0">组 号:</span>
|
||||
<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>
|
||||
<span style="margin-right: -10px">物料状态:</span>
|
||||
<el-cascader :options="materialStatus" :props="{ checkStrictly: true }" v-model="materialStatusValue" size="small" style="margin-left: 10px"/>
|
||||
<div style="float:right;padding-top: 10px">
|
||||
<el-input v-model="partName" placeholder="零件名称" size="small" clearable/>
|
||||
<el-input v-model="partSpec" placeholder="零件规格" size="small" clearable/>
|
||||
<el-input v-model="partMaterial" placeholder="零件材料" size="small" clearable/>
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
icon="el-icon-search"
|
||||
style="margin-left: 10px;"
|
||||
@click="pageCurrent2=1;pageSize2=20;total2=0;searchTable2()">查询</el-button>
|
||||
<div style="float:right">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
@@ -530,22 +501,10 @@
|
||||
@click="executeReturn2">退回</el-button>
|
||||
</div>
|
||||
</el-row>
|
||||
<el-row style="margin-bottom: 15px">
|
||||
<span style="margin-left: 0">零件图号:</span>
|
||||
<el-input v-model="partNum" placeholder="零件图号" size="small" clearable/>
|
||||
<span>零件名称:</span>
|
||||
<el-input v-model="partName" placeholder="零件名称" size="small" clearable/>
|
||||
</el-row>
|
||||
<el-row style="margin-bottom: 15px">
|
||||
<span style="margin-left: 0">零件规格:</span>
|
||||
<el-input v-model="partSpec" placeholder="零件规格" size="small" clearable/>
|
||||
<span>零件材料:</span>
|
||||
<el-input v-model="partMaterial" placeholder="零件材料" size="small" clearable/>
|
||||
</el-row>
|
||||
<el-row style="margin-bottom: 10px">
|
||||
<el-table v-loading="" :data="tableData2" size="mini" style="max-height: 600px" height="500px" border stripe @selection-change="handleSelectionChange2">
|
||||
<el-table-column :selectable="selectable" align="center" type="selection"/>
|
||||
<el-table-column align="center" sortable prop="询价状态编号" label="采购情况" min-width="80px">
|
||||
<el-table-column align="center" prop="询价状态编号" label="采购情况" min-width="80px">
|
||||
<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>
|
||||
@@ -553,32 +512,32 @@
|
||||
<el-tag v-if="parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" sortable prop="项目名称" label="项目名称" min-width="100px">
|
||||
<el-table-column align="center" 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">
|
||||
<el-table-column align="center" 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="80px">
|
||||
<el-table-column align="center" prop="组号" 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">
|
||||
<el-table-column align="center" 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">
|
||||
<el-table-column align="center" 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">
|
||||
<el-table-column align="center" prop="规格" label="规格" min-width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.规格 }}
|
||||
</template>
|
||||
@@ -598,7 +557,7 @@
|
||||
{{ scope.row.备注 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" sortable prop="供货商" label="供货商" min-width="100px">
|
||||
<el-table-column align="center" prop="供货商" label="供货商" min-width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.供货商 }}
|
||||
</template>
|
||||
@@ -935,20 +894,22 @@ export default {
|
||||
searchMaterialVariety() { // 初始化物料品种
|
||||
this.MaterialVariety = []
|
||||
this.MaterialVarietyValue = ''
|
||||
this.getSelect(initMaterialVariety, ['物料品种', '物料品种流水号'], 'MaterialVariety', this.MaterialCategoryValue)
|
||||
if (this.MaterialCategoryValue) {
|
||||
this.getSelect(initMaterialVariety, ['物料品种', '物料品种流水号'], 'MaterialVariety', this.MaterialCategoryValue)
|
||||
}
|
||||
},
|
||||
searchTable0() { // 查询标准件
|
||||
this.MaterialCategoryValue ? this.check1 = 1 : this.check1 = 0
|
||||
this.MaterialVarietyValue ? this.check2 = 1 : this.check2 = 0
|
||||
this.projectValue ? this.check3 = 1 : this.check3 = 0
|
||||
let check0, check1, check2, check3, check4
|
||||
let check0, check1, check2, check3
|
||||
this.machineValue ? check0 = 1 : check0 = 0
|
||||
this.groupValue ? check1 = 1 : check1 = 0
|
||||
this.materialName ? this.check4 = 1 : this.check4 = 0
|
||||
this.materialSpec ? check2 = 1 : check2 = 0
|
||||
this.materialModel ? check3 = 1 : check3 = 0
|
||||
this.dateRange ? check4 = 1 : (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, this.materialStatusValue[this.materialStatusValue.length - 1], check2, this.materialSpec, check3, this.materialModel, 1, check4, this.dateRange[0], this.dateRange[1]).then(response => {
|
||||
// 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, this.materialStatusValue[this.materialStatusValue.length - 1], check2, this.materialSpec, check3, this.materialModel, 1, 0, '', '').then(response => {
|
||||
this.tableData0 = response.data.rows
|
||||
this.total0 = response.data.total
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user