002390 1 жил өмнө
parent
commit
8469300fe0

+ 1 - 0
src/views/material/changeApply/add/column.js

@@ -129,6 +129,7 @@ export default function useColumns(){
             require: true,
             require: true,
           },
           },
           attr:{
           attr:{
+            readonly:true,
             is: "el-popover-select-v2",
             is: "el-popover-select-v2",
             valueKey: "code",
             valueKey: "code",
             referName: "MATERIAL_PARAM",
             referName: "MATERIAL_PARAM",

+ 9 - 6
src/views/material/requisition/add.vue

@@ -1362,7 +1362,7 @@
             })
             })
           })
           })
 
 
-          Promise.all([form1, form2]).then(() => {
+          // Promise.all([form1, form2]).then(() => {
             if (this.basicForm.isMedicine == '0' && this.sysMaterialMedcineItemApply.length == 0) {
             if (this.basicForm.isMedicine == '0' && this.sysMaterialMedcineItemApply.length == 0) {
               this.$modal.notifyWarning("医药物料需要维护物料类别!");
               this.$modal.notifyWarning("医药物料需要维护物料类别!");
 
 
@@ -1381,7 +1381,7 @@
                 this.$modal.closeLoading();
                 this.$modal.closeLoading();
               })
               })
             }
             }
-          })
+          // })
         } else {
         } else {
 
 
           // alert('保存传status:0')
           // alert('保存传status:0')
@@ -1395,6 +1395,7 @@
           sparams.sysMaterialMedcineItemApply = this.sysMaterialMedcineItemApply;
           sparams.sysMaterialMedcineItemApply = this.sysMaterialMedcineItemApply;
 
 
           console.log('保存参数', sparams)
           console.log('保存参数', sparams)
+
           const form1 = new Promise((resolve, reject) => {
           const form1 = new Promise((resolve, reject) => {
             this.$refs['basic'].validate(valid => {
             this.$refs['basic'].validate(valid => {
               if (valid) resolve()
               if (valid) resolve()
@@ -1405,7 +1406,8 @@
               if (valid) resolve()
               if (valid) resolve()
             })
             })
           })
           })
-          Promise.all([form1, form2]).then(() => {
+
+          // Promise.all([form1, form2]).then(() => {
             if (this.basicForm.isMedicine == '0' && this.sysMaterialMedcineItemApply.length == 0) {
             if (this.basicForm.isMedicine == '0' && this.sysMaterialMedcineItemApply.length == 0) {
               this.$modal.notifyWarning("医药物料需要维护物料类别!");
               this.$modal.notifyWarning("医药物料需要维护物料类别!");
             } else {
             } else {
@@ -1423,7 +1425,7 @@
                 this.$modal.closeLoading();
                 this.$modal.closeLoading();
               })
               })
             }
             }
-          })
+          // })
         }
         }
       },
       },
       submit() {
       submit() {
@@ -1445,7 +1447,8 @@
             if (valid) resolve()
             if (valid) resolve()
           })
           })
         })
         })
-        Promise.all([form1, form2]).then(() => {
+
+        // Promise.all([form1, form2]).then(() => {
           // 提交时候要维护物料类别
           // 提交时候要维护物料类别
           if (this.sysMaterialMedcineItemApply.length !== 0) {
           if (this.sysMaterialMedcineItemApply.length !== 0) {
             this.$modal.loading("提交中...");
             this.$modal.loading("提交中...");
@@ -1467,7 +1470,7 @@
               type: 'warning'
               type: 'warning'
             });
             });
           }
           }
-        })
+        // })
       },
       },
       back() {
       back() {
         this.$emit('jugislist', true)
         this.$emit('jugislist', true)

+ 11 - 8
src/views/purchase/contract/add/columns.js

@@ -526,7 +526,7 @@ export default function useColumns() {
           item: {
           item: {
             title: "物料名称",
             title: "物料名称",
             key: "materialName",
             key: "materialName",
-            required: true,
+            require: true,
           },
           },
           attr: {
           attr: {
             is: "el-popover-select-v2",
             is: "el-popover-select-v2",
@@ -539,6 +539,8 @@ export default function useColumns() {
               registration: "registrationNo",
               registration: "registrationNo",
               specification: "specification",
               specification: "specification",
               manufacturer: "manufacturerIdName",
               manufacturer: "manufacturerIdName",
+              tax: "materialRateName",
+              // tax: "materialRate",
             },
             },
           },
           },
         },
         },
@@ -546,6 +548,7 @@ export default function useColumns() {
           item: {
           item: {
             title: "物料编码",
             title: "物料编码",
             key: "material",
             key: "material",
+            
           },
           },
           attr: {},
           attr: {},
         },
         },
@@ -577,7 +580,7 @@ export default function useColumns() {
           },
           },
         },
         },
         {
         {
-          item: { title: "税率%", key: "tax", required: true },
+          item: { title: "税率%", key: "tax", require: true },
           attr: {
           attr: {
             is: "el-popover-select-v2",
             is: "el-popover-select-v2",
             valueKey: "ntaxrate",
             valueKey: "ntaxrate",
@@ -594,7 +597,7 @@ export default function useColumns() {
           },
           },
         },
         },
         {
         {
-          item: { title: "含税单价", key: "taxPrice", required: true },
+          item: { title: "含税单价", key: "taxPrice", require: true },
           attr: {
           attr: {
             is: "el-input-number",
             is: "el-input-number",
           },
           },
@@ -610,7 +613,7 @@ export default function useColumns() {
           },
           },
         },
         },
         {
         {
-          item: { title: "无税单价", key: "taxFreePrice", required: true },
+          item: { title: "无税单价", key: "taxFreePrice", require: true },
           attr: {
           attr: {
             formatter: (prop) => {
             formatter: (prop) => {
               const { tax = 0, taxPrice = 0 } = prop;
               const { tax = 0, taxPrice = 0 } = prop;
@@ -709,7 +712,7 @@ export default function useColumns() {
           item: {
           item: {
             title: "付款起点",
             title: "付款起点",
             key: "origin",
             key: "origin",
-            required: true,
+            require: true,
           },
           },
           attr: {
           attr: {
             is: "el-select",
             is: "el-select",
@@ -717,14 +720,14 @@ export default function useColumns() {
           },
           },
         },
         },
         {
         {
-          item: { title: "账期天数", key: "paymetDays", required: true },
+          item: { title: "账期天数", key: "paymetDays", require: true },
           attr: {
           attr: {
             is: "el-input-number",
             is: "el-input-number",
             precision: 2,
             precision: 2,
           },
           },
         },
         },
         {
         {
-          item: { title: "付款比例%", key: "ratio", required: true },
+          item: { title: "付款比例%", key: "ratio", require: true },
           attr: {
           attr: {
             is: "el-input-number",
             is: "el-input-number",
           },
           },
@@ -759,7 +762,7 @@ export default function useColumns() {
           item: {
           item: {
             title: "结算方式",
             title: "结算方式",
             key: "paymentMeans",
             key: "paymentMeans",
-            required: true,
+            require: true,
           },
           },
           attr: {
           attr: {
             is: "el-popover-select-v2",
             is: "el-popover-select-v2",

+ 8 - 8
src/views/purchase/contract/edit/columns.js

@@ -513,7 +513,7 @@ export default function useColumns() {
           item: {
           item: {
             title: "物料名称",
             title: "物料名称",
             key: "materialName",
             key: "materialName",
-            required: true,
+            require: true,
           },
           },
           attr: {
           attr: {
             is: "el-popover-select-v2",
             is: "el-popover-select-v2",
@@ -564,7 +564,7 @@ export default function useColumns() {
           },
           },
         },
         },
         {
         {
-          item: { title: "税率%", key: "tax", required: true },
+          item: { title: "税率%", key: "tax", require: true },
           attr: {
           attr: {
             is: "el-popover-select-v2",
             is: "el-popover-select-v2",
             valueKey: "ntaxrate",
             valueKey: "ntaxrate",
@@ -581,7 +581,7 @@ export default function useColumns() {
           },
           },
         },
         },
         {
         {
-          item: { title: "含税单价", key: "taxPrice", required: true },
+          item: { title: "含税单价", key: "taxPrice", require: true },
           attr: {
           attr: {
             is: "el-input-number",
             is: "el-input-number",
           },
           },
@@ -597,7 +597,7 @@ export default function useColumns() {
           },
           },
         },
         },
         {
         {
-          item: { title: "无税单价", key: "taxFreePrice", required: true },
+          item: { title: "无税单价", key: "taxFreePrice", require: true },
           attr: {
           attr: {
             formatter: (prop) => {
             formatter: (prop) => {
               const { tax = 0, taxPrice = 0 } = prop;
               const { tax = 0, taxPrice = 0 } = prop;
@@ -696,7 +696,7 @@ export default function useColumns() {
           item: {
           item: {
             title: "付款起点",
             title: "付款起点",
             key: "origin",
             key: "origin",
-            required: true,
+            require: true,
           },
           },
           attr: {
           attr: {
             is: "el-select",
             is: "el-select",
@@ -704,14 +704,14 @@ export default function useColumns() {
           },
           },
         },
         },
         {
         {
-          item: { title: "账期天数", key: "paymetDays", required: true },
+          item: { title: "账期天数", key: "paymetDays", require: true },
           attr: {
           attr: {
             is: "el-input-number",
             is: "el-input-number",
             precision: 2,
             precision: 2,
           },
           },
         },
         },
         {
         {
-          item: { title: "付款比例%", key: "ratio", required: true },
+          item: { title: "付款比例%", key: "ratio", require: true },
           attr: {
           attr: {
             is: "el-input-number",
             is: "el-input-number",
           },
           },
@@ -746,7 +746,7 @@ export default function useColumns() {
           item: {
           item: {
             title: "结算方式",
             title: "结算方式",
             key: "paymentMeans",
             key: "paymentMeans",
-            required: true,
+            require: true,
           },
           },
           attr: {
           attr: {
             is: "el-popover-select-v2",
             is: "el-popover-select-v2",