采购询价

This commit is contained in:
Vergil
2020-05-15 15:53:47 +08:00
parent 4a6dbfda10
commit 4aad06b9c3

View File

@@ -39,13 +39,6 @@
<el-tabs v-model="tabName" type="border-card" @tab-click="tabClick"> <el-tabs v-model="tabName" type="border-card" @tab-click="tabClick">
<el-tab-pane label="外购/标准件" name="外购件"> <el-tab-pane label="外购/标准件" name="外购件">
<el-row style="margin-bottom: 10px"> <el-row style="margin-bottom: 10px">
<!--<el-select v-model="projectValue" placeholder="项目名称" size="small" style="width:100px" 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" style="width:140px" clearable @keyup.enter.native="searchTable11()"/> <el-input v-model="materialName" placeholder="图号名称规格" size="small" style="width:140px" clearable @keyup.enter.native="searchTable11()"/>
<el-input v-model="supplierName" placeholder="供货商" size="small" style="width:140px" clearable/> <el-input v-model="supplierName" placeholder="供货商" size="small" style="width:140px" clearable/>
<el-select v-model="machineValue" placeholder="机床" size="small" clearable filterable> <el-select v-model="machineValue" placeholder="机床" size="small" clearable filterable>
@@ -66,20 +59,9 @@
style="width:250px" style="width:250px"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期"/> end-placeholder="结束日期"/>
<!--<el-select v-model="groupValue" placeholder="组号" style="width:100px" size="small" clearable filterable>-->
<!--<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" style="width: 100px" size="small"/>-->
<!--<el-input v-model="materialSpec" placeholder="物料规格" size="small" style="width:120px" clearable/>-->
<el-button type="primary" size="small" icon="el-icon-search" plain style="margin-left: 10px" @click="pageCurrent11=1;pageSize11=50;total11=0;searchTable11()">查询</el-button> <el-button type="primary" size="small" icon="el-icon-search" plain style="margin-left: 10px" @click="pageCurrent11=1;pageSize11=50;total11=0;searchTable11()">查询</el-button>
<el-button v-positive="'loading'" :disabled="false" type="search" size="small" icon="el-icon-download" style="margin-left: 10px" @click="exportUninquirySheet">导出未询价单</el-button> <el-button v-positive="'loading'" :disabled="false" type="search" size="small" icon="el-icon-download" style="margin-left: 10px" @click="exportUninquirySheet">导出未询价单</el-button>
<el-tooltip :open-delay="100" effect="dark" content="开启物料变更" placement="top"> <el-button type="distribution" size="small" @click="materialChange()">物料变更</el-button>
<el-switch v-model="switchValue" active-color="#13ce66" inactive-color="#ff4949" style="margin-left: 30px"/>
</el-tooltip>
<el-button :disabled="tiaozheng1_disable" type="primary" size="small" plain style="float: right;margin-right: 20px" @click="tiaozheng1">调整采购任务</el-button> <el-button :disabled="tiaozheng1_disable" type="primary" size="small" plain style="float: right;margin-right: 20px" @click="tiaozheng1">调整采购任务</el-button>
<el-select v-model="PersonValue" style="width:100px;float: right;" placeholder="人员" size="small" filterable clearable> <el-select v-model="PersonValue" style="width:100px;float: right;" placeholder="人员" size="small" filterable clearable>
<el-option <el-option
@@ -88,19 +70,6 @@
:label="item.label" :label="item.label"
:value="item.value"/> :value="item.value"/>
</el-select> </el-select>
<!--<el-popover v-model="visible" 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="visible = false;tiaozheng1()">确定</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>
<el-row> <el-row>
<el-table <el-table
@@ -111,23 +80,12 @@
style="width: 100%;max-height: 500px;" style="width: 100%;max-height: 500px;"
height="300px" height="300px"
size="mini" size="mini"
highlight-current-row
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange1" @selection-change="handleSelectionChange1"
@select="handleSelection"> @select="handleSelection"
@row-click="rowClick">
<el-table-column :selectable="selectable" align="center" width="43" type="selection" fixed="left"/> <el-table-column :selectable="selectable" align="center" width="43" type="selection" fixed="left"/>
<el-table-column v-if="switchValue" label="操作" align="center" width="110" fixed="left">
<template slot-scope="scope">
<el-button :disabled="parseInt(scope.row.询价状态编号)!==1||parseInt(scope.row.是否确认)!==1" type="distribution" size="mini" @click="materialChange(scope.row)">物料变更</el-button>
</template>
</el-table-column>
<!--<el-table-column label="状态" align="center" width="70">-->
<!--<template slot-scope="scope">-->
<!--<span v-if="unInquiry(scope.row)" style="color: orange">未询价</span>-->
<!--<span v-if="inquiry(scope.row)" style="color: blue">已询价</span>-->
<!--<span v-if="approval(scope.row)" style="color: green">审批中</span>-->
<!--<span v-if="purchased(scope.row)">已采购</span>-->
<!--</template>-->
<!--</el-table-column>-->
<!--物料名称排序--> <!--物料名称排序-->
<el-table-column label="名称" align="center" width="120" prop="物料名称" sortable="custom" fixed="left"> <el-table-column label="名称" align="center" width="120" prop="物料名称" sortable="custom" fixed="left">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -192,15 +150,10 @@
</el-table-column> </el-table-column>
<el-table-column label="使用滞货" align="center" width="80"> <el-table-column label="使用滞货" align="center" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<!--<el-tooltip class="item" effect="dark" content="使用滞货" placement="top-start">-->
<template v-if="parseInt(scope.row.询价状态编号)!==1||parseInt(scope.row.是否确认)!==1||Number(scope.row.滞货数量)===0"> <template v-if="parseInt(scope.row.询价状态编号)!==1||parseInt(scope.row.是否确认)!==1||Number(scope.row.滞货数量)===0">
</template> </template>
<el-button v-else :disabled="parseInt(scope.row.询价状态编号)!==1||parseInt(scope.row.是否确认)!==1||Number(scope.row.滞货数量)===0" icon="el-icon-goods" plain type="primary" size="mini" @click="useInventory(scope.row)"/> <el-button v-else :disabled="parseInt(scope.row.询价状态编号)!==1||parseInt(scope.row.是否确认)!==1||Number(scope.row.滞货数量)===0" icon="el-icon-goods" plain type="primary" size="mini" @click="useInventory(scope.row)"/>
<!--</el-tooltip>-->
<!--<el-tooltip class="item" effect="dark" content="取消使用滞货" placement="top-start">-->
<!--<el-button :disabled="parseInt(scope.row.询价状态编号)!==1||parseInt(scope.row.是否确认)!==1||Number(scope.row.使用滞货数量)===0" icon="el-icon-sold-out" plain type="danger" size="mini" @click="cancelUseInventory(scope.row)"/>-->
<!--</el-tooltip>-->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="可用滞货" align="center" width="80"> <el-table-column label="可用滞货" align="center" width="80">
@@ -223,17 +176,6 @@
{{ scope.row.组件设计者 || scope.row.机床设计者 || '—' }} {{ scope.row.组件设计者 || scope.row.机床设计者 || '—' }}
</template> </template>
</el-table-column> </el-table-column>
<!--<el-table-column label="询价单编号" align="center" min-width="100">-->
<!--<template slot-scope="scope">-->
<!--<b v-if="inquiry(scope.row)">{{ scope.row.询价单编号 }}</b>-->
<!--<b v-else></b>-->
<!--</template>-->
<!--</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> </el-table>
<div class="block" style="display: inline-block;width:1150px;float: right;"> <div class="block" style="display: inline-block;width:1150px;float: right;">
<div style="display: inline-block;float: right;"> <div style="display: inline-block;float: right;">
@@ -446,185 +388,6 @@
</el-tooltip> </el-tooltip>
</div> </div>
</el-tab-pane> </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="采购情况" 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="项目名称" prop="项目名称" min-width="100px">-->
<!--<template slot-scope="scope">-->
<!--{{ scope.row.项目名称 }}-->
<!--</template>-->
<!--</el-table-column>-->
<!--<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="组号" min-width="80px">-->
<!--<template slot-scope="scope">-->
<!--{{ scope.row.组号 }}-->
<!--</template>-->
<!--</el-table-column>-->
<!--<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" prop="物料品种" label="物料品种" min-width="100px">-->
<!--<template slot-scope="scope">-->
<!--{{ scope.row.物料品种 }}-->
<!--</template>-->
<!--</el-table-column>-->
<!--<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" prop="物料名称" label="名称" min-width="100px">-->
<!--<template slot-scope="scope">-->
<!--{{ scope.row.物料名称 }}-->
<!--</template>-->
<!--</el-table-column>-->
<!--<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="数量" 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" 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-tabs>
</el-col> </el-col>
</el-row> </el-row>
@@ -802,7 +565,6 @@
</el-col> </el-col>
</el-row> </el-row>
</el-card> </el-card>
<!--<div id="inquirySheet" style="width: 800px;margin: 0 auto;display:none">-->
<div id="inquirySheet" style="width: 800px;margin: 0 auto;display:none"> <div id="inquirySheet" style="width: 800px;margin: 0 auto;display:none">
<table class="inquirySheet" cellspacing="0px" align="center" border="1 solid black" width="100%"> <table class="inquirySheet" cellspacing="0px" align="center" border="1 solid black" width="100%">
<tr> <tr>
@@ -991,15 +753,26 @@
<el-dialog v-el-drag-dialog :visible.sync="dialogVisible3" title="物料变更选择" center style="min-height: 300px;" width="780px"> <el-dialog v-el-drag-dialog :visible.sync="dialogVisible3" title="物料变更选择" center style="min-height: 300px;" width="780px">
<el-row style="margin-bottom: 10px"> <el-row style="margin-bottom: 10px">
<span>物料名称</span> <el-col :span="10">
<el-input v-model="materialName0" placeholder="物料名称" size="small" clearable/> <div style="font-size: 18px;text-align: right">原物料: </div>
<span>物料规格</span> </el-col>
<el-input v-model="materialSpec0" placeholder="物料规格" size="small" clearable/> <el-col :span="14">
<div style="font-size: 18px;text-align: left">{{ materialOld111 }}</div>
</el-col>
</el-row> </el-row>
<el-row style="margin-bottom: 10px"> <el-row style="margin-bottom: 10px">
<span>物料型号</span> <el-col :span="10">
<div style="font-size: 18px;text-align: right">新物料: </div>
</el-col>
<el-col :span="14">
<div style="font-size: 18px;text-align: left;color: red">{{ materialNew }}</div>
</el-col>
</el-row>
<el-row style="margin-bottom: 10px">
<el-input v-model="materialName0" placeholder="物料名称" size="small" clearable/>
<el-input v-model="materialSpec0" placeholder="物料规格" size="small" clearable/>
<el-input v-model="materialModel0" placeholder="物料型号" size="small" clearable/> <el-input v-model="materialModel0" placeholder="物料型号" size="small" clearable/>
<el-button type="success" size="small" icon="el-icon-search" style="margin-left:10px" @click="pageCurrent02=1;pageSize02=10;total02=0;searchMaterial()">查询</el-button> <el-button type="success" size="small" icon="el-icon-search" style="margin-left:20px" @click="pageCurrent02=1;pageSize02=10;total02=0;searchMaterial()">查询</el-button>
</el-row> </el-row>
<el-table :data="tableData02" size="mini" style="width: 97%;max-height: 300px;margin-top:15px" height="400px" border highlight-current-row @row-click="selectNewMaterial"> <el-table :data="tableData02" size="mini" style="width: 97%;max-height: 300px;margin-top:15px" height="400px" border highlight-current-row @row-click="selectNewMaterial">
<el-table-column align="center" label="物料名称" min-width="150"> <el-table-column align="center" label="物料名称" min-width="150">
@@ -1029,8 +802,6 @@
@size-change="handleSizeChange02" @size-change="handleSizeChange02"
@current-change="handleCurrentChange02"/> @current-change="handleCurrentChange02"/>
</div> </div>
<span style="font-size: large;color: red">将原物料替换为: {{ materialNew }}</span>
<!--<el-input v-model="materialNew" size="small" readonly style="margin: 10px 10px 0 10px"></el-input>-->
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogVisible3=false">取消</el-button> <el-button size="small" @click="dialogVisible3=false">取消</el-button>
<el-button type="primary" size="small" @click="submitMaterialChange">确定</el-button> <el-button type="primary" size="small" @click="submitMaterialChange">确定</el-button>
@@ -1122,7 +893,6 @@
import { tiaozheng2, tiaozheng1, getPerson, getBillNum, searchMaterial, searchPart, searchSupplier, searchCreateInquirySheet, searchCreateInquirySheet2, searchSheetDetail, editInquirySheet, import { tiaozheng2, tiaozheng1, getPerson, getBillNum, searchMaterial, searchPart, searchSupplier, searchCreateInquirySheet, searchCreateInquirySheet2, searchSheetDetail, editInquirySheet,
createInquirySheet, deleteInquirySheet, addInquirySheet1, addInquirySheet2, outInquirySheet, searchAllMaterial, materialChange, saveOrder, createInquirySheet, deleteInquirySheet, addInquirySheet1, addInquirySheet2, outInquirySheet, searchAllMaterial, materialChange, saveOrder,
submitUseInventory, initProject, searchMachine, searchGroup, searchBaseInfo, editBaseInfo, searchMerge, changeNum } from '@/api/PurchasingCenter/CreateInquirySheet' submitUseInventory, initProject, searchMachine, searchGroup, searchBaseInfo, editBaseInfo, searchMerge, changeNum } from '@/api/PurchasingCenter/CreateInquirySheet'
// import { json2excel } from '@/utils/setMethods.js'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import { exportExcelMethod } from './exportExcel' import { exportExcelMethod } from './exportExcel'
import $ from 'jquery' import $ from 'jquery'
@@ -1132,6 +902,8 @@ export default {
name: '', // 创建询价单 name: '', // 创建询价单
data() { data() {
return { return {
materialOld111: '',
checkeddd: 0,
tiaozheng1_disable: false, tiaozheng1_disable: false,
createInquirySheet_disable: false, createInquirySheet_disable: false,
startTime: '', startTime: '',
@@ -1189,10 +961,6 @@ export default {
value: 0, value: 0,
label: '全部' label: '全部'
}, },
// {
// value: 1,
// label: '未分配'
// },
{ {
value: 2, value: 2,
label: '已分配', label: '已分配',
@@ -1352,10 +1120,20 @@ export default {
}, 500) }, 500)
}, },
methods: { methods: {
rowClick(row) {
this.groupPartNumValue = row.组件零件流水号
this.standardAndPurchaseValue = row.标准件和外购件流水号
this.materialOldValue = row.物料流水号
this.materialOld111 = row.物料名称 + ' ' + row.物料规格 + ' ' + row.物料型号
if (parseInt(row.询价状态编号) === 1 || parseInt(row.是否确认) === 1) {
this.checkeddd = 1
} else {
this.checkeddd = 0
}
},
// 2020 03 04 刘路加表头排序 // 2020 03 04 刘路加表头排序
// 1 供货商 2 机床图号 3 物料名称 4 物料型号 // 1 供货商 2 机床图号 3 物料名称 4 物料型号
sortChange(column, prop, order) { sortChange(column, prop, order) {
console.log(column + '-' + column.prop + '-' + column.order, 11111)
if (column.prop === '供货商') { if (column.prop === '供货商') {
this.ordername = 1 this.ordername = 1
} else if (column.prop === '机床图号') { } else if (column.prop === '机床图号') {
@@ -1374,15 +1152,7 @@ export default {
} }
this.searchTable11() this.searchTable11()
this.searchTable12() this.searchTable12()
// this.getTableData()
}, },
// timeSearch() {
// timeSearch().then(response => {
// this.startTime = [response.data[0].外购件开始时间, response.data[0].外购件结束时间]
// this.endTime = [response.data[0].基本件开始时间, response.data[0].基本件结束时间]
// this.searchTable11()
// })
// },
changeNumber(row) { changeNumber(row) {
changeNum(row.物料流水号, row.使用库存数, row.机床流水号, row.组件零件流水号, row.零件数量).then(response => { changeNum(row.物料流水号, row.使用库存数, row.机床流水号, row.组件零件流水号, row.零件数量).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
@@ -1417,16 +1187,6 @@ export default {
} }
}) })
}, },
// timeChange1() {
// if (this.startTime) {
// timeChange1(this.startTime[0], this.startTime[1])
// }
// },
// timeChange2() {
// if (this.endTime) {
// timeChange2(this.endTime[0], this.endTime[1])
// }
// },
Jump() { Jump() {
window.location.hash = '#PurchasingCenter/CreateInquirySheet' window.location.hash = '#PurchasingCenter/CreateInquirySheet'
}, },
@@ -1497,8 +1257,6 @@ export default {
}, },
clickCard1(project, machine) { clickCard1(project, machine) {
window.location.hash = '#PurchasingCenter/CreateInquirySheet' window.location.hash = '#PurchasingCenter/CreateInquirySheet'
// var hight = this.$refs.height1.offsetHeight
// document.documentElement.scrollTop = hight + 140
this.projectValue = project this.projectValue = project
this.machine = [] this.machine = []
this.machineValue = '' this.machineValue = ''
@@ -2482,11 +2240,13 @@ export default {
this.tableData3 = response.data this.tableData3 = response.data
}) })
}, },
materialChange(row) { // 物料变更 标准件和外购件 // 物料变更 标准件和外购件
this.dialogVisible3 = true materialChange() {
this.groupPartNumValue = row.组件零件流水号 if (this.groupPartNumValue) {
this.standardAndPurchaseValue = row.标准件和外购件流水号 if (this.checkeddd === 1) {
this.materialOldValue = row.物料流水号 this.dialogVisible3 = true
}
}
}, },
partChange(row) { // 零件变更 基本件 partChange(row) { // 零件变更 基本件
this.$message('没有基本件的标准库') this.$message('没有基本件的标准库')
@@ -2569,7 +2329,7 @@ export default {
margin-right: 10px; margin-right: 10px;
} }
.el-input{ .el-input{
width:150px; width:180px;
margin-right: 10px; margin-right: 10px;
} }
.el-cascader{ .el-cascader{