Эх сурвалжийг харах

工作台审批页面增加

黄梓星 1 жил өмнө
parent
commit
3bd8edd5d8

+ 10 - 0
src/views/material/changeApply/columns.js

@@ -67,6 +67,16 @@ export default function useColumns() {
         clearable: true,
         clearable: true,
       },
       },
     },
     },
+    {
+      item: {
+        key: "code",
+        title: "单据编码",
+      },
+      attr: {
+        clearable: true,
+        is: "el-input",
+      },
+    },
   
   
   ].map(({ item, attr }) => ({
   ].map(({ item, attr }) => ({
     attr,
     attr,

+ 1 - 0
src/views/material/changeApply/index.vue

@@ -200,6 +200,7 @@ export default {
  
  
   },
   },
   created(){
   created(){
+    this.params.code = this.$route.query.billCode
     this.useQuery(this.params, this.page);
     this.useQuery(this.params, this.page);
   },
   },
 }
 }

+ 1 - 0
src/views/material/requisition/index.vue

@@ -192,6 +192,7 @@
 
 
     },
     },
     mounted() {
     mounted() {
+      this.params.billCode = this.$route.query.billCode
       this.getList(this.queryParams)
       this.getList(this.queryParams)
     },
     },
     methods: {
     methods: {

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

@@ -86,6 +86,7 @@
           const {
           const {
             recentlyPrice = "0",
             recentlyPrice = "0",
             isApprovalFirst = "N",
             isApprovalFirst = "N",
+            purchasequantity
           } = await fetchExist({puOrg, customer, supplier, materialCode, customerName: "", priceType: prop.row.priceType});
           } = await fetchExist({puOrg, customer, supplier, materialCode, customerName: "", priceType: prop.row.priceType});
           this.loading = false;
           this.loading = false;
           await this.onRowAdd(this.tabName, {
           await this.onRowAdd(this.tabName, {
@@ -101,6 +102,7 @@
             puUnitName: puUnitName,
             puUnitName: puUnitName,
             recentlyPrice,
             recentlyPrice,
             isApprovalFirst,
             isApprovalFirst,
+            yPurchaseQuantity: purchasequantity,
             tax: Number(ntaxrate === "0E-8" ? 0 : ntaxrate),
             tax: Number(ntaxrate === "0E-8" ? 0 : ntaxrate),
             createByName: createByName,
             createByName: createByName,
             updateByName: createByName,
             updateByName: createByName,

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

@@ -102,6 +102,7 @@ export default {
         const {
         const {
           recentlyPrice = "0",
           recentlyPrice = "0",
           isApprovalFirst = "N",
           isApprovalFirst = "N",
+          purchasequantity
         } = await fetchExist({ puOrg, customer, supplier, materialCode, priceType: prop.row.priceType });
         } = await fetchExist({ puOrg, customer, supplier, materialCode, priceType: prop.row.priceType });
         this.loading = false;
         this.loading = false;
         await this.onRowAdd(this.tabName, {
         await this.onRowAdd(this.tabName, {
@@ -117,6 +118,7 @@ export default {
           puUnitName: puUnitName,
           puUnitName: puUnitName,
           recentlyPrice,
           recentlyPrice,
           isApprovalFirst,
           isApprovalFirst,
+          yPurchaseQuantity: purchasequantity,
           tax: Number(ntaxrate === "0E-8" ? 0 : ntaxrate),
           tax: Number(ntaxrate === "0E-8" ? 0 : ntaxrate),
           createByName: createByName,
           createByName: createByName,
           updateByName: createByName,
           updateByName: createByName,

+ 2 - 0
src/views/purchase/apply/edit/index.vue

@@ -131,6 +131,7 @@
           const {
           const {
             recentlyPrice = "0",
             recentlyPrice = "0",
             isApprovalFirst = "N",
             isApprovalFirst = "N",
+            purchasequantity
           } = await fetchExist({puOrg, customer, supplier, materialCode, customerName: "",priceType: prop.row.priceType});
           } = await fetchExist({puOrg, customer, supplier, materialCode, customerName: "",priceType: prop.row.priceType});
           this.loading = false;
           this.loading = false;
           await this.onRowAdd(this.tabName, {
           await this.onRowAdd(this.tabName, {
@@ -146,6 +147,7 @@
             puUnitName: puUnitName,
             puUnitName: puUnitName,
             recentlyPrice,
             recentlyPrice,
             isApprovalFirst,
             isApprovalFirst,
+            yPurchaseQuantity: purchasequantity,
             tax: Number(ntaxrate === "0E-8" ? 0 : ntaxrate),
             tax: Number(ntaxrate === "0E-8" ? 0 : ntaxrate),
             createByName: createByName,
             createByName: createByName,
             updateByName: createByName,
             updateByName: createByName,

+ 1 - 0
src/views/purchase/purchase-order/index.vue

@@ -63,6 +63,7 @@ export default {
     },
     },
   },
   },
   created() {
   created() {
+    this.params.orderCode = this.$route.query.billCode
     this.fetchList(this.params, this.page);
     this.fetchList(this.params, this.page);
     // this.handleRefreshList();
     // this.handleRefreshList();
   },
   },

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

@@ -356,7 +356,7 @@ export default {
       queryParams: {
       queryParams: {
         deliveryInventoryOrg: '',
         deliveryInventoryOrg: '',
         storageInventoryOrg: '',
         storageInventoryOrg: '',
-        code: '',
+        code: this.$route.query.billCode,
         createBy:'',
         createBy:'',
         pageNum: 1,
         pageNum: 1,
         pageSize: 100
         pageSize: 100