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(); this.getProcess();
}, },
methods: { methods: {
handleOpen(id) {
this.showFlag = true
this.selectedTaskId = id
},
/** 查询生产任务列表 */ /** 查询生产任务列表 */
getList() { getList() {
this.loading = true; this.loading = true;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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