Commit 230c2cbb authored by zhanglw's avatar zhanglw

大屏指标设置

parent a1b1da7d
...@@ -3255,7 +3255,20 @@ var HttpReq = function(){ ...@@ -3255,7 +3255,20 @@ var HttpReq = function(){
method: 'get' method: 'get'
}) })
}, },
//大屏指标
dpGetFindDpPlan: function(params){
return request({
url: '/api/tEnterpriseInformation/findDpPlan?' + qs.stringify(params, { indices: false }),
method: 'get'
})
},
dpPutUpdateDpPlan: function(data){
return request({
url: '/api/tEnterpriseInformation/updateDpPlan',
method: 'PUT',
data: data,
})
},
}, },
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</el-col> </el-col>
<el-col :span="14" class="grid-content"> <el-col :span="14" class="grid-content">
<el-form-item prop="totality" style="margin: 0"> <el-form-item prop="totality" style="margin: 0">
<el-input v-model="formData.totalReserves" placeholder="输入总储量" /> <el-input v-model="formData.mineralresources" placeholder="输入总储量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -33,27 +33,27 @@ ...@@ -33,27 +33,27 @@
</el-col> </el-col>
<el-col :span="14" class="grid-content"> <el-col :span="14" class="grid-content">
<el-form-item prop="atCamp" style="margin: 0"> <el-form-item prop="atCamp" style="margin: 0">
<el-input v-model="formData.totalSurplus" placeholder="输入剩余储量" /> <el-input v-model="formData.dpsycl" placeholder="输入剩余储量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="10" class="grid-content"> <el-col :span="10" class="grid-content">
<div class="grid-label">当日计划开采</div> <div class="grid-label">当日计划量</div>
</el-col> </el-col>
<el-col :span="14" class="grid-content"> <el-col :span="14" class="grid-content">
<el-form-item prop="checkReturn" style="margin: 0"> <el-form-item prop="checkReturn" style="margin: 0">
<el-input v-model="formData.dayPlanSum" placeholder="输入当日计划开采量" /> <el-input v-model="formData.dpdrjh" placeholder="输入当日计划量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="10" class="grid-content"> <el-col :span="10" class="grid-content">
<div class="grid-label">当日完成开采量</div> <div class="grid-label">当日开采量</div>
</el-col> </el-col>
<el-col :span="14" class="grid-content"> <el-col :span="14" class="grid-content">
<el-form-item prop="checkReturn" style="margin: 0"> <el-form-item prop="checkReturn" style="margin: 0">
<el-input v-model="formData.dayProduceSum" placeholder="输入当日实际开采量" /> <el-input v-model="formData.dpdrkc" placeholder="输入当日开采量" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -82,10 +82,10 @@ export default { ...@@ -82,10 +82,10 @@ export default {
title: '', title: '',
visible: false, visible: false,
formData: { formData: {
totalReserves: '', // 总量 mineralresources: '', // 总量
totalSurplus: '', // 剩余量 dpsycl: '', // 剩余量
dayPlanSum: '', // 当日计划 dpdrjh: '', // 当日计划
dayProduceSum: '', // 当日完成 dpdrkc: '', // 当日完成
}, },
rules: {} rules: {}
} }
...@@ -102,22 +102,22 @@ export default { ...@@ -102,22 +102,22 @@ export default {
submitForm() { submitForm() {
this.$refs.formViewRef.validate(valid => { this.$refs.formViewRef.validate(valid => {
if (valid) { if (valid) {
// HttpReq.truckDispatching.postManuallyNumber({ HttpReq.truckDispatching.dpPutUpdateDpPlan({
// ...this.formData ...this.formData
// }).then((res) => { }).then((res) => {
// this.$notify({ this.$notify({
// title: res.msg, title: res.msg,
// type: res.code === 200 ? 'success' : 'error', type: res.code === 200 ? 'success' : 'error',
// duration: 2500 duration: 2500
// }) })
// }) })
} }
}) })
}, },
loadData() { loadData() {
// HttpReq.truckDispatching.getManuallyNumber({}).then((res) => { HttpReq.truckDispatching.dpGetFindDpPlan({}).then((res) => {
// this.formData = res this.formData = res.data
// }) })
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment