Ver Fonte

优化企业档案编辑
商品管理添加物料关联成功提示

hcf há 1 ano atrás
pai
commit
9debb9de4b

+ 11 - 1
src/views/audit/Information/index.vue

@@ -39,6 +39,9 @@
 				<by-tool :propConfig="toolConfig" @clickHandle="insideTools" ref="byTool" />
 				<div class="box-shadow">
 					<by-form :propConfig="addConfig" ref="addFormId">
+						<template v-slot:organizationCode="{value}" class="clearfix">
+							<vxe-input v-model="value.organizationCode" :disabled="isOrganizationCode" style="width: 100%;"></vxe-input>
+						</template>
 						<template v-slot:k3ServerUrl="{value}" class="clearfix">
 							<!-- <i class="el-icon-question" title="私有云必须配置金蝶云星空产品地址,K3Cloud/结尾,若为公有云则必须置空"></i> -->
 							<!-- <vxe-input v-model="value.k3ServerUrl" style="width:calc(100% - 25px);margin-left: 10px;"></vxe-input> -->						
@@ -69,6 +72,7 @@
 		radio : any = 0
 		popTitle : any = ''
 		dialogFormVisible : boolean = false
+		isOrganizationCode : boolean = true
 		toolConfig = {
 			tools: {
 				return: true,
@@ -140,7 +144,7 @@
 						span: 6,
 						label: '机构代码',
 						prop: 'organizationCode',
-						component: 'by-input',
+						slot: true,
 					},
 					{
 						span: 6,
@@ -315,6 +319,12 @@
 					let data = res.data;
 					this.radio = data.status;
 					this.dialogFormVisible = true;
+					if(res.data.organizationCode){
+						this.isOrganizationCode = true
+					}else{
+						this.isOrganizationCode = false
+					}
+					console.log(this.isOrganizationCode)
 					this.$nextTick(() => (this as any).$refs.addFormId.setValue(data));
 					loading.close();
 				} else loading.close();

+ 2 - 0
src/views/audit/productManagement/index.vue

@@ -1780,12 +1780,14 @@
 					// height: '0',
 					// volume: '0',
 				}];
+				this.$message.success('关联物料 '+this.tableRadio.fname+' 成功');
 			}else{
 				val[0].skuTitle = this.tableRadio.fname;
 				val[0].skuSubtitle = this.tableRadio.fname;
 				val[0].financialCode = this.tableRadio.fnumber;
 				val[0].unit = this.tableRadio.fbaseUnitName;
 				val[0].unitCode = this.tableRadio.fbaseUnitCode;
+				this.$message.success('物料 '+val[0].skuTitle+' 信息变更为 '+this.tableRadio.fname);
 			}
 			(this as any).$refs.singeTable.setValue(val);
 			(this as any).$refs.form.setValue(val2);