|
@@ -61,7 +61,7 @@
|
|
|
</avue-crud>
|
|
|
</trade-card>
|
|
|
<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)"
|
|
|
@saveColumn="saveColumn('crudAgent','optionAgent','optionAgentTwo',201.2)">
|
|
|
<template slot-scope="{row,index}" slot="menu">
|
|
@@ -69,7 +69,7 @@
|
|
|
type="text"
|
|
|
size="small"
|
|
|
:icon="row.$cellEdit?'el-icon-circle-plus-outline':'el-icon-edit'"
|
|
|
- @click="edit(row)"
|
|
|
+ @click="edit(row,index,false)"
|
|
|
>{{ row.$cellEdit ? '确 认' : '编 辑' }}
|
|
|
</el-button>
|
|
|
<el-button
|
|
@@ -629,12 +629,17 @@ export default {
|
|
|
prop: 'agentId',
|
|
|
filterable:true,
|
|
|
cell: true,
|
|
|
- dicUrl: '/api/blade-client/corpsdesc/bidingCorpsList',
|
|
|
+ dicUrl: '/api/blade-client/corpsdesc/bidingCorpsList?corpsTypeName=货代',
|
|
|
type: 'select',
|
|
|
props: {
|
|
|
label: "cname",
|
|
|
value: "id"
|
|
|
},
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "change"
|
|
|
+ }],
|
|
|
index:1,
|
|
|
}, {
|
|
|
label: '联系人',
|
|
@@ -912,13 +917,23 @@ export default {
|
|
|
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 {
|
|
|
- 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) {
|
|
|
this.$confirm('是否确认删除?', '提示', {
|
|
|
confirmButtonText: '确定',
|