QuKatie 3 anni fa
parent
commit
a629cd6910

+ 29 - 6
src/views/businessManagement/salesOrder/detailsPageEdit.vue

@@ -25,7 +25,7 @@
           <el-dropdown-menu slot="dropdown">
             <el-dropdown-item :disabled="browse" @click.native="pleaseCheck">请核数据</el-dropdown-item>
             <el-dropdown-item v-if="form.status > 0" @click.native="checkScheduleDialog = true,checkId=form.id">审核进度</el-dropdown-item>
-            <el-dropdown-item v-if="false">撤销请核</el-dropdown-item>
+            <el-dropdown-item v-if="form.status == 1" @click.native="repealCancel">撤销请核</el-dropdown-item>
             <el-dropdown-item v-if="checkDisabled" @click.native="changeApproveOpen">特殊审批</el-dropdown-item>
           </el-dropdown-menu>
         </el-dropdown>
@@ -260,7 +260,7 @@
               :summary-method="summaryMethod"
               :table-loading="goodsLoading"
           >
-            <template slot="headerSerial" slot-scope="{column}">
+            <template slot="headerSerial">
               <span class="order_number">序号</span>
               <el-button class="number_button" type="primary" icon="el-icon-circle-plus-outline" circle size="mini" @click="$refs.crudContact.rowCellAdd()"></el-button>
             </template>
@@ -275,7 +275,7 @@
 <!--              ></crop-select>-->
 <!--              <span v-else>{{ row.corpName }}</span>-->
 <!--            </template>-->
-            <template slot="code" slot-scope="{row,index}">
+            <template slot="code" slot-scope="{row}">
               <el-button
                 type="text"
                 size="mini"
@@ -346,7 +346,7 @@
 <!--                {{row.cname}}-->
 <!--              </span>-->
 <!--            </template>-->
-            <template slot="shopQuality" slot-scope="{ row, index }">
+            <template slot="shopQuality" slot-scope="{ row }">
               <el-switch
                 v-model="row.shopQuality"
                 :disabled="!row.$cellEdit"
@@ -486,13 +486,13 @@
                        @search-change="goodsSearch"
                        :page.sync="page"
                        @on-load="onLoad">
-              <template slot="menuLeft" slot-scope="{size}">
+              <template slot="menuLeft">
                 <el-tabs v-model="activeName" @tab-click="tabHandle">
                   <el-tab-pane label="查询结果" name="searchList"/>
                   <el-tab-pane label="已选定数据" name="importStaging"/>
                 </el-tabs>
               </template>
-              <template slot="orderQuantity" slot-scope="{row, index}">
+              <template slot="orderQuantity" slot-scope="{row}">
                 <el-input-number
                   v-model="row.orderQuantity"
                   size="small"
@@ -754,6 +754,7 @@ import {
   getlistBankBy,
   getProfit,
   pleaseCheck,
+  repealCancel
 } from "@/api/basicData/configuration"
 import {getList} from "@/api/basicData/commodityType";
 import {getCorpDetail} from "@/api/maintenance/overpayment"
@@ -3351,6 +3352,28 @@ export default {
         })
       }
     },
+    repealCancel(){
+       this.$confirm("您确定撤回此次申请吗?", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(() => {
+          const data = {
+            id : this.form.id,
+            checkType: 'xsqh',
+            pageLabel:"销售订单(N)",
+            checkFlag: 2,
+          }
+          this.pageLoading = true
+          repealCancel(data).then(res => {
+            this.$message.success('撤回成功')
+            this.saveActives = ''
+            this.queryData(this.form.id)
+          }).finally(() => {
+            this.pageLoading = false
+          })
+        })
+    },
     // 验证新旧值对比
     verification() {
       let getGoodsList = []