|  | @@ -102,7 +102,26 @@
 | 
	
		
			
				|  |  |            v-hasPermi="['store:storePayment:export']"
 | 
	
		
			
				|  |  |          >导出</el-button>
 | 
	
		
			
				|  |  |        </el-col>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +      <el-col :span="1.5">
 | 
	
		
			
				|  |  | +        <el-button
 | 
	
		
			
				|  |  | +        v-if="activeName==0"
 | 
	
		
			
				|  |  | +          type="success"
 | 
	
		
			
				|  |  | +          icon="el-icon-edit"
 | 
	
		
			
				|  |  | +          size="mini"
 | 
	
		
			
				|  |  | +          @click="putOn"
 | 
	
		
			
				|  |  | +          v-hasPermi="['store:storePayment:pullOff']"
 | 
	
		
			
				|  |  | +        >上架</el-button>
 | 
	
		
			
				|  |  | +      </el-col>
 | 
	
		
			
				|  |  | +      <el-col :span="1.5">
 | 
	
		
			
				|  |  | +        <el-button
 | 
	
		
			
				|  |  | +          v-if="activeName==1"
 | 
	
		
			
				|  |  | +          type="success"
 | 
	
		
			
				|  |  | +          icon="el-icon-edit"
 | 
	
		
			
				|  |  | +          size="mini"
 | 
	
		
			
				|  |  | +          @click="pullOff"
 | 
	
		
			
				|  |  | +          v-hasPermi="['store:storePayment:pullOff']"
 | 
	
		
			
				|  |  | +        >下架</el-button>
 | 
	
		
			
				|  |  | +      </el-col>
 | 
	
		
			
				|  |  |  	    <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
 | 
	
		
			
				|  |  |      </el-row>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -536,7 +555,7 @@
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  | -import {genFormatAttr, listStoreProduct, getStoreProduct, delStoreProduct, addOrEdit, exportStoreProduct,importTemplate } from "@/api/store/storeProduct";
 | 
	
		
			
				|  |  | +import {genFormatAttr, putOn,pullOff,listStoreProduct, getStoreProduct, delStoreProduct, addOrEdit, exportStoreProduct,importTemplate } from "@/api/store/storeProduct";
 | 
	
		
			
				|  |  |  import { getAllStoreProductCategory } from "@/api/store/storeProductCategory";
 | 
	
		
			
				|  |  |  import { getAllStoreProductRule } from "@/api/store/storeProductRule";
 | 
	
		
			
				|  |  |  import { getAllShippingTemplates } from "@/api/store/shippingTemplates";
 | 
	
	
		
			
				|  | @@ -1096,6 +1115,39 @@ export default {
 | 
	
		
			
				|  |  |            this.msgSuccess("删除成功");
 | 
	
		
			
				|  |  |          }).catch(function() {});
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    putOn() {
 | 
	
		
			
				|  |  | +       const productIds =this.ids;
 | 
	
		
			
				|  |  | +      if(productIds==null||productIds==""){
 | 
	
		
			
				|  |  | +         return this.$message("未选择商品");
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      this.$confirm('是否确认批量上架商品?', "警告", {
 | 
	
		
			
				|  |  | +          confirmButtonText: "确定",
 | 
	
		
			
				|  |  | +          cancelButtonText: "取消",
 | 
	
		
			
				|  |  | +          type: "warning"
 | 
	
		
			
				|  |  | +        }).then(function() {
 | 
	
		
			
				|  |  | +          return putOn(productIds);
 | 
	
		
			
				|  |  | +        }).then(() => {
 | 
	
		
			
				|  |  | +          this.getList();
 | 
	
		
			
				|  |  | +          this.msgSuccess("上架成功");
 | 
	
		
			
				|  |  | +        }).catch(function() {});
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    pullOff() {
 | 
	
		
			
				|  |  | +      const productIds =this.ids;
 | 
	
		
			
				|  |  | +      if(productIds==null||productIds==""){
 | 
	
		
			
				|  |  | +         return this.$message("未选择商品");
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      this.$confirm('是否确认批量下架商品?', "警告", {
 | 
	
		
			
				|  |  | +          confirmButtonText: "确定",
 | 
	
		
			
				|  |  | +          cancelButtonText: "取消",
 | 
	
		
			
				|  |  | +          type: "warning"
 | 
	
		
			
				|  |  | +        }).then(function() {
 | 
	
		
			
				|  |  | +          return pullOff(productIds);
 | 
	
		
			
				|  |  | +        }).then(() => {
 | 
	
		
			
				|  |  | +          this.getList();
 | 
	
		
			
				|  |  | +          this.msgSuccess("下架成功");
 | 
	
		
			
				|  |  | +        }).catch(function() {});
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      /** 导出按钮操作 */
 | 
	
		
			
				|  |  |      handleExport() {
 | 
	
		
			
				|  |  |        const queryParams = this.queryParams;
 |