Browse Source

修改入库页面操作

fix_bug_pro20231227
caoyizhong 1 year ago
parent
commit
b6d19d5b24
  1. 20
      src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue
  2. 2
      src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue

20
src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue

@ -159,14 +159,14 @@
<el-table-column prop="menu" label="操作" :width="300" align="center" v-if="!view || this.$route.query.type != '3'">
<template #="{row}">
<!-- <el-button type="primary" text icon="el-icon-view" @click="handleView(row)">查看</el-button>-->
<el-button type="primary" text icon="el-icon-edit" @click="handleEditOwn(row)">编辑</el-button>
<el-button type="primary" text icon="el-icon-delete" @click="rowDelOwn(row)">删除</el-button>
<el-button type="primary" text icon="el-icon-edit" @click="handleEditOwn(row)" :disabled = typeView>编辑</el-button>
<el-button type="primary" text icon="el-icon-delete" @click="rowDelOwn(row)" :disabled = typeView>删除</el-button>
<!-- <el-button type="primary" text icon="el-icon-setting" @click="handleDrawer(row)">子表配置</el-button>-->
</template>
</el-table-column>
</el-table>
</el-row>
<div style="line-height: 20px;text-align:center;padding-top: 10px">
<div style="line-height: 20px;text-align:center;padding-top: 10px" v-if="!typeView">
<span class="dialog-footer">
<el-button type="primary" icon="el-icon-circle-check" @click="handleSubmit" :disabled="view && !this.$route.query.type == '3'"> </el-button>
<!-- <el-button icon="el-icon-circle-close" @click="box = false"> </el-button>-->
@ -343,6 +343,7 @@ export default {
loading: false,
//
view: false,
typeView: false,
//
query: {},
//
@ -436,6 +437,7 @@ export default {
handler(newVal, oldVal) {
console.log(newVal, oldVal);
console.log("$route.query.id",this.$route.query.type);
this.selectionClear();
this.getOwnDeliver();
},
deep: true,
@ -505,12 +507,14 @@ export default {
if(!!ty && ty == "2"){
this.view = false;
}else{
this.typeView = true;
this.view = true;
}
}else{
this.view = false;
this.loading = false;
this.typeView = false;
}
},
//
@ -801,7 +805,7 @@ export default {
this.$refs.form.validate(valid=>{
if (valid) {
if (!this.form.id) {
console.log("this.form",this.form);
// console.log("this.form111",this.form);
if(this.data.length > 0){
this.form.list = this.data;
add(this.form).then(() => {
@ -827,7 +831,7 @@ export default {
// if(parseInt(this.$route.query.type) == 3){
//
// }
console.log("this.form",this.form);
// console.log("this.form222",this.form);
if(!!this.form.totalInput && parseInt(this.form.totalInput) == '-1'){
this.form.totalInput = null;
}
@ -839,7 +843,7 @@ export default {
type: "success",
message: "操作成功!"
});
this.form = {};
// this.form = {};
})
}
@ -934,7 +938,9 @@ export default {
},
selectionClear () {
this.selectionList = [];
this.$refs.table.clearSelection();
this.form = {};
this.data = [];
// this.$refs.table.clearSelection();
},
currentChange (currentPage) {
this.page.currentPage = currentPage;

2
src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue

@ -154,7 +154,7 @@
</avue-form>
</el-dialog>
<el-drawer
title="物品操作"
title="物品详细"
append-to-body
size="60%"
v-model="drawer"

Loading…
Cancel
Save