zxz 2 年之前
父节点
当前提交
2288ac2438
共有 1 个文件被更改,包括 43 次插入5 次删除
  1. 43 5
      src/views/profitable/fixedAssets.vue

+ 43 - 5
src/views/profitable/fixedAssets.vue

@@ -71,9 +71,36 @@
                     <el-table-column prop="businessType" label="类型" width="150"></el-table-column>
                     <el-table-column prop="leadingCadre" label="负责人"></el-table-column>
                     <el-table-column prop="purchaseQuantity" label="数量"></el-table-column>
-                    <el-table-column prop="purchasePrice" width="120" label="采购单价(元)"></el-table-column>
-                    <el-table-column prop="currentPrice" width="120" label="当前单价(元)"></el-table-column>
-                    <el-table-column prop="totalPrice" width="120" label="总价(元)"></el-table-column>
+                    <el-table-column prop="purchasePrice" width="120" label="采购单价(元)">
+                        <template scope="scope">
+                            <div v-if="!scope.row.purchasePrice">
+                                <span>暂无</span>
+                            </div>
+                            <div v-else>
+                                {{scope.row.purchasePrice}}
+                            </div>
+                        </template>
+                    </el-table-column>
+                    <el-table-column prop="currentPrice" width="120" label="当前单价(元)">
+                        <template scope="scope">
+                            <div v-if="!scope.row.currentPrice">
+                                <span>暂无</span>
+                            </div>
+                            <div v-else>
+                                {{scope.row.currentPrice}}
+                            </div>
+                        </template>
+                    </el-table-column>
+                    <el-table-column prop="totalPrice" width="120" label="总价(元)">
+                        <template scope="scope">
+                            <div v-if="!scope.row.totalPrice">
+                                <span>暂无</span>
+                            </div>
+                            <div v-else>
+                                {{scope.row.totalPrice}}
+                            </div>
+                        </template>
+                    </el-table-column>
                     <!-- <el-table-column prop="expenseRemarks" label="附件">
                                 <template slot-scope="scope">
                                   <img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
@@ -98,7 +125,16 @@
                             </div>
                         </template>
                     </el-table-column>
-                    <el-table-column prop="purchaseDate" label="采购日期" width="150"></el-table-column>
+                    <el-table-column prop="purchaseDate" label="采购日期" width="150">
+                        <template scope="scope">
+                            <div v-if="scope.row.purchaseDate == '1991-12-01'">
+                                <span>暂无</span>
+                            </div>
+                            <div v-else>
+                                {{scope.row.purchaseDate}}
+                            </div>
+                        </template>
+                    </el-table-column>
                     <el-table-column prop="remark" width="120" label="备注">
                         <template scope="scope">
                             <div v-if="!scope.row.select" @click.stop="lookRemark(scope.row)">
@@ -425,7 +461,9 @@ export default {
                         obj.status = v.状态
                         obj.businessType = v.经营方式
                         obj.remark = v.备注
-                        obj.purchaseDate = _this.formatDate(v.采购日期, '-')
+                        if(obj.purchaseDate){
+                            obj.purchaseDate = _this.formatDate(v.采购日期, '-')
+                        }
                         _this.excelFreightspace.push(obj)
                     })
                     if (_this.excelFreightspace) {