cz 1 年之前
父節點
當前提交
3e285acf12
共有 2 個文件被更改,包括 23 次插入9 次删除
  1. 22 9
      src/views/processApproval/components/WdlyPurchase.vue
  2. 1 0
      vue.config.js

+ 22 - 9
src/views/processApproval/components/WdlyPurchase.vue

@@ -76,7 +76,7 @@ const formDom2 = ref(null);
 const formDom3 = ref(null);
 
 const formOption = reactive({
-  readonly: false,
+  readonly: true,
   disabled: false,
   labelAlign: "top",
   scroll: true,
@@ -84,7 +84,7 @@ const formOption = reactive({
   hiddenSubmitBtn: true,
 });
 const formOptionOne = reactive({
-  readonly: false,
+  readonly: true,
   disabled: false,
   labelAlign: "top",
   scroll: true,
@@ -163,7 +163,7 @@ const formOptionOne = reactive({
   },
 });
 const formOptionTwo = reactive({
-  readonly: false,
+  readonly: true,
   disabled: false,
   labelAlign: "top",
   scroll: true,
@@ -365,12 +365,12 @@ const getDict = () => {
     pageSize: 999,
     tenantId: getUserInfo().tenantId,
   };
-  proxy
-    .post("/supplierInfo/page", { pageNum: 1, pageSize: 9999 })
-    .then((res) => {
-      supplierData.value = res.data.rows;
-      formConfig[5].data = supplierData.value;
-    });
+  // proxy
+  //   .post("/supplierInfo/page", { pageNum: 1, pageSize: 9999 })
+  //   .then((res) => {
+  //     supplierData.value = res.data.rows;
+  //     formConfig[5].data = supplierData.value;
+  //   });
   proxy
     .post("/dictTenantData/page", {
       ...query,
@@ -434,6 +434,19 @@ onMounted(() => {
       for (const key in jsonData) {
         formData.data[key] = jsonData[key];
       }
+      if (formData.data.supplyId && formData.data.supplyName) {
+        proxy
+          .post("/supplierInfo/page", {
+            pageNum: 1,
+            pageSize: 9999,
+            keyword: formData.data.supplyName,
+          })
+          .then((res) => {
+            supplierData.value = res.data.rows;
+            formConfig[5].data = supplierData.value;
+            formDom1.value.formDataShowLabelOne();
+          });
+      }
       // formData.data = { ...res.data, ...jsonData };
       formData.data.purchaseDetailList = formData.data.purchaseDetailList.map(
         (x) => ({

+ 1 - 0
vue.config.js

@@ -26,6 +26,7 @@ module.exports = defineConfig({
 			// https://cn.vitejs.dev/config/#server-proxy
 			'/test-api': {
 				target: 'http://139.9.102.170:10006',
+				// target: 'http://139.9.102.170',
 				changeOrigin: true,
 				rewrite: (p) => p.replace(/^\/test-api/, '')
 			},