|
@@ -7,7 +7,9 @@
|
|
|
:columns="columns"
|
|
:columns="columns"
|
|
|
:datasource="form.datasource"
|
|
:datasource="form.datasource"
|
|
|
class="time-form"
|
|
class="time-form"
|
|
|
|
|
+ :selection.sync="selection"
|
|
|
@columns-change="handleColumnChange"
|
|
@columns-change="handleColumnChange"
|
|
|
|
|
+ @header-dragend="handleHeaderDragend"
|
|
|
:cache-key="cacheKeyUrl"
|
|
:cache-key="cacheKeyUrl"
|
|
|
height="350"
|
|
height="350"
|
|
|
full-height="calc(100vh - 76px)"
|
|
full-height="calc(100vh - 76px)"
|
|
@@ -37,6 +39,16 @@
|
|
|
>
|
|
>
|
|
|
新增
|
|
新增
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
|
+ class="ele-btn-icon"
|
|
|
|
|
+ :disabled="!selection.length"
|
|
|
|
|
+ @click="batchRemove"
|
|
|
|
|
+ >
|
|
|
|
|
+ 批量删除
|
|
|
|
|
+ </el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:technicalDrawings="{ row, $index }">
|
|
<template v-slot:technicalDrawings="{ row, $index }">
|
|
@@ -112,27 +124,6 @@
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
:prop="'datasource.' + scope.$index + '.blockCount'"
|
|
:prop="'datasource.' + scope.$index + '.blockCount'"
|
|
|
:rules="[{ required: true, message: '请输入', trigger: 'blur' }]"
|
|
:rules="[{ required: true, message: '请输入', trigger: 'blur' }]"
|
|
|
- <ele-pro-table
|
|
|
|
|
- ref="table"
|
|
|
|
|
- :needPage="false"
|
|
|
|
|
- :columns="columns"
|
|
|
|
|
- :datasource="form.datasource"
|
|
|
|
|
- class="time-form"
|
|
|
|
|
- :selection.sync="selection"
|
|
|
|
|
- @columns-change="handleColumnChange"
|
|
|
|
|
- @header-dragend="handleHeaderDragend"
|
|
|
|
|
- :cache-key="cacheKeyUrl"
|
|
|
|
|
- >
|
|
|
|
|
- <!-- 表头工具栏 -->
|
|
|
|
|
- <template v-slot:toolbar>
|
|
|
|
|
- <div class="headbox">
|
|
|
|
|
- <el-button
|
|
|
|
|
- v-if="isShowAdd && needProduce != 4"
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- icon="el-icon-plus"
|
|
|
|
|
- class="ele-btn-icon"
|
|
|
|
|
- @click="handlAdd"
|
|
|
|
|
>
|
|
>
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="scope.row.blockCount"
|
|
v-model="scope.row.blockCount"
|
|
@@ -178,42 +169,6 @@
|
|
|
trigger: 'blur'
|
|
trigger: 'blur'
|
|
|
}
|
|
}
|
|
|
]"
|
|
]"
|
|
|
- 新增
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="danger"
|
|
|
|
|
- icon="el-icon-delete"
|
|
|
|
|
- class="ele-btn-icon"
|
|
|
|
|
- :disabled="!selection.length"
|
|
|
|
|
- @click="batchRemove"
|
|
|
|
|
- >
|
|
|
|
|
- 批量删除
|
|
|
|
|
- </el-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-slot:technicalDrawings="{ row, $index }">
|
|
|
|
|
- <el-form-item :prop="'datasource.' + $index + '.technicalDrawings'">
|
|
|
|
|
- <fileMain v-model="row.technicalDrawings" type="view"></fileMain>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-slot:remark="{ row, $index }">
|
|
|
|
|
- <el-form-item :prop="'datasource.' + $index + '.remark'">
|
|
|
|
|
- <el-input
|
|
|
|
|
- clearable
|
|
|
|
|
- v-model="row.remark"
|
|
|
|
|
- type="textarea"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-slot:stockLedger="scope">
|
|
|
|
|
- <el-form-item>
|
|
|
|
|
- <el-popover
|
|
|
|
|
- @hide="() => (selection = [])"
|
|
|
|
|
- placement="right"
|
|
|
|
|
- width="60%"
|
|
|
|
|
- trigger="hover"
|
|
|
|
|
>
|
|
>
|
|
|
<el-select
|
|
<el-select
|
|
|
v-if="needProduce == 4 && orderNoList.length > 1"
|
|
v-if="needProduce == 4 && orderNoList.length > 1"
|
|
@@ -469,31 +424,25 @@
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 操作列 -->
|
|
<!-- 操作列 -->
|
|
|
<template v-slot:action="scope">
|
|
<template v-slot:action="scope">
|
|
|
- <div>
|
|
|
|
|
- <el-popconfirm
|
|
|
|
|
- class="ele-action"
|
|
|
|
|
- title="确定要删除吗?"
|
|
|
|
|
- @confirm="remove(scope.$index)"
|
|
|
|
|
- >
|
|
|
|
|
- <template v-slot:reference>
|
|
|
|
|
- <el-link
|
|
|
|
|
- type="danger"
|
|
|
|
|
- :underline="false"
|
|
|
|
|
- icon="el-icon-delete"
|
|
|
|
|
- >
|
|
|
|
|
- 删除
|
|
|
|
|
- </el-link>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-popconfirm>
|
|
|
|
|
- <el-link
|
|
|
|
|
- type="primary"
|
|
|
|
|
- :underline="false"
|
|
|
|
|
- icon="el-icon-edit"
|
|
|
|
|
- @click="selectStockLedgerDialogOpen(scope.row)"
|
|
|
|
|
- >
|
|
|
|
|
- 替代料
|
|
|
|
|
- </el-link>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <el-popconfirm
|
|
|
|
|
+ class="ele-action"
|
|
|
|
|
+ title="确定要删除吗?"
|
|
|
|
|
+ @confirm="remove(scope.$index)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template v-slot:reference>
|
|
|
|
|
+ <el-link type="danger" :underline="false" icon="el-icon-delete">
|
|
|
|
|
+ 删除
|
|
|
|
|
+ </el-link>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-popconfirm>
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
|
+ @click="selectStockLedgerDialogOpen(scope.row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ 替代料
|
|
|
|
|
+ </el-link>
|
|
|
</template>
|
|
</template>
|
|
|
</ele-pro-table>
|
|
</ele-pro-table>
|
|
|
</div>
|
|
</div>
|
|
@@ -705,14 +654,14 @@
|
|
|
};
|
|
};
|
|
|
return [
|
|
return [
|
|
|
{
|
|
{
|
|
|
- width: 60,
|
|
|
|
|
|
|
+ width: 45,
|
|
|
type: 'selection',
|
|
type: 'selection',
|
|
|
columnKey: 'selection',
|
|
columnKey: 'selection',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
fixed: 'left'
|
|
fixed: 'left'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- width: 45,
|
|
|
|
|
|
|
+ width: 60,
|
|
|
type: 'index',
|
|
type: 'index',
|
|
|
columnKey: 'index',
|
|
columnKey: 'index',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
@@ -1869,7 +1818,6 @@
|
|
|
this.form.datasource.splice(i, 1);
|
|
this.form.datasource.splice(i, 1);
|
|
|
this.setSort();
|
|
this.setSort();
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
batchRemove() {
|
|
batchRemove() {
|
|
|
if (!this.selection.length) return;
|
|
if (!this.selection.length) return;
|
|
|
this.$confirm('确定要批量删除选中的物品吗?', '提示', {
|
|
this.$confirm('确定要批量删除选中的物品吗?', '提示', {
|