Răsfoiți Sursa

部分新需求

cz 1 an în urmă
părinte
comite
f05742575d

+ 1 - 1
src/components/process/SF/CostControl.vue

@@ -384,7 +384,7 @@ const formConfig = computed(() => {
     },
     {
       type: "date",
-      itemType: "datetime",
+      itemType: "date",
       prop: "documentaryTime",
       label: "申请日期",
       disabled: false,

+ 16 - 3
src/views/MES/productionTask/index.vue

@@ -170,7 +170,7 @@
             <!-- style="border-top:1px solid #ebeef5;margin-top:3px" -->
             <div v-else>
               <div v-if="isShowCotent(slotItem,item)">
-                {{showCotent(slotItem,item,'balanceQuantity') || `&nbsp`}}
+                {{showCotentOne(slotItem,item,'balanceQuantity') || `&nbsp`}}
               </div>
               <div v-else class="no-bk">
                 -
@@ -1434,7 +1434,7 @@ const getProcesses = () => {
           label: `[ ${ele.name} ]`,
           slot: ele.id,
           isNeedHeaderSlot: false,
-          width: 70,
+          width: 110,
           align: "center",
           // fixed: "right",
         };
@@ -1522,7 +1522,20 @@ const showCotent = (slot, item, att) => {
       (x) => x.processesId == slot.id
     );
     if (current) {
-      return current[att];
+      return current["schedulingCount"] + " / " + current["finishQuantity"];
+    }
+  } else {
+    return false;
+  }
+};
+
+const showCotentOne = (slot, item, att) => {
+  if (item && item.productionTaskProgressList) {
+    const current = item.productionTaskProgressList.find(
+      (x) => x.processesId == slot.id
+    );
+    if (current) {
+      return current["schedulingCount"] + " / " + current["balanceQuantity"];
     }
   } else {
     return false;

+ 11 - 2
src/views/finance/fundManage/account/index.vue

@@ -81,6 +81,15 @@ const config = computed(() => {
     },
     {
       attrs: {
+        label: "类型",
+        prop: "type",
+      },
+      render(val) {
+        return proxy.dictValueLabel(val, typeData.value);
+      },
+    },
+    {
+      attrs: {
         label: "账户别名",
         prop: "alias",
       },
@@ -168,11 +177,11 @@ const corporationList = ref([]);
 const typeData = ref([
   {
     label: "公账",
-    value: 1,
+    value: 10,
   },
   {
     label: "私账",
-    value: 2,
+    value: 20,
   },
 ]);
 

+ 1 - 26
src/views/finance/fundManage/costControl/index.vue

@@ -176,31 +176,6 @@ const typeData = ref([
   },
 ]);
 
-const getDict = () => {
-  proxy
-    .post("/dictTenantData/page", {
-      pageNum: 1,
-      pageSize: 999,
-      dictCode: "account_currency",
-      tenantId: useUserStore().user.tenantId,
-    })
-    .then((res) => {
-      if (res.rows && res.rows.length > 0) {
-        accountCurrency.value = res.rows;
-      }
-    });
-  proxy
-    .post("/corporation/page", { pageNum: 1, pageSize: 9999 })
-    .then((res) => {
-      corporationList.value = res.rows.map((item) => {
-        return {
-          ...item,
-          label: item.name,
-          value: item.id,
-        };
-      });
-    });
-};
 const getList = async (req) => {
   sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
   loading.value = true;
@@ -214,7 +189,7 @@ const getList = async (req) => {
       }, 200);
     });
 };
-getDict();
+
 getList();
 const modalType = ref("add");
 const dialogVisible = ref(false);

+ 1 - 26
src/views/finance/fundManage/kdCompany/index.vue

@@ -132,31 +132,7 @@ const config = computed(() => {
   ];
 });
 const corporationList = ref([]);
-const getDict = () => {
-  proxy
-    .post("/dictTenantData/page", {
-      pageNum: 1,
-      pageSize: 999,
-      dictCode: "account_currency",
-      tenantId: useUserStore().user.tenantId,
-    })
-    .then((res) => {
-      if (res.rows && res.rows.length > 0) {
-        accountCurrency.value = res.rows;
-      }
-    });
-  proxy
-    .post("/corporation/page", { pageNum: 1, pageSize: 9999 })
-    .then((res) => {
-      corporationList.value = res.rows.map((item) => {
-        return {
-          ...item,
-          label: item.name,
-          value: item.id,
-        };
-      });
-    });
-};
+
 const getList = async (req) => {
   sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
   loading.value = true;
@@ -170,7 +146,6 @@ const getList = async (req) => {
       }, 200);
     });
 };
-getDict();
 getList();
 const modalType = ref("add");
 const dialogVisible = ref(false);

+ 32 - 37
src/views/finance/fundManage/paymentType/index.vue

@@ -12,7 +12,14 @@
 
     <el-dialog :title="modalType == 'add' ? '添加' : '编辑'" v-if="dialogVisible" v-model="dialogVisible" width="60%">
       <byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.data" :rules="rules" ref="submit" v-loading="loadingDialog">
+        <template #other>
+          <div style="width:100%">
+            <el-checkbox-group v-model="formData.data.checkList">
+              <el-checkbox v-for="item in checkBoxList" :label="item.label" :value="item.value" />
 
+            </el-checkbox-group>
+          </div>
+        </template>
       </byForm>
       <template #footer>
         <el-button @click="dialogVisible = false" size="default">取 消</el-button>
@@ -34,13 +41,14 @@ const accountCurrency = ref([]);
 const typeData = ref([
   {
     label: "收入",
-    value: "10",
+    value: 10,
   },
   {
     label: "支出",
-    value: "20",
+    value: 20,
   },
 ]);
+const checkBoxList = ref([]);
 const sourceList = ref({
   data: [],
   pagination: {
@@ -70,14 +78,14 @@ const config = computed(() => {
     },
     {
       attrs: {
-        label: "备注",
-        prop: "remark",
+        label: "排序",
+        prop: "sort",
       },
     },
     {
       attrs: {
-        label: "排序",
-        prop: "sort",
+        label: "备注",
+        prop: "remark",
       },
     },
     {
@@ -137,34 +145,19 @@ const getDict = () => {
       tenantId: useUserStore().user.tenantId,
     })
     .then((res) => {
-      if (res.rows && res.rows.length > 0) {
-        accountCurrency.value = res.rows;
-      }
-    });
-  proxy
-    .post("/corporation/page", { pageNum: 1, pageSize: 9999 })
-    .then((res) => {
-      corporationList.value = res.rows.map((item) => {
-        return {
-          ...item,
-          label: item.name,
-          value: item.id,
-        };
-      });
+      checkBoxList.value = res;
     });
 };
 const getList = async (req) => {
   sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
   loading.value = true;
-  proxy
-    .post("/accountManagement/page", sourceList.value.pagination)
-    .then((res) => {
-      sourceList.value.data = res.rows;
-      sourceList.value.pagination.total = res.total;
-      setTimeout(() => {
-        loading.value = false;
-      }, 200);
-    });
+  proxy.post("/paymentType/page", sourceList.value.pagination).then((res) => {
+    sourceList.value.data = res.rows;
+    sourceList.value.pagination.total = res.total;
+    setTimeout(() => {
+      loading.value = false;
+    }, 200);
+  });
 };
 getDict();
 getList();
@@ -215,6 +208,15 @@ const formConfig = computed(() => {
       controls: false,
       // itemWidth: 25,
     },
+    {
+      type: "title1",
+      title: "关联费控字段",
+    },
+    {
+      type: "slot",
+      slotName: "other",
+      label: "勾选需要字段",
+    },
   ];
 });
 const rules = ref({
@@ -279,14 +281,7 @@ const submitForm = () => {
 const update = (row) => {
   modalType.value = "edit";
   loadingDialog.value = true;
-  proxy.post("/accountManagement/detail", { id: row.id }).then((res) => {
-    res.accountRemainderList = res.accountRemainderList.map((item) => {
-      return {
-        id: item.id,
-        currency: item.currency,
-        remainder: item.remainder,
-      };
-    });
+  proxy.post("/paymentType/detail", { id: row.id }).then((res) => {
     formData.data = res;
     loadingDialog.value = false;
   });