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

@@ -49,7 +49,7 @@ export function deleteInvoice(num1, num2) {
}
})
}
// 传送人接收人初始化
// 接收人初始化
export function initPerson() {
return request({
url: '',
@@ -61,6 +61,18 @@ export function initPerson() {
}
})
}
// 传送人初始化
export function initPerson1() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=5'
}
})
}
// 初始化合同号
export function initContract() {
return request({

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