This commit is contained in:
liushuai
2018-12-30 11:14:46 +08:00
parent fddd89b988
commit 77ebe95beb
2 changed files with 26 additions and 5 deletions

View File

@@ -19,7 +19,7 @@
<span>传送人:</span>
<el-select v-model="transmitValue" placeholder="传送人" size="small" filterable clearable style="width:100px">
<el-option
v-for="item in selectPerson"
v-for="item in selectPerson1"
:key="item.value"
:label="item.label"
:value="item.value"/>
@@ -160,7 +160,7 @@
<el-form-item label="传送人" prop="sendPerson">
<el-select v-model="form1.sendPersonValue" placeholder="传送人" size="small" disabled filterable clearable style="width:100px">
<el-option
v-for="item in selectPerson"
v-for="item in selectPerson1"
:key="item.value"
:label="item.label"
:value="item.value"/>
@@ -189,7 +189,7 @@
</template>
<script>
import { searchInvoice, addInvoice, editInvoice, deleteInvoice, initPerson, initContract } from '@/api/WorkshopProcurement/ReceiptConnectionSheet'
import { searchInvoice, addInvoice, editInvoice, deleteInvoice, initPerson, initPerson1, initContract } from '@/api/WorkshopProcurement/ReceiptConnectionSheet'
import { mapGetters } from 'vuex'
export default {
@@ -201,7 +201,8 @@ export default {
invoiceNum: '',
invoiceTime: '',
transmitValue: '',
selectPerson: [], // 传送人接收人
selectPerson: [], // 接收人
selectPerson1: [], // 传送人
recipientValue: '',
contractNum: '',
pageCurrent1: 1,
@@ -266,6 +267,14 @@ export default {
})
}
})
initPerson1().then(response => {
for (let i = 0; i < response.data.length; i++) {
this.selectPerson1.push({
label: response.data[i].姓名,
value: response.data[i].人员编号
})
}
})
},
searchTable1() {
this.invoiceNum ? this.check1 = 1 : this.check1 = 0