|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="setcol">
|
|
|
- <!-- <el-button v-if="data.status === '新建'" style="margin:0 0 10px 0px" size="small" type="primary" @click="setcol = setcol === 24?12:24">{{setcol === 24?'添 加':'取 消'}}</el-button> -->
|
|
|
+ <el-button v-if="data.status === '新建'" style="margin:0 0 10px 0px" size="small" type="primary" @click="setcol = setcol === 24?12:24">{{setcol === 24?'添 加':'取 消'}}</el-button>
|
|
|
<el-table
|
|
|
ref="multipleTable"
|
|
|
:data="tableData"
|
|
|
@@ -44,6 +44,29 @@
|
|
|
<span v-else>{{scope.row.qty}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+
|
|
|
+ <el-table-column
|
|
|
+ prop="price"
|
|
|
+ label="价格"
|
|
|
+ width="90">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <p style="color:red;font-weight:500">¥ {{tool.formatAmount(scope.row.price,2)}}</p>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="折后价格"
|
|
|
+ prop="totalprice">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <p style="color:red;font-weight:500">¥ {{scope.row.price}}</p>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="小计"
|
|
|
+ width="150">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <p style="color:red;font-weight:500">¥ {{tool.formatAmount(scope.row.price * scope.row.qty,2)}}</p>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
label="需求日期"
|
|
|
width="200">
|
|
|
@@ -96,28 +119,6 @@
|
|
|
<el-tag size="mini" type="info" effect="plain">{{scope.row.unit}}</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="price"
|
|
|
- label="价格"
|
|
|
- width="90">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p style="color:red;font-weight:500">¥ {{tool.formatAmount(scope.row.price,2)}}</p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="折后价格"
|
|
|
- prop="totalprice">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p style="color:red;font-weight:500">¥ {{scope.row.price}}</p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="小计"
|
|
|
- width="150">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p style="color:red;font-weight:500">¥ {{tool.formatAmount(scope.row.price * scope.row.qty,2)}}</p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
<el-table-column v-if="data.status === '新建'" width="90" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" size="mini" @click="deleteOrderProduct(scope.row)">删 除</el-button>
|