This commit is contained in:
lixin
2018-11-26 17:33:49 +08:00
6 changed files with 100 additions and 129 deletions

View File

@@ -143,24 +143,24 @@
{{ scope.row.零件类型名称 }} {{ scope.row.零件类型名称 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="是否外协" align="center" width="90"> <!--<el-table-column label="是否外协" align="center" width="90">-->
<template slot-scope="scope"> <!--<template slot-scope="scope">-->
<el-checkbox v-model="tableData[scope.$index].checked_waixie" @change="gaibianwaixie(scope.$index, scope.row)"/> <!--<el-checkbox v-model="tableData[scope.$index].checked_waixie" @change="gaibianwaixie(scope.$index, scope.row)"/>-->
外协 <!--外协-->
</template> <!--</template>-->
</el-table-column> <!--</el-table-column>-->
<el-table-column label="是否带料" align="center" width="90"> <!--<el-table-column label="是否带料" align="center" width="90">-->
<template slot-scope="scope"> <!--<template slot-scope="scope">-->
<el-checkbox :disabled="!tableData[scope.$index].checked_waixie" v-model="tableData[scope.$index].checked_dailiao"/> <!--<el-checkbox :disabled="!tableData[scope.$index].checked_waixie" v-model="tableData[scope.$index].checked_dailiao"/>-->
带料 <!--带料-->
</template> <!--</template>-->
</el-table-column> <!--</el-table-column>-->
<el-table-column label="是否着急" align="center" width="90"> <!--<el-table-column label="是否着急" align="center" width="90">-->
<template slot-scope="scope"> <!--<template slot-scope="scope">-->
<el-checkbox v-model="tableData[scope.$index].checked_zhaoji"/> <!--<el-checkbox v-model="tableData[scope.$index].checked_zhaoji"/>-->
着急 <!--着急-->
</template> <!--</template>-->
</el-table-column> <!--</el-table-column>-->
<!--<el-table-column prop="name" label="打回原因" width="170" align="center">--> <!--<el-table-column prop="name" label="打回原因" width="170" align="center">-->
<!--<template slot-scope="scope">--> <!--<template slot-scope="scope">-->
<!--<el-input v-model="tableData[scope.$index].name" type="textarea" :rows="1" style="width:150px" placeholder="原因">--> <!--<el-input v-model="tableData[scope.$index].name" type="textarea" :rows="1" style="width:150px" placeholder="原因">-->
@@ -176,7 +176,7 @@
<el-button <el-button
size="mini" size="mini"
type="primary" type="primary"
@click="handleDele(scope.$index, scope.row, 'form1')">打回档案</el-button> @click="handleDele(scope.$index, scope.row, 'form1')">打回</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -190,16 +190,10 @@
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange"/> @current-change="handleCurrentChange"/>
<el-checkbox v-model="checked_baitu" style="margin-top:0px">是否白图</el-checkbox> <!--<el-checkbox v-model="checked_baitu" style="margin-top:0px">是否白图</el-checkbox>-->
<el-checkbox v-model="checked_gaonandu">是否高难度</el-checkbox> <!--<el-checkbox v-model="checked_gaonandu">是否高难度</el-checkbox>-->
<el-button type="primary" size="small" style="float:right;margin-top:10px" @click="production">投产</el-button> <el-button type="primary" size="small" style="float:right;margin-top:10px" @click="production">投产</el-button>
</div> </div>
<!--<el-row>-->
<!--<el-checkbox v-model="checked_baitu" style="margin-top:20px">是否白图</el-checkbox>-->
<!--<el-checkbox v-model="checked_gaonandu">是否高难度</el-checkbox>-->
<!--<el-button type="primary" size="small" @click="production" style="float:right;margin-top:10px">投产</el-button>-->
<!--</el-row>-->
</div> </div>
</el-card> </el-card>
@@ -236,14 +230,14 @@
label="批次数量"> label="批次数量">
<template slot-scope="scope">{{ scope.row.批次数量 }}</template> <template slot-scope="scope">{{ scope.row.批次数量 }}</template>
</el-table-column> </el-table-column>
<el-table-column <!--<el-table-column-->
label="是否外协"> <!--label="是否外协">-->
<template slot-scope="scope">{{ scope.row.是否外协 }}</template> <!--<template slot-scope="scope">{{ scope.row.是否外协 }}</template>-->
</el-table-column> <!--</el-table-column>-->
<el-table-column <!--<el-table-column-->
label="是否带料"> <!--label="是否带料">-->
<template slot-scope="scope">{{ scope.row.是否带料 }}</template> <!--<template slot-scope="scope">{{ scope.row.是否带料 }}</template>-->
</el-table-column> <!--</el-table-column>-->
<el-table-column <el-table-column
label="机加工开始时间"> label="机加工开始时间">
<template slot-scope="scope">{{ scope.row.机加工开始时间 }}</template> <template slot-scope="scope">{{ scope.row.机加工开始时间 }}</template>

View File

@@ -73,12 +73,12 @@
type="selection" type="selection"
align="center" align="center"
width="35"/> width="35"/>
<el-table-column label="零件图号" align="center" width="200"> <el-table-column label="零件图号" align="center" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.零件图号 }} {{ scope.row.零件图号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="零件名称" align="center" width="130"> <el-table-column label="零件名称" align="center" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.零件名称 }} {{ scope.row.零件名称 }}
</template> </template>
@@ -103,42 +103,42 @@
{{ scope.row.工序数量 }} {{ scope.row.工序数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="是否超负荷" align="center" width="100"> <!--<el-table-column label="是否超负荷" align="center" width="100">-->
<template slot-scope="scope"> <!--<template slot-scope="scope">-->
{{ scope.row.是否超负荷 }} <!--{{ scope.row.是否超负荷 }}-->
</template> <!--</template>-->
</el-table-column> <!--</el-table-column>-->
<el-table-column label="外协" width="100" align="center"> <!--<el-table-column label="外协" width="100" align="center">-->
<template slot-scope="scope"> <!--<template slot-scope="scope">-->
<el-checkbox v-model="scope.row.是否预计外协" @change="table1Out(scope.row)">外协</el-checkbox> <!--<el-checkbox v-model="scope.row.是否预计外协" @change="table1Out(scope.row)">外协</el-checkbox>-->
</template> <!--</template>-->
</el-table-column> <!--</el-table-column>-->
<el-table-column label="加工件合格" align="center" width="230"> <!--<el-table-column label="加工件合格" align="center" width="230">-->
<template slot-scope="scope"> <!--<template slot-scope="scope">-->
<el-date-picker <!--<el-date-picker-->
v-model="tableData[scope.$index].加工件合格时间" <!--v-model="tableData[scope.$index].加工件合格时间"-->
size="mini" <!--size="mini"-->
type="date" <!--type="date"-->
value-format="yyyy-MM-dd" <!--value-format="yyyy-MM-dd"-->
placeholder="选择加工件合格时间" <!--placeholder="选择加工件合格时间"-->
@change="timeChange(scope.row)"/> <!--@change="timeChange(scope.row)"/>-->
</template> <!--</template>-->
</el-table-column> <!--</el-table-column>-->
<el-table-column label="板焊结束" width="150" align="center"> <!--<el-table-column label="板焊结束" width="150" align="center">-->
<template slot-scope="scope"> <!--<template slot-scope="scope">-->
{{ scope.row.板焊 }} <!--{{ scope.row.板焊 }}-->
</template> <!--</template>-->
</el-table-column> <!--</el-table-column>-->
<el-table-column label="操作" width="200px" align="center" fixed="right"> <!--<el-table-column label="操作" width="200px" align="center" fixed="right">-->
<template slot-scope="scope" align="center"> <!--<template slot-scope="scope" align="center">-->
<el-button <!--<el-button-->
size="mini" <!--size="mini"-->
type="primary" <!--type="primary"-->
class="el-icon-edit" <!--class="el-icon-edit"-->
@click="PlateWelding(scope.$index, scope.row, 'form1')">板焊</el-button> <!--@click="PlateWelding(scope.$index, scope.row, 'form1')">板焊</el-button>-->
<!--<el-button size="mini" type="primary" @click="inBatches">分批</el-button>--> <!--&lt;!&ndash;<el-button size="mini" type="primary" @click="inBatches">分批</el-button>&ndash;&gt;-->
</template> <!--</template>-->
</el-table-column> <!--</el-table-column>-->
</el-table> </el-table>
<div v-if="是否扫描 === false" class="block" style="margin-top: 10px;"> <div v-if="是否扫描 === false" class="block" style="margin-top: 10px;">
<el-pagination <el-pagination

View File

@@ -22,6 +22,7 @@
:data="tableData3" :data="tableData3"
border border
stripe stripe
size="small"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%;" style="width: 100%;"
height="650"> height="650">
@@ -43,30 +44,31 @@
<template slot-scope="scope">{{ scope.row.工艺名称简称 }}</template> <template slot-scope="scope">{{ scope.row.工艺名称简称 }}</template>
</el-table-column> </el-table-column>
<el-table-column label="计算方式" width="100" align="center">
<template slot-scope="scope">
<el-tag v-if="parseInt(scope.row.外协价格计算标准流水号)===1" type="success" size="small">工时</el-tag>
<el-tag v-if="parseInt(scope.row.外协价格计算标准流水号)===2" type="success" size="small">重量</el-tag>
<el-tag v-if="parseInt(scope.row.外协价格计算标准流水号)===3" type="success" size="small">面积</el-tag>
</template>
</el-table-column>
<el-table-column align="center" label="工时价格(元/分)"> <el-table-column align="center" label="工时价格(元/分)">
<template slot-scope="scope"> <template slot-scope="scope">
<div :class="colorCode1[scope.$index]"> {{ scope.row.外协价格1 }}
<h4>{{ scope.row.外协价格1 }}</h4>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="重量价格(元/kg)"> <el-table-column align="center" label="重量价格(元/kg)">
<template slot-scope="scope"> <template slot-scope="scope">
<div :class="colorCode2[scope.$index]"> {{ scope.row.重量价格1 }}
<h4>{{ scope.row.重量价格1 }}</h4>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="面积价格(元/m2)"> <el-table-column align="center" label="面积价格(元/m2)">
<template slot-scope="scope"> <template slot-scope="scope">
<div :class="colorCode3[scope.$index]"> {{ scope.row.面积价格1 }}
<h4>{{ scope.row.面积价格1 }}</h4>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="130px" align="center"> <el-table-column label="操作" width="130px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@@ -227,21 +229,6 @@ export default {
getTable(this.Code_Check, this.Code, this.Code_Check1, this.processClassificationValue, this.pageList, this.pageSize).then(response => { getTable(this.Code_Check, this.Code, this.Code_Check1, this.processClassificationValue, this.pageList, this.pageSize).then(response => {
this.total = parseInt(response.data.total) this.total = parseInt(response.data.total)
if (response.data.rows.length !== 0) { if (response.data.rows.length !== 0) {
for (let i = 0; i < response.data.rows.length; i++) {
if (response.data.rows[i].外协价格计算标准流水号 === '1') {
this.colorCode1.push('mianji')
this.colorCode2.push('')
this.colorCode3.push('')
} else if (response.data.rows[i].外协价格计算标准流水号 === '2') {
this.colorCode1.push('')
this.colorCode2.push('mianji')
this.colorCode3.push('')
} else {
this.colorCode1.push('')
this.colorCode2.push('')
this.colorCode3.push('mianji')
}
}
this.tableData3 = response.data.rows this.tableData3 = response.data.rows
} }
}) })

View File

@@ -56,12 +56,18 @@
</el-card> </el-card>
<el-card> <el-card>
<el-table v-loading="loading" :data="tableData" :row-class-name="tableRowClassName" height="580" style="width: 100%;" border element-loading-text="拼命加载中" @row-click="getParts"> <el-table v-loading="loading" :data="tableData" height="580" style="width: 100%;" border element-loading-text="拼命加载中" @row-click="getParts">
<el-table-column <el-table-column
label=" " label=" "
type="index" type="index"
align="center" align="center"
width="50"/> width="50"/>
<el-table-column label="付款状态" width="100" align="center">
<template slot-scope="scope">
<el-tag v-if="scope.row.实际付款时间!==''" type="success" size="small">已付款</el-tag>
<el-tag v-else type="info" size="small">未付款</el-tag>
</template>
</el-table-column>
<el-table-column label="表单号" align="center" width="280px"> <el-table-column label="表单号" align="center" width="280px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.表单号 }} {{ scope.row.表单号 }}
@@ -425,14 +431,6 @@ export default {
this.dialogFormVisible2 = false this.dialogFormVisible2 = false
this.$refs[formName].resetFields() this.$refs[formName].resetFields()
}, },
// 表格颜色
tableRowClassName({ row }) {
if (row.实际付款时间 !== '') {
return 'fukuan'
} else {
return ''
}
},
// 获取表格2数据 // 获取表格2数据
getParts(row) { getParts(row) {
this.loading2 = true this.loading2 = true

View File

@@ -19,7 +19,13 @@
</el-card> </el-card>
<el-card> <el-card>
<el-table v-loading="loading2" :data="List" :row-class-name="tableRowClassName2" highlight-current-row height="350" border @row-click="searchProcess" > <el-table v-loading="loading2" :data="List" highlight-current-row height="350" border @row-click="searchProcess" >
<el-table-column label="单据状态" width="100" align="center">
<template slot-scope="scope">
<el-tag v-if="scope.row.单据状态==='成交'" type="success" size="small">成交</el-tag>
<el-tag v-else type="info" size="small">未成交</el-tag>
</template>
</el-table-column>
<el-table-column label="表单号" align="center" min-width="200px"> <el-table-column label="表单号" align="center" min-width="200px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.表单号 }} {{ scope.row.表单号 }}
@@ -1542,14 +1548,6 @@ export default {
return '' return ''
} }
}, },
// 表格颜色
tableRowClassName2({ row }) {
if (row.单据状态 === '成交') {
return 'chengjiao'
} else {
return ''
}
},
// 分页 // 分页
handleSizeChange(val) { handleSizeChange(val) {
this.pageList = 1 this.pageList = 1

View File

@@ -16,11 +16,9 @@
align="center" align="center"
width="50"/> width="50"/>
<el-table-column label="零件图号" align="center" width="380px"> <el-table-column label="零件图号" align="center" width="380px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.零件图号 }} {{ scope.row.零件图号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="零件名称" align="center" width="320px"> <el-table-column label="零件名称" align="center" width="320px">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -57,19 +55,23 @@
</el-card> </el-card>
<el-card> <el-card>
<el-table v-loading="loading2" :data="tableData2" :row-class-name="tableRowClassName" height="350" style="width: 100%;" border element-loading-text="拼命加载中"> <el-table v-loading="loading2" :data="tableData2" height="350" style="width: 100%;" border element-loading-text="拼命加载中">
<el-table-column <el-table-column
label=" " label=" "
type="index" type="index"
align="center" align="center"
width="50"/> width="50"/>
<el-table-column label="序间外协" width="100" align="center"> <el-table-column label="序间外协" width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-checkbox v-model="checkBox[scope.$index]" @change="edit(scope.$index, scope.row)">选择</el-checkbox> <el-checkbox v-model="checkBox[scope.$index]" @change="edit(scope.$index, scope.row)">选择</el-checkbox>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="外协状态" width="100" align="center">
<template slot-scope="scope">
<el-tag v-if="parseInt(scope.row.工序间是否外协)===2" type="success" size="small">外协</el-tag>
<el-tag v-else size="small">自制</el-tag>
</template>
</el-table-column>
<el-table-column label="工艺名称" align="center" width="220px"> <el-table-column label="工艺名称" align="center" width="220px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.工艺名称 }} {{ scope.row.工艺名称 }}
@@ -252,14 +254,6 @@ export default {
handleCurrentChange1(val) { handleCurrentChange1(val) {
this.pageCurrent1 = val this.pageCurrent1 = val
this.searchTable() this.searchTable()
},
// 表格颜色
tableRowClassName({ row }) {
if (row.工序间是否外协 === 2) {
return 'waixie'
} else {
return ''
}
} }
} }
} }