Explorar o código

仓库新增发货人、发货人电话

hcf hai 1 ano
pai
achega
a4cf55b0e7

+ 20 - 0
src/views/audit/depots/components/ruleForm.vue

@@ -6,6 +6,16 @@
 					<el-input v-model="ruleForm.name"></el-input>
 				</el-col>
 			</el-form-item>
+			<el-form-item label="发货人:" prop="shipper">
+				<el-col :span="13">
+					<el-input v-model="ruleForm.shipper"></el-input>
+				</el-col>
+			</el-form-item>
+			<el-form-item label="发货人电话:" prop="shipperPhone">
+				<el-col :span="13">
+					<el-input v-model="ruleForm.shipperPhone"></el-input>
+				</el-col>
+			</el-form-item>
 			<el-form-item label="金蝶仓库名称:" prop="financeStorehouseName">
 				<el-col :span="13">
 					<el-input v-model="ruleForm.financeStorehouseName"></el-input>
@@ -69,6 +79,8 @@
 		propValue : any;
 		ruleForm: any = {
 			name: null, //名称
+			shipper: null, //发货人
+			shipperPhone: null, //发货人电话
 			financeType: '金蝶', //金蝶财务系统名称
 			financeStorehouseName: null, //金蝶仓库名称
 			financeStorehouseNo: null, //金蝶仓库编号
@@ -92,6 +104,12 @@
 			name: [{
 				required: true, message: '请输入名称', trigger: 'blur'
 			}],
+			shipper: [{
+				required: true, message: '请输入发货人', trigger: 'blur'
+			}],
+			shipperPhone: [{
+				required: true, message: '请输入发货人电话', trigger: 'blur'
+			}],
 			financeStorehouseName: [{
 				required: true, message: '请输入金蝶仓库名称', trigger: 'blur'
 			}],
@@ -252,6 +270,8 @@
 		clearValue(){
 			var ruleForm = {
 				name: null, //名称
+				shipper: null, //发货人
+				shipperPhone: null, //发货人电话
 				financeType: '金蝶', //金蝶财务系统名称
 				financeStorehouseName: null, //金蝶仓库名称
 				financeStorehouseNo: null, //金蝶仓库编号

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

@@ -708,6 +708,7 @@
 			console.log(e);
 			this.popTitle = '编辑'
 			this.dialogFormVisible = true;
+			(this as any).$refs.addFormId.clearValue();
 			setTimeout(() => {
 				if ((this as any).$refs.addFormId) (this as any).$refs.addFormId.setValue(e);
 			}, 0)
@@ -726,6 +727,7 @@
 			this.popTitle = '编辑'
 			this.dialogFormVisible2 = true;
 			this.isAdd = false;
+			(this as any).$refs.addFormId.clearValue();
 			setTimeout(() => {
 				if ((this as any).$refs.addFormId2) (this as any).$refs.addFormId2.setValue(e);
 			}, 0)