This commit is contained in:
liushuai
2019-07-11 08:58:00 +08:00
parent 11b4e54901
commit 75990cd509
2 changed files with 41 additions and 7 deletions

View File

@@ -22,6 +22,17 @@ export function initBuyer() {
}
})
}
// 初始化接收人
export function initPerson() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '采购管理_接收人员_查询数据'
}
})
}
// 查询供应商
export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) {
return request({

View File

@@ -123,12 +123,12 @@
<div style="min-height:500px;margin: 0px auto;width:800px;border:1px solid black" v-html="returns"/>
<el-dialog :visible.sync="dialogVisible3" title="审核" center style="min-height: 300px;" width="370px">
<el-dialog :visible.sync="dialogFormVisible" title="通知" center style="min-height: 300px;" width="370px">
<el-form ref="form" :model="form" :rules="rules" label-position="left" label-width="110px" class="demo-ruleForm">
<el-form-item label="接收人" prop="接收人" center>
<el-select v-model="form.接收人" size="small">
<el-option
v-for="item in approval"
v-for="item in Person"
:key="item.value"
:label="item.label"
:value="item.value"/>
@@ -143,7 +143,7 @@
<el-button type="primary" size="small" @click="submit('form')">确定</el-button>
</div>
</el-dialog>
<el-dialog :visible.sync="dialogFormVisible" title="通知" center style="min-height: 300px;" width="370px">
<el-dialog :visible.sync="dialogVisible3" title="审核" center style="min-height: 300px;" width="370px">
<el-form ref="form2" :model="form2" :rules="rules2" label-position="left" label-width="110px" class="demo-ruleForm">
<el-form-item label="审核是否通过" prop="审核是否通过" center>
<el-select v-model="form2.审核是否通过" size="small">
@@ -167,7 +167,7 @@
</template>
<script>
import { initContract, initBuyer, searchTable1, searchTable2, submitApproval } from '@/api/PurchasingCenter/PurchaseContractReview'
import { initContract, initBuyer, searchTable1, searchTable2, submitApproval, initPerson } from '@/api/PurchasingCenter/PurchaseContractReview'
import axios from 'axios'
export default {
@@ -214,7 +214,15 @@ export default {
未通过审核原因: ''
},
rules2: {},
Person: [],
form: {
接收人: '',
内容: '合同审批: 有合同需要您审批【meswork】'
},
rules: {},
tableData2: [],
telephone: '',
text: '',
textarea: ``,
contractValue: '' // 显示表2和变更合同用的变量
}
@@ -235,6 +243,14 @@ export default {
})
}
})
initPerson().then(response => {
for (let i = 0; i < response.data.length; i++) {
this.Person.push({
label: response.data[i].姓名,
value: response.data[i].联系电话
})
}
})
this.contractNum = []
initContract().then(response => {
for (let i = 0; i < response.data.length; i++) {
@@ -246,11 +262,18 @@ export default {
}
})
},
setting() {},
submit() {},
setting() {
this.dialogFormVisible = true
},
submit() {
this.telephone = this.form.接收人
this.text = this.form.内容
this.dialogFormVisible = false
this.sendMessage()
},
// 发送短信
sendMessage() {
axios.get(`http://192.168.1.231:8411/submit/MESSendMessage.ashx?Uid=liuqinghua&Key=liuqinghua123456&smsMob=18340870479,15140619457&smsText=合同审批: 有合同需要您审批【meswork】`).then(data => {
axios.get(`http://192.168.1.231:8411/submit/MESSendMessage.ashx?Uid=liuqinghua&Key=liuqinghua123456&smsMob=${this.telephone}&smsText=${this.text}`).then(data => {
if (data.data === 1) {
this.$message.success('通知成功')
}