外协部分样式
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card style="width: 65%">
|
<el-card>
|
||||||
<div style="margin-top: 7px; margin-bottom: 7px">
|
<div style="margin-top: 7px; margin-bottom: 7px">
|
||||||
<span>外协厂家</span>
|
<span>外协厂家</span>
|
||||||
<el-input v-model="supplierNameValue" size="small" placeholder="外协厂家或零件图号" style="width: 180px" clearable/>
|
<el-input v-model="supplierNameValue" size="small" placeholder="外协厂家或零件图号" style="width: 180px" clearable/>
|
||||||
@@ -18,47 +18,29 @@
|
|||||||
<el-button type="primary" class="el-icon-download" size="small" style="margin: 10px 0 0 10px" plain @click="exportExcel">导出</el-button>
|
<el-button type="primary" class="el-icon-download" size="small" style="margin: 10px 0 0 10px" plain @click="exportExcel">导出</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="width: 70%">
|
<el-card>
|
||||||
<el-table
|
<el-table v-loading="loading" :data="tableData" highlight-current-row border stripe size="mini" height="700" style="width: 1210px">
|
||||||
v-loading="loading"
|
<el-table-column label="序号" align="center" type="index" width="50"/>
|
||||||
:data="tableData"
|
<el-table-column label="外协状态" align="center" width="90px">
|
||||||
highlight-current-row
|
|
||||||
border
|
|
||||||
stripe
|
|
||||||
size="mini"
|
|
||||||
style="width: 100%"
|
|
||||||
height="760">
|
|
||||||
<el-table-column
|
|
||||||
label="序号"
|
|
||||||
align="center"
|
|
||||||
type="index"
|
|
||||||
width="50"/>
|
|
||||||
<el-table-column
|
|
||||||
label="外协状态"
|
|
||||||
align="center"
|
|
||||||
width="70px">
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="Number(scope.row.到货状态)!==1" type="warning" size="mini">未到</el-tag>
|
<el-tag v-if="Number(scope.row.到货状态)!==1" type="warning" size="mini">未到</el-tag>
|
||||||
<el-tag v-if="Number(scope.row.到货状态)===1" type="success" size="mini">已到</el-tag>
|
<el-tag v-if="Number(scope.row.到货状态)===1" type="success" size="mini">已到</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="项目名称" align="center" width="140px">
|
||||||
label="项目名称"
|
<template slot-scope="scope">
|
||||||
align="center"
|
{{ scope.row.项目名称 }}
|
||||||
width="140px">
|
</template>
|
||||||
<template slot-scope="scope">{{ scope.row.项目名称 }}</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="零件图号" align="center" width="160px">
|
||||||
label="零件图号"
|
<template slot-scope="scope">
|
||||||
align="center"
|
{{ scope.row.零件图号 }}
|
||||||
width="160px">
|
</template>
|
||||||
<template slot-scope="scope">{{ scope.row.零件图号 }}</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="零件名称" align="center" width="120px">
|
||||||
label="零件名称"
|
<template slot-scope="scope">
|
||||||
align="center"
|
{{ scope.row.零件名称 }}
|
||||||
width="120px">
|
</template>
|
||||||
<template slot-scope="scope">{{ scope.row.零件名称 }}</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="数量" align="center" width="70">
|
<el-table-column label="数量" align="center" width="70">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -70,23 +52,20 @@
|
|||||||
{{ scope.row.外协工序 }}
|
{{ scope.row.外协工序 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="外协厂家" align="center" width="160px">
|
||||||
label="外协厂家"
|
<template slot-scope="scope">
|
||||||
align="center"
|
{{ scope.row.外协厂家名称 }}
|
||||||
width="160px">
|
</template>
|
||||||
<template slot-scope="scope">{{ scope.row.外协厂家名称 }}</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="外协单号" align="center" width="200">
|
||||||
label="外协单号"
|
<template slot-scope="scope">
|
||||||
align="center"
|
{{ scope.row.表单号 }}
|
||||||
width="200">
|
</template>
|
||||||
<template slot-scope="scope">{{ scope.row.表单号 }}</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="外协日期" align="center" width="100">
|
||||||
label="外协日期"
|
<template slot-scope="scope">
|
||||||
align="center"
|
{{ scope.row.任务下达日期.substr(0,10) }}
|
||||||
width="100">
|
</template>
|
||||||
<template slot-scope="scope">{{ scope.row.任务下达日期.substr(0,10) }}</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="block" style="margin-top: 10px;">
|
<div class="block" style="margin-top: 10px;">
|
||||||
|
|||||||
@@ -79,13 +79,10 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<!--<span>表单号:</span>-->
|
|
||||||
<!--<el-input v-model="formNumber" size="small" placeholder="表单号" clearable style="width:200px;margin-bottom: 10px"/>-->
|
|
||||||
<span>厂家:</span>
|
|
||||||
<el-input v-model="manufacturers" size="small" placeholder="外协厂家" style="width:160px" clearable @keyup.enter.native="pageSize=20;pageList=1;fetchData()" @clear="pageSize=20;pageList=1;fetchData()"/>
|
<el-input v-model="manufacturers" size="small" placeholder="外协厂家" style="width:160px" clearable @keyup.enter.native="pageSize=20;pageList=1;fetchData()" @clear="pageSize=20;pageList=1;fetchData()"/>
|
||||||
<el-button type="primary" size="mini" icon="el-icon-search" style="margin-left:10px" plain @click="pageSize=20;pageList=1;fetchData()">查询</el-button>
|
<el-button type="primary" size="mini" icon="el-icon-search" style="margin-left:10px" plain @click="pageSize=20;pageList=1;fetchData()">查询</el-button>
|
||||||
<el-checkbox v-model="isChecked" size="small" label="编辑已提交"/>
|
<el-checkbox v-model="isChecked" size="small" label="历史"/>
|
||||||
<el-button type="primary" size="mini" icon="el-icon-circle-plus-outline" style="margin-left:10px" @click="handleAdd()">新增</el-button>
|
<el-button type="primary" size="mini" icon="el-icon-circle-plus-outline" style="margin-left:1px" @click="handleAdd()">新增</el-button>
|
||||||
<el-table v-loading="loading2" :data="List" highlight-current-row height="450" size="mini" stripe border @row-click="searchProcess" >
|
<el-table v-loading="loading2" :data="List" highlight-current-row height="450" size="mini" stripe border @row-click="searchProcess" >
|
||||||
<el-table-column label="表单号" prop="表单号" align="center" min-width="155px">
|
<el-table-column label="表单号" prop="表单号" align="center" min-width="155px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -115,31 +112,10 @@
|
|||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
@current-change="handleCurrentChange"/>
|
@current-change="handleCurrentChange"/>
|
||||||
</div>
|
</div>
|
||||||
<!--<span>下达任务日期:</span>-->
|
|
||||||
<!--<el-date-picker-->
|
|
||||||
<!--type="date"-->
|
|
||||||
<!--size="small"-->
|
|
||||||
<!--placeholder="选择日期"/>-->
|
|
||||||
<!--<span>单据状态:</span>-->
|
|
||||||
<!--<el-select v-model="documentStatus" filterable placeholder="请选择" size="small" clearable>-->
|
|
||||||
<!--<el-option-->
|
|
||||||
<!--v-for="item in options"-->
|
|
||||||
<!--:key="item.value"-->
|
|
||||||
<!--:label="item.label"-->
|
|
||||||
<!--:value="item.value">-->
|
|
||||||
<!--<div style="float: left">{{ item.label }}</div>-->
|
|
||||||
<!--<div style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</div>-->
|
|
||||||
<!--</el-option>-->
|
|
||||||
<!--</el-select>-->
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="16">
|
<el-col :span="16">
|
||||||
<div>
|
<div>
|
||||||
<!--<span>下调金额:(百分比)</span>-->
|
<el-button type="warning" size="mini" icon="el-icon-arrow-down" style="margin-top:3px" plain @click="getSpareParts">选入零件</el-button>
|
||||||
<!--<el-input v-model="money" size="small" clearable style="width: 90px"/>-->
|
|
||||||
<!--<el-tooltip :open-delay="1200" effect="dark" content="计算选入零件的价格" placement="top">-->
|
|
||||||
<!--<el-button type="success" size="mini" icon="el-icon-edit" style="margin-left:10px;margin-top: 15px" @click="calculatingPrice">计算价格</el-button>-->
|
|
||||||
<!--</el-tooltip>-->
|
|
||||||
<el-button type="warning" size="mini" icon="el-icon-arrow-down" style="margin-left:10px" plain @click="getSpareParts">选入零件</el-button>
|
|
||||||
<el-button type="primary" size="mini" icon="el-icon-download" style="margin-left:10px;margin-top: 3px;float: right" plain @click="exportTable('RWD')">导出任务单</el-button>
|
<el-button type="primary" size="mini" icon="el-icon-download" style="margin-left:10px;margin-top: 3px;float: right" plain @click="exportTable('RWD')">导出任务单</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="success" size="mini" icon="el-icon-success" style="margin-left:10px;margin-top: 3px;float: right" plain @click="Deal">提交</el-button>
|
<el-button type="success" size="mini" icon="el-icon-success" style="margin-left:10px;margin-top: 3px;float: right" plain @click="Deal">提交</el-button>
|
||||||
|
|||||||
@@ -2,16 +2,8 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-card>
|
<el-card>
|
||||||
<!--<span>表单号:</span>-->
|
|
||||||
<!--<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:160px" clearable @keyup.enter.native="pageSize=20;pageList=1;fetchData()"/>
|
<el-input v-model="manufacturers" size="small" placeholder="厂家或外协任务单号" style="width:160px" clearable @keyup.enter.native="pageSize=20;pageList=1;fetchData()"/>
|
||||||
<!--<span>下达任务日期:</span>-->
|
|
||||||
<!--<el-date-picker-->
|
|
||||||
<!--v-model="time"-->
|
|
||||||
<!--type="date"-->
|
|
||||||
<!--size="small"-->
|
|
||||||
<!--placeholder="选择日期"/>-->
|
|
||||||
<el-button type="primary" size="mini" icon="el-icon-search" style="margin-left:10px" plain @click="pageSize=10;pageList=1;fetchData()">查询</el-button>
|
<el-button type="primary" size="mini" icon="el-icon-search" style="margin-left:10px" plain @click="pageSize=10;pageList=1;fetchData()">查询</el-button>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card>
|
<el-card>
|
||||||
@@ -42,8 +34,8 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="14">
|
<el-col :span="14">
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-button :disabled="loading=false" type="warning" size="mini" icon="el-icon-arrow-down" style="margin-left:10px" plain @click="getSpareParts">收货</el-button>
|
<el-button :disabled="loading" type="warning" size="mini" icon="el-icon-arrow-down" style="margin-left:10px" plain @click="getSpareParts">收货</el-button>
|
||||||
<el-table v-loading="loading" :data="List3" border size="mini" highlight-current-row height="595" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="List3" border size="mini" height="595" style="width: 100%" @selection-change="handleSelectionChange">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:selectable="selectable"
|
:selectable="selectable"
|
||||||
type="selection"
|
type="selection"
|
||||||
@@ -70,11 +62,6 @@
|
|||||||
{{ scope.row.批次数量 }}
|
{{ scope.row.批次数量 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!--<el-table-column label="外协工序" align="center">-->
|
|
||||||
<!--<template slot-scope="scope">-->
|
|
||||||
<!--{{ scope.row.外协工序 }}-->
|
|
||||||
<!--</template>-->
|
|
||||||
<!--</el-table-column>-->
|
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -214,8 +201,8 @@ export default {
|
|||||||
getTable(check, this.manufacturers, this.pageList, this.pageSize).then(response => {
|
getTable(check, this.manufacturers, this.pageList, this.pageSize).then(response => {
|
||||||
this.total = parseInt(response.data.total)
|
this.total = parseInt(response.data.total)
|
||||||
this.List = response.data.rows
|
this.List = response.data.rows
|
||||||
|
this.loading2 = false
|
||||||
})
|
})
|
||||||
this.loading2 = false
|
|
||||||
},
|
},
|
||||||
// 控制某行是否可选
|
// 控制某行是否可选
|
||||||
selectable(row, index) {
|
selectable(row, index) {
|
||||||
@@ -223,8 +210,8 @@ export default {
|
|||||||
},
|
},
|
||||||
// 查询
|
// 查询
|
||||||
searchProcess(row) {
|
searchProcess(row) {
|
||||||
this.Number = row.外协加工任务单流水号
|
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
this.Number = row.外协加工任务单流水号
|
||||||
this.List3 = []
|
this.List3 = []
|
||||||
getParts(row.外协加工任务单流水号).then(response => {
|
getParts(row.外协加工任务单流水号).then(response => {
|
||||||
this.List3 = response.data
|
this.List3 = response.data
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
<span v-if="parseInt(scope.row.工序状态)===5" size="small">停产</span>
|
<span v-if="parseInt(scope.row.工序状态)===5" size="small">停产</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="是否外协" width="75" align="center">
|
<el-table-column label="是否外协" width="80" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-checkbox :disabled="parseInt(scope.row.工序状态)!==3||parseInt(scope.row.工艺编号)===29" v-model="checkBox[scope.$index]" @change="edit(scope.$index, scope.row)"/>
|
<el-checkbox :disabled="parseInt(scope.row.工序状态)!==3||parseInt(scope.row.工艺编号)===29" v-model="checkBox[scope.$index]" @change="edit(scope.$index, scope.row)"/>
|
||||||
</template>
|
</template>
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
{{ scope.row.计划日期 }}
|
{{ scope.row.计划日期 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="计划工时" align="center" width="85px">
|
<el-table-column label="计划工时" align="center" width="80px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.工序工时 }}
|
{{ scope.row.工序工时 }}
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -71,8 +71,6 @@ export default {
|
|||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
isActive(route) {
|
isActive(route) {
|
||||||
console.log(this.contactList)
|
|
||||||
this.contactList = []
|
|
||||||
if (!this.$route.meta.keepAlive) {
|
if (!this.$route.meta.keepAlive) {
|
||||||
this.$route.meta.keepAlive = true
|
this.$route.meta.keepAlive = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user