|
@@ -412,7 +412,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
...(() => {
|
|
|
- if (this.formDialogType < 2 && !~['WAIT', 'OK', 'FAIL'].indexOf(this.formData.status)) {
|
|
|
+ if (!!~[0, 1].indexOf(this.formDialogType)) {
|
|
|
return [
|
|
|
{
|
|
|
columnAttributes: {
|
|
@@ -441,7 +441,7 @@ export default {
|
|
|
保存
|
|
|
</el-button>
|
|
|
) : null,
|
|
|
- this.isEditIndex == -1 && this.formDialogType == 0 ? (
|
|
|
+ this.isEditIndex == -1 ? (
|
|
|
<el-button
|
|
|
type="text"
|
|
|
onClick={() => {
|
|
@@ -451,16 +451,14 @@ export default {
|
|
|
编辑
|
|
|
</el-button>
|
|
|
) : null,
|
|
|
- this.formDialogType == 0 ? (
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- onClick={() => {
|
|
|
- this.delGoodsInfo(row, index)
|
|
|
- }}
|
|
|
- >
|
|
|
- 删除
|
|
|
- </el-button>
|
|
|
- ) : null
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ onClick={() => {
|
|
|
+ this.delGoodsInfo(row, index)
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 删除
|
|
|
+ </el-button>
|
|
|
]}
|
|
|
</div>
|
|
|
)
|