Ver Fonte

修改点击修改按钮后数据无法获取的问题---cjh

17767204043 há 2 anos atrás
pai
commit
cc9cff7b7d
1 ficheiros alterados com 7 adições e 6 exclusões
  1. 7 6
      src/views/BasicSettings/Stock/classify.vue

+ 7 - 6
src/views/BasicSettings/Stock/classify.vue

@@ -155,12 +155,12 @@
           fixed="right"
         >
           <template slot-scope="{ row }">
-            <Button @click="handleContextMenusys(row.row,2)"
+            <Button @click="handleContextMenusys(row,2)"
                     style="margin-right:5px"
                     class="margin-map"
                     size='small'
                     type="primary">修改</Button>
-            <Button @click="delItems(row.row)"
+            <Button @click="delItems(row)"
                     style="margin-left:5px"
                     size='small'
                     type="error">删除</Button>
@@ -209,9 +209,9 @@
         </FormItem>
         <FormItem label='价格计算方式'>
           <Select v-model="postInfo.mode">
-            <Option label="件"
+            <Option label="件"
                     :value="1"></Option>
-            <Option label="重"
+            <Option label="重"
                     :value='2'></Option>
           </Select>
         </FormItem>
@@ -357,7 +357,7 @@ export default {
         { title: '主材', align: 'center', key: 'principal_material', minWidth: 200 },
         {
           title: '价格计算方式', align: 'center', key: '', minWidth: 150,
-          render: (h, params) => h('span', params.row.mode == 1 ? '记件' : '记重')
+          render: (h, params) => h('span', params.row.mode == 1 ? '计件' : '计重')
         },
         { title: '原料编码', align: 'center', key: 'original_code', minWidth: 200 },
         { title: '原料名称', align: 'center', key: 'original_title', minWidth: 200 },
@@ -448,7 +448,7 @@ export default {
                 // }
                 // return '';
             },
-    //历史
+    //历史
     handleHistoryRecordDownload () {
       this.showModal = true
     },
@@ -588,6 +588,7 @@ export default {
       })
     },
     handleContextMenusys (row, type, right) {
+      console.log(row);
       if (this.sameObj.children && this.sameObj.children.length > 0 && type == 1) {
         return
       }