姜永辉 пре 2 година
родитељ
комит
e1ff2dc908
1 измењених фајлова са 60 додато и 50 уклоњено
  1. 60 50
      package-inventory/pages/outbound-processing/outbound-processing.js

+ 60 - 50
package-inventory/pages/outbound-processing/outbound-processing.js

@@ -14,14 +14,14 @@ Page({
   /**
    * 页面的初始数据 
    */
-  data: { 
-    isfirst:true,
+  data: {
+    isfirst: true,
     tagList: [{
-        title: mixins.$t('outboundProcessing')
-      },
-      {
-        title: mixins.$t('checkouted')
-      }
+      title: mixins.$t('outboundProcessing')
+    },
+    {
+      title: mixins.$t('checkouted')
+    }
     ],
     // 查询条件
     searchContent: [{
@@ -37,39 +37,39 @@ Page({
 
     // 查询条件-筛选 
     pullMenuList: [{
-        code: 'outType',
-        pullType: 'mSelect',
-        typeName: 'outType'
-      },
-      // {
-      //   code: 'outReason',
-      //   pullType: 'mSelect',
-      //   typeName: 'outReason'
-      // },
-      {
-        code: 'cusName',
-      },
-      {
-        code: 'cusPhone',
-      },
-      {
-        code: 'addressFull',
-      },
+      code: 'outType',
+      pullType: 'mSelect',
+      typeName: 'outType'
+    },
+    // {
+    //   code: 'outReason',
+    //   pullType: 'mSelect',
+    //   typeName: 'outReason'
+    // },
+    {
+      code: 'cusName',
+    },
+    {
+      code: 'cusPhone',
+    },
+    {
+      code: 'addressFull',
+    },
 
-      {
-        code: 'staffName',
-      },
-      {
-        code: 'orgName',
-      },
-      {
-        code: 'supName',
-      },
-      {
-        code: 'flgValid',
-        title: mixins.$t('flgValid'),
-        dataType: 'checkbox'
-      },
+    {
+      code: 'staffName',
+    },
+    {
+      code: 'orgName',
+    },
+    {
+      code: 'supName',
+    },
+    {
+      code: 'flgValid',
+      title: mixins.$t('flgValid'),
+      dataType: 'checkbox'
+    },
     ],
 
     // 列表区(脚部金额)
@@ -153,13 +153,22 @@ Page({
       }],
     },
 
-    // 弹出按钮
-		{
+    // 弹出按钮
+    buttonList: [
+      {
         name: 'editOrder',
         title: mixins.$t('edit'),
       },
+      {
+        name: 'invaidOrder',
         title: mixins.$t('invaidOrder'),
-      
+
+      },
+      {
+        name: 'ticketPirnt',
+        title: mixins.$t('ticketPirnt'),
+      }
+    ],
 
     // 底部保存按钮
     buttonFootList: [{
@@ -250,10 +259,11 @@ Page({
     }
     this.open(e);
   },
-   * @desc : 设置查询参数
-   * @date : 2024年3月8日
-   * @author : 姜永辉
-   */
+  /**
+   *  @desc : 设置查询参数
+  * @date : 2024年3月8日
+  * @author : 姜永辉
+  */
   setSearchParams(params) {
     console.log(params);
     if (this.data.active == 0) {
@@ -269,7 +279,7 @@ Page({
     params.outTypes = params.outTypeList
     //采购订单明细 跳转到出库办理  
     let isfirst = this.data.isfirst
-    let purNo = this.data.item.purNo
+    let purNo = this.data.item ? this.data.item.purNo : null
     if (isfirst && purNo) { //第一次进入 取传过来的  
       let searchForm = this.data.searchForm ? JSON.parse(this.data.searchForm) : {}
       searchForm.searchText = purNo || ''
@@ -407,7 +417,7 @@ Page({
         url: this.data.route.add.url,
         events: {
           // 回调后,在这里给页面赋值
-          bandData: function (e) {}
+          bandData: function (e) { }
         },
         success: function (res) {
           res.eventChannel.emit('params', {
@@ -423,7 +433,7 @@ Page({
         url: this.data.route.addOther.url,
         events: {
           // 回调后,在这里给页面赋值
-          bandData: function (e) {}
+          bandData: function (e) { }
         },
         success: function (res) {
           res.eventChannel.emit('params', {
@@ -438,7 +448,7 @@ Page({
         url: this.data.route.addReturn.url,
         events: {
           // 回调后,在这里给页面赋值
-          bandData: function (e) {}
+          bandData: function (e) { }
         },
         success: function (res) {
           res.eventChannel.emit('params', {