Pārlūkot izejas kodu

bug修改,调价类型等

黄梓星 1 gadu atpakaļ
vecāks
revīzija
13ea377a0c

+ 1 - 1
src/views/purchase/DemandSummary/index.vue

@@ -348,7 +348,7 @@
           @size-change="handleSizeChange"
           @current-change="handleCurrentChange"
           :current-page="queryParams.pageNum"
-          :page-sizes="[10, 20, 50, 100]"
+          :page-sizes="[10, 20, 50, 100, 200, 500]"
           :page-size="10"
           layout="total, sizes, prev, pager, next, jumper"
           :total=total>

+ 1 - 1
src/views/purchase/MaterialClassDivision/index.vue

@@ -262,7 +262,7 @@
           @size-change="handleSizeChange"
           @current-change="handleCurrentChange"
           :current-page="queryParams.pageNum"
-          :page-sizes="[10, 20, 50, 100]"
+          :page-sizes="[10, 20, 50, 100, 200, 500]"
           :page-size="10"
           layout="total, sizes, prev, pager, next, jumper"
           :total=total>

+ 1 - 1
src/views/purchase/PurchaseDemandList/index.vue

@@ -219,7 +219,7 @@
           @size-change="handleSizeChange"
           @current-change="handleCurrentChange"
           :current-page="queryParams.pageNum"
-          :page-sizes="[10, 20 ,50 ,100]"
+          :page-sizes="[10, 20, 50, 100, 200, 500]"
           :page-size="10"
           layout="total, sizes, prev, pager, next, jumper"
           :total=total>

+ 2 - 2
src/views/purchase/apply/add/columns.js

@@ -279,10 +279,10 @@ export default function useColumns() {
           },
         },
         {
-          item: { key: "isPriceAdjustment", title: "价格调整" },
+          item: { key: "isPriceAdjustment", title: "调价类型" },
           attr: {
             is: "el-select",
-            dictName: "is_effective",
+            dictName: "price_adjustment_type",
             disabled: true,
           },
         },

+ 29 - 0
src/views/purchase/apply/add/index.vue

@@ -110,6 +110,25 @@
           });
         }
       },
+      // 
+      async changeCustomerName(prop) {
+        console.log("prop", prop)
+        const {
+          puOrg,
+          supplier,
+          currency,
+          currencyCode,
+          currencyName,
+        } = this.params;
+        const {
+          recentlyPrice,
+          isApprovalFirst,
+          purchasequantity
+          } = await fetchExist({puOrg, supplier, materialCode: prop.row.materialCode, customer:prop.row.customer,customerName: prop.row.customerName});
+          prop.row.yPurchaseQuantity = purchasequantity
+          prop.row.recentlyPrice = recentlyPrice
+          prop.row.isApprovalFirst = isApprovalFirst
+      },
       //
       async onOpen() {
         this.visible = true;
@@ -252,6 +271,16 @@
                 >
                 </component>
               </template>
+              <template slot="customerName" slot-scope="scope">
+                <component
+                  v-bind="scope.attr"
+                  v-model="scope.row[scope.item.key]"
+                  :size="$attrs.size"
+                  :source.sync="scope.row"
+                  @change="changeCustomerName({ ...scope, selectData: $event })"
+                >
+                </component>
+              </template>
               <el-table-column fixed="right" label="操作" width="100">
                 <template slot="header" slot-scope="scope">
                   <el-button

+ 2 - 2
src/views/purchase/apply/copy/columns.js

@@ -279,10 +279,10 @@ export default function useColumns() {
           },
         },
         {
-          item: { key: "isPriceAdjustment", title: "价格调整" },
+          item: { key: "isPriceAdjustment", title: "调价类型" },
           attr: {
             is: "el-select",
-            dictName: "is_effective",
+            dictName: "price_adjustment_type",
             disabled: true,
           },
         },

+ 29 - 0
src/views/purchase/apply/copy/index.vue

@@ -126,6 +126,25 @@ export default {
         });
       }
     },
+      // 
+      async changeCustomerName(prop) {
+        console.log("prop", prop)
+        const {
+          puOrg,
+          supplier,
+          currency,
+          currencyCode,
+          currencyName,
+        } = this.params;
+        const {
+          recentlyPrice,
+          isApprovalFirst,
+          purchasequantity
+          } = await fetchExist({puOrg, supplier, materialCode: prop.row.materialCode, customer:prop.row.customer,customerName: prop.row.customerName});
+          prop.row.yPurchaseQuantity = purchasequantity
+          prop.row.recentlyPrice = recentlyPrice
+          prop.row.isApprovalFirst = isApprovalFirst
+      },
     //
     async fetchItem(prop) {
       try {
@@ -306,6 +325,16 @@ export default {
                 >
                 </component>
               </template>
+              <template slot="customerName" slot-scope="scope">
+                <component
+                  v-bind="scope.attr"
+                  v-model="scope.row[scope.item.key]"
+                  :size="$attrs.size"
+                  :source.sync="scope.row"
+                  @change="changeCustomerName({ ...scope, selectData: $event })"
+                >
+                </component>
+              </template>
               <el-table-column fixed="right" label="操作" width="100">
                 <template slot="header" slot-scope="scope">
                   <el-button :size="$attrs.size" @click="onRowAdd(tabName)">

+ 2 - 2
src/views/purchase/apply/edit/columns.js

@@ -279,10 +279,10 @@ export default function useColumns() {
           },
         },
         {
-          item: { key: "isPriceAdjustment", title: "价格调整" },
+          item: { key: "isPriceAdjustment", title: "调价类型" },
           attr: {
             is: "el-select",
-            dictName: "is_effective",
+            dictName: "price_adjustment_type",
             disabled: true,
           },
         },

+ 30 - 1
src/views/purchase/apply/edit/index.vue

@@ -131,7 +131,7 @@
           const {
             recentlyPrice = "0",
             isApprovalFirst = "N",
-            isPriceAdjustment = "N",
+            isPriceAdjustment = "",
           } = await fetchExist({puOrg, customer, supplier, materialCode, customerName: ""});
           this.loading = false;
           await this.onRowAdd(this.tabName, {
@@ -155,6 +155,25 @@
           });
         }
       },
+      // 
+      async changeCustomerName(prop) {
+        console.log("prop", prop)
+        const {
+          puOrg,
+          supplier,
+          currency,
+          currencyCode,
+          currencyName,
+        } = this.params;
+        const {
+          recentlyPrice,
+          isApprovalFirst,
+          purchasequantity
+          } = await fetchExist({puOrg, supplier, materialCode: prop.row.materialCode, customer:prop.row.customer,customerName: prop.row.customerName});
+          prop.row.yPurchaseQuantity = purchasequantity
+          prop.row.recentlyPrice = recentlyPrice
+          prop.row.isApprovalFirst = isApprovalFirst
+      },
       //
       async fetchItem(prop) {
         try {
@@ -328,6 +347,16 @@
                 >
                 </component>
               </template>
+              <template slot="customerName" slot-scope="scope">
+                <component
+                  v-bind="scope.attr"
+                  v-model="scope.row[scope.item.key]"
+                  :size="$attrs.size"
+                  :source.sync="scope.row"
+                  @change="changeCustomerName({ ...scope, selectData: $event })"
+                >
+                </component>
+              </template>
               <el-table-column fixed="right" label="操作" width="100">
                 <template slot="header" slot-scope="scope">
                   <el-button :size="$attrs.size" @click="onRowAdd(tabName)">

+ 2 - 2
src/views/purchase/apply/see/columns.js

@@ -167,10 +167,10 @@ export default function useColumns() {
           },
         },
         {
-          item: { width: 100, key: "isPriceAdjustment", title: "价格调整" },
+          item: { width: 100, key: "isPriceAdjustment", title: "调价类型" },
           attr: {
             is: "el-dict-tag",
-            dictName: "is_effective",
+            dictName: "price_adjustment_type",
           },
         },
         {

+ 1 - 1
src/views/purchase/deliveryAddress/index.vue

@@ -229,7 +229,7 @@
           @size-change="handleSizeChange"
           @current-change="handleCurrentChange"
           :current-page="queryParams.pageNum"
-          :page-sizes="[10, 20, 50, 100]"
+          :page-sizes="[10, 20, 50, 100, 200, 500]"
           :page-size="10"
           layout="total, sizes, prev, pager, next, jumper"
           :total=total>

+ 1 - 1
src/views/purchase/transferOrder/index.vue

@@ -145,7 +145,7 @@
           @size-change="handleSizeChange"
           @current-change="handleCurrentChange"
           :current-page="queryParams.pageNum"
-          :page-sizes="[10, 20, 50, 100]"
+          :page-sizes="[10, 20, 50, 100, 200, 500]"
           :page-size="10"
           layout="total, sizes, prev, pager, next, jumper"
           :total=total>