更新
This commit is contained in:
@@ -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('通知成功')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user