普通项目管理

This commit is contained in:
zhaoxiao
2021-08-26 18:42:00 +08:00
parent 2877d17572
commit 0108b9d1c7
2 changed files with 31 additions and 34 deletions
@@ -28,12 +28,15 @@
</a-col>
<a-col :xl="12" :sm="24">
<a-form-item label="负责人" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-select placeholder="请选择负责人"
v-decorator="['principalId',validatorRules.principalId]"
:maxLength='50'
@change="e => {e.target.value = (e.target.value + '').trim()}">
<a-select-option v-for="item in userList" :key="item.id" :value="item.id">{{ item.username }}</a-select-option>
</a-select>
<select-principal placeholder="请选择负责人"
v-decorator="['principalId',validatorRules.principalId]"
:maxLength='50'></select-principal>
<!-- <a-select placeholder="请选择负责人"-->
<!-- v-decorator="['principalId',validatorRules.principalId]"-->
<!-- :maxLength='50'-->
<!-- @change="e => {e.target.value = (e.target.value + '').trim()}">-->
<!-- <a-select-option v-for="item in userList" :key="item.id" :value="item.id">{{ item.username }}</a-select-option>-->
<!-- </a-select>-->
</a-form-item>
</a-col>
</a-row>
@@ -177,10 +180,11 @@ import JDate from '@comp/jero/JDate'
import JUpload from '@comp/jero/JUpload'
import CompanySelect from '@comp/company/CompanySelect'
import ContactManagementModule from '@views/businessManagement/modules/ContactManagementModule'
import SelectPrincipal from '@comp/company/SelectPrincipal'
export default {
name: 'GeneralProjectModule',
components: { JDate, JUpload, CompanySelect, ContactManagementModule },
components: { JDate, JUpload, CompanySelect, ContactManagementModule, SelectPrincipal },
data() {
return {
title: '操作',
@@ -257,7 +261,7 @@ export default {
this.model = Object.assign({}, record)
this.visible = true
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.model, 'companyName', 'companyAddress', 'companyPhone', 'postalCode', 'bankAccountName', 'openingBank', 'bankAccount', 'dutyCode', 'remarks'))
this.form.setFieldsValue(pick(this.model, 'chargeProject', 'year', 'principalId', 'chargeCompanyName', 'chargeUse', 'contactsId', 'mailContactsId', 'receivableAmount', 'invoice', 'chargeWay', 'contractNum', 'chargeNoticeNo', 'remarks'))
})
},
close() {
@@ -305,7 +309,6 @@ export default {
this.chargeWayType = e.target.value
},
companyChange(value) {
console.log('---companyChange---', value)
this.selectedCompany = value
},
addContacts() {