| 
					
				 | 
			
			
				@@ -10,10 +10,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div class="add-customer-btn"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <!--<el-button type="info" icon="el-icon-printer" size="small" @click.stop="openReport()">报表打印--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <!--</el-button>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <!--<el-button type="primary" size="small"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <!--  class="el-button--small-yh " @click.stop="openEdit">编辑--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <!--</el-button>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-button type="primary" size="small" @click="editCustomer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-button type="primary" size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            class="el-button--small-yh"  :disabled="!option.disabled" @click.stop="openEdit">编辑 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-button type="primary" size="small" :disabled="option.disabled" @click="editCustomer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             保存数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -21,7 +21,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <trade-card title="基础资料" style="margin-top: 60px" v-loading="loadingBtn"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <avue-form ref="form" class="trading-form" v-model="form" :option="option"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot="corpId"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <crop-select v-model="form.corpId" corpType="KH" :disabled="detailData.status == 1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <crop-select v-model="form.corpId" corpType="KH" :disabled="option.disabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @getCorpData="getCorpData"></crop-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </avue-form> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -31,7 +31,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           @resetColumn="resetColumn" :cell-style="cellStyle"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot="headerSerial"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-button type="primary" icon="el-icon-plus" size="mini" @click.stop="addRow" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :disabled="detailData.status == 1" circle></el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :disabled="option.disabled" circle></el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <template slot="code" slot-scope="{ row, index }"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -41,12 +41,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot="menu" slot-scope="{ row, index }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <el-button size="small" type="text" @click="imgurlfun(row)">信息码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <el-button size="small" type="text" v-if="row.url" @click="imgurlfun(row)">信息码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-button size="small" type="text" :disabled="detailData.status == 1" @click="rowCell(row, index)">{{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button size="small" type="text" :disabled="option.disabled" @click="rowCell(row, index)">{{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 row.$cellEdit ? "保存" : "修改" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }}</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-button size="small" type="text" :disabled="detailData.status == 1" @click="rowDel(row, index)">删除 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button size="small" type="text" :disabled="option.disabled" @click="rowDel(row, index)">删除 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </avue-crud> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -165,6 +165,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             label: "客户名称", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             prop: "corpId", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             rules: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 required: true, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -422,6 +423,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.getAllWorkDicts() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 查看是否要id调用详情 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (this.detailData.id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.option.disabled = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.getDetail(this.detailData.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -580,6 +582,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // brandId	品牌id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let arr = this.data.map(item=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    id:item.id?item.id:null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     cname:item.cname, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     code:item.code, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     brand:item.brand, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -630,7 +633,6 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 查看图片 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       imgurlfun(row){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.imgfalse = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          console.log(row.url) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.imgtext = row.url 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       imgfalseClose(){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -661,7 +663,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     openEdit() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.detailData.status = 2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // this.detailData.status = 2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.option.disabled = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.option = this.$options.data().option; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.option2 = this.$options.data().option2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$refs.crud.refreshTable(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -674,8 +677,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 产品弹窗导入 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       importGoods(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (this.goodsListSave.length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              console.log(this.goodsListSave,'445') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               for (let item of this.goodsListSave) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  delete item.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   this.data.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                       $cellEdit: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                       storageId: this.form.storageId, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -683,8 +686,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              console.log('475') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               for (let item of this.tableData) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  delete item.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   this.data.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                       $cellEdit: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                       storageId: this.form.storageId, 
			 |