浏览代码

Merge branch 'master' of http://git.zthymaoyi.com/gdc/yiliangyiyun-pc

gjy 2 年之前
父节点
当前提交
f4c04a6df8
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/views/profitable/contractprofitsdetails.vue

+ 6 - 1
src/views/profitable/contractprofitsdetails.vue

@@ -73,7 +73,12 @@
           </el-table-column>
           <el-table-column prop="buyer" label="买方"></el-table-column>
           <el-table-column prop="seller" label="卖方"></el-table-column>
-          <el-table-column prop="surplus" label="剩余(吨)"></el-table-column>
+          <el-table-column prop="surplus" label="剩余(吨)">
+             <template slot-scope="scope">
+              <span v-if='scope.row.agreementType=="销售合同"'>-</span>
+              <span v-else>{{scope.row.surplus}}</span>
+            </template>
+          </el-table-column>
           <el-table-column prop="profit" label="利润(万元)">
           </el-table-column>
           <el-table-column prop="status" label="状态"></el-table-column>