fix:SN码删除提示语优化
This commit is contained in:
parent
c294978492
commit
0e5eb5aca3
@ -44,9 +44,12 @@ export function updateSn(data) {
|
||||
}
|
||||
|
||||
// 删除SN码
|
||||
export function delSn(snId) {
|
||||
export function delSn(ids) {
|
||||
return request({
|
||||
url: '/mes/wm/sn/' + snId,
|
||||
method: 'delete'
|
||||
url: '/mes/wm/sn/remove',
|
||||
method: 'get',
|
||||
params: {
|
||||
ids
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -103,7 +103,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
@ -243,7 +243,7 @@ export default {
|
||||
},
|
||||
//点开查看界面
|
||||
handleView(row){
|
||||
|
||||
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
@ -276,15 +276,15 @@ export default {
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const snIds = row.snId || this.ids;
|
||||
this.$modal.confirm('是否确认删除SN码编号为"' + snIds + '"的数据项?').then(function() {
|
||||
return delSn(snIds);
|
||||
this.$modal.confirm('是否确认删除当前数据?').then(function() {
|
||||
return delSn(row.ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport(row) {
|
||||
handleExport(row) {
|
||||
this.queryParams.itemCode = row.itemCode;
|
||||
this.queryParams.gen_date = row.genDate;
|
||||
this.download('/mes/wm/sn/export', {
|
||||
@ -302,7 +302,7 @@ export default {
|
||||
this.form.itemCode = obj.itemCode;
|
||||
this.form.itemName = obj.itemName;
|
||||
this.form.specification = obj.specification;
|
||||
this.form.unitOfMeasure = obj.unitOfMeasure;
|
||||
this.form.unitOfMeasure = obj.unitOfMeasure;
|
||||
}
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user