소스 검색

合同详情: 交易明细列表调整

lxf 1 년 전
부모
커밋
4a23a8a31c
1개의 변경된 파일17개의 추가작업 그리고 1개의 파일을 삭제
  1. 17 1
      src/components/contractCom/contractDetails.vue

+ 17 - 1
src/components/contractCom/contractDetails.vue

@@ -53,7 +53,11 @@
         :action-list="[]"
       >
         <template #amount="{ item }">
-          <div>{{ item.currency }} {{ moneyFormat(item.amount, 2) }}</div>
+          <div :style="'color: ' + (item.status === '10' ? '#04cb04;' : 'red;')">
+            <span style="padding-right: 4px">{{ item.currency }}</span>
+            <span v-if="item.status === '20'">-</span>
+            <span>{{ moneyFormat(item.amount, 2) }}</span>
+          </div>
         </template>
         <template #accountManagementName="{ item }">
           <div>
@@ -89,6 +93,18 @@ const transactionType = ref([
     value: "1",
   },
   {
+    label: "请款",
+    value: "2",
+  },
+  {
+    label: "请款",
+    value: "3",
+  },
+  {
+    label: "请款",
+    value: "4",
+  },
+  {
     label: "采购付款",
     value: "20",
   },