更新
This commit is contained in:
@@ -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) {
|
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({
|
return request({
|
||||||
|
|||||||
@@ -123,12 +123,12 @@
|
|||||||
|
|
||||||
<div style="min-height:500px;margin: 0px auto;width:800px;border:1px solid black" v-html="returns"/>
|
<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 ref="form" :model="form" :rules="rules" label-position="left" label-width="110px" class="demo-ruleForm">
|
||||||
<el-form-item label="接收人" prop="接收人" center>
|
<el-form-item label="接收人" prop="接收人" center>
|
||||||
<el-select v-model="form.接收人" size="small">
|
<el-select v-model="form.接收人" size="small">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in approval"
|
v-for="item in Person"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value"/>
|
||||||
@@ -143,7 +143,7 @@
|
|||||||
<el-button type="primary" size="small" @click="submit('form')">确定</el-button>
|
<el-button type="primary" size="small" @click="submit('form')">确定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</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 ref="form2" :model="form2" :rules="rules2" label-position="left" label-width="110px" class="demo-ruleForm">
|
||||||
<el-form-item label="审核是否通过" prop="审核是否通过" center>
|
<el-form-item label="审核是否通过" prop="审核是否通过" center>
|
||||||
<el-select v-model="form2.审核是否通过" size="small">
|
<el-select v-model="form2.审核是否通过" size="small">
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<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'
|
import axios from 'axios'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -214,7 +214,15 @@ export default {
|
|||||||
未通过审核原因: ''
|
未通过审核原因: ''
|
||||||
},
|
},
|
||||||
rules2: {},
|
rules2: {},
|
||||||
|
Person: [],
|
||||||
|
form: {
|
||||||
|
接收人: '',
|
||||||
|
内容: '合同审批: 有合同需要您审批【meswork】'
|
||||||
|
},
|
||||||
|
rules: {},
|
||||||
tableData2: [],
|
tableData2: [],
|
||||||
|
telephone: '',
|
||||||
|
text: '',
|
||||||
textarea: ``,
|
textarea: ``,
|
||||||
contractValue: '' // 显示表2和变更合同用的变量
|
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 = []
|
this.contractNum = []
|
||||||
initContract().then(response => {
|
initContract().then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
@@ -246,11 +262,18 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
setting() {},
|
setting() {
|
||||||
submit() {},
|
this.dialogFormVisible = true
|
||||||
|
},
|
||||||
|
submit() {
|
||||||
|
this.telephone = this.form.接收人
|
||||||
|
this.text = this.form.内容
|
||||||
|
this.dialogFormVisible = false
|
||||||
|
this.sendMessage()
|
||||||
|
},
|
||||||
// 发送短信
|
// 发送短信
|
||||||
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) {
|
if (data.data === 1) {
|
||||||
this.$message.success('通知成功')
|
this.$message.success('通知成功')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user