style:材料明细
Showing
1 changed file
with
9 additions
and
9 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-08-01 09:43:19 | 4 | * @LastEditTime: 2023-08-01 10:01:19 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="clmlmx-box"> | 7 | <div class="clmlmx-box"> |
| ... | @@ -57,22 +57,22 @@ | ... | @@ -57,22 +57,22 @@ |
| 57 | } | 57 | } |
| 58 | }, | 58 | }, |
| 59 | { | 59 | { |
| 60 | prop: "sjmc", | ||
| 61 | label: "材料名称", | 60 | label: "材料名称", |
| 62 | render: (h, scope) => { | 61 | render: (h, scope) => { |
| 63 | return ( | 62 | return ( |
| 64 | <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 63 | this.formData.ableOperation ? |
| 64 | <el-input value={scope.row.sjmc} onInput={(val) => { scope.row.sjmc = val }}></el-input> : <span>{scope.row.sjmc}</span> | ||
| 65 | ) | 65 | ) |
| 66 | } | 66 | } |
| 67 | }, | 67 | }, |
| 68 | { | 68 | { |
| 69 | prop: "sjlx", | ||
| 70 | label: "材料类型", | 69 | label: "材料类型", |
| 71 | width: "110", | 70 | width: "110", |
| 72 | render: (h, scope) => { | 71 | render: (h, scope) => { |
| 73 | return ( | 72 | return ( |
| 74 | <el-select value={scope.row[scope.column.property]} | 73 | this.formData.ableOperation ? |
| 75 | onChange={(val) => { scope.row[scope.column.property] = val }}> | 74 | <el-select value={scope.row.sjlx} |
| 75 | onChange={(val) => { scope.row.sjlx = val }}> | ||
| 76 | { | 76 | { |
| 77 | store.getters.dictData['A40'].map(option => { | 77 | store.getters.dictData['A40'].map(option => { |
| 78 | return ( | 78 | return ( |
| ... | @@ -80,7 +80,7 @@ | ... | @@ -80,7 +80,7 @@ |
| 80 | ) | 80 | ) |
| 81 | }) | 81 | }) |
| 82 | } | 82 | } |
| 83 | </el-select> | 83 | </el-select> : <span>{this.dicStatus(scope.row.sjlx, "A40")}</span> |
| 84 | ) | 84 | ) |
| 85 | } | 85 | } |
| 86 | }, | 86 | }, |
| ... | @@ -146,7 +146,7 @@ | ... | @@ -146,7 +146,7 @@ |
| 146 | <div> | 146 | <div> |
| 147 | <el-button | 147 | <el-button |
| 148 | type="text" | 148 | type="text" |
| 149 | disabled={scope.$index == 0} | 149 | disabled={scope.$index == 0 || !this.formData.ableOperation} |
| 150 | onClick={() => { | 150 | onClick={() => { |
| 151 | this.moveUpward(scope.$index, scope.row); | 151 | this.moveUpward(scope.$index, scope.row); |
| 152 | }} | 152 | }} |
| ... | @@ -155,7 +155,7 @@ | ... | @@ -155,7 +155,7 @@ |
| 155 | </el-button> | 155 | </el-button> |
| 156 | <el-button | 156 | <el-button |
| 157 | type="text" | 157 | type="text" |
| 158 | disabled={scope.$index + 1 == this.tableData.length} | 158 | disabled={scope.$index + 1 == this.tableData.length || !this.formData.ableOperation} |
| 159 | onClick={() => { | 159 | onClick={() => { |
| 160 | this.moveDown(scope.$index, scope.row); | 160 | this.moveDown(scope.$index, scope.row); |
| 161 | }} | 161 | }} | ... | ... |
-
Please register or sign in to post a comment