This commit is contained in:
chenjianan
2019-04-10 08:35:36 +08:00
parent a8e6db24de
commit cf8cfac93b
2 changed files with 66 additions and 66 deletions

View File

@@ -33,7 +33,7 @@
</el-card>
<el-card>
<el-table v-loading="loading" :data="tableData" height="580" size="mini" style="width: 100%;" border element-loading-text="拼命加载中">
<el-table v-loading="loading" :data="tableData" height="640" size="mini" style="width: 100%;" border element-loading-text="拼命加载中">
<el-table-column label="项目编号" align="center" width="140px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
@@ -44,17 +44,17 @@
</template>
</template>
</el-table-column>
<el-table-column label="项目名称" align="center" width="200px">
<el-table-column label="项目名称" align="center" width="130px">
<template slot-scope="scope">
{{ scope.row.项目名称 }}
</template>
</el-table-column>
<el-table-column label="机床图号" align="center" width="150px">
<el-table-column label="机床图号" align="center" width="110px">
<template slot-scope="scope">
{{ scope.row.机床图号 }}
</template>
</el-table-column>
<el-table-column label="机床名称" align="center" width="200px">
<el-table-column label="机床名称" align="center" width="130px">
<template slot-scope="scope">
{{ scope.row.机床名称 }}
</template>
@@ -64,25 +64,25 @@
{{ scope.row.机床数量 }}
</template>
</el-table-column>
<el-table-column label="签订日期" align="center" width="150px">
<el-table-column label="签订日期" align="center" width="100px">
<template slot-scope="scope">
{{ scope.row.合同签订日期 }}
</template>
</el-table-column>
<el-table-column label="交货期" align="center" width="150px">
<el-table-column label="交货期" align="center" width="100px">
<template slot-scope="scope">
{{ scope.row.发货节点 }}
</template>
</el-table-column>
<el-table-column label="客户名称" align="center" width="250px">
<el-table-column label="客户名称" align="center" width="130px">
<template slot-scope="scope">
{{ scope.row.客户名称 }}
</template>
</el-table-column>
<el-table-column label="设计者" align="center" width="100px">
<el-table-column label="设计者" align="center" width="90px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-input v-model="scope.row.机床设计者" size="mini"/>
<el-input v-model="scope.row.机床设计者" size="mini" style="width: 100%"/>
</template>
<template v-else>
{{ scope.row.机床设计者 }}
@@ -92,7 +92,7 @@
<el-table-column label="发图" align="center" width="150px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.机床设计完成时间" value-format="yyyy-MM-dd" size="mini" type="date"/>
<el-date-picker v-model="scope.row.机床设计完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
<el-button type="text" @click="code = 1;openDialog(scope.row)">{{ scope.row.机床设计完成时间 }}</el-button>
@@ -102,7 +102,7 @@
<el-table-column label="采购" align="center" width="150px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.采购完成时间" value-format="yyyy-MM-dd" size="mini" type="date"/>
<el-date-picker v-model="scope.row.采购完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
<el-button type="text" @click="code = 2;openDialog(scope.row)">{{ scope.row.采购完成时间 }}</el-button>
@@ -112,7 +112,7 @@
<el-table-column label="备料" align="center" width="150px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.备料完成时间" value-format="yyyy-MM-dd" size="mini" type="date"/>
<el-date-picker v-model="scope.row.备料完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
<el-button type="text" @click="code = 3;openDialog(scope.row)">{{ scope.row.备料完成时间 }}</el-button>
@@ -122,7 +122,7 @@
<el-table-column label="制造" align="center" width="150px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.机床生产完成时间" value-format="yyyy-MM-dd" size="mini" type="date"/>
<el-date-picker v-model="scope.row.机床生产完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
<el-button type="text" @click="code = 4;openDialog(scope.row)">{{ scope.row.机床生产完成时间 }}</el-button>
@@ -132,7 +132,7 @@
<el-table-column label="装配" align="center" width="150px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.机床装配完成时间" value-format="yyyy-MM-dd" size="mini" type="date"/>
<el-date-picker v-model="scope.row.机床装配完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
<el-button type="text" @click="code = 5;openDialog(scope.row)">{{ scope.row.机床装配完成时间 }}</el-button>
@@ -149,7 +149,7 @@
<!--</template>-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column label="更新" align="center" width="200px">
<el-table-column label="更新" align="center" width="100px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-input v-model="scope.row.更新" size="mini"/>
@@ -159,7 +159,7 @@
</template>
</template>
</el-table-column>
<el-table-column label="操作" width="200px" align="center" fixed="right">
<el-table-column label="操作" width="150px" align="center" fixed="right">
<template slot-scope="scope">
<el-button v-if="scope.row.edit" type="success" size="small" @click="confirmEdit(scope.row)">确定</el-button>
<el-button v-else type="primary" size="small" @click="scope.row.edit=!scope.row.edit">编辑</el-button>
@@ -167,7 +167,7 @@
</template>
</el-table-column>
</el-table>
<div class="block">
<div class="block" style="margin-top: 15px">
<el-pagination
v-if="!loading"
:current-page="pageCurrent"
@@ -183,80 +183,80 @@
<!--<span>{{ title }}</span>-->
<el-button size="small" icon="el-icon-circle-plus" type="primary" style="margin-left: 10px" @click="addTable()">增加</el-button>
<el-table v-loading="loading2" :data="tableData2" size="mini" style="margin-top: 10px;width: 100%;" border element-loading-text="拼命加载中">
<el-table-column min-width="300px" label="组号" align="center" width="240px">
<el-table-column min-width="100px" label="组号" align="center">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-input v-model="scope.row.组号" size="mini"/>
<el-input v-model="scope.row.组号" size="mini" style="width: 100%"/>
</template>
<template v-else>
{{ scope.row.组号 }}
</template>
</template>
</el-table-column>
<el-table-column min-width="300px" label="任务名称" align="center" width="240px">
<el-table-column min-width="200px" label="任务名称" align="center">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-input v-model="scope.row.任务名称" size="mini"/>
<el-input v-model="scope.row.任务名称" size="mini" style="width: 100%"/>
</template>
<template v-else>
{{ scope.row.任务名称 }}
</template>
</template>
</el-table-column>
<el-table-column min-width="300px" label="负责人" align="center" width="240px">
<el-table-column min-width="100px" label="负责人" align="center">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-input v-model="scope.row.负责人" size="mini"/>
<el-input v-model="scope.row.负责人" size="mini" style="width: 100%"/>
</template>
<template v-else>
{{ scope.row.负责人 }}
</template>
</template>
</el-table-column>
<el-table-column label="接收任务时间" align="center" width="250px">
<el-table-column label="接收任务时间" align="center" width="150px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.接收任务时间" value-format="yyyy-MM-dd" size="mini" type="date"/>
<el-date-picker v-model="scope.row.接收任务时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
{{ scope.row.接收任务时间 }}
</template>
</template>
</el-table-column>
<el-table-column label="任务开始时间" align="center" width="250px">
<el-table-column label="任务开始时间" align="center" width="150px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.任务开始时间" value-format="yyyy-MM-dd" size="mini" type="date"/>
<el-date-picker v-model="scope.row.任务开始时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
{{ scope.row.任务开始时间 }}
</template>
</template>
</el-table-column>
<el-table-column label="计划完成时间" align="center" width="250px">
<el-table-column label="计划完成时间" align="center" width="150px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.计划完成时间" value-format="yyyy-MM-dd" size="mini" type="date"/>
<el-date-picker v-model="scope.row.计划完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
{{ scope.row.计划完成时间 }}
</template>
</template>
</el-table-column>
<el-table-column min-width="300px" label="货期" align="center" width="240px">
<el-table-column min-width="100px" label="货期" align="center">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-input v-model="scope.row.货期" size="mini"/>
<el-input v-model="scope.row.货期" size="mini" style="width: 100%"/>
</template>
<template v-else>
{{ scope.row.货期 }}
</template>
</template>
</el-table-column>
<el-table-column label="实际完成时间" align="center" width="250px">
<el-table-column label="实际完成时间" align="center" width="150px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.实际完成时间" value-format="yyyy-MM-dd" size="mini" type="date"/>
<el-date-picker v-model="scope.row.实际完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
{{ scope.row.实际完成时间 }}
@@ -266,14 +266,14 @@
<el-table-column min-width="300px" label="备注" align="center" width="240px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-input v-model="scope.row.备注" size="mini"/>
<el-input v-model="scope.row.备注" size="mini" style="width: 100%"/>
</template>
<template v-else>
{{ scope.row.备注 }}
</template>
</template>
</el-table-column>
<el-table-column label="操作" width="200px" align="center" fixed="right">
<el-table-column label="操作" width="180px" align="center" fixed="right">
<template slot-scope="scope">
<el-button v-if="scope.row.edit" type="success" size="small" @click="confirmEdit2(scope.row)">确定</el-button>
<el-button v-else type="primary" size="small" @click="scope.row.edit=!scope.row.edit">编辑</el-button>

View File

@@ -146,19 +146,19 @@
<td colspan="1" align="center">总价</td>
</tr>
<!--</tbody>-->
<!--</table>-->
<!--<hr>-->
<!--<table id="2" cellspacing="0px" align="center" border width="100%" style="">-->
<!--</table>-->
<!--<hr>-->
<!--<table id="2" cellspacing="0px" align="center" border width="100%" style="">-->
<!--&lt;!&ndash;<tbody id="4">&ndash;&gt;-->
<!--&lt;!&ndash;<tr id="tableHead" style="height: 40px">&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">物料名称</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">物料规格</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">物料型号</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">交货期</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">备注</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">数量</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">单价</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">总价</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">物料名称</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">物料规格</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">物料型号</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">交货期</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">备注</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">数量</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">单价</td>&ndash;&gt;-->
<!--&lt;!&ndash;<td colspan="1" align="center">总价</td>&ndash;&gt;-->
<!--&lt;!&ndash;</tr>&ndash;&gt;-->
</tbody>
<tfoot>
@@ -205,34 +205,34 @@
<td style="width: 35%" colspan="3" align="center"/>
</tr>
<!--<tr style="height: 35px">-->
<!--<th style="width: 15%">传真</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">传真</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">传真</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">传真</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--</tr>-->
<!--<tr style="height: 35px">-->
<!--<th style="width: 15%">开户银行</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">开户银行</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">开户银行</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">开户银行</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--</tr>-->
<!--<tr style="height: 35px">-->
<!--<th style="width: 15%">账号</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">账号</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">账号</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">账号</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--</tr>-->
<!--<tr style="height: 35px">-->
<!--<th style="width: 15%">税号</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">税号</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">税号</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">税号</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--</tr>-->
<!--<tr style="height: 35px">-->
<!--<th style="width: 15%">邮政编码</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">邮政编码</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">邮政编码</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--<th style="width: 15%">邮政编码</th>-->
<!--<td style="width: 35%" colspan="3" align="center"/>-->
<!--</tr>-->
</tbody>
</table>