|
@@ -155,12 +155,17 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- label="是否存在上级集团公司"
|
|
|
|
|
- prop="hasParentGroup"
|
|
|
|
|
- label-width="155px"
|
|
|
|
|
|
|
+ label="关联上级单位"
|
|
|
|
|
+ prop="parentId"
|
|
|
|
|
+
|
|
|
>
|
|
>
|
|
|
- <el-radio v-model="form.hasParentGroup" :label="1">是</el-radio>
|
|
|
|
|
- <el-radio v-model="form.hasParentGroup" :label="0">否</el-radio>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请选择关联上级单位"
|
|
|
|
|
+ v-model="form.parentName"
|
|
|
|
|
+ readonly
|
|
|
|
|
+ @click.native="handParent"
|
|
|
|
|
+
|
|
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
@@ -396,6 +401,8 @@
|
|
|
<el-button type="primary" @click="save">保存</el-button>
|
|
<el-button type="primary" @click="save">保存</el-button>
|
|
|
<el-button @click="cancel">返回</el-button>
|
|
<el-button @click="cancel">返回</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+ <parentList ref="parentRef" classType="2" @changeParent="changeParent"></parentList>
|
|
|
</ele-modal>
|
|
</ele-modal>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -410,6 +417,8 @@ import personSelect from '@/components/CommomSelect/person-select.vue';
|
|
|
import {listOrganizations} from '@/api/system/organization';
|
|
import {listOrganizations} from '@/api/system/organization';
|
|
|
import {copyObj} from '@/utils/util';
|
|
import {copyObj} from '@/utils/util';
|
|
|
|
|
|
|
|
|
|
+import parentList from '../../../saleManage/contact/components/parentList.vue'
|
|
|
|
|
+
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
props: {
|
|
props: {
|
|
@@ -419,7 +428,8 @@ export default {
|
|
|
components: {
|
|
components: {
|
|
|
fileUpload,
|
|
fileUpload,
|
|
|
deptSelect,
|
|
deptSelect,
|
|
|
- personSelect
|
|
|
|
|
|
|
+ personSelect,
|
|
|
|
|
+ parentList
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
let formDef = {
|
|
let formDef = {
|
|
@@ -433,7 +443,7 @@ export default {
|
|
|
categoryId: '',
|
|
categoryId: '',
|
|
|
companyCategoryId: '',
|
|
companyCategoryId: '',
|
|
|
companyCategoryName: '',
|
|
companyCategoryName: '',
|
|
|
- hasParentGroup: 0,
|
|
|
|
|
|
|
+ parentId: null,
|
|
|
industry: '',
|
|
industry: '',
|
|
|
industryCode: '',
|
|
industryCode: '',
|
|
|
industryFullName: '',
|
|
industryFullName: '',
|
|
@@ -594,6 +604,10 @@ export default {
|
|
|
],
|
|
],
|
|
|
authorizationLimit: [
|
|
authorizationLimit: [
|
|
|
{ required: true, message: '请输入授信额度', trigger: 'blur' }
|
|
{ required: true, message: '请输入授信额度', trigger: 'blur' }
|
|
|
|
|
+ ],
|
|
|
|
|
+
|
|
|
|
|
+ addressId: [
|
|
|
|
|
+ { required: true, message: '请选择地址', trigger: 'change' }
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
otherRules: {
|
|
otherRules: {
|
|
@@ -602,7 +616,25 @@ export default {
|
|
|
// ],
|
|
// ],
|
|
|
taxRate: [
|
|
taxRate: [
|
|
|
{ required: true, message: '请输入税率', trigger: 'change' }
|
|
{ required: true, message: '请输入税率', trigger: 'change' }
|
|
|
|
|
+ ],
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ sender: [
|
|
|
|
|
+ { required: true, message: '请输入收件人', trigger: 'change' }
|
|
|
|
|
+ ],
|
|
|
|
|
+
|
|
|
|
|
+ senderPhone: [
|
|
|
|
|
+ { required: true, message: '请输入收件人电话', trigger: 'change' }
|
|
|
|
|
+ ],
|
|
|
|
|
+
|
|
|
|
|
+ addressId: [
|
|
|
|
|
+ { required: true, message: '请选择收件人地址', trigger: 'change' }
|
|
|
|
|
+ ],
|
|
|
|
|
+
|
|
|
|
|
+ address: [
|
|
|
|
|
+ { required: true, message: '请输入收件人详细地址', trigger: 'blur' }
|
|
|
]
|
|
]
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
options: {
|
|
options: {
|
|
|
cityData,
|
|
cityData,
|
|
@@ -882,6 +914,20 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ handParent() {
|
|
|
|
|
+ let item = {
|
|
|
|
|
+ id: this.form.parentId
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$refs.parentRef.open(item)
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ changeParent(obj) {
|
|
|
|
|
+ this.$set( this.form, 'parentId', obj.id)
|
|
|
|
|
+ this.$set( this.form, 'parentName', obj.name)
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|