fix:SN码删除提示语优化

This commit is contained in:
zhangxuanming 2024-12-24 17:00:07 +08:00
parent c294978492
commit 0e5eb5aca3
2 changed files with 12 additions and 9 deletions

View File

@ -44,9 +44,12 @@ export function updateSn(data) {
} }
// 删除SN码 // 删除SN码
export function delSn(snId) { export function delSn(ids) {
return request({ return request({
url: '/mes/wm/sn/' + snId, url: '/mes/wm/sn/remove',
method: 'delete' method: 'get',
params: {
ids
}
}) })
} }

View File

@ -103,7 +103,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
@ -243,7 +243,7 @@ export default {
}, },
// //
handleView(row){ handleView(row){
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
@ -276,15 +276,15 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const snIds = row.snId || this.ids; const snIds = row.snId || this.ids;
this.$modal.confirm('是否确认删除SN码编号为"' + snIds + '"的数据项').then(function() { this.$modal.confirm('是否确认删除当前数据').then(function() {
return delSn(snIds); return delSn(row.ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
}).catch(() => {}); }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport(row) { handleExport(row) {
this.queryParams.itemCode = row.itemCode; this.queryParams.itemCode = row.itemCode;
this.queryParams.gen_date = row.genDate; this.queryParams.gen_date = row.genDate;
this.download('/mes/wm/sn/export', { this.download('/mes/wm/sn/export', {
@ -302,7 +302,7 @@ export default {
this.form.itemCode = obj.itemCode; this.form.itemCode = obj.itemCode;
this.form.itemName = obj.itemName; this.form.itemName = obj.itemName;
this.form.specification = obj.specification; this.form.specification = obj.specification;
this.form.unitOfMeasure = obj.unitOfMeasure; this.form.unitOfMeasure = obj.unitOfMeasure;
} }
}, },
} }