|
@@ -93,7 +93,12 @@ export default {
|
|
|
},
|
|
|
// 取 消
|
|
|
handleCancel() {
|
|
|
- this.params = initParams(Columns);
|
|
|
+ // this.params = initParams(Columns);
|
|
|
+ this.params = {
|
|
|
+ ...initParams(this.columns),
|
|
|
+ puOrderItemList: [],
|
|
|
+ puOrderExecuteList: [],
|
|
|
+ }
|
|
|
this.setVisible(false);
|
|
|
},
|
|
|
handleRefresh(){
|
|
@@ -322,13 +327,23 @@ export default {
|
|
|
:label="column.title"
|
|
|
:name="column.key"
|
|
|
>
|
|
|
- <el-table :data="params[column.key]" style="width: 100%" border>
|
|
|
+ <el-table
|
|
|
+ :data="params[column.key].filter(item => item.delFlag === '0')"
|
|
|
+ style="width: 100%"
|
|
|
+ :height="params[column.key].filter(item => item.delFlag === '0').length ? 300 : 100"
|
|
|
+ border
|
|
|
+ >
|
|
|
+ <el-table-column label="序号">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.$index + 1 }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
v-for="(cColumn, cIndex) in column.tableColumns"
|
|
|
:key="cIndex"
|
|
|
:prop="cColumn.key"
|
|
|
:label="cColumn.title"
|
|
|
- :width="cColumn.width || 80"
|
|
|
+ :width="cColumn.width"
|
|
|
>
|
|
|
<template slot="header" slot-scope="scope">
|
|
|
<span v-if="cColumn.require" style="color: #ff4949">*</span>
|
|
@@ -337,65 +352,71 @@ export default {
|
|
|
</span>
|
|
|
</template>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-tag v-if="cColumn.key === 'index'">
|
|
|
- {{ scope.$index + 1 }}
|
|
|
- </el-tag>
|
|
|
- <el-input v-if="cColumn.inputType === 'Input'"
|
|
|
- v-model="scope.row[cColumn.key]"
|
|
|
- :placeholder="cColumn.placeholder"
|
|
|
- :clearable="cColumn.clearable"
|
|
|
- readonly
|
|
|
- size="mini"
|
|
|
- style="width: 100%"
|
|
|
- ></el-input>
|
|
|
-
|
|
|
- <!-- -->
|
|
|
- <dr-popover-select v-if="cColumn.inputType === 'PopoverSelect'"
|
|
|
- v-model="scope.row[cColumn.key]"
|
|
|
- :source.sync="scope.row"
|
|
|
- :title="cColumn.title"
|
|
|
- :value-key="cColumn.valueKey"
|
|
|
- disabled
|
|
|
- :type="cColumn.referName"
|
|
|
- :multiple="cColumn.multiple"
|
|
|
- :placeholder="cColumn.placeholder"
|
|
|
- :data-mapping="cColumn.dataMapping"
|
|
|
- :query-params="cColumn.queryParams"
|
|
|
- ></dr-popover-select>
|
|
|
-
|
|
|
- <el-input-number v-if="cColumn.inputType === 'InputNumber'"
|
|
|
- v-model="scope.row[cColumn.key]"
|
|
|
- :precision="cColumn.precision"
|
|
|
- :controls-position="cColumn.controlsPosition"
|
|
|
- :placeholder="cColumn.placeholder"
|
|
|
- :clearable="cColumn.clearable"
|
|
|
- disabled
|
|
|
- size="mini"
|
|
|
- style="width: 100%"
|
|
|
- ></el-input-number>
|
|
|
-
|
|
|
- <el-select v-if="cColumn.inputType === 'Select'"
|
|
|
- v-model="scope.row[cColumn.key]"
|
|
|
- disabled
|
|
|
- size="mini"
|
|
|
- :clearable="cColumn.clearable"
|
|
|
- :placeholder="cColumn.placeholder"
|
|
|
- style="width: 100%">
|
|
|
- <el-option
|
|
|
- v-for="item in dict.type[cColumn.referName]"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
-
|
|
|
- <el-checkbox v-if="cColumn.inputType === 'Checkbox'"
|
|
|
- v-model="scope.row[cColumn.key]"
|
|
|
- disabled
|
|
|
- true-label="Y"
|
|
|
- false-label="N"
|
|
|
- ></el-checkbox>
|
|
|
+ <el-form-item label-width="0">
|
|
|
+ <span v-if="!cColumn.inputType">
|
|
|
+ {{ scope.row[cColumn.key] }}
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <el-input v-if="cColumn.inputType === 'Input'"
|
|
|
+ v-model="scope.row[cColumn.key]"
|
|
|
+ :placeholder="cColumn.placeholder"
|
|
|
+ :clearable="cColumn.clearable"
|
|
|
+ readonly
|
|
|
+ size="mini"
|
|
|
+ style="width: 100%"
|
|
|
+ ></el-input>
|
|
|
+
|
|
|
+ <!-- -->
|
|
|
+ <dr-popover-select v-if="cColumn.inputType === 'PopoverSelect'"
|
|
|
+ v-model="scope.row[cColumn.key]"
|
|
|
+ :source.sync="scope.row"
|
|
|
+ :title="cColumn.title"
|
|
|
+ :value-key="cColumn.valueKey"
|
|
|
+ disabled
|
|
|
+ :type="cColumn.referName"
|
|
|
+ :multiple="cColumn.multiple"
|
|
|
+ :placeholder="cColumn.placeholder"
|
|
|
+ :data-mapping="cColumn.dataMapping"
|
|
|
+ :query-params="cColumn.queryParams"
|
|
|
+ size="mini"
|
|
|
+ ></dr-popover-select>
|
|
|
+
|
|
|
+ <el-input-number v-if="cColumn.inputType === 'InputNumber'"
|
|
|
+ v-model="scope.row[cColumn.key]"
|
|
|
+ :precision="cColumn.precision"
|
|
|
+ :controls-position="cColumn.controlsPosition"
|
|
|
+ :placeholder="cColumn.placeholder"
|
|
|
+ :clearable="cColumn.clearable"
|
|
|
+ disabled
|
|
|
+ size="mini"
|
|
|
+ style="width: 100%"
|
|
|
+ ></el-input-number>
|
|
|
+
|
|
|
+ <el-select v-if="cColumn.inputType === 'Select'"
|
|
|
+ v-model="scope.row[cColumn.key]"
|
|
|
+ disabled
|
|
|
+ size="mini"
|
|
|
+ :clearable="cColumn.clearable"
|
|
|
+ :placeholder="cColumn.placeholder"
|
|
|
+ style="width: 100%">
|
|
|
+ <el-option
|
|
|
+ v-for="item in dict.type[cColumn.referName]"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+
|
|
|
+ <el-checkbox v-if="cColumn.inputType === 'Checkbox'"
|
|
|
+ v-model="scope.row[cColumn.key]"
|
|
|
+ disabled
|
|
|
+ true-label="Y"
|
|
|
+ false-label="N"
|
|
|
+ ></el-checkbox>
|
|
|
+
|
|
|
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|