Merge branch 'dev'
Showing
1 changed file
with
18 additions
and
17 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,30 +57,30 @@ | ... | @@ -57,30 +57,30 @@ |
| 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} |
| 76 | { | 75 | onChange={(val) => { scope.row.sjlx = val }}> |
| 77 | store.getters.dictData['A40'].map(option => { | 76 | { |
| 78 | return ( | 77 | store.getters.dictData['A40'].map(option => { |
| 79 | <el-option label={option.dname} value={option.dcode}></el-option> | 78 | return ( |
| 80 | ) | 79 | <el-option label={option.dname} value={option.dcode}></el-option> |
| 81 | }) | 80 | ) |
| 82 | } | 81 | }) |
| 83 | </el-select> | 82 | } |
| 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,14 +155,14 @@ | ... | @@ -155,14 +155,14 @@ |
| 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 | }} |
| 162 | > | 162 | > |
| 163 | 下移 | 163 | 下移 |
| 164 | </el-button> | 164 | </el-button> |
| 165 | <i v-show={scope.row.isrequired != '1' && formData.ableOperation} onClick={() => { | 165 | <i v-show={scope.row.isrequired != '1' && this.formData.ableOperation} onClick={() => { |
| 166 | this.handleDelete(scope.$index, scope.row); | 166 | this.handleDelete(scope.$index, scope.row); |
| 167 | }} class="el-icon-delete pointer" style="color:#409EFF;margin-left:5px;position: relative;top: 1px;"></i> | 167 | }} class="el-icon-delete pointer" style="color:#409EFF;margin-left:5px;position: relative;top: 1px;"></i> |
| 168 | </div > | 168 | </div > |
| ... | @@ -177,6 +177,7 @@ | ... | @@ -177,6 +177,7 @@ |
| 177 | watch: { | 177 | watch: { |
| 178 | 'formData.data': { | 178 | 'formData.data': { |
| 179 | handler: function (val, oldVal) { | 179 | handler: function (val, oldVal) { |
| 180 | console.log(val, 'valvalval'); | ||
| 180 | this.tableData = _.cloneDeep(val) | 181 | this.tableData = _.cloneDeep(val) |
| 181 | }, | 182 | }, |
| 182 | immediate: true, | 183 | immediate: true, | ... | ... |
-
Please register or sign in to post a comment