0c30e8bc by 任超

style:申请业务规则配置

1 parent c61f94a6
...@@ -190,6 +190,7 @@ export default { ...@@ -190,6 +190,7 @@ export default {
190 sfggcl: '1' 190 sfggcl: '1'
191 } 191 }
192 ) 192 )
193 this.key++
193 }, 194 },
194 handleSelectGgcl (item) { 195 handleSelectGgcl (item) {
195 if (item.sfggcl == '1') { 196 if (item.sfggcl == '1') {
......
...@@ -72,12 +72,7 @@ export default { ...@@ -72,12 +72,7 @@ export default {
72 render: (h, scope) => { 72 render: (h, scope) => {
73 return ( 73 return (
74 <div> 74 <div>
75 <el-input placeholder="登记情形编码" v-show={scope.row.nodecodeShow} v-fo class={{ repeat: scope.row.repeat }} disabled={scope.row.sftsdjqx == '1'} 75 <el-input placeholder="登记情形编码" class={{ repeat: scope.row.repeat }} disabled={scope.row.sftsdjqx == '1'}
76 value={scope.row[scope.column.property]} onFocus={() => { this.itemShowFalse(); scope.row.nodecodeShow = true; }}
77 onInput={(val) => { scope.row[scope.column.property] = val }} onBlur={() => { this.nodecodeBlur(scope.$index, scope.row) }} maxlength="8">
78 </el-input>
79
80 <el-input placeholder="登记情形编码" v-show={!scope.row.nodecodeShow} class={{ repeat: scope.row.repeat }} disabled={scope.row.sftsdjqx == '1'}
81 value={scope.row[scope.column.property]} onFocus={() => { this.itemShowFalse(); scope.row.nodecodeShow = true; }} 76 value={scope.row[scope.column.property]} onFocus={() => { this.itemShowFalse(); scope.row.nodecodeShow = true; }}
82 onInput={(val) => { scope.row[scope.column.property] = val }} onBlur={() => { this.nodecodeBlur(scope.$index, scope.row) }} maxlength="8"> 77 onInput={(val) => { scope.row[scope.column.property] = val }} onBlur={() => { this.nodecodeBlur(scope.$index, scope.row) }} maxlength="8">
83 </el-input> 78 </el-input>
...@@ -91,10 +86,7 @@ export default { ...@@ -91,10 +86,7 @@ export default {
91 render: (h, scope) => { 86 render: (h, scope) => {
92 return ( 87 return (
93 <div> 88 <div>
94 <el-input placeholder="登记情形名称" v-show={scope.row.nodenameShow} v-fo disabled={scope.row.sftsdjqx == '1'} value={scope.row[scope.column.property]} 89 <el-input placeholder="登记情形名称" disabled={scope.row.sftsdjqx == '1'}
95 onInput={(val) => { scope.row[scope.column.property] = val }}
96 onFocus={() => { this.itemShowFalse(); scope.row.nodenameShow = true; }}></el-input>
97 <el-input placeholder="登记情形名称" v-show={!scope.row.nodenameShow} disabled={scope.row.sftsdjqx == '1'}
98 onFocus={() => { this.itemShowFalse(); scope.row.nodenameShow = true; }} value={scope.row[scope.column.property]} 90 onFocus={() => { this.itemShowFalse(); scope.row.nodenameShow = true; }} value={scope.row[scope.column.property]}
99 onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> 91 onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
100 </div> 92 </div>
...@@ -119,10 +111,7 @@ export default { ...@@ -119,10 +111,7 @@ export default {
119 render: (h, scope) => { 111 render: (h, scope) => {
120 return ( 112 return (
121 <div> 113 <div>
122 <el-input placeholder="登记原因模板" v-show={scope.row.djyyShow} v-fo disabled={scope.row.sftsdjqx == '1'} value={scope.row[scope.column.property]} 114 <el-input placeholder="登记原因模板" disabled={scope.row.sftsdjqx == '1'} value={scope.row[scope.column.property]}
123 onInput={(val) => { scope.row[scope.column.property] = val }}
124 onFocus={() => { this.itemShowFalse(); scope.row.djyyShow = true; }}></el-input>
125 <el-input placeholder="登记原因模板" v-show={!scope.row.djyyShow} v-fo disabled={scope.row.sftsdjqx == '1'} value={scope.row[scope.column.property]}
126 onInput={(val) => { scope.row[scope.column.property] = val }} 115 onInput={(val) => { scope.row[scope.column.property] = val }}
127 onFocus={() => { this.itemShowFalse(); scope.row.djyyShow = true; }}></el-input> 116 onFocus={() => { this.itemShowFalse(); scope.row.djyyShow = true; }}></el-input>
128 </div> 117 </div>
...@@ -193,27 +182,11 @@ export default { ...@@ -193,27 +182,11 @@ export default {
193 // 添加索引 182 // 添加索引
194 addIndexes (data = this.tableData, isAdd = true) { 183 addIndexes (data = this.tableData, isAdd = true) {
195 data.forEach((item, index) => { 184 data.forEach((item, index) => {
196 if (index == 0) {
197 item.nodecodeShow = true
198 item.nodenameShow = false
199 item.djyyShow = false
200 } else {
201 item.nodecodeShow = false
202 item.nodenameShow = false
203 item.djyyShow = false
204 }
205 if (isAdd) { 185 if (isAdd) {
206 item.index = index + 1 186 item.index = index + 1
207 } 187 }
208 }) 188 })
209 }, 189 },
210 itemShowFalse () {
211 this.tableData.length > 0 && this.tableData.forEach((item, index) => {
212 item.nodecodeShow = true
213 item.nodenameShow = false
214 item.djyyShow = false
215 })
216 },
217 handleAdd () { 190 handleAdd () {
218 this.$nextTick(() => { 191 this.$nextTick(() => {
219 let container = this.$el.querySelector('.el-table__body-wrapper'); 192 let container = this.$el.querySelector('.el-table__body-wrapper');
......