fix:dialog回显单选框的值优化
This commit is contained in:
parent
54ad1c08df
commit
47e5b4b9ee
@ -213,6 +213,10 @@
|
||||
this.getProcess();
|
||||
},
|
||||
methods: {
|
||||
handleOpen(id) {
|
||||
this.showFlag = true
|
||||
this.selectedTaskId = id
|
||||
},
|
||||
/** 查询生产任务列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
@ -166,6 +166,10 @@ export default {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
handleOpen(id) {
|
||||
this.showFlag = true
|
||||
this.selectedClientId = id
|
||||
},
|
||||
/** 查询客户列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
@ -165,6 +165,10 @@ export default {
|
||||
this.getTreeselect();
|
||||
},
|
||||
methods: {
|
||||
handleOpen(id) {
|
||||
this.showFlag = true
|
||||
this.selectedItemId = id
|
||||
},
|
||||
/** 查询物料编码列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
@ -174,6 +174,10 @@ export default {
|
||||
this.getTreeselect();
|
||||
},
|
||||
methods: {
|
||||
handleOpen(id) {
|
||||
this.showFlag = true
|
||||
this.selectedMachineryId = id
|
||||
},
|
||||
/** 查询物料编码列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
@ -153,6 +153,10 @@ export default {
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
handleOpen(id) {
|
||||
this.showFlag = true
|
||||
this.selectedId = id
|
||||
},
|
||||
/** 查询到货通知单列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
@ -240,6 +240,11 @@ export default {
|
||||
this.getTreeselect();
|
||||
},
|
||||
methods: {
|
||||
handleOpen(id) {
|
||||
this.showFlag = true
|
||||
this.getList()
|
||||
this.selectedId = id
|
||||
},
|
||||
/** 查询库存记录列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
@ -174,6 +174,10 @@ export default {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
handleOpen(id) {
|
||||
this.showFlag = true
|
||||
this.selectedVendorId = id
|
||||
},
|
||||
/** 查询供应商列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
@ -163,6 +163,10 @@
|
||||
this.getList();
|
||||
},
|
||||
methods:{
|
||||
handleOpen(id) {
|
||||
this.showFlag = true
|
||||
this.selectedWorkorderId = id
|
||||
},
|
||||
/** 查询生产工单列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
@ -145,6 +145,10 @@ export default {
|
||||
this.getProcess();
|
||||
},
|
||||
methods: {
|
||||
handleOpen(id) {
|
||||
this.showFlag = true
|
||||
this.selectedWorkstationId = id
|
||||
},
|
||||
/** 查询工作站列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
@ -483,7 +483,7 @@ export default {
|
||||
},
|
||||
//设备资源选择弹出
|
||||
handleMachineryAdd(){
|
||||
this.$refs.machinerySelect.showFlag = true;
|
||||
this.$refs.machinerySelect.handleOpen(this.form.machineryId)
|
||||
},
|
||||
//设备资源选择回调
|
||||
onMachineryAdd(row){
|
||||
|
@ -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;
|
||||
|
@ -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){
|
||||
|
@ -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;
|
||||
|
@ -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){
|
||||
|
@ -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){
|
||||
|
@ -419,7 +419,7 @@ export default {
|
||||
//供应商选择
|
||||
handleSelectVendor(){
|
||||
this.resetForm("form");
|
||||
this.$refs.vendorSelect.showFlag = true;
|
||||
this.$refs.vendorSelect.handleOpen(this.form.vendorId)
|
||||
},
|
||||
//供应商选择弹出框
|
||||
onVendorSelected(obj){
|
||||
|
@ -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){
|
||||
|
@ -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){
|
||||
|
@ -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){
|
||||
|
@ -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){
|
||||
|
@ -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){
|
||||
|
@ -480,7 +480,7 @@ export default {
|
||||
},
|
||||
//选择客户
|
||||
handleSelectClient(){
|
||||
this.$refs.clientSelect.showFlag = true;
|
||||
this.$refs.clientSelect.handleOpen(this.form.clientId)
|
||||
},
|
||||
//客户选择弹出框
|
||||
onClientSelected(obj){
|
||||
|
@ -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;
|
||||
|
@ -520,7 +520,7 @@ export default {
|
||||
}
|
||||
},
|
||||
handleSelectClient(){
|
||||
this.$refs.clientSelect.showFlag = true;
|
||||
this.$refs.clientSelect.handleOpen(this.form.clientId)
|
||||
},
|
||||
//客户选择弹出框
|
||||
onClientSelected(obj){
|
||||
|
@ -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){
|
||||
|
@ -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){
|
||||
|
@ -457,7 +457,7 @@ export default {
|
||||
},
|
||||
//客户选择事件
|
||||
handleSelectClient(){
|
||||
this.$refs.clientSelect.showFlag = true;
|
||||
this.$refs.clientSelect.handleOpen(this.form.clientId)
|
||||
},
|
||||
//客户选择
|
||||
handleClientSelect(obj){
|
||||
|
@ -449,7 +449,7 @@ export default {
|
||||
},
|
||||
//供应商选择
|
||||
handleSelectVendor(){
|
||||
this.$refs.vendorSelect.showFlag = true;
|
||||
this.$refs.vendorSelect.handleOpen(this.form.vendorId)
|
||||
},
|
||||
//供应商选择弹出框
|
||||
onVendorSelected(obj){
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user