wms删除按钮

master
mengjiao 7 months ago
parent 06b1287319
commit 33f41691d9

@ -105,6 +105,19 @@
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
v-hasPermi="['wms:outorder:add']">补打</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-remove"
size="mini"
:disabled="batchSingle"
@click="handleRemoveBatch(row)"
v-hasPermi="['mes:pro:workorder:edit']"
>删除
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@ -393,7 +406,7 @@
</template>
<script>
import { listMatetowsn,cardDy, cardBD,getMatetowsn, delMatetowsn, addMatetowsn, updateMatetowsn } from "@/api/wms/matetowsn";
import { listMatetowsn,cardDy, cardBD,Removecard,getMatetowsn, delMatetowsn, addMatetowsn, updateMatetowsn } from "@/api/wms/matetowsn";
import {
listOutorder,
getOutorder,
@ -422,10 +435,12 @@ export default {
ids: [],
//
single: true,
batchSingle: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
@ -607,6 +622,16 @@ export default {
console.log("Materials processed");
this.showMaterialDialog = false; //
},
handleRemoveBatch(row) {
this.$modal.confirm('是否确认删除标识卡编号为"' + wlCode + '"的数据项?').then(function() {
return Removecard();
}).then(() => {
this.editBatch();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 重置按钮操作 */
async fetchMaterials(pageNum = 1) { // pageNum
this.loading = true; //

Loading…
Cancel
Save