fix:dialog回显单选框的值优化

This commit is contained in:
zhangxuanming 2025-01-03 16:42:36 +08:00
parent 54ad1c08df
commit 47e5b4b9ee
29 changed files with 79 additions and 46 deletions

View File

@ -213,6 +213,10 @@
this.getProcess();
},
methods: {
handleOpen(id) {
this.showFlag = true
this.selectedTaskId = id
},
/** 查询生产任务列表 */
getList() {
this.loading = true;

View File

@ -166,6 +166,10 @@ export default {
this.getList();
},
methods: {
handleOpen(id) {
this.showFlag = true
this.selectedClientId = id
},
/** 查询客户列表 */
getList() {
this.loading = true;

View File

@ -165,6 +165,10 @@ export default {
this.getTreeselect();
},
methods: {
handleOpen(id) {
this.showFlag = true
this.selectedItemId = id
},
/** 查询物料编码列表 */
getList() {
this.loading = true;

View File

@ -174,6 +174,10 @@ export default {
this.getTreeselect();
},
methods: {
handleOpen(id) {
this.showFlag = true
this.selectedMachineryId = id
},
/** 查询物料编码列表 */
getList() {
this.loading = true;

View File

@ -153,6 +153,10 @@ export default {
})
},
methods: {
handleOpen(id) {
this.showFlag = true
this.selectedId = id
},
/** 查询到货通知单列表 */
getList() {
this.loading = true;

View File

@ -240,6 +240,11 @@ export default {
this.getTreeselect();
},
methods: {
handleOpen(id) {
this.showFlag = true
this.getList()
this.selectedId = id
},
/** 查询库存记录列表 */
getList() {
this.loading = true;

View File

@ -174,6 +174,10 @@ export default {
this.getList();
},
methods: {
handleOpen(id) {
this.showFlag = true
this.selectedVendorId = id
},
/** 查询供应商列表 */
getList() {
this.loading = true;

View File

@ -163,6 +163,10 @@
this.getList();
},
methods:{
handleOpen(id) {
this.showFlag = true
this.selectedWorkorderId = id
},
/** 查询生产工单列表 */
getList() {
this.loading = true;

View File

@ -145,6 +145,10 @@ export default {
this.getProcess();
},
methods: {
handleOpen(id) {
this.showFlag = true
this.selectedWorkstationId = id
},
/** 查询工作站列表 */
getList() {
this.loading = true;

View File

@ -483,7 +483,7 @@ export default {
},
//
handleMachineryAdd(){
this.$refs.machinerySelect.showFlag = true;
this.$refs.machinerySelect.handleOpen(this.form.machineryId)
},
//
onMachineryAdd(row){

View File

@ -582,7 +582,7 @@ export default {
},
//
handleWorkorderSelect(){
this.$refs.woSelect.showFlag = true;
this.$refs.woSelect.handleOpen(this.form.workorderId)
},
onWorkorderSelected(row){
if(row != undefined && row != null){
@ -597,8 +597,7 @@ export default {
}
},
handleTaskSelect(){
this.$refs.taskSelect.showFlag = true;
this.$refs.taskSelect.getList();
this.$refs.taskSelect.handleOpen(this.form.taskId)
},
onTaskSelected(row){
debugger;

View File

@ -353,7 +353,7 @@ export default {
},
//
handleWorkorderSelect(){
this.$refs.woSelect.showFlag = true;
this.$refs.woSelect.handleOpen(this.form.workorderId)
},
onWorkorderSelected(row){
if(row != undefined && row != null){

View File

@ -710,7 +710,7 @@ export default {
}).catch(() => {});
},
handleSelectProduct(){
this.$refs.itemSelect.showFlag = true;
this.$refs.itemSelect.handleOpen(this.form.productId)
},
handleSelectClient(){
this.$refs.clientSelect.showFlag = true;

View File

@ -665,11 +665,10 @@ export default {
},
//
handleWorkorderSelect(){
this.$refs.woSelect.showFlag = true;
this.$refs.woSelect.handleOpen(this.form.workorderId)
},
onWorkorderSelected(row){
if(row != undefined && row != null){
debugger;
this.form.workorderId = row.workorderId;
this.form.workorderCode = row.workorderCode;
this.form.workorderName = row.workorderName;
@ -682,7 +681,7 @@ export default {
}
},
handleWorkstationSelect(){
this.$refs.wsSelect.showFlag = true;
this.$refs.wsSelect.handleOpen(this.form.workstationId)
},
onWorkstationSelected(row){
if(row != undefined && row != null){

View File

@ -637,7 +637,7 @@ export default {
}).catch(() => {});
},
handleSelectProduct(){
this.$refs.itemSelect.showFlag = true;
this.$refs.itemSelect.handleOpen(this.form.itemId)
},
//
onItemSelected(obj){
@ -650,7 +650,7 @@ export default {
}
},
handleSelectClient(){
this.$refs.clientSelect.showFlag = true;
this.$refs.clientSelect.handleOpen(this.form.clientId)
},
//
onClientSelected(obj){

View File

@ -419,7 +419,7 @@ export default {
//
handleSelectVendor(){
this.resetForm("form");
this.$refs.vendorSelect.showFlag = true;
this.$refs.vendorSelect.handleOpen(this.form.vendorId)
},
//
onVendorSelected(obj){

View File

@ -301,7 +301,7 @@ export default {
}, `arrivalnoticeline_${new Date().getTime()}.xlsx`)
},
handleSelectProduct(){
this.$refs.itemSelect.showFlag = true;
this.$refs.itemSelect.handleOpen(this.form.itemId)
},
//
onItemSelected(obj){

View File

@ -529,7 +529,7 @@ export default {
},
//
handleWorkstationSelect(){
this.$refs.wsSelect.showFlag = true;
this.$refs.wsSelect.handleOpen(this.form.workstationId)
},
onWorkstationSelected(row){
debugger;
@ -541,7 +541,7 @@ export default {
},
//
handleWorkorderSelect(){
this.$refs.woSelect.showFlag = true;
this.$refs.woSelect.handleOpen(this.form.workorderId)
},
onWorkorderSelected(row){
if(row != undefined && row != null){

View File

@ -541,7 +541,7 @@ export default {
//
handleSelectVendor(){
this.$refs.form.resetFields()
this.$refs.vendorSelect.showFlag = true;
this.$refs.vendorSelect.handleOpen(this.form.vendorId)
},
//
onVendorSelected(obj){
@ -550,11 +550,12 @@ export default {
this.form.vendorCode = obj.vendorCode;
this.form.vendorName = obj.vendorName;
this.form.vendorNick = obj.vendorNick;
console.log(this.form, '----this.form----')
}
},
//
handleSelectNotice(){
this.$refs.noticeSelect.showFlag = true;
this.$refs.noticeSelect.handleOpen(this.form.noticeId)
},
//
onNoticeSelected(obj){

View File

@ -473,7 +473,7 @@ export default {
},
//
handleWorkorderSelect(){
this.$refs.woSelect.showFlag = true;
this.$refs.woSelect.handleOpen(this.form.workorderId)
},
onWorkorderSelected(row){
if(row != undefined && row != null){

View File

@ -446,7 +446,7 @@ export default {
},
//
handleWorkorderSelect(){
this.$refs.woSelect.showFlag = true;
this.$refs.woSelect.handleOpen(this.form.workorderId)
},
onWorkorderSelected(row){
if(row != undefined && row != null){

View File

@ -480,7 +480,7 @@ export default {
},
//
handleSelectClient(){
this.$refs.clientSelect.showFlag = true;
this.$refs.clientSelect.handleOpen(this.form.clientId)
},
//
onClientSelected(obj){

View File

@ -448,11 +448,10 @@ export default {
},
//
handleWorkorderSelect(){
this.$refs.woSelect.showFlag = true;
this.$refs.woSelect.handleOpen(this.form.workorderId)
},
onWorkorderSelected(row){
if(row != undefined && row != null){
debugger;
this.form.workorderId = row.workorderId;
this.form.workorderCode = row.workorderCode;
this.form.workorderName = row.workorderName;

View File

@ -520,7 +520,7 @@ export default {
}
},
handleSelectClient(){
this.$refs.clientSelect.showFlag = true;
this.$refs.clientSelect.handleOpen(this.form.clientId)
},
//
onClientSelected(obj){

View File

@ -395,8 +395,7 @@ export default {
}, `productsalseline_${new Date().getTime()}.xlsx`)
},
handleSelectStock(){
this.$refs.stockSelect.showFlag = true;
this.$refs.stockSelect.getList();
this.$refs.stockSelect.handleOpen(this.form.materialStockId)
},
//
onStockSelected(obj){

View File

@ -479,7 +479,7 @@ export default {
},
//
handleWorkorderSelect(){
this.$refs.woSelect.showFlag = true;
this.$refs.woSelect.handleOpen(this.form.workorderId)
},
onWorkorderSelected(row){
if(row != undefined && row != null){

View File

@ -457,7 +457,7 @@ export default {
},
//
handleSelectClient(){
this.$refs.clientSelect.showFlag = true;
this.$refs.clientSelect.handleOpen(this.form.clientId)
},
//
handleClientSelect(obj){

View File

@ -449,7 +449,7 @@ export default {
},
//
handleSelectVendor(){
this.$refs.vendorSelect.showFlag = true;
this.$refs.vendorSelect.handleOpen(this.form.vendorId)
},
//
onVendorSelected(obj){

View File

@ -332,8 +332,7 @@ export default {
}).catch(() => {});
},
handleSelectStock(){
this.$refs.stockSelect.showFlag = true;
this.$refs.stockSelect.getList();
this.$refs.stockSelect.handleOpen(this.form.materialStockId)
},
//
onStockSelected(obj){