|
@@ -21,7 +21,7 @@ export default {
|
|
|
},
|
|
|
render: (h, { row, column, index }) => {
|
|
|
return this.isEditIndex == index ? <div class="redbordererr">
|
|
|
- <el-form-item label="" lebel-width="0px" prop={`orderProducts.${index}.${column.columnAttributes.prop}`} rules={required}>
|
|
|
+ <el-form-item label="" label-width="0px" prop={`orderProducts.${index}.${column.columnAttributes.prop}`} rules={required}>
|
|
|
<el-select
|
|
|
disabled={!this.formOptions.orderProducts.isEdit}
|
|
|
value={row[column.columnAttributes.prop]}
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
},
|
|
|
render: (h, { row, column, index }) => {
|
|
|
return this.isEditIndex == index ? <div class="redbordererr">
|
|
|
- <el-form-item label="" lebel-width="0px" prop={`orderProducts.${index}.${column.columnAttributes.prop}`} rules={required}>
|
|
|
+ <el-form-item label="" label-width="0px" prop={`orderProducts.${index}.${column.columnAttributes.prop}`} rules={required}>
|
|
|
<el-select
|
|
|
disabled={!this.formOptions.orderProducts.isEdit}
|
|
|
value={row[column.columnAttributes.prop]}
|
|
@@ -77,7 +77,7 @@ export default {
|
|
|
},
|
|
|
render: (h, { row, column, index }) => {
|
|
|
return this.isEditIndex == index ? <div class="redbordererr">
|
|
|
- <el-form-item label="" lebel-width="0px" prop={`orderProducts.${index}.${column.columnAttributes.prop}`} rules={required}>
|
|
|
+ <el-form-item label="" label-width="0px" prop={`orderProducts.${index}.${column.columnAttributes.prop}`} rules={required}>
|
|
|
<el-select
|
|
|
disabled={!this.formOptions.orderProducts.isEdit}
|
|
|
value={row[column.columnAttributes.prop]}
|
|
@@ -104,7 +104,7 @@ export default {
|
|
|
},
|
|
|
render: (h, { row, column, index }) => {
|
|
|
return this.isEditIndex == index ? <div class="redbordererr">
|
|
|
- <el-form-item label="" lebel-width="0px" prop={`orderProducts.${index}.${column.columnAttributes.prop}`} rules={required}>
|
|
|
+ <el-form-item label="" label-width="0px" prop={`orderProducts.${index}.${column.columnAttributes.prop}`} rules={required}>
|
|
|
<el-input
|
|
|
disabled={!this.formOptions.orderProducts.isEdit}
|
|
|
value={row[column.columnAttributes.prop]}
|
|
@@ -123,7 +123,7 @@ export default {
|
|
|
},
|
|
|
render: (h, { row, column, index }) => {
|
|
|
return this.isEditIndex == index ? <div class="redbordererr">
|
|
|
- <el-form-item label="" lebel-width="0px" prop={`orderProducts.${index}.${column.columnAttributes.prop}`} rules={required}>
|
|
|
+ <el-form-item label="" label-width="0px" prop={`orderProducts.${index}.${column.columnAttributes.prop}`} rules={required}>
|
|
|
<el-input
|
|
|
disabled={!this.formOptions.orderProducts.isEdit}
|
|
|
value={row[column.columnAttributes.prop]}
|
|
@@ -142,7 +142,7 @@ export default {
|
|
|
},
|
|
|
render: (h, { row, column, index }) => {
|
|
|
return this.isEditIndex == index ? <div class="redbordererr">
|
|
|
- <el-form-item label="" lebel-width="0px" prop={`orderProducts.${index}.${column.columnAttributes.prop}`}>
|
|
|
+ <el-form-item label="" label-width="0px">
|
|
|
<el-input
|
|
|
disabled={!this.formOptions.orderProducts.isEdit}
|
|
|
value={row[column.columnAttributes.prop]}
|
|
@@ -163,11 +163,11 @@ export default {
|
|
|
},
|
|
|
render: (h, { row, column, index }) => {
|
|
|
return <div style="padding-left:10px">
|
|
|
- <el-button type="text" onClick={()=>{
|
|
|
- this.delProduct(row.index)
|
|
|
+ <el-button type="text" onClick={() => {
|
|
|
+ this.delProduct(row, index)
|
|
|
}}>删除</el-button>
|
|
|
- {this.isEditIndex == index && <el-button type="text" onClick={()=>{
|
|
|
- this.eidtProduct(row.index)
|
|
|
+ {this.isEditIndex == index && <el-button type="text" onClick={() => {
|
|
|
+ this.eidtProduct(row, index)
|
|
|
}}>确定</el-button>}
|
|
|
{this.isEditIndex == -1 && <el-button type="text" onClick={() => {
|
|
|
this.isEditIndex = index
|
|
@@ -209,7 +209,7 @@ export default {
|
|
|
"mainId": "",
|
|
|
"mainName": "",
|
|
|
"num": "",
|
|
|
- "orderBaseId": "",
|
|
|
+ "orderBaseId": this.id || '',
|
|
|
"productId": "",
|
|
|
"productName": "",
|
|
|
"remark": "",
|