koushanshan пре 2 година
родитељ
комит
8a58cf7968

+ 1 - 1
src/api/pages/ivt/out-handle.js

@@ -11,7 +11,7 @@ export default {
     //其他出库新建
     outboundInsert: 'outbound_insert',
     //其他出库办理
-    handleInbound:'outbound_handle',
+    handleOutbound:'outbound_handle',
     //其他出库根据总单id查询总单和明细  出库办理用
     selectByUpdate: 'select_by_update',
     //出库撤回

+ 3 - 3
src/components/business/select-magnifier/setting.js

@@ -60,7 +60,7 @@ const data = {
       {itemCode: 'staffName'},
     ],
     // 查询条件一行个数
-    colCount: 4,
+    colCount: 2,
     // 弹窗的宽度
     modalWidth: 600,
     // 列表主键Id
@@ -69,8 +69,8 @@ const data = {
     selectLabel: 'staffName',
     // 列表列
     columns: [
-      {field: 'staffCodeName', width: '200', title: $t('staff')},
-      {field: 'orgName', title: $t('orgId')},
+      {field: 'staffCodeName', title: $t('staff'), width: 'auto'},
+      {field: 'orgName', title: $t('orgId'), width: 'auto'},
     ],
   },
   // 责任员工

+ 19 - 0
src/libs/update-columns/index.js

@@ -174,4 +174,23 @@ export default {
     {updateField: 'WhId', valueFiled: 'whId'},
   ],
 
+  /**
+   *   @desc   : 其他出库
+   *   @date   : 2024/4/8 14:09
+   *   @author : 寇珊珊
+   */
+  outChooseIvt:[
+    {updateField: 'skuModel', valueFiled: 'skuModel'},
+    {updateField: 'skuName', valueFiled: 'skuName'},
+    {updateField: 'invId', valueFiled: 'invId'},
+    {updateField: 'skuId', valueFiled: 'skuId'},
+    {updateField: 'skuCode', valueFiled: 'skuCode'},
+    {updateField: 'whName', valueFiled: 'whName'},
+    {updateField: 'invQty', valueFiled: 'invQty'},
+    {updateField: 'usableQty', valueFiled: 'usableQty'},
+    {updateField: 'priceInto', valueFiled: 'priceInto'},
+    {updateField: 'brandName', valueFiled: 'brandName'},
+    {updateField: 'skuSpec', valueFiled: 'skuSpec'},
+  ],
+
 }

+ 8 - 0
src/locale/lang/zh-CN.js

@@ -536,6 +536,13 @@ export const columns = {
   trfInMacName:'转入账户',
   trfOutMacName:'转出账户',
   amtTrf:'转账金额',
+  outReason:'出库原因',
+  autoOutFlag:'自动办理出库',
+  objOutId:'出库对象',
+  outboundObjectName:'出库对象',
+  outQuantity:'出库数量',
+  outAmount:'出库金额',
+
 }
 
 /**
@@ -630,6 +637,7 @@ export const messages = {
   W_116: '已出库数据不允许进行出库办理',
   W_117: '出库中数据不允许进行出库撤回',
   W_118: '作废单据不允许进行此操作',
+  W_119: '出库数量不能大于库存量',
   E_001: '系统出现异常,请联系管理员。',
   Q_001: '当前页面的数据有过更改,请确认需要保存吗?',
   Q_002: '确定要进行{param}操作吗?',

+ 3 - 3
src/view/ivt/entry-handle/form.vue

@@ -273,9 +273,9 @@
         }
       },
       /**
-       * @desc   : 自动入库标识变更
-       * @author : 夏常明
-       * @date   : 2023/9/1 16:34
+       *   @desc   : 自动入库标识变更
+       *   @date   : 2024/4/8 15:32
+       *   @author : 寇珊珊
        */
       changeIntoStatus() {
         if (this.type === this.$config.formMode.add) {

+ 8 - 0
src/view/ivt/entry-handle/index.vue

@@ -84,6 +84,8 @@
           <DkTableColumn field="cusFrom" :title="$t('takeOverAddress')"></DkTableColumn>
           <!--制单人-->
           <DkTableColumn field="makeStaffName" :filter="false"></DkTableColumn>
+          <!-- 有效标识-->
+          <DkTableColumn field="flgValid" type="switch"/>
           <!--入库办理人-->
           <!--          <DkTableColumn field="doneUserName" :title="$t('entryHandleUser')"></DkTableColumn>-->
           <!-- 备注-->
@@ -140,6 +142,8 @@
           <DkTableColumn field="cusFrom" :title="$t('takeOverAddress')"></DkTableColumn>
           <!--制单人-->
           <DkTableColumn field="makeStaffName" :filter="false"></DkTableColumn>
+          <!-- 有效标识-->
+          <DkTableColumn field="flgValid" type="switch"/>
           <!--入库办理人-->
           <!--          <DkTableColumn field="doneUserName" :title="$t('entryHandleUser')"></DkTableColumn>-->
           <!-- 备注-->
@@ -598,6 +602,7 @@
           //作废单据不允许进行此操作
           if(!rows[0].flgValid){
             this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+            return false;
           }
           //已入库不允许进行入库办理
           if (this.tableModel == 'ingIn') {
@@ -610,6 +615,7 @@
           //作废单据不允许进行此操作
           if(!rows[0].flgValid){
             this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+            return false;
           }
           //入库中不允许进行入库撤回
           if (this.tableModel == 'waitIn') {
@@ -622,6 +628,7 @@
           //作废单据不允许进行此操作
           if(!rows[0].flgValid){
             this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+            return false;
           }
         }
         //作废
@@ -629,6 +636,7 @@
           //作废单据不允许进行此操作
           if(!rows[0].flgValid){
             this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+            return false;
           }
         }
         return true;

+ 119 - 134
src/view/ivt/out-handle/form.vue

@@ -1,4 +1,4 @@
-<!-- @desc:其它库新建 @auth:常皓宁 @time : 2024/2/19 9:38 -->
+<!-- @desc:其它库新建 @auth:常皓宁 @time : 2024/2/19 9:38 -->
 <template>
   <div class="main-div">
     <!--加载中-->
@@ -8,27 +8,27 @@
       <DkPanel prop="essentialInformation">
         <div id="search-cond-div" ref="search-cond-div" slot="content" class="form-content-class">
           <DkForm slot="content" ref="formInline" v-model="formData" style="width:100%" :label-max-words="6">
-            <!--库单号-->
-            <DkFormItem prop="intoNo">
-              <InputPop ref="intoNo" v-model="formData.intoNo"
+            <!--库单号-->
+            <DkFormItem prop="outNo">
+              <InputPop ref="outNo" v-model="formData.outNo"
                         :readonly="true"/>
             </DkFormItem>
-            <!-- 库对象 -->
-            <DkFormItem prop="objId" >
+            <!-- 库对象 -->
+            <DkFormItem prop="objId"  :label="$t('objOutId')" >
               <SelectMagnifier v-model="formData.objId"
                                ref="objId"
                                primary-key="objId"
-                               :display-text="formData.inboundObjectName"
+                               :display-text="formData.outboundObjectName"
                                :multiple=false
                                :disabled="canEditFlag"
                                @ok="inboundObjectChange"
                                :type="this.$config.MagnifierType.supplierAndCustomer">
               </SelectMagnifier>
             </DkFormItem>
-            <!-- 库原因 -->
-            <DkFormItem prop="intoReason" :required="true" >
-              <SelectPop v-model="formData.intoReason" :multiple="false" :options="inboundReasonList"
-                         ref="intoReason"
+            <!-- 库原因 -->
+            <DkFormItem prop="outReason" :required="true" >
+              <SelectPop v-model="formData.outReason" :multiple="false" :options="inboundReasonList"
+                         ref="outReason"
                          :labelInValue="true"
                          :disabled="canEditFlag"
                          labelKey="dataValue"
@@ -60,8 +60,8 @@
                                ref="orgId"
                                :type="this.$config.MagnifierType.organization"></SelectMagnifier>
             </DkFormItem>
-            <!--自动库标识-->
-            <DkFormItem prop="autoFlag" v-show="showAutoFlag">
+            <!--自动库标识-->
+            <DkFormItem prop="autoOutFlag" v-show="showAutoFlag">
               <template>
                 <i-switch v-model="formData.flgAutoHandle" @on-change="changeIntoStatus"
                           :disabled="type === $config.formMode.handle">
@@ -70,10 +70,10 @@
                 </i-switch>
               </template>
             </DkFormItem>
-            <!--库日期-->
-            <DkFormItem prop="intoDate"  v-show="showIntoDate">
-              <DatePickerPop v-model="formData.intoDate"
-                             :placeholder="$t('inputWords',{'search-name':$t('intoDate')})"
+            <!--库日期-->
+            <DkFormItem prop="outDate"  v-show="showoutDate">
+              <DatePickerPop v-model="formData.outDate"
+                             :placeholder="$t('inputWords',{'search-name':$t('outDate')})"
                              type="date" :short-cut-flag="true" :readonly="true"/>
             </DkFormItem>
             <!--备注-->
@@ -94,7 +94,7 @@
                      controlId="skuId"
                      @on-choose="getTotals"
                      @changeValue="changeValue"
-                     @onBatchChoose="batchChoose"
+                     @cell-click="handleClickTable"
                      :add-flag="this.addFlag"
                      :delete-flag="this.deleteFlag"
           ></EditTable>
@@ -136,20 +136,20 @@
       return {
         //画面模式选项角标
         bottomList: ['1', '2', '3', '5'],
-        //库原因
+        //库原因
         inboundReasonList: [],
-        //是否显示自动办理库标识
+        //是否显示自动办理库标识
         showAutoFlag: true,
-        //库日期是否显示
-        showIntoDate: false,
+        //库日期是否显示
+        showoutDate: false,
         // 画面表单数据
         formData: {
-          intoId: null,//入库单Id
-          objId: null,//库对象id
-          intoNo: null,//入库单号
-          intoDate:null,//入库日期
-          intoReason: null,//入库原因
-          flgAutoHandle: false,//自动库标识
+          outId: null,//出库单Id
+          objId: null,//库对象id
+          outNo: null,//出库单号
+          outDate:null,//出库日期
+          outReason: null,//出库原因
+          flgAutoHandle: false,//自动库标识
           cusId: null,//客户id
           cusName: null,//客户名称
           cusPhone: null,//客户电话
@@ -158,7 +158,6 @@
           makeTime:new Date().format(),//制单日期
           supId: null,//供应商id
           remarks: null,//备注
-          defWhId: null,//部门默认仓库ID
           // 附件
           annexPaths: [],
           staffId:null,
@@ -175,8 +174,8 @@
             controlId: 'skuId',
             type: 'tableSelect',
             width: 200,
-            dataType: self.$config.tableSelectType.goodsForOrder,
-            fieldUpdate: self.$updateColumns.orderChooseGoods,
+            dataType: self.$config.tableSelectType.inventory,
+            fieldUpdate: self.$updateColumns.outChooseIvt,
             searchDetailFlag: true
           },
           // 商品名称
@@ -185,55 +184,68 @@
             controlId: 'skuId',
             type: 'tableSelect',
             width: 200,
-            dataType: self.$config.tableSelectType.goods,
-            fieldUpdate: self.$updateColumns.orderChooseGoods,
+            dataType: self.$config.tableSelectType.inventory,
+            fieldUpdate: self.$updateColumns.outChooseIvt,
             searchDetailFlag: true
           },
-          // 入库数量
+          //库存数量
+          {
+            field: 'invQty',
+            type: 'disabled',
+          },
+          // 出库数量
           {
             field: 'outingQty',
-            title: self.$t('entryQty'),
+            title: self.$t('outQuantity'),
             type: 'number',
             digits: 0,
             sum: true,
             formula: {
-              outingAmt: ['priceOut*outingQty', 'priceOut', 'outingQty'],
+              outingAmt: ['priceInto*outingQty', 'priceInto', 'outingQty'],
             },
           },
-          //库单价
+          //库单价
           {
-            field: 'priceOut',
-            type: 'number',
+            field: 'priceInto',
+            title: self.$t('priceOut'),
+            type: 'disabled',
             digits: 2,
-            flgUserSensitive: true,
             formula: {
-              outingAmt: ['priceOut*outingQty', 'priceOut', 'outingQty'],
+              outingAmt: ['priceInto*outingQty', 'priceInto', 'outingQty'],
             },
           },
-          //库金额
+          //库金额
           {
             field: 'outingAmt',
-            title: self.$t('entryAmt'),
+            title: self.$t('outAmount'),
             type: 'disabled',
             digits: 2,
             sum: true,
             formula: {
-              priceOut: ['outingAmt/outingQty', 'outingAmt', 'outingQty'],
+              priceInto: ['outingAmt/outingQty', 'outingAmt', 'outingQty'],
             },
           },
           //仓库名称
           {
-            field: 'whId',
-            type: 'select',
-            options: () => self.warehouseList,
-            labelKey: 'whName',
-            valueKey: 'whId',
-            dataType: self.$config.tableSelectType.warehouse,
+            field: 'whName',
+            type: 'tableSelect',
+            multiple: false,
+            sortBoolean: false,
+            dataType: self.$config.tableSelectType.inventory,
+            otherSearchParam: () => {
+              return {
+                skuId: self.currentRow?.skuId,
+                nonStdCode: self.currentRow?.nonStdCode,
+              }
+            },
             fieldUpdate: [
-              {updateField: 'whName', valueFiled: 'whName'},
+              {updateField: 'invQty', valueFiled: 'invQty'},
+              {updateField: 'usableQty', valueFiled: 'usableQty'},
+              {updateField: 'invId', valueFiled: 'invId'},
               {updateField: 'whId', valueFiled: 'whId'},
+              {updateField: 'whName', valueFiled: 'whName'},
             ],
-            searchDataFlag: false,
+            searchDetailFlag: true
           },
           {field: 'brandName', type: 'disabled'},//商品品牌
           {field: 'skuSpec', type: 'disabled'}, //规格
@@ -243,10 +255,6 @@
         goodsFootFormData: {
           sumGoodsAmount: 0,
         },
-        //仓库
-        warehouseList: [],
-        whId:null,
-        whName:null,
         //可以编辑标识
         canEditFlag:false,
         addFlag: true ,//商品信息新增
@@ -256,7 +264,7 @@
 
     methods: {
       /**
-       *   @desc   : 库对象改变事件
+       *   @desc   : 库对象改变事件
        *   @date   : 2024/3/13 10:55
        *   @author : 寇珊珊
        */
@@ -273,21 +281,31 @@
         }
       },
       /**
-       * @desc   : 自动入库标识变更
-       * @author : 夏常明
-       * @date   : 2023/9/1 16:34
+       *   @desc   : 自动出库标识变更
+       *   @date   : 2024/4/8 15:31
+       *   @author : 寇珊珊
        */
       changeIntoStatus() {
         if (this.type === this.$config.formMode.add) {
           if (this.formData.flgAutoHandle) {
-            this.formData.intoDate = new Date().format("yyyy-MM-dd")
-            this.showIntoDate = true
+            this.formData.outDate = new Date().format("yyyy-MM-dd")
+            this.showoutDate = true
           }else{
-            this.formData.intoDate = null
-            this.showIntoDate = false
+            this.formData.outDate = null
+            this.showoutDate = false
           }
         }else {
-          this.formData.intoDate = new Date().format("yyyy-MM-dd")
+          this.formData.outDate = new Date().format("yyyy-MM-dd")
+        }
+      },
+      /**
+       *   @desc   : 表格点击事件
+       *   @date   : 2024/4/8 14:35
+       *   @author : 寇珊珊
+       */
+      handleClickTable(e) {
+        if (e) {
+          this.currentRow = e.row
         }
       },
       /**
@@ -326,45 +344,6 @@
         this.goodsFootFormData.sumGoodsAmount = itemAmount;
         this.formData.outingAmt = outingAmt;
         this.formData.outingQty = outingQty;
-        //选择数据带出默认仓库
-        if (!row.whId || row.whId === 0 || row.whId === null) {
-          this.$set(row, 'whId', this.whId);
-          this.$set(row, 'whId_Name', this.whName);
-        }
-      },
-      /**
-       *   @desc   : 批量选择
-       *   @date   : 2024/3/14 10:04
-       *   @author : 寇珊珊
-       */
-      batchChoose(batchRows,rowIndex){
-        console.log("batchRows",batchRows)
-        batchRows.forEach(it=> {
-          if(!it.whId || it.whId === 0 || it.whId === null){
-            this.$set(it,'whId',this.whId);
-            this.$set(it,'whId_Name',this.whName);
-          }
-        })
-      },
-      /**
-       *   @desc   : 查询仓库
-       *   @date   : 2024/3/14 8:45
-       *   @author : 寇珊珊
-       */
-      getWarehouse() {
-        let params = {
-          'cpId': this.$store.state.user.cpId,
-          'flgValid': true
-        }
-        this.excute(this.$service.commonService, this.$service.commonService.getWarehouse, params, false).then(res => {
-          if (res.code === this.$config.SUCCESS_CODE) {
-            this.warehouseList = res.data
-            //赋值默认仓库 组件需要
-            let newList = res.data.filter(it=>it.flgDefault)
-            this.whId = newList[0].whId
-            this.whName = newList[0].whName
-          }
-        })
       },
       /**
        *   @desc   : 获取数据字典
@@ -374,7 +353,7 @@
       getDictionaryData() {
         let params = {
           'cpId': this.$store.state.user.cpId,
-          'dictCode': this.$config.kindCode.basicEnter,
+          'dictCode': this.$config.kindCode.basicOut,
           'flgValid': true
         }
         this.excute(this.$service.commonService, this.$service.commonService.getDictionaryData, params, false).then(res => {
@@ -389,8 +368,6 @@
        *   @author : 寇珊珊
        */
       initData() {
-        //获取仓库
-        this.getWarehouse()
         //获取数据字典
         this.getDictionaryData()
       },
@@ -410,10 +387,15 @@
             this.$message.warning(this.$t('W_041', {'param': this.$t('sequence') + (i + 1) + this.$t('rowNo') + this.$t('outingQty')}))
             return false;
           }
-          if (!itemTable[i].priceOut || itemTable[i].priceOut === '') {
+          if (!itemTable[i].priceInto || itemTable[i].priceInto === '') {
             this.$message.warning(this.$t('W_041', {'param': this.$t('sequence') + (i + 1) + this.$t('rowNo') + this.$t('priceOut')}))
             return false;
           }
+          if (itemTable[i].outingQty > itemTable[i].usableQty) {
+            this.$message.warning(this.$t('sequence') + (i + 1) + this.$t('rowNo') + this.$t('W_119'))
+            // this.$Message.warning(this.$t('W_007', {'param': '本次出库数量不能大于库存量'}))
+            return false;
+          }
         }
         return true;
       },
@@ -430,14 +412,15 @@
           this.formData.outingQty =null
           this.formData.outingAmt = null
         }
-        //库时间
-        if(this.formData.intoDate){
-          this.formData.intoDate  = new Date(this.formData.intoDate).format('yyyy-MM-dd')
+        //库时间
+        if(this.formData.outDate){
+          this.formData.outDate  = new Date(this.formData.outDate).format('yyyy-MM-dd')
         }
         // 修改新增的表数据
         let itemTable = this.$refs['goodsTable'].getTableDataFilter();
-        if(itemTable.filter(it=>it.whId).length==itemTable.length){
-          this.params.whId =itemTable[0].whId
+        //出库价赋值
+        for(let i=0;i<itemTable.length;i++){
+          itemTable[i].priceOut = itemTable[i].priceInto
         }
         this.formData.staffId = this.formData.makeStaff
         this.formData.itemList = itemTable;
@@ -452,15 +435,15 @@
       saveData() {
         //新建
         if (this.type === this.$config.formMode.add) {
-          return this.excute(this.$service.otherInboundService, this.$service.otherInboundService.inboundInsert, this.params)
+          return this.excute(this.$service.otherOutboundService, this.$service.otherOutboundService.outboundInsert, this.params)
         }
-        //库办理
+        //库办理
         else if(this.type === this.$config.formMode.handle) {
-          return this.excute(this.$service.otherInboundService, this.$service.otherInboundService.handleInbound, this.params)
+          return this.excute(this.$service.otherOutboundService, this.$service.otherOutboundService.handleOutbound, this.params)
         }
         //编辑
         else if(this.type === this.$config.formMode.edit){
-          return this.excute(this.$service.otherInboundService, this.$service.otherInboundService.inboundUpdate, this.params)
+          return this.excute(this.$service.otherOutboundService, this.$service.otherOutboundService.outboundUpdate, this.params)
         }
       },
       /**
@@ -470,12 +453,12 @@
        */
       clear() {
         this.formData = {
-          intoId: null,//入库单Id
-          inboundObject: null,//库对象id
-          intoNo: null,//入库单号
-          intoDate: null,//入库日期
-          intoReason: null,//入库原因
-          flgAutoHandle: false,//自动库标识
+          outId: null,//出库单Id
+          inboundObject: null,//库对象id
+          outNo: null,//出库单号
+          outDate: null,//出库日期
+          outReason: null,//出库原因
+          flgAutoHandle: false,//自动库标识
           cusId: null,//客户id
           cusName: null,//客户名称
           cusPhone: null,//客户电话
@@ -484,7 +467,6 @@
           makeTime:new Date().format(),//制单日期
           supId: null,//供应商id
           remarks: null,//备注
-          defWhId: null,//部门默认仓库ID
           // 附件
           annexPaths: [],
           staffId:null,
@@ -498,7 +480,7 @@
        *   @author : 寇珊珊
        */
       detail(id) {
-        return this.excuteNoParam(this.$service.otherInboundService, this.$service.otherInboundService.selectByUpdate, [id]);
+        return this.excuteNoParam(this.$service.otherOutboundService, this.$service.otherOutboundService.selectByUpdate, [id]);
       },
       /**
        *   @desc   : 编辑页面赋值
@@ -510,16 +492,19 @@
         if (data) {
           this.formData = data["data"];
           this.formData.limitEdit= true
-          this.formData.intoDate = new Date().format("yyyy-MM-dd")
-          //库对象赋值
+          this.formData.outDate = new Date().format("yyyy-MM-dd")
+          //库对象赋值
           if(data['data'].supId && data["data"].supId!=null){
             this.formData.objId = data["data"].supId
-            this.formData.inboundObjectName = data["data"].supplierName
+            this.formData.outboundObjectName = data["data"].supplierName
           }else if(data['data'].cusId && data["data"].cusId!=null){
             this.formData.objId = data["data"].cusId
-            this.formData.inboundObjectName = data["data"].cusName
+            this.formData.outboundObjectName = data["data"].cusName
           }
           //明细赋值
+          for(let i=0;i<data["dataItem"].length;i++){
+            data["dataItem"][i].priceInto = data["dataItem"][i].priceOut
+          }
           this.formData.itemList = data["dataItem"];
           this.goodsFootFormData.sumGoodsAmount = this.formData.outingAmt;
           //办理
@@ -546,7 +531,7 @@
             dataItem.map(row => {
               let item = row
               // 不可查询
-              this.$set(item, 'readOnly', ['skuModel','skuName','outingQty','outingAmt','priceOut','whId'])
+              this.$set(item, 'readOnly', ['skuModel','skuName','outingQty','whId'])
               return item
             })
             this.formData.itemList = dataItem;
@@ -555,14 +540,14 @@
       },
     },
     created() {
-      this.focusItem = 'intoId';    // 给第一个组件赋值,可以在混入中自动去聚焦
-      this.primaryKey = 'intoId'  // 设置主键Id
+      this.focusItem = 'outId';    // 给第一个组件赋值,可以在混入中自动去聚焦
+      this.primaryKey = 'outId'  // 设置主键Id
       //设置默认值
       if (this.$route.params.id){
-        // 库办理
+        // 库办理
         if (this.type === this.$config.formMode.handle) {
           this.showAutoFlag = false;
-          this.showIntoDate = true;
+          this.showoutDate = true;
         }
       }
     }

+ 16 - 8
src/view/ivt/out-handle/index.vue

@@ -83,6 +83,8 @@
           <DkTableColumn field="cusFrom" :title="$t('takeOverAddress')"></DkTableColumn>
           <!--制单人-->
           <DkTableColumn field="makeStaffName" :filter="false"></DkTableColumn>
+          <!-- 有效标识-->
+          <DkTableColumn field="flgValid" type="switch"/>
           <!--出库办理人-->
           <!--          <DkTableColumn field="doneUserName" :title="$t('entryHandleUser')"></DkTableColumn>-->
           <!-- 备注-->
@@ -137,6 +139,8 @@
           <DkTableColumn field="cusFrom" :title="$t('takeOverAddress')"></DkTableColumn>
           <!--制单人-->
           <DkTableColumn field="makeStaffName" :filter="false"></DkTableColumn>
+          <!-- 有效标识-->
+          <DkTableColumn field="flgValid" type="switch"/>
           <!--出库办理人-->
           <!--          <DkTableColumn field="doneUserName" :title="$t('entryHandleUser')"></DkTableColumn>-->
           <!-- 备注-->
@@ -496,12 +500,12 @@ export default {
                 let method = null
                 let service = null
                 //其他出库
-                if (row[0].intoType === this.$config.outTypeBySql.other) {
+                if (row[0].outType === this.$config.outTypeBySql.other) {
                   method = 'inboundCancel'
                   service = 'otherOutboundService'
                 }
                 //销售出库
-                else if (row[0].intoType === this.$config.outTypeBySql.order) {
+                else if (row[0].outType === this.$config.outTypeBySql.order) {
                   //todo
                   method = 'purchaseInboundCancel'
                   service = 'orderOutService'
@@ -553,12 +557,12 @@ export default {
                 let method = null
                 let service = null
                 //其他出库
-                if (row[0].intoType === this.$config.outTypeBySql.other) {
+                if (row[0].outType === this.$config.outTypeBySql.other) {
                   method = 'outboundRepeal'
                   service = 'otherOutboundService'
                 }
                 //销售出库
-                else if (row[0].intoType === this.$config.outTypeBySql.order) {
+                else if (row[0].outType === this.$config.outTypeBySql.order) {
                   method = 'purchaseInboundRepeal'
                   service = 'orderOutService'
                 }
@@ -595,6 +599,7 @@ export default {
         //作废单据不允许进行此操作
         if(!rows[0].flgValid){
           this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+          return false;
         }
         //已出库不允许进行出库办理
         if (this.tableModel == 'ingIn') {
@@ -607,6 +612,7 @@ export default {
         //作废单据不允许进行此操作
         if(!rows[0].flgValid){
           this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+          return false;
         }
         //出库中不允许进行出库撤回
         if (this.tableModel == 'waitIn') {
@@ -619,6 +625,7 @@ export default {
         //作废单据不允许进行此操作
         if(!rows[0].flgValid){
           this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+          return false;
         }
       }
       //作废
@@ -626,6 +633,7 @@ export default {
         //作废单据不允许进行此操作
         if(!rows[0].flgValid){
           this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+          return false;
         }
       }
       return true;
@@ -638,11 +646,11 @@ export default {
     outHandle(row) {
       let name = ''
       //其他出库
-      if (row[0].intoType === this.$config.outTypeBySql.other) {
+      if (row[0].outType === this.$config.outTypeBySql.other) {
         name = 'outHandleOther'
       }
       //销售出库
-      else if (row[0].intoType === this.$config.outTypeBySql.purchaseReturn) {
+      else if (row[0].outType === this.$config.outTypeBySql.purchaseReturn) {
         name = 'outHandleOrder'
       }
       //销售退货出库
@@ -660,11 +668,11 @@ export default {
     edit(row) {
       let name = ''
       //其他出库
-      if (row[0].intoType === this.$config.outTypeBySql.other) {
+      if (row[0].outType === this.$config.outTypeBySql.other) {
         name = 'updateOther'
       }
       //销售出库
-      else if (row[0].intoType === this.$config.outTypeBySql.order) {
+      else if (row[0].outType === this.$config.outTypeBySql.order) {
         name = 'updateOrder'
       }
       //采购退货出库