Commit 230c2cbb authored by zhanglw's avatar zhanglw

大屏指标设置

parent a1b1da7d
......@@ -3255,7 +3255,20 @@ var HttpReq = function(){
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 @@
</el-col>
<el-col :span="14" class="grid-content">
<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-col>
</el-row>
......@@ -33,27 +33,27 @@
</el-col>
<el-col :span="14" class="grid-content">
<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-col>
</el-row>
<el-row>
<el-col :span="10" class="grid-content">
<div class="grid-label">当日计划开采</div>
<div class="grid-label">当日计划量</div>
</el-col>
<el-col :span="14" class="grid-content">
<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-col>
</el-row>
<el-row>
<el-col :span="10" class="grid-content">
<div class="grid-label">当日完成开采量</div>
<div class="grid-label">当日开采量</div>
</el-col>
<el-col :span="14" class="grid-content">
<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-col>
</el-row>
......@@ -82,10 +82,10 @@ export default {
title: '',
visible: false,
formData: {
totalReserves: '', // 总量
totalSurplus: '', // 剩余量
dayPlanSum: '', // 当日计划
dayProduceSum: '', // 当日完成
mineralresources: '', // 总量
dpsycl: '', // 剩余量
dpdrjh: '', // 当日计划
dpdrkc: '', // 当日完成
},
rules: {}
}
......@@ -102,22 +102,22 @@ export default {
submitForm() {
this.$refs.formViewRef.validate(valid => {
if (valid) {
// HttpReq.truckDispatching.postManuallyNumber({
// ...this.formData
// }).then((res) => {
// this.$notify({
// title: res.msg,
// type: res.code === 200 ? 'success' : 'error',
// duration: 2500
// })
// })
HttpReq.truckDispatching.dpPutUpdateDpPlan({
...this.formData
}).then((res) => {
this.$notify({
title: res.msg,
type: res.code === 200 ? 'success' : 'error',
duration: 2500
})
})
}
})
},
loadData() {
// HttpReq.truckDispatching.getManuallyNumber({}).then((res) => {
// this.formData = res
// })
HttpReq.truckDispatching.dpGetFindDpPlan({}).then((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