|
@@ -83,29 +83,34 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
-
|
|
|
- <el-col :span="2" class="fr" style="width: 90px;" v-if="
|
|
|
- powers &&
|
|
|
- powers.length > 0 &&
|
|
|
- powers.some((item) => item == '086')
|
|
|
- ">
|
|
|
+ <el-col
|
|
|
+ :span="2"
|
|
|
+ class="fr"
|
|
|
+ style="width: 90px"
|
|
|
+ v-if="
|
|
|
+ powers &&
|
|
|
+ powers.length > 0 &&
|
|
|
+ powers.some((item) => item == '086')
|
|
|
+ "
|
|
|
+ >
|
|
|
<el-button
|
|
|
class="btn entry"
|
|
|
@click="entry"
|
|
|
size="mini"
|
|
|
type="success"
|
|
|
-
|
|
|
>订单导入</el-button
|
|
|
>
|
|
|
</el-col>
|
|
|
<el-col
|
|
|
:span="2"
|
|
|
class="fr"
|
|
|
- style="width: 90px;"
|
|
|
- v-if="powers.some((item) => item == '006')&&parmValue.status==='2'"
|
|
|
+ style="width: 90px"
|
|
|
+ v-if="
|
|
|
+ powers.some((item) => item == '006') &&
|
|
|
+ parmValue.status === '2'
|
|
|
+ "
|
|
|
>
|
|
|
<el-button
|
|
|
-
|
|
|
size="mini"
|
|
|
type="danger"
|
|
|
class="btn"
|
|
@@ -168,16 +173,15 @@
|
|
|
<el-col
|
|
|
:span="2"
|
|
|
class="fr"
|
|
|
- style="width: 132px;"
|
|
|
+ style="width: 132px"
|
|
|
v-if="
|
|
|
- powers &&
|
|
|
- powers.length > 0 &&
|
|
|
- powers.some((item) => item == '013')
|
|
|
- "
|
|
|
+ powers &&
|
|
|
+ powers.length > 0 &&
|
|
|
+ powers.some((item) => item == '013')
|
|
|
+ "
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
-
|
|
|
icon="el-icon-download"
|
|
|
class="btn"
|
|
|
size="mini"
|
|
@@ -189,15 +193,14 @@
|
|
|
<el-col
|
|
|
:span="2"
|
|
|
class="fr"
|
|
|
- style="width: 132px; "
|
|
|
- v-if="
|
|
|
- powers &&
|
|
|
- powers.length > 0 &&
|
|
|
- powers.some((item) => item == '085')
|
|
|
- "
|
|
|
+ style="width: 132px"
|
|
|
+ v-if="
|
|
|
+ powers &&
|
|
|
+ powers.length > 0 &&
|
|
|
+ powers.some((item) => item == '085')
|
|
|
+ "
|
|
|
>
|
|
|
<el-button
|
|
|
-
|
|
|
size="mini"
|
|
|
type="primary"
|
|
|
icon="el-icon-search"
|
|
@@ -206,7 +209,7 @@
|
|
|
>批量关联库存</el-button
|
|
|
>
|
|
|
</el-col>
|
|
|
-
|
|
|
+
|
|
|
<el-col :span="2" class="fr" style="width: 50px">
|
|
|
<el-button
|
|
|
type="warning"
|
|
@@ -241,7 +244,9 @@
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip
|
|
|
- v-if="powers.some((item) => item == '006')&&scope.row.status==='2'"
|
|
|
+ v-if="
|
|
|
+ powers.some((item) => item == '006') && scope.row.status === '2'
|
|
|
+ "
|
|
|
effect="dark"
|
|
|
content="删除"
|
|
|
placement="top"
|
|
@@ -415,8 +420,16 @@ export default {
|
|
|
this.loading = false;
|
|
|
},
|
|
|
//点击批量删除按钮
|
|
|
- batchDel(){
|
|
|
- console.log(this.changeList)
|
|
|
+ batchDel() {
|
|
|
+ let ids = [];
|
|
|
+ if (this.changeList.length != 0) {
|
|
|
+ this.changeList.forEach((item) => {
|
|
|
+ ids.push(item.id);
|
|
|
+ });
|
|
|
+ this.deleteItem(ids);
|
|
|
+ } else {
|
|
|
+ this.$message.warning(`请勾选有效数据后在进行删除`);
|
|
|
+ }
|
|
|
},
|
|
|
//删除
|
|
|
async deleteItem(ids) {
|