|
@@ -8,20 +8,35 @@
|
|
|
v-dialogDrag
|
|
|
>
|
|
|
<span>
|
|
|
- <div style="display: flex; justify-content: space-between">
|
|
|
- <el-upload
|
|
|
- :action="actionUrl"
|
|
|
- multiple
|
|
|
- :headers="headers"
|
|
|
- :show-file-list="false"
|
|
|
- :on-success="
|
|
|
- (res) => {
|
|
|
- handleSucces(res);
|
|
|
- }
|
|
|
- "
|
|
|
- >
|
|
|
- <el-button size="small" type="primary">导入Excel</el-button>
|
|
|
- </el-upload>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <div style="display: flex;;margin-bottom: 10px;">
|
|
|
+ <el-upload
|
|
|
+ :action="actionUrl"
|
|
|
+ multiple
|
|
|
+ :headers="headers"
|
|
|
+ :show-file-list="false"
|
|
|
+ :on-success="
|
|
|
+ (res) => {
|
|
|
+ handleSucces(res);
|
|
|
+ }
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <el-button size="small" type="primary">导入Excel</el-button>
|
|
|
+ </el-upload>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ @click="bathHandle"
|
|
|
+ :disabled="selection.length != 1"
|
|
|
+ style="margin-left:10px"
|
|
|
+ >批量处理属性(详情)</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
<div style="margin: 0 10px">
|
|
|
<el-button
|
|
|
icon="el-icon-setting"
|
|
@@ -31,7 +46,7 @@
|
|
|
></el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-table :data="excelList">
|
|
|
+ <el-table :data="excelList" @selection-change="Selectinventory">
|
|
|
<el-table-column type="selection" width="50" align="center" fixed />
|
|
|
<el-table-column
|
|
|
label="序号"
|
|
@@ -386,6 +401,7 @@ export default {
|
|
|
choiceWarehouse: false,
|
|
|
oldList: [],
|
|
|
form: {},
|
|
|
+ selection: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -596,6 +612,17 @@ export default {
|
|
|
);
|
|
|
this.choiceWarehouse = false;
|
|
|
},
|
|
|
+ Selectinventory(selection) {
|
|
|
+ this.selection = selection;
|
|
|
+ },
|
|
|
+ bathHandle() {
|
|
|
+ this.excelList.map((e) => {
|
|
|
+ e.fBusinessType = this.selection[0].fBusinessType
|
|
|
+ ? this.selection[0].fBusinessType
|
|
|
+ : null;
|
|
|
+ e.fMarks = this.selection[0].fMarks ? this.selection[0].fMarks : null;
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
watch: {
|
|
|
uploadExcelVisible() {
|