Przeglądaj źródła

采购订单物料药品属性读取不到问题

002390 1 rok temu
rodzic
commit
24373a418d

+ 7 - 0
src/components/popover-select/components/MATERIAL_PARAM.js

@@ -22,6 +22,7 @@ export default [
   {
     item: { key: "registrationNo", title: "注册证号", width: "auto" },
     attr: {
+      type:'ComputedInput',
       formatter: (prop) => {
         return prop.materialMedcine.registrationNo;
       },
@@ -30,6 +31,7 @@ export default [
   {
     item: { key: "isDrug", title: "物料药品属性", width: "auto" },
     attr: {
+      type:'ComputedInput',
       formatter: (prop) => {
         return prop.materialMedcine.isDrug == "0" ? "Y" : "N";
       },
@@ -38,6 +40,7 @@ export default [
   {
     item: { key: "isDrugNumber", title: "药品", width: "auto" },
     attr: {
+      type:'ComputedInput',
       formatter: (prop) => {
         return prop.materialMedcine.isDrug;
       },
@@ -58,6 +61,7 @@ export default [
   {
     item: { key: "dosageFrom", title: "剂型", width: "auto" },
     attr: {
+      type:'ComputedInput',
       formatter: (prop) => {
         return prop.materialMedcine.dosageFrom;
       },
@@ -66,6 +70,7 @@ export default [
   {
     item: { key: "dosageFromName", title: "剂型名称", width: "auto" },
     attr: {
+      type:'ComputedInput',
       formatter: (prop) => {
         return prop.materialMedcine.dosageFromName;
       },
@@ -74,6 +79,7 @@ export default [
   {
     item: { key: "curingType", title: "养护类型", width: "auto" },
     attr: {
+      type:'ComputedInput',
       formatter: (prop) => {
         return prop.materialMedcine.curingType;
       },
@@ -82,6 +88,7 @@ export default [
   {
     item: { key: "medicalInstruments", title: "医疗器械", width: "auto" },
     attr: {
+      type:'ComputedInput',
       formatter: (prop) => {
         return prop.materialMedcine.medicalInstruments;
       },

+ 1 - 0
src/components/popover-select/components/TAX_RATE_PARAM.js

@@ -11,6 +11,7 @@ export default [
   {
     item: { key: "ntaxrate", title: "税率%", width: "auto" },
     attr: {
+      type:'ComputedInput',
       formatter: (prop) => {
         return Number(prop.ntaxrate === "0E-8" ? 0 : prop.ntaxrate).toFixed(6);
       },

+ 1 - 1
src/components/popover-select/index.vue

@@ -315,7 +315,7 @@ export default {
                 v-if="attr.type === 'ComputedInput'"
                 v-model="scope.row[item.key]"
                 :source="scope.row"
-                :computed="attr.computed"
+                :formatter="attr.formatter"
                 :placeholder="attr.placeholder"
                 style="width: 100%"
               ></dr-computed-input>

+ 1 - 1
src/views/purchase/purchase-order/add/column.js

@@ -935,7 +935,7 @@ export const TabColumns = [
           materialManufacturersCode:'manufacturersMaterialCode',
           specification:'specification',
           model:'model',
-          isMedcine:'isMedicineValue',
+          isMedcine:'isMedicine',
           manufacturer:'manufacturerId',
           manufacturerName:'manufacturerIdName',
           unit:'unitId',