| 
					
				 | 
			
			
				@@ -3,8 +3,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <div class="borderless"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div class="customer-head"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div class="customer-back"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            @click="backToList">返回列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left" @click="backToList"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            返回列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div class="add-customer-btn"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -23,19 +23,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <avue-form ref="form" class="trading-form" v-model="form" :option="option"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot="goodsTypeId"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <div style="display:flex;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <avue-cascader :emit-path="false" check-strictly :show-all-levels="false" v-model="form.goodsTypeId" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                placeholder="请选择产品分类" :dic="goodsTypeList" :props="props"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              </avue-cascader> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <i class="el-icon-circle-plus-outline" style="font-size:18px;line-height: 32px;margin-left:4px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                @click="goodsTypeVisible = true"></i> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <avue-cascader :emit-path="false" check-strictly :show-all-levels="false" v-model="form.goodsTypeId" placeholder="请选择产品分类" :dic="goodsTypeList" :props="props"></avue-cascader> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <i class="el-icon-circle-plus-outline" style="font-size:18px;line-height: 32px;margin-left:4px" @click="goodsTypeVisible = true"></i> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot="unit"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <div style="display:flex;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <avue-select v-model="form.unit" filterable placeholder="请选择单位" :dic="unitList" :props="props2"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              </avue-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <i class="el-icon-circle-plus-outline" style="font-size:18px;line-height: 32px;margin-left:4px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                @click="$refs.dictbiz.open()"></i> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <avue-select v-model="form.unit" filterable placeholder="请选择单位" :dic="unitList" :props="props2"></avue-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <i class="el-icon-circle-plus-outline" style="font-size:18px;line-height: 32px;margin-left:4px" @click="$refs.dictbiz.open()"></i> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot="whether"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -47,19 +42,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <avue-crud ref="crud" :option="optionList" :data="data" :table-loading="loading" @saveColumn="saveColumn" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           @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> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button type="primary" icon="el-icon-plus" size="mini" @click.stop="addRow" :disabled="detailData.status == 1" circle></el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot="storageIdHeader" slot-scope="{column}"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <span style="color: #409EFF;cursor: pointer" @click.stop="storageVisible = true">仓库 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span style="color: #409EFF;cursor: pointer" @click.stop="storageVisible = true">仓库</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot="menu" slot-scope="{ row, index }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-button size="small" type="text" @click="rowCell(row, index)">{{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                row.$cellEdit ? "保存" : "修改" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            }}</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-button size="small" type="text" @click="rowDel(row, index)">删除 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button size="small" type="text" @click="rowCell(row, index)">{{row.$cellEdit ? "保存" : "修改"}}</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button size="small" type="text" @click="rowDel(row, index)">删除</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </avue-crud> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </trade-card> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -68,8 +58,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-dialog title="设置产品分类" v-dialogDrag :visible.sync="goodsTypeVisible" class="avue-dialog" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         width="80%" append-to-body @closed="goodsTypeClosed"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <!-- <avue-form :key="reload" ref="goodsType" v-model="form2" :option="option2" style="margin-top:20px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </avue-form> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <!-- <avue-form :key="reload" ref="goodsType" v-model="form2" :option="option2" style="margin-top:20px"></avue-form> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <goods-type></goods-type> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div class="avue-dialog__footer"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -77,19 +66,16 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button @click="saveGoodstype" type="primary" size="mini">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-dialog title="添加仓库" v-dialogDrag :visible.sync="storageVisible" class="avue-dialog avue-dialog--top" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        width="30%" append-to-body @closed="storageClosed"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-dialog title="添加仓库" v-dialogDrag :visible.sync="storageVisible" class="avue-dialog avue-dialog--top" width="30%" append-to-body @closed="storageClosed"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <avue-form :key="reload2" ref="storage" v-model="form3" :option="option3" style="margin-top:20px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </avue-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <avue-form :key="reload2" ref="storage" v-model="form3" :option="option3" style="margin-top:20px"></avue-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div class="avue-dialog__footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button @click="storageVisible = false" size="mini">取 消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button @click="savestorage" type="primary" size="mini">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <dictbiz-dialog ref="dictbiz" title="添加单位" code="unit" parentId="1585962784498225154" @closed="getAllWorkDicts"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </dictbiz-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <dictbiz-dialog ref="dictbiz" title="添加单位" code="unit" parentId="1585962784498225154" @closed="getAllWorkDicts"></dictbiz-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -248,6 +234,14 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            label: "销售数量", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            prop: "salesVolumes", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            type: 'number', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            minRows: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            controls: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            span: 8 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             label: "标签", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             prop: "label", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             type: 'checkbox', 
			 |