离线合同样式

This commit is contained in:
zhangdingyu
2019-11-08 17:48:09 +08:00
parent 998944ad0d
commit fec631e2fc

View File

@@ -111,7 +111,7 @@
{{ scope.row.物料型号 }} {{ scope.row.物料型号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="规格" align="center" prop="物料规格" min-width="150" show-overflow-tooltip> <el-table-column label="规格" align="center" prop="物料规格" min-width="120" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料规格 }} {{ scope.row.物料规格 }}
</template> </template>
@@ -165,7 +165,7 @@
{{ Number(scope.row.零件类型) === 1 ? 'BZ' : 'WG' }} {{ Number(scope.row.零件类型) === 1 ? 'BZ' : 'WG' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="任务分配时间" prop="任务分配时间" align="center" min-width="120"> <el-table-column label="分配时间" prop="任务分配时间" align="center" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.任务分配时间 ? (scope.row.任务分配时间.split(' ')[0] === '1900/1/4' ? '-' : scope.row.任务分配时间.split(' ')[0]) : '-' }} {{ scope.row.任务分配时间 ? (scope.row.任务分配时间.split(' ')[0] === '1900/1/4' ? '-' : scope.row.任务分配时间.split(' ')[0]) : '-' }}
</template> </template>
@@ -289,7 +289,7 @@
</el-tooltip> </el-tooltip>
<el-input v-model="taxRate" style="float:right;width:100px" placeholder="税率" size="mini"/> <el-input v-model="taxRate" style="float:right;width:100px" placeholder="税率" size="mini"/>
<h4 style="float:right;width: 40px;margin: 5px">税率:</h4> <h4 style="float:right;width: 40px;margin: 5px">税率:</h4>
<el-button v-if="quickChangePrice" size="mini" style="float:right; width: 80px" @click="quickChangePrice=!quickChangePrice">快速修改价格</el-button> <el-button v-if="quickChangePrice" size="mini" style="float:right; width: 100px" @click="quickChangePrice=!quickChangePrice">快速修改价格</el-button>
<el-button v-else size="mini" style="float:right;" @click="quickChangePrice=!quickChangePrice">还原</el-button> <el-button v-else size="mini" style="float:right;" @click="quickChangePrice=!quickChangePrice">还原</el-button>
</div> </div>
<el-table v-loading="" :data="tableData2" border style="max-height: 460px;" size="mini" highlight-current-row @row-click="searchTable3"> <el-table v-loading="" :data="tableData2" border style="max-height: 460px;" size="mini" highlight-current-row @row-click="searchTable3">
@@ -363,11 +363,6 @@
</div> </div>
<!--<h3>合同详细信息</h3>--> <!--<h3>合同详细信息</h3>-->
<el-table v-loading="" :data="tableData3" :summary-method="getSummaries" border style="max-height: 500px;" height="450px" size="mini" show-summary> <el-table v-loading="" :data="tableData3" :summary-method="getSummaries" border style="max-height: 500px;" height="450px" size="mini" show-summary>
<!-- <el-table-column label="离线合同编号" align="center" width="110">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.离线合同编号 }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="物料名称" align="center" min-width="150" show-overflow-tooltip> <el-table-column label="物料名称" align="center" min-width="150" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料名称 ? scope.row.物料名称 : scope.row.零件名称 }} {{ scope.row.物料名称 ? scope.row.物料名称 : scope.row.零件名称 }}
@@ -405,7 +400,7 @@
<b v-show="hasTax!=='未税'">{{ (scope.row.单价 / (1 + taxRate)).toFixed(2) }}</b> <b v-show="hasTax!=='未税'">{{ (scope.row.单价 / (1 + taxRate)).toFixed(2) }}</b>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="单价(含税)" align="center" min-width="100" prop="单价"> <el-table-column label="单价(含税)" align="center" min-width="120" prop="单价">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-direction="{x: 1, y: scope.$index}" v-if="hasTax==='含税'" v-model="scope.row.单价" :disabled="disable" size="mini" style="width:70px"/> <el-input v-direction="{x: 1, y: scope.$index}" v-if="hasTax==='含税'" v-model="scope.row.单价" :disabled="disable" size="mini" style="width:70px"/>
<b v-show="hasTax!=='含税'">{{ (scope.row.未税单价 * (1 + taxRate)).toFixed(2) }}</b> <b v-show="hasTax!=='含税'">{{ (scope.row.未税单价 * (1 + taxRate)).toFixed(2) }}</b>
@@ -421,13 +416,13 @@
{{ hasTax==='含税' ? scope.row.含税总额 = (Number(scope.row.数量) * Number(scope.row.单价)).toFixed(2) : scope.row.含税总额 = (scope.row.未税总额 * (1+taxRate)).toFixed(2) }} {{ hasTax==='含税' ? scope.row.含税总额 = (Number(scope.row.数量) * Number(scope.row.单价)).toFixed(2) : scope.row.含税总额 = (scope.row.未税总额 * (1+taxRate)).toFixed(2) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center" min-width="160" prop="备注"> <el-table-column label="备注" align="center" min-width="120" prop="备注">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-direction="{x: 3, y: scope.$index}" v-if="quickChangePrice" v-model="scope.row.备注" :disabled="disable" size="mini" style="width:120px"/> <el-input v-direction="{x: 3, y: scope.$index}" v-if="quickChangePrice" v-model="scope.row.备注" :disabled="disable" size="mini" style="width:120px"/>
<b v-else>{{ scope.row.备注 || '—' }}</b> <b v-else>{{ scope.row.备注 || '—' }}</b>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="交货期要求" align="center" min-width="130" prop="交货期要求"> <el-table-column label="交货期" align="center" min-width="130" prop="交货期要求">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-direction="{x: 2, y: scope.$index}" v-if="quickChangePrice" v-model="scope.row.交货期要求" :disabled="disable" size="mini" style="width:90px"/> <el-input v-direction="{x: 2, y: scope.$index}" v-if="quickChangePrice" v-model="scope.row.交货期要求" :disabled="disable" size="mini" style="width:90px"/>
<b v-else>{{ scope.row.交货期要求 || '—' }}</b> <b v-else>{{ scope.row.交货期要求 || '—' }}</b>
@@ -438,9 +433,10 @@
{{ scope.row.到货数量 }} {{ scope.row.到货数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" min-width="100"> <el-table-column label="操作" align="center" min-width="50">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="quickChangePrice" :disabled="disable" type="danger" plain size="mini" icon="el-icon-delete" @click="deleteMateriel(scope.row)">移除</el-button> <!--<el-button :disabled="arrival(scope.row)" type="text" icon="el-icon-delete" plain size="mini" @click="deleteOfflineContract(scope.row)"/>-->
<el-button v-if="quickChangePrice" :disabled="disable" type="text" plain size="mini" icon="el-icon-delete" @click="deleteMateriel(scope.row)"/>
<b v-else>移除</b> <b v-else>移除</b>
</template> </template>
</el-table-column> </el-table-column>