From 1331e9edaf52ec0820dd1c7efc605127aa3a2c36 Mon Sep 17 00:00:00 2001
From: heshaofeng <heshaofeng@hnkhzn.com>
Date: 星期三, 26 十一月 2025 20:29:28 +0800
Subject: [PATCH] 提交

---
 项目代码/WIDESEA_WMSClient/src/extension/outbound/outboundOrder.js |  593 ++++++++++++++++++++++++++++++++++------------------------
 1 files changed, 347 insertions(+), 246 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/outboundOrder.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/outboundOrder.js"
index 5eb8232..e8aff0e 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/outboundOrder.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/outboundOrder.js"
@@ -1,265 +1,366 @@
 
 //姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜
 import http from '@/api/http.js'
-import { h,createVNode, render,reactive  } from 'vue';
-import { ElDialog , ElForm, ElFormItem, ElInput, ElButton, ElMessage ,ElSelect, ElOption} from 'element-plus';
+import { h, createVNode, render, reactive, ref } from 'vue';
+import { ElDialog, ElForm, ElFormItem, ElInput, ElButton, ElMessage, ElSelect, ElOption } from 'element-plus';
 
 import gridBody from './extend/outOrderDetail.vue'
 let extension = {
-    components: {
-      //鏌ヨ鐣岄潰鎵╁睍缁勪欢
-      gridHeader: '',
-      gridBody: gridBody,
-      gridFooter: '',
-      //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢
-      modelHeader: '',
-      modelBody: '',
-      modelFooter: ''
-    },
-    tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓)
-    buttons: { view: [
-       /* {
-        name: '鍑哄簱',
-        type: 'primary',
-        value: '鍑哄簱',
-        onClick: function () { // 淇锛氱敤ElMessage鏇夸唬this.$message
-          const selectedRows = this.$refs.table.getSelected();
-          if (selectedRows.length === 0) {
-            ElMessage.warning('璇峰厛閫夋嫨瑕佺敓鎴愪换鍔$殑琛�');
-            return;
-          }
-          if (selectedRows.length > 1) {
-            ElMessage.warning('鍙兘閫夋嫨涓�琛�');
-            return;
-          }
-    
+  components: {
+    //鏌ヨ鐣岄潰鎵╁睍缁勪欢
+    gridHeader: '',
+    gridBody: gridBody,
+    gridFooter: '',
+    //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢
+    modelHeader: '',
+    modelBody: '',
+    modelFooter: ''
+  },
+  tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓)
+  buttons: {
+    view: [
+      /* {
+       name: '鍑哄簱',
+       type: 'primary',
+       value: '鍑哄簱',
+       onClick: function () { // 淇锛氱敤ElMessage鏇夸唬this.$message
+         const selectedRows = this.$refs.table.getSelected();
+         if (selectedRows.length === 0) {
+           ElMessage.warning('璇峰厛閫夋嫨瑕佺敓鎴愪换鍔$殑琛�');
+           return;
+         }
+         if (selectedRows.length > 1) {
+           ElMessage.warning('鍙兘閫夋嫨涓�琛�');
+           return;
+         }
+   
 
-          // 鎵�鏈夋牎楠岄�氳繃锛岃Е鍙戜富缁勪欢鎵撳紑鍑哄簱寮圭獥
-          console.log('鎵�鏈夋牎楠岄�氳繃锛岃Е鍙憃penOutboundDialog浜嬩欢锛屽崟鎹暟鎹細', selectedRows[0]);
-         
-          this.$emit('openOutboundDialog', {
-            transNo: selectedRows[0].transNo,       // 鍑哄簱鍗曠紪鍙�
-            createDate: selectedRows[0].createDate || new Date().toLocaleDateString()  // 鍑哄簱鏃ユ湡
-          });
-        }
-      }, */
+         // 鎵�鏈夋牎楠岄�氳繃锛岃Е鍙戜富缁勪欢鎵撳紑鍑哄簱寮圭獥
+         console.log('鎵�鏈夋牎楠岄�氳繃锛岃Е鍙憃penOutboundDialog浜嬩欢锛屽崟鎹暟鎹細', selectedRows[0]);
+        
+         this.$emit('openOutboundDialog', {
+           transNo: selectedRows[0].transNo,       // 鍑哄簱鍗曠紪鍙�
+           createDate: selectedRows[0].createDate || new Date().toLocaleDateString()  // 鍑哄簱鏃ユ湡
+         });
+       }
+     }, */
       {
-  name: '绌烘墭鐩樺嚭搴�',
-  type: 'primary',
-  value: '绌烘墭鐩樺嚭搴�',
-  onClick: function () {
-    
-    // 2. 鐢熸垚3-12绔欏彴閫夐」锛堥粯璁ょ涓�涓负绔欏彴3锛�
-    const platformOptions = Array.from({ length: 1 }, (_, i) => {
-      const num = 1;
-      return { label: `绔欏彴${num}`, value: `1-2` };
-    });
+        name: '绌烘墭鐩樺嚭搴�',
+        type: 'primary',
+        value: '绌烘墭鐩樺嚭搴�',
+        onClick: function () {
 
-    const mountNode = document.createElement('div');
-    document.body.appendChild(mountNode);
 
-    // 3. 琛ㄥ崟鏁版嵁锛堥粯璁ら�変腑绔欏彴3锛�
-    const formData = reactive({
-      palletCode: '',
-      selectedPlatform: platformOptions[0].value // 榛樿缁戝畾绔欏彴3鐨剉alue
-    });
+          const platformOptions = Array.from({ length: 1 }, (_, i) => {
+            const num = 1;
+            return { label: `绔欏彴${num}`, value: `1-2` };
+          });
 
-    const vnode = createVNode(ElDialog, {
-      title: '绌烘墭鐩樺嚭搴�',
-      width: '500px', // 寰皟瀹藉害鏇村崗璋�
-      modelValue: true,
-      appendToBody: true,
-      'onUpdate:modelValue': (isVisible) => {
-        if (!isVisible) {
-          render(null, mountNode);
-          document.body.removeChild(mountNode);
-        }
-      },
-      style: {
-        padding: '20px 0', // 寮圭獥鍐呬笂涓嬬暀鐧斤紝閬垮厤鍐呭绱ц创杈规
-        borderRadius: '8px' // 杞诲井鍦嗚锛屾彁鍗囪川鎰�
-      }
-    }, {
-      default: () => h(ElForm, {
-        model: formData,
-        rules: {
-          palletCode: [
-            { type: 'string', message: '鏂欑鍙峰繀椤讳负瀛楃涓�', trigger: 'blur' }
-          ],
-          selectedPlatform: [
-            { required: true, message: '璇烽�夋嫨鍑哄簱绔欏彴', trigger: 'change' }
-          ]
-        },
-        ref: 'batchOutForm',
-        labelWidth: '100px', // 鍥哄畾鏍囩瀹藉害锛岀‘淇濆榻�
-        style: {
-          padding: '0 30px', // 琛ㄥ崟宸﹀彸鐣欑櫧锛屽鍔犲懠鍚告劅
-        }
-      }, [
-        // 鍑哄簱绔欏彴锛堜笂锛屼紭鍖栨牱寮忥級
-        h(ElFormItem, {
-          label: '鍑哄簱绔欏彴',
-          prop: 'selectedPlatform',
-          style: {
-            marginBottom: '24px' // 琛ㄥ崟椤归棿璺濅紭鍖�
-          }
-        }, [
-          h(ElSelect, {
-            placeholder: '璇烽�夋嫨鍑哄簱绔欏彴锛�3-12锛�',
-            modelValue: formData.selectedPlatform,
-            'onUpdate:modelValue': (val) => {
-              formData.selectedPlatform = val;
-            },
-            style: {
-              width: '100%',
-              height: '40px', // 缁熶竴缁勪欢楂樺害
-              borderRadius: '4px',
-              borderColor: '#dcdfe6'
-            }
-          }, platformOptions.map(platform => 
-            h(ElOption, { label: platform.label, value: platform.value })
-          ))
-        ]),
-        // 鎵樼洏缂栧彿锛堜笅锛屼紭鍖栨牱寮忥級
-        h(ElFormItem, {
-          label: '鏂欑鍙�',
-          prop: 'palletCode',
-          style: {
-            marginBottom: '16px' // 涓庢寜閽尯鎷夊紑鍚堢悊闂磋窛
-          }
-        }, [
-          h(ElInput, {
-            type: 'text',
-            placeholder: '鍙�夎緭鍏ユ枡绠卞彿锛屼笉濉垯鑷姩鍒嗛厤绌烘枡绠�',
-            modelValue: formData.palletCode,
-            'onUpdate:modelValue': (val) => {
-              formData.palletCode = val;
-            },
-            style: {
-              width: '100%',
-              height: '40px', // 涓庨�夋嫨鍣ㄩ珮搴︾粺涓�
-              borderRadius: '4px',
-              borderColor: '#dcdfe6'
-            },
-            attrs: {
-              placeholderStyle: 'color: #909399;' // 鍗犱綅鏂囧瓧棰滆壊浼樺寲锛屾洿鏌斿拰
-            }
-          })
-        ]),
-        // 搴曢儴鎸夐挳鍖猴紙鏍峰紡浼樺寲锛�
-        h('div', {
-          style: {
-            textAlign: 'right',
-            marginTop: '8px',
-            paddingRight: '4px' // 鎸夐挳涓庡彸渚у榻愬井璋�
-          }
-        }, [
-          h(ElButton, {
-            type: 'text',
-            onClick: () => {
-              render(null, mountNode);
-              document.body.removeChild(mountNode);
-              ElMessage.info('鍙栨秷鍑哄簱鎿嶄綔');
-            },
-            style: {
-              marginRight: '8px',
-              color: '#606266' // 鍙栨秷鎸夐挳棰滆壊浼樺寲
-            }
-          }, '鍙栨秷'),
-          h(ElButton, {
-            type: 'primary',
-            onClick: async () => {
-              const formRef = vnode.component.refs.batchOutForm;
-              try {
-                await formRef.validate();
-              } catch (err) {
-                return;
+          const quantityOptions = Array.from({ length: 6 }, (_, i) => ({
+            label: (i + 1).toString(),
+            value: i + 1
+          }));
+
+          const warehouseOptions = ref([]);
+          const isLoadingWarehouses = ref(false);
+
+          const getWarehouseList = async () => {
+            isLoadingWarehouses.value = true;
+            try {
+              const { data, status } = await http.post('/api/LocationInfo/GetLocationTypes');
+              if (status && Array.isArray(data)) {
+                // 鏍煎紡鍖栦粨搴撻�夐」锛氶�傞厤ElSelect鐨刲abel-value鏍煎紡
+                warehouseOptions.value = data.map(item => ({
+                  label: item.locationTypeDesc,
+                  value: item.locationType
+                }));
+              } else {
+                ElMessage.error('鑾峰彇鍖哄煙鍒楄〃澶辫触');
+                warehouseOptions.value = [];
               }
+            } catch (err) {
+              ElMessage.error('鍖哄煙鏁版嵁璇锋眰寮傚父锛岃绋嶅悗閲嶈瘯');
+              warehouseOptions.value = [];
+            } finally {
+              isLoadingWarehouses.value = false;
+            }
+          };
 
-              http.post('/api/Task/PalletOutboundTask?palletCode='+formData.palletCode+'&endStation='+formData.selectedPlatform, {
-                
-              }).then(({ data, status, message }) => {
-                if (status) {
-                  ElMessage.success(`鍑哄簱鎴愬姛锛屽垎閰嶇殑鎵樼洏缂栧彿锛�${data.palletCode || formData.palletCode}`);
-                  this.refresh();
-                  render(null, mountNode);
-                  document.body.removeChild(mountNode);
-                } else {
-                  ElMessage.error(message || data?.message || '鍑哄簱澶辫触');
-                }
-              }).catch(() => {
-                ElMessage.error('璇锋眰澶辫触锛岃绋嶅悗閲嶈瘯');
-              });
+          const mountNode = document.createElement('div');
+          document.body.appendChild(mountNode);
+
+
+          const formData = reactive({
+            warehouseCode: '',
+            palletCode: '',
+            selectedPlatform: platformOptions[0].value,
+            quantity: 1
+          });
+
+          const vnode = createVNode(ElDialog, {
+            title: '绌烘墭鐩樺嚭搴�',
+            width: '500px',
+            modelValue: true,
+            appendToBody: true,
+            onOpened: async () => {
+              await getWarehouseList();
+              const inputRef = vnode.component.refs.boxCodeInput;
+              inputRef?.focus();
+            },
+            'onUpdate:modelValue': (isVisible) => {
+              if (!isVisible) {
+                render(null, mountNode);
+                document.body.removeChild(mountNode);
+              }
             },
             style: {
-              borderRadius: '4px',
-              padding: '8px 20px' // 鎸夐挳鍐呰竟璺濅紭鍖栵紝鐐瑰嚮鍖哄煙鏇磋垝閫�
+              padding: '20px 0',
+              borderRadius: '8px'
             }
-          }, '纭畾')
-        ])
-      ])
-    });
+          }, {
+            default: () => h(ElForm, {
+              model: formData,
+              rules: {
+                warehouseCode: [
+                  { required: true, message: '璇烽�夋嫨鍖哄煙', trigger: ['change', 'blur'] }
+                ],
+                palletCode: [
+                  { type: 'string', message: '鏂欑鍙峰繀椤讳负瀛楃涓�', trigger: 'blur' }
+                ],
+                selectedPlatform: [
+                  { required: true, message: '璇烽�夋嫨鍑哄簱绔欏彴', trigger: 'change' }
+                ],
+                quantity: [
+                  { required: true, message: '璇烽�夋嫨绌虹鏁伴噺', trigger: 'change' }
+                ]
+              },
+              ref: 'batchOutForm',
+              labelWidth: '100px',
+              style: {
+                padding: '0 30px',
+              }
+            },
+              [
+                //   h(ElFormItem, {
+                //     label: '浠撳簱鍖哄煙',
+                //     prop: 'warehouseCode',
+                //     style: {
+                //       marginBottom: '24px' 
+                //     }
+                //   }, [
+                //     h(ElSelect, {
+                //       placeholder: '璇烽�夋嫨浠撳簱鍖哄煙',
+                //       modelValue: formData.warehouseCode,
+                //       'onUpdate:modelValue': (val) => {
+                //         formData.warehouseCode = val;
+                //       },
+                //       style: {
+                //         width: '100%',
+                //         height: '40px', 
+                //         borderRadius: '4px',
+                //         borderColor: '#dcdfe6'
+                //       }
+                //     }, warehouseOptions.value.map(platform => 
+                //       h(ElOption, { label: platform.label, value: platform.value })
+                //     ))
+                //   ]),
+                h(ElFormItem, {
+                  label: '鍑哄簱绔欏彴',
+                  prop: 'selectedPlatform',
+                  style: {
+                    marginBottom: '24px'
+                  }
+                }, [
+                  h(ElSelect, {
+                    placeholder: '璇烽�夋嫨鍑哄簱绔欏彴',
+                    modelValue: formData.selectedPlatform,
+                    'onUpdate:modelValue': (val) => {
+                      formData.selectedPlatform = val;
+                    },
+                    style: {
+                      width: '100%',
+                      height: '40px',
+                      borderRadius: '4px',
+                      borderColor: '#dcdfe6'
+                    }
+                  }, platformOptions.map(platform =>
+                    h(ElOption, { label: platform.label, value: platform.value })
+                  ))
+                ]),
+                //   h(ElFormItem,{
+                //     label:'鍑哄簱鏁伴噺',
+                //     prop:'quantity',
+                //     style:{
+                //       marginBottom:'24px'
+                //     }
+                //   },[h(ElSelect,{
+                //     placeholder:'璇烽�夋嫨绌虹鏁伴噺',
+                //     modelValue:formData.quantity,
+                //     'onUpdate:modelValue':(val)=>{
+                //       formData.quantity=val;
+                //     },
+                //     style:{
+                //       width:'100%',
+                //       height:'40px',
+                //       borderRadius:'4px',
+                //       borderColor:'#dcdfe6'
+                //     },
+                //     filterable:false
+                //   },
+                //   quantityOptions.map(option=>
+                //     h(ElOption,{
+                //       label:option.label,
+                //       value:option.value
+                //     })
+                //   )
+                // )]),                                 
+                h(ElFormItem, {
+                  label: '鏂欑鍙�',
+                  prop: 'palletCode',
+                  style: {
+                    marginBottom: '16px'
+                  }
+                }, [
+                  h(ElInput, {
+                    type: 'text',
+                    placeholder: '鍙�夎緭鍏ユ枡绠卞彿锛屼笉濉垯鑷姩鍒嗛厤绌烘枡绠�',
+                    modelValue: formData.palletCode,
+                    'onUpdate:modelValue': (val) => {
+                      formData.palletCode = val;
+                    },
+                    style: {
+                      width: '100%',
+                      height: '40px',
+                      borderRadius: '4px',
+                      borderColor: '#dcdfe6'
+                    },
+                    attrs: {
+                      placeholderStyle: 'color: #909399;'
+                    }
+                  })
+                ]),
 
-    vnode.appContext = this.$.appContext;
-    render(vnode, mountNode);
-  }
-}
-    ], box: [], detail: [] }, //鎵╁睍鐨勬寜閽�
-    methods: {
-       //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄�
-      onInit() {  
-        //鎵╁睍椤甸潰鍒濆鍖栨搷浣�
-        this.columns.push({
-          field: '鎿嶄綔',
-          title: '鎿嶄綔',
-          width: 90,
-          fixed: 'right',
-          align: 'center',
-          formatter: (row) => {
-              return (
-                  '<i style="cursor: pointer;color: #2d8cf0;"class="el-icon-view">鏌ョ湅鏄庣粏</i>'
-              );
-          },
-          click: (row) => {
-              this.$refs.gridBody.open(row);
-          }
-      });
-      },
-      onInited() {
-        //妗嗘灦鍒濆鍖栭厤缃悗
-        //濡傛灉瑕侀厤缃槑缁嗚〃,鍦ㄦ鏂规硶鎿嶄綔
-        //this.detailOptions.columns.forEach(column=>{ });
-      },
-      searchBefore(param) {
-        //鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟
-        //杩斿洖false锛屽垯涓嶄細鎵ц鏌ヨ
-        return true;
-      },
-      searchAfter(result) {
-        //鏌ヨ鍚庯紝result杩斿洖鐨勬煡璇㈡暟鎹�,鍙互鍦ㄦ樉绀哄埌琛ㄦ牸鍓嶅鐞嗚〃鏍肩殑鍊�
-        return true;
-      },
-      addBefore(formData) {
-        //鏂板缓淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛紝鍙互缁欑粰琛ㄥ崟璁剧疆鍊硷紝鑷繁杈撳嚭鐪媐ormData鐨勫��
-        return true;
-      },
-      updateBefore(formData) {
-        //缂栬緫淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛ㄣ�佸垹闄よ鐨処d
-        return true;
-      },
-      rowClick({ row, column, event }) {
-        //鏌ヨ鐣岄潰鐐瑰嚮琛屼簨浠�
-        this.$refs.table.$refs.table.toggleRowSelection(row); //鍗曞嚮琛屾椂閫変腑褰撳墠琛�;
-      },
-      modelOpenAfter(row) {
-        //鐐瑰嚮缂栬緫銆佹柊寤烘寜閽脊鍑烘鍚庯紝鍙互鍦ㄦ澶勫啓閫昏緫锛屽锛屼粠鍚庡彴鑾峰彇鏁版嵁
-        //(1)鍒ゆ柇鏄紪杈戣繕鏄柊寤烘搷浣滐細 this.currentAction=='Add';
-        //(2)缁欏脊鍑烘璁剧疆榛樿鍊�
-        //(3)this.editFormFields.瀛楁='xxx';
-        //濡傛灉闇�瑕佺粰涓嬫媺妗嗚缃粯璁ゅ�硷紝璇烽亶鍘唗his.editFormOptions鎵惧埌瀛楁閰嶇疆瀵瑰簲data灞炴�х殑key鍊�
-        //鐪嬩笉鎳傚氨鎶婅緭鍑虹湅锛歝onsole.log(this.editFormOptions)
+                h('div', {
+                  style: {
+                    textAlign: 'right',
+                    marginTop: '8px',
+                    paddingRight: '4px'
+                  }
+                }, [
+                  h(ElButton, {
+                    type: 'text',
+                    onClick: () => {
+                      render(null, mountNode);
+                      document.body.removeChild(mountNode);
+                      ElMessage.info('鍙栨秷鍑哄簱鎿嶄綔');
+                    },
+                    style: {
+                      marginRight: '8px',
+                      color: '#606266'
+                    }
+                  }, '鍙栨秷'),
+                  h(ElButton, {
+                    type: 'primary',
+                    onClick: async () => {
+                      const formRef = vnode.component.refs.batchOutForm;
+                      try {
+                        await formRef.validate();
+                      } catch (err) {
+                        return;
+                      }
+
+                      http.post('/api/Task/PalletOutboundTask?palletCode=' + formData.palletCode + '&endStation=' + formData.selectedPlatform, {
+
+                      }).then(({ data, status, message }) => {
+                        if (status) {
+
+                          ElMessage.success(`鍑哄簱鎴愬姛`);
+                          this.refresh();
+                          render(null, mountNode);
+                          document.body.removeChild(mountNode);
+                        } else {
+                          ElMessage.error(message || data?.message || '鍑哄簱澶辫触');
+                        }
+                      }).catch(() => {
+                        ElMessage.error('璇锋眰澶辫触锛岃绋嶅悗閲嶈瘯');
+                      });
+                    },
+                    style: {
+                      borderRadius: '4px',
+                      padding: '8px 20px'
+                    }
+                  }, '纭畾')
+                ])
+              ])
+          });
+
+          vnode.appContext = this.$.appContext;
+          render(vnode, mountNode);
+        }
       }
+    ], box: [], detail: []
+  }, //鎵╁睍鐨勬寜閽�
+  methods: {
+    //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄�
+    onInit() {
+      //鎵╁睍椤甸潰鍒濆鍖栨搷浣�
+      this.columns.push({
+        field: '鎿嶄綔',
+        title: '鎿嶄綔',
+        width: 90,
+        fixed: 'right',
+        align: 'center',
+        formatter: (row) => {
+          return (
+            '<i style="cursor: pointer;color: #2d8cf0;"class="el-icon-view">鏌ョ湅鏄庣粏</i>'
+          );
+        },
+        click: (row) => {
+          const table = this.$refs.table.$refs.table;
+          if (table) {
+            table.clearSelection();
+            table.toggleRowSelection(row, true);
+          }
+          const rowId = row.id;
+          console.log(rowId);
+          this.$refs.gridBody.open(row);
+        }
+      });
+    },
+    onInited() {
+      //妗嗘灦鍒濆鍖栭厤缃悗
+      //濡傛灉瑕侀厤缃槑缁嗚〃,鍦ㄦ鏂规硶鎿嶄綔
+      //this.detailOptions.columns.forEach(column=>{ });
+    },
+    searchBefore(param) {
+      //鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟
+      //杩斿洖false锛屽垯涓嶄細鎵ц鏌ヨ
+      return true;
+    },
+    searchAfter(result) {
+      //鏌ヨ鍚庯紝result杩斿洖鐨勬煡璇㈡暟鎹�,鍙互鍦ㄦ樉绀哄埌琛ㄦ牸鍓嶅鐞嗚〃鏍肩殑鍊�
+      return true;
+    },
+    addBefore(formData) {
+      //鏂板缓淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛紝鍙互缁欑粰琛ㄥ崟璁剧疆鍊硷紝鑷繁杈撳嚭鐪媐ormData鐨勫��
+      return true;
+    },
+    updateBefore(formData) {
+      //缂栬緫淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛ㄣ�佸垹闄よ鐨処d
+      return true;
+    },
+    rowClick({ row, column, event }) {
+      //鏌ヨ鐣岄潰鐐瑰嚮琛屼簨浠�
+      this.$refs.table.$refs.table.toggleRowSelection(row); //鍗曞嚮琛屾椂閫変腑褰撳墠琛�;
+    },
+    modelOpenAfter(row) {
+      //鐐瑰嚮缂栬緫銆佹柊寤烘寜閽脊鍑烘鍚庯紝鍙互鍦ㄦ澶勫啓閫昏緫锛屽锛屼粠鍚庡彴鑾峰彇鏁版嵁
+      //(1)鍒ゆ柇鏄紪杈戣繕鏄柊寤烘搷浣滐細 this.currentAction=='Add';
+      //(2)缁欏脊鍑烘璁剧疆榛樿鍊�
+      //(3)this.editFormFields.瀛楁='xxx';
+      //濡傛灉闇�瑕佺粰涓嬫媺妗嗚缃粯璁ゅ�硷紝璇烽亶鍘唗his.editFormOptions鎵惧埌瀛楁閰嶇疆瀵瑰簲data灞炴�х殑key鍊�
+      //鐪嬩笉鎳傚氨鎶婅緭鍑虹湅锛歝onsole.log(this.editFormOptions)
     }
-  };
-  export default extension;
-  
\ No newline at end of file
+  }
+};
+export default extension;

--
Gitblit v1.9.3