更新
This commit is contained in:
@@ -130,6 +130,7 @@
|
||||
</template>
|
||||
|
||||
<script>import { getData, getData1, getData2, getData3, getMachine } from '@/api/ManufacturingCenter/EquipmentConditionAnalysis'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -181,6 +182,7 @@ export default {
|
||||
this.time2 = response.data.rows[0].等待持续时间
|
||||
this.time3 = response.data.rows[0].停机持续时间
|
||||
}).then(() => {
|
||||
this.sendMessage()
|
||||
this.drawLine1()
|
||||
})
|
||||
getData1(this.Time).then(response => {
|
||||
|
||||
@@ -28,6 +28,12 @@
|
||||
icon="el-icon-search"
|
||||
style="margin-left:10px"
|
||||
@click="total1=0;pageCurrent1=1;pageSize1=10;searchTable1()">查询</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
icon="el-icon-search"
|
||||
style="margin-left:10px"
|
||||
@click="sendMessage()">通知</el-button>
|
||||
</el-card>
|
||||
|
||||
<el-card>
|
||||
@@ -142,6 +148,7 @@
|
||||
|
||||
<script>
|
||||
import { initContract, initBuyer, searchTable1, searchTable2, submitApproval } from '@/api/PurchasingCenter/PurchaseContractReview'
|
||||
import axios from 'axios'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -218,6 +225,15 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
// 发送短信
|
||||
sendMessage() {
|
||||
axios.get(`http://192.168.1.231:8411/submit/MESSendMessage.ashx?Uid=liuqinghua&Key=liuqinghua123456&smsMob=18340870479,15140619457&smsText=合同审批: 有合同需要您审批【meswork】`).then(data => {
|
||||
if (data.data === 1) {
|
||||
this.$message.success('通知成功')
|
||||
}
|
||||
console.log(data)
|
||||
})
|
||||
},
|
||||
searchTable1() {
|
||||
this.tableData2 = []
|
||||
this.textarea = ``
|
||||
|
||||
Reference in New Issue
Block a user