谢杰标 2 år sedan
förälder
incheckning
a8cb60b91f

+ 9 - 1
src/components/Comon/pictureList.vue

@@ -4,7 +4,9 @@
       <img :src="backFullSrc(item.img)" alt="" />
       <div class="right">
         <h4>{{ item.label }}:</h4>
-        <p>{{ item.value || info[item.prop] }}{{ item.ch || "元" }}</p>
+        <p>
+          {{ formatPrice(item.value || info[item.prop]) }}{{ item.ch || "元" }}
+        </p>
       </div>
     </div>
   </div>
@@ -43,6 +45,12 @@ export default {
     backFullSrc(name) {
       return require(`@/assets/images/${name}@2x.png`);
     },
+    formatPrice(price) {
+      return price.toLocaleString(
+        "zh-CN",
+        (undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })
+      );
+    },
   },
 };
 </script>

+ 3 - 3
src/views/financed/arap/index.vue

@@ -34,7 +34,7 @@
       @load="load"
     >
       <template slot="customize">
-        <el-button @click="openDialog({}, 4)" type="success">
+        <el-button v-if="type == 0" @click="openDialog({}, 4)" type="success">
           坏账设置
         </el-button>
         <el-button @click="batchExport" type="primary"> 导出excel </el-button>
@@ -80,7 +80,7 @@
       </template>
       <template slot="btn" slot-scope="props">
         <el-button
-          v-if="props.scope.row.oId"
+          v-if="props.scope.row.oId || type == 0"
           type="text"
           @click="openDialog(props.scope.row, 3)"
         >
@@ -878,7 +878,7 @@ export default {
       if (this.type == 0 || this.type == 2) {
         data.push({
           prop: "keyNo",
-          placeholder: "业务号",
+          placeholder: "业务号",
         });
       }
       return data;

+ 5 - 0
src/views/financed/cost/index.vue

@@ -84,6 +84,11 @@ export default {
         custom: false,
       },
       formList: [
+        {
+          prop: "tenantId",
+          placeholder: "关联机构",
+          scope: "systemtenantlist",
+        },
         {
           prop: "tpName",
           placeholder: "请输入模板名称",