外协到货

This commit is contained in:
zhangdingyu
2019-11-21 14:33:57 +08:00
parent 69be5fc949
commit 2883ed93f2

View File

@@ -1,117 +1,86 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-col :span="10">
<el-card> <el-card>
<span>表单号:</span> <!--<span>表单号:</span>-->
<el-input v-model="formNumber" size="small" placeholder="表单号" clearable style="width:150px"/> <!--<el-input v-model="formNumber" size="small" placeholder="表单号" clearable style="width:150px"/>-->
<span>外协厂家:</span> <span>厂家:</span>
<el-input v-model="manufacturers" size="small" placeholder="外协厂家" style="width:150px" clearable/> <el-input v-model="manufacturers" size="small" placeholder="厂家" style="width:160px" clearable @keyup.enter.native="pageSize=10;pageList=1;fetchData()"/>
<span>下达任务日期:</span> <!--<span>下达任务日期:</span>-->
<el-date-picker <!--<el-date-picker-->
v-model="time" <!--v-model="time"-->
type="date" <!--type="date"-->
size="small" <!--size="small"-->
placeholder="选择日期"/> <!--placeholder="选择日期"/>-->
<el-button type="success" size="mini" icon="el-icon-search" style="margin-left:10px" @click="pageSize=10;pageList=1;fetchData()">查询</el-button> <el-button type="success" size="mini" icon="el-icon-search" style="margin-left:10px" @click="pageSize=10;pageList=1;fetchData()">查询</el-button>
<el-tooltip :open-delay="1200" effect="dark" content="打印外协采购单" placement="top"> <el-tooltip :open-delay="1200" effect="dark" content="打印外协采购单" placement="top">
<el-button type="primary" size="mini" icon="el-icon-download" style="margin-left:10px" @click="exportTable('RWD')">导出外协加工任务</el-button> <el-button type="primary" size="mini" icon="el-icon-download" style="margin-left:10px" @click="exportTable('RWD')">导出单</el-button>
</el-tooltip> </el-tooltip>
</el-card> </el-card>
<el-card>
<el-card> <el-table v-loading="loading2" :data="List" highlight-current-row stripe size="mini" height="380" border @row-click="searchProcess" >
<el-table v-loading="loading2" :data="List" highlight-current-row stripe size="mini" height="350" border @row-click="searchProcess" > <el-table-column label="表单号" prop="表单号" align="center" min-width="200px">
<el-table-column label="付款状态" prop="实际付款时间" width="100" align="center"> <template slot-scope="scope">
<template slot-scope="scope"> {{ scope.row.表单号 }}
<el-tag v-if="scope.row.实际付款时间!==''" type="success" size="small" style="margin: 0px">已付款</el-tag> </template>
<el-tag v-else type="info" size="small" style="margin: 0px">未付款</el-tag> </el-table-column>
</template> <el-table-column label="外协厂家" prop="外协厂家" align="center" min-width="200px">
</el-table-column> <template slot-scope="scope">
<el-table-column label="表单号" prop="表单号" align="center" min-width="200px"> {{ scope.row.外协厂家 }}
<template slot-scope="scope"> </template>
{{ scope.row.表单号 }} </el-table-column>
</template> </el-table>
</el-table-column> <div class="block" style="margin-top: 10px;">
<el-table-column label="外协厂家" prop="外协厂家" align="center" min-width="200px"> <el-pagination
<template slot-scope="scope"> v-show="!loading2"
{{ scope.row.外协厂家 }} :current-page="currentPage"
</template> :page-sizes="[10, 20, 30, 40]"
</el-table-column> :page-size="pageSize"
<el-table-column label="任务下达日期" prop="任务下达日期" align="center" min-width="100px"> :total="total"
<template slot-scope="scope"> layout="total, sizes, prev, pager, next, jumper"
{{ scope.row.任务下达日期 }} @size-change="handleSizeChange"
</template> @current-change="handleCurrentChange"/>
</el-table-column> </div>
<el-table-column label="外协员" prop="外协计划员" align="center" > </el-card>
<template slot-scope="scope"> </el-col>
{{ scope.row.外协计划员 }} <el-col :span="14">
</template> <el-card>
</el-table-column> <el-button type="info" size="mini" icon="el-icon-arrow-down" style="margin-left:10px" @click="getSpareParts">收货</el-button>
<el-table-column label="运费" align="center" > <el-table ref="multipleTable" :data="List3" border stripe size="mini" highlight-current-row height="425" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange">
<template slot-scope="scope"> <el-table-column
{{ scope.row.运费 }} :selectable="selectable"
</template> type="selection"
</el-table-column> align="center"
</el-table> width="55"/>
<div class="block" style="margin-top: 10px;"> <el-table-column label="收货状态" width="100" align="center">
<el-pagination <template slot-scope="scope">
v-show="!loading2" <el-tag v-if="scope.row.到货状态===1" type="success" size="small" style="margin: 0px">已收货</el-tag>
:current-page="currentPage" <el-tag v-else type="info" size="small" style="margin: 0px">未收货</el-tag>
:page-sizes="[10, 20, 30, 40]" </template>
:page-size="pageSize" </el-table-column>
:total="total" <el-table-column label="零件图号" align="center" >
layout="total, sizes, prev, pager, next, jumper" <template slot-scope="scope">
@size-change="handleSizeChange" {{ scope.row.零件图号 }}
@current-change="handleCurrentChange"/> </template>
</div> </el-table-column>
</el-card> <el-table-column label="零件名称" align="center" >
<template slot-scope="scope">
<el-card> {{ scope.row.零件名称 }}
<el-table </template>
ref="multipleTable" </el-table-column>
:data="List3" <el-table-column label="数量" align="center" >
border <template slot-scope="scope">
stripe {{ scope.row.批次数量 }}
size="mini" </template>
highlight-current-row </el-table-column>
height="450" <el-table-column label="外协工序" align="center">
tooltip-effect="dark" <template slot-scope="scope">
style="width: 100%;margin-top: 20px" {{ scope.row.外协工序 }}
@selection-change="handleSelectionChange"> </template>
<el-table-column </el-table-column>
:selectable="selectable" </el-table>
type="selection" </el-card>
align="center" </el-col>
width="55"/>
<el-table-column label="收货状态" width="100" align="center">
<template slot-scope="scope">
<el-tag v-if="scope.row.到货状态===1" type="success" size="small" style="margin: 0px">已收货</el-tag>
<el-tag v-else type="info" size="small" style="margin: 0px">未收货</el-tag>
</template>
</el-table-column>
<el-table-column label="零件图号" align="center" >
<template slot-scope="scope">
{{ scope.row.零件图号 }}
</template>
</el-table-column>
<el-table-column label="零件名称" align="center" >
<template slot-scope="scope">
{{ scope.row.零件名称 }}
</template>
</el-table-column>
<el-table-column label="数量" align="center" >
<template slot-scope="scope">
{{ scope.row.批次数量 }}
</template>
</el-table-column>
<el-table-column label="外协工序" align="center">
<template slot-scope="scope">
{{ scope.row.外协工序 }}
</template>
</el-table-column>
</el-table>
<el-button type="info" size="mini" icon="el-icon-arrow-down" style="margin-left:10px;margin-top: 15px" @click="getSpareParts">收货</el-button>
</el-card>
<el-card> <el-card>
<div id="RWD"> <div id="RWD">
<table cellspacing="0px" align="center" width="100%" style=""> <table cellspacing="0px" align="center" width="100%" style="">
@@ -635,7 +604,6 @@ export default {
getSpareParts() { // 选入零件 getSpareParts() { // 选入零件
if (this.OutsouringNumber.length !== 0) { if (this.OutsouringNumber.length !== 0) {
Arrival(this.OutsouringNumber).then(response => { Arrival(this.OutsouringNumber).then(response => {
console.log(response.data)
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.$message.success('到货成功') this.$message.success('到货成功')
this.contrast = 3000000000000 this.contrast = 3000000000000