| 
					
				 | 
			
			
				@@ -31,6 +31,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   <ProductType id="productChangeRecordList-productType" placeholder="请选择产品分类" @change="changeProductType" v-model="productType"></ProductType> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </a-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <a-col :md="6" :sm="24"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <a-form-item label="产品状态"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <v-select code="ENABLE_FLAG" id="productChangeRecordList-productStatus" v-model="queryParam.enabledFlag" allowClear placeholder="请选择产品状态"></v-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </a-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-col :md="7" :sm="24" style="margin-bottom: 10px;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="productChangeRecordList-refresh">查询</a-button> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -70,7 +75,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <!-- 变更状态 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <span slot="productStatus" slot-scope="text, record"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <a-switch checkedChildren="启用" unCheckedChildren="禁用" v-model="record.loginFlag" @change="changeFlagHandle(text, record)"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <a-switch checkedChildren="启用" unCheckedChildren="禁用" v-model="record.enabledFlag" @change="changeFlagHandle(text, record)"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <!-- 省级价变更后 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <template slot="afterProvincePrice" slot-scope="text, record"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -110,7 +115,7 @@ import { STable, VSelect } from '@/components' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import rangeDate from '@/views/common/rangeDate.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import ProductBrand from '@/views/common/productBrand.js' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import ProductType from '@/views/common/productType.js' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { productPriceChangeList, productPriceChangeExport } from '@/api/product' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { productPriceChangeList, productPriceChangeExport, priceChangeEnabled } from '@/api/product' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'PriceChangeRecordList', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   mixins: [commonMixin], 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -128,7 +133,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         productBrandSn: undefined, //  品牌 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         productTypeSn1: '', //  产品一级分类 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         productTypeSn2: '', //  产品二级分类 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        productTypeSn3: '' //  产品三级分类 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        productTypeSn3: '', //  产品三级分类 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        enabledFlag: undefined 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       productType: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       disabled: false, //  查询、重置按钮是否可操作 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -148,6 +154,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const no = (data.pageNo - 1) * data.pageSize 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             for (var i = 0; i < data.list.length; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               data.list[i].no = no + i + 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              data.list[i].enabledFlag = data.list[i].enabledFlag + '' === '1' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.total = data.count || 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.disabled = false 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -238,6 +245,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryParam.productTypeSn1 = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryParam.productTypeSn2 = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryParam.productTypeSn3 = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.queryParam.enabledFlag = undefined 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.productType = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$refs.table.refresh(true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -315,21 +323,21 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 修改状态 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     changeFlagHandle (text, record) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // const _data = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //   id: record.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //   flag: record.loginFlag ? '1' : '0' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // this.spinning = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // updateEnableStatus(_data).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //   if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //     this.$message.success(res.message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //     this.$refs.table.refresh() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //     this.spinning = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //   } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //     this.$refs.table.refresh() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //     this.spinning = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const _data = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        id: record.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        enabledFlag: record.enabledFlag ? '1' : '0' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.spinning = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      priceChangeEnabled(_data).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$message.success(res.message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$refs.table.refresh() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.spinning = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$refs.table.refresh() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.spinning = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   watch: { 
			 |