Browse Source

2026-01-19

领料申请管理页面
在新增时增加一个“出库类别”
材料明细页签的【批量编辑】功能要能修改领料仓库
master
fengyuan_yang 11 hours ago
parent
commit
824705d883
  1. 105
      src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue

105
src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue

@ -183,6 +183,7 @@
<el-button v-if="!editBatchVisible" type="primary" @click="editBatchModel">批量编辑</el-button> <el-button v-if="!editBatchVisible" type="primary" @click="editBatchModel">批量编辑</el-button>
<el-button v-if="!editBatchVisible" type="success" @click="addMaterialModal">新增</el-button> <el-button v-if="!editBatchVisible" type="success" @click="addMaterialModal">新增</el-button>
<el-button v-if="editBatchVisible" type="primary" @click="batchModel" :loading="saveLoading">批量保存</el-button> <el-button v-if="editBatchVisible" type="primary" @click="batchModel" :loading="saveLoading">批量保存</el-button>
<el-button v-if="editBatchVisible" type="info" @click="editBatchVisible = false">取消编辑</el-button>
</el-form> </el-form>
<el-table <el-table
:data="dataList3" :data="dataList3"
@ -260,6 +261,22 @@
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="warehouseName"
header-align="center"
align="left"
min-width="180"
label="领料仓库">
<template slot-scope="scope">
<span v-if="editBatchVisible">
<el-button type="text" @click="chooseWareHouse(scope.row)" style="width:18%;padding: 3px 0px">选择</el-button>
<el-input v-model="scope.row.warehouseName" readonly style="width:77%"></el-input>
</span>
<span v-else>
<span>{{scope.row.warehouseName}}</span>
</span>
</template>
</el-table-column>
<el-table-column <el-table-column
v-for="(item,index) in columnList3s" :key="index" v-for="(item,index) in columnList3s" :key="index"
:sortable="item.columnSortable" :sortable="item.columnSortable"
@ -419,10 +436,10 @@
</el-footer> </el-footer>
</el-dialog> </el-dialog>
<el-dialog title="新建领料申请单" :close-on-click-modal="false" v-drag :visible.sync="createNotifyFlag" width="300px">
<el-dialog title="新建领料申请单" :close-on-click-modal="false" v-drag :visible.sync="createNotifyFlag" width="500px">
<el-form :inline="true" :model="notifyData" :rules="notifyRules" ref="notifyForm" label-position="top" style="margin-left: 7px;margin-top: -5px;"> <el-form :inline="true" :model="notifyData" :rules="notifyRules" ref="notifyForm" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12">
<el-col :span="8">
<el-form-item :label="'工厂_BU'" prop="bu" style="width: 97%"> <el-form-item :label="'工厂_BU'" prop="bu" style="width: 97%">
<el-select v-model="notifyData.bu" placeholder="请选择" style="width: 100%"> <el-select v-model="notifyData.bu" placeholder="请选择" style="width: 100%">
<el-option <el-option
@ -438,7 +455,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-col :span="8">
<el-form-item :label="'车间'" prop="workCenterNo"> <el-form-item :label="'车间'" prop="workCenterNo">
<el-select v-model="notifyData.workCenterNo" clearable placeholder="请选择" style="width: 100%"> <el-select v-model="notifyData.workCenterNo" clearable placeholder="请选择" style="width: 100%">
<el-option <el-option
@ -450,10 +467,22 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8">
<el-form-item :label="'出库类别'">
<el-select v-model="notifyData.category" clearable placeholder="请选择" style="width: 100%">
<el-option
v-for="item in categoryList"
:key="item.crdcode"
:label="item.crdcode + '-' + item.crdname"
:value="item.crdcode">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="'备注'" style="width: 97%">
<el-form-item :label="'备注'" style="width: 98%">
<el-input <el-input
type="textarea" type="textarea"
:rows="3" :rows="3"
@ -1109,6 +1138,7 @@
import {saveIssueNoOrderDetail} from "../../../../api/orderIssure/soIssueNotify"; import {saveIssueNoOrderDetail} from "../../../../api/orderIssure/soIssueNotify";
import { import {
getOutboundDetail2, // getOutboundDetail2, //
getOutboundCategoryList, //
} from "@/api/qc/outbound_notification.js" } from "@/api/qc/outbound_notification.js"
import Chooselist from '@/views/modules/common/Chooselist_eam' import Chooselist from '@/views/modules/common/Chooselist_eam'
import {verifyData} from "@/api/chooselist/chooselist.js" import {verifyData} from "@/api/chooselist/chooselist.js"
@ -1191,8 +1221,10 @@
userDisplay: '', userDisplay: '',
remark: '', remark: '',
planIssueDate: '', planIssueDate: '',
workCenterNo: ''
workCenterNo: '',
category: '' //
}, },
categoryList: [], //
pageIndex: 1, pageIndex: 1,
pageSize: 100, pageSize: 100,
totalPage: 0, totalPage: 0,
@ -1347,6 +1379,23 @@
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 80 columnWidth: 80
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table1Category',
tableId: "701002Table1",
tableName: "领料申请主表",
columnProp: "category",
headerAlign: "center",
align: "center",
columnLabel: "出库类别",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},{ },{
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 701002, functionId: 701002,
@ -1702,23 +1751,6 @@
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100 columnWidth: 100
},{
userId: this.$store.state.user.name,
functionId: 701002,
serialNumber: '701002Table3OutboundWarehouseId',
tableId: "701002Table3",
tableName: "申请单材料明细表",
columnProp: "warehouseName",
headerAlign: "center",
align: "left",
columnLabel: "领料仓库",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -2629,6 +2661,7 @@
], ],
editBatchVisible: false, editBatchVisible: false,
saveLoading: false, saveLoading: false,
tempWareHouseRow: {}, //
} }
}, },
computed: { computed: {
@ -3051,8 +3084,10 @@
userDisplay: '', userDisplay: '',
remark: '', remark: '',
planIssueDate: '', planIssueDate: '',
workCenterNo: ''
workCenterNo: '',
category: '' //
} }
this.loadCategoryList() //
this.createNotifyFlag = true this.createNotifyFlag = true
}, },
@ -3100,6 +3135,7 @@
userName: this.$store.state.user.name, userName: this.$store.state.user.name,
remark: this.notifyData.remark, remark: this.notifyData.remark,
workCenterNo: this.notifyData.workCenterNo, workCenterNo: this.notifyData.workCenterNo,
category: this.notifyData.category, //
} }
createNotify(inData).then(({data})=>{ createNotify(inData).then(({data})=>{
if (data.code === 0) { if (data.code === 0) {
@ -3989,6 +4025,12 @@
}); });
}, },
//
chooseWareHouse (row) {
this.tempWareHouseRow = row
this.getBaseList(20)
},
// S // S
getBaseList (val, type) { getBaseList (val, type) {
this.tagNo = val this.tagNo = val
@ -3999,6 +4041,10 @@
strVal = this.newMaterialData.componentPartNo strVal = this.newMaterialData.componentPartNo
this.$refs.baseList.init(val, strVal) this.$refs.baseList.init(val, strVal)
} }
if (val === 20) {
strVal = this.tempWareHouseRow.warehouseId
this.$refs.baseList.init(val, strVal)
}
}) })
}, },
@ -4009,6 +4055,19 @@
this.newMaterialData.partDesc = val.PartDescription this.newMaterialData.partDesc = val.PartDescription
this.newMaterialData.warehouseId = val.outbound_warehouse_id this.newMaterialData.warehouseId = val.outbound_warehouse_id
} }
if (this.tagNo === 20) {
this.tempWareHouseRow.warehouseId = val.WareHouseID
this.tempWareHouseRow.warehouseName = val.WareHouseName
}
},
//
loadCategoryList () {
getOutboundCategoryList({}).then(({data}) => {
if (data && data.code === 0) {
this.categoryList = data.rows || []
}
})
}, },
// //

Loading…
Cancel
Save