|  | @@ -61,7 +61,7 @@
 | 
											
												
													
														|  |        </avue-crud>
 |  |        </avue-crud>
 | 
											
												
													
														|  |      </trade-card>
 |  |      </trade-card>
 | 
											
												
													
														|  |      <trade-card title="代理信息">
 |  |      <trade-card title="代理信息">
 | 
											
												
													
														|  | -      <avue-crud ref="crudAgent" :key="key" :option="optionAgent" :data="dataListAgent"
 |  | 
 | 
											
												
													
														|  | 
 |  | +      <avue-crud ref="crudAgent" :key="key" :option="optionAgent" :data="dataListAgent" @row-update="rowUpdate"  @row-save="rowSave"
 | 
											
												
													
														|  |                   @resetColumn="resetColumn('crudAgent','optionAgent','optionAgentTwo',201.2)"
 |  |                   @resetColumn="resetColumn('crudAgent','optionAgent','optionAgentTwo',201.2)"
 | 
											
												
													
														|  |                   @saveColumn="saveColumn('crudAgent','optionAgent','optionAgentTwo',201.2)">
 |  |                   @saveColumn="saveColumn('crudAgent','optionAgent','optionAgentTwo',201.2)">
 | 
											
												
													
														|  |          <template slot-scope="{row,index}" slot="menu">
 |  |          <template slot-scope="{row,index}" slot="menu">
 | 
											
										
											
												
													
														|  | @@ -69,7 +69,7 @@
 | 
											
												
													
														|  |                type="text"
 |  |                type="text"
 | 
											
												
													
														|  |                size="small"
 |  |                size="small"
 | 
											
												
													
														|  |                :icon="row.$cellEdit?'el-icon-circle-plus-outline':'el-icon-edit'"
 |  |                :icon="row.$cellEdit?'el-icon-circle-plus-outline':'el-icon-edit'"
 | 
											
												
													
														|  | -              @click="edit(row)"
 |  | 
 | 
											
												
													
														|  | 
 |  | +              @click="edit(row,index,false)"
 | 
											
												
													
														|  |            >{{ row.$cellEdit ? '确 认' : '编 辑' }}
 |  |            >{{ row.$cellEdit ? '确 认' : '编 辑' }}
 | 
											
												
													
														|  |            </el-button>
 |  |            </el-button>
 | 
											
												
													
														|  |            <el-button
 |  |            <el-button
 | 
											
										
											
												
													
														|  | @@ -629,12 +629,17 @@ export default {
 | 
											
												
													
														|  |            prop: 'agentId',
 |  |            prop: 'agentId',
 | 
											
												
													
														|  |            filterable:true,
 |  |            filterable:true,
 | 
											
												
													
														|  |            cell: true,
 |  |            cell: true,
 | 
											
												
													
														|  | -          dicUrl: '/api/blade-client/corpsdesc/bidingCorpsList',
 |  | 
 | 
											
												
													
														|  | 
 |  | +          dicUrl: '/api/blade-client/corpsdesc/bidingCorpsList?corpsTypeName=货代',
 | 
											
												
													
														|  |            type: 'select',
 |  |            type: 'select',
 | 
											
												
													
														|  |            props: {
 |  |            props: {
 | 
											
												
													
														|  |              label: "cname",
 |  |              label: "cname",
 | 
											
												
													
														|  |              value: "id"
 |  |              value: "id"
 | 
											
												
													
														|  |            },
 |  |            },
 | 
											
												
													
														|  | 
 |  | +          rules: [{
 | 
											
												
													
														|  | 
 |  | +            required: true,
 | 
											
												
													
														|  | 
 |  | +            message: " ",
 | 
											
												
													
														|  | 
 |  | +            trigger: "change"
 | 
											
												
													
														|  | 
 |  | +          }],
 | 
											
												
													
														|  |            index:1,
 |  |            index:1,
 | 
											
												
													
														|  |          }, {
 |  |          }, {
 | 
											
												
													
														|  |            label: '联系人',
 |  |            label: '联系人',
 | 
											
										
											
												
													
														|  | @@ -912,13 +917,23 @@ export default {
 | 
											
												
													
														|  |          this.$refs[ref].$refs.dialogColumn.columnBox = false;
 |  |          this.$refs[ref].$refs.dialogColumn.columnBox = false;
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | -    edit(row){
 |  | 
 | 
											
												
													
														|  | -      if (row.$cellEdit){
 |  | 
 | 
											
												
													
														|  | -        this.$set(row,'$cellEdit',false)
 |  | 
 | 
											
												
													
														|  | 
 |  | +    edit(row,index,type = true){
 | 
											
												
													
														|  | 
 |  | +      if (!type){
 | 
											
												
													
														|  | 
 |  | +        this.$refs.crudAgent.rowCell(row, index)
 | 
											
												
													
														|  |        }else {
 |  |        }else {
 | 
											
												
													
														|  | -        this.$set(row,'$cellEdit',true)
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if (row.$cellEdit){
 | 
											
												
													
														|  | 
 |  | +          this.$set(row,'$cellEdit',false)
 | 
											
												
													
														|  | 
 |  | +        }else {
 | 
											
												
													
														|  | 
 |  | +          this.$set(row,'$cellEdit',true)
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | 
 |  | +    rowSave(form, done) {
 | 
											
												
													
														|  | 
 |  | +      done()
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    rowUpdate(form, index, done) {
 | 
											
												
													
														|  | 
 |  | +      done()
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  |      rowDel(row, index, type) {
 |  |      rowDel(row, index, type) {
 | 
											
												
													
														|  |        this.$confirm('是否确认删除?', '提示', {
 |  |        this.$confirm('是否确认删除?', '提示', {
 | 
											
												
													
														|  |          confirmButtonText: '确定',
 |  |          confirmButtonText: '确定',
 |