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

采购预留处理-删除部分无用注释代码,修改页面中数字框

002390 1 жил өмнө
parent
commit
52d47b1d00

+ 11 - 11
src/views/purchase/ownership/columns.js

@@ -83,64 +83,64 @@ export default function useColumns() {
       item: { key: "source", title: "单据来源" },
       attr: {
         is: "el-input",
-        readonly: true,
+        disabled: true,
       }
     },
     {
       item: { key: "puCode", title: "集采编号" },
       attr: {
         is: "el-input",
-        readonly: true,
+        disabled: true,
       }
     },
     {
       item: { key: "createTime", title: "创建时间" },
       attr: {
         is: "el-input",
-        readonly: true,
+        disabled: true,
       }
     },
     {
       item: { key: "customerName", title: "客户" },
       attr: {
         is: "el-input",
-        readonly: true,
+        disabled: true,
       }
     },
     {
       item: { key: "materialCode", title: "物料编码" },
       attr: {
         is: "el-input",
-        readonly: true,
+        disabled: true,
       }
     },
     {
       item: { key: "materialName", title: "物料" },
       attr: {
         is: "el-input",
-        readonly: true,
+        disabled: true,
       }
     },
     {
       item: { key: "usedQty", title: "已用量" },
       attr: {
         is: "el-input",
-        readonly: true,
+        disabled: true,
       }
     },
     {
       item: { key: "reservedQty", title: "预留数量" },
       attr: {
         is: "el-input",
-        readonly: true,
+        disabled: true,
       }
     },
     {
       item: { key: "qty", title: "可用量" },
       attr: {
-        is: "el-input",
-        type: "number",
-        min: "0",
+        is: "el-input-number",
+        min: 0,
+        controlsPosition: "right",
       }
     },
   ]

+ 1 - 39
src/views/purchase/ownership/index.vue

@@ -46,43 +46,6 @@
 
     <!-- 添加或修改任务对话框 -->
     <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
-      <!-- <el-form :size="size" ref="form" :model="form" label-width="80px">
-        <el-descriptions :column="1">
-          <el-descriptions-item label="单据来源">{{
-            form.source
-          }}</el-descriptions-item>
-          <el-descriptions-item label="集采编号">{{
-            form.puCode
-          }}</el-descriptions-item>
-          <el-descriptions-item label="创建时间">{{
-            form.createTime
-          }}</el-descriptions-item>
-          <el-descriptions-item label="客户">{{
-            form.customerName
-          }}</el-descriptions-item>
-          <el-descriptions-item label="物料编码">{{
-            form.materialCode
-          }}</el-descriptions-item>
-          <el-descriptions-item label="物料" span="2">{{
-            form.materialName
-          }}</el-descriptions-item>
-          <el-descriptions-item label="已用量">{{
-            form.usedQty
-          }}</el-descriptions-item>
-          <el-descriptions-item label="预留数量">{{
-            form.reservedQty
-          }}</el-descriptions-item>
-        </el-descriptions>
-        <el-form-item label="可用量">
-          <el-input
-            type="number"
-            min="0"
-            :size="size"
-            v-model="form.qty"
-            @input="useFormQtyChange"
-          />
-        </el-form-item>
-      </el-form> -->
       <el-super-form
         v-model="form"
         :dict="dict"
@@ -92,7 +55,6 @@
         ref="superForm"
         label-width="auto"
         label-position="right"
-        style="padding: 20px"
       >
         <template slot="qty" slot-scope="scope">
           <component
@@ -100,7 +62,7 @@
             v-model="scope.row[scope.item.key]"
             :size="$attrs.size"
             :source.sync="scope.row"
-            @input="useFormQtyChange"
+            @change="useFormQtyChange"
           >
           </component
         ></template>