|
@@ -45,7 +45,6 @@
|
|
class="elTable table-fixed"
|
|
class="elTable table-fixed"
|
|
:max-height="myHeight"
|
|
:max-height="myHeight"
|
|
@header-click="headerClick"
|
|
@header-click="headerClick"
|
|
- @cell-click="cellClick"
|
|
|
|
@selection-change="handleSelect"
|
|
@selection-change="handleSelect"
|
|
@cell-dblclick="celldblclick"
|
|
@cell-dblclick="celldblclick"
|
|
>
|
|
>
|
|
@@ -110,7 +109,7 @@
|
|
<el-table-column v-if="table.isRW1 && table.isPtsfname" :key="10" label="第一班补料重量" min-width="100px" align="center">
|
|
<el-table-column v-if="table.isRW1 && table.isPtsfname" :key="10" label="第一班补料重量" min-width="100px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.bw1 }}</span>
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.bw1 }}</span>
|
|
- <el-input v-if="scope.row.Edit" v-model="scope.row.bw1" :disabled="scope.row.ptsfid == '-1' || scope.row.ptsfid == ''" step="0.01" type="number" style="width:100%;padding:10px 0;" @blur="blurBw(scope.row)" @focus="focusBw(scope.row)" />
|
|
|
|
|
|
+ <el-input v-if="scope.row.Edit" v-model="scope.row.bw1" :disabled="scope.row.ptsfid == '-1' || scope.row.ptsfid == ''" step="0.01" type="number" style="width:100%;padding:10px 0;" />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column v-if="table.isRW2" :key="11" label="第二班比例(%)" min-width="85px" align="center">
|
|
<el-table-column v-if="table.isRW2" :key="11" label="第二班比例(%)" min-width="85px" align="center">
|
|
@@ -128,7 +127,7 @@
|
|
<el-table-column v-if="table.isRW2 && table.isPtsfname" :key="13" label="第二班补料重量" min-width="100px" align="center">
|
|
<el-table-column v-if="table.isRW2 && table.isPtsfname" :key="13" label="第二班补料重量" min-width="100px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.bw2 }}</span>
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.bw2 }}</span>
|
|
- <el-input v-if="scope.row.Edit" v-model="scope.row.bw2" :disabled="scope.row.ptsfid == '-1' || scope.row.ptsfid == ''" step="0.01" type="number" style="width:100%;padding:10px 0;" @blur="blurBw(scope.row)" @focus="focusBw(scope.row)" />
|
|
|
|
|
|
+ <el-input v-if="scope.row.Edit" v-model="scope.row.bw2" :disabled="scope.row.ptsfid == '-1' || scope.row.ptsfid == ''" step="0.01" type="number" style="width:100%;padding:10px 0;" />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column v-if="table.isRW3" :key="14" label="第三班比例(%)" min-width="85px" align="center">
|
|
<el-table-column v-if="table.isRW3" :key="14" label="第三班比例(%)" min-width="85px" align="center">
|
|
@@ -146,7 +145,7 @@
|
|
<el-table-column v-if="table.isRW3 && table.isPtsfname" :key="16" label="第三班补料重量" min-width="100px" align="center">
|
|
<el-table-column v-if="table.isRW3 && table.isPtsfname" :key="16" label="第三班补料重量" min-width="100px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.bw3 }}</span>
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.bw3 }}</span>
|
|
- <el-input v-if="scope.row.Edit" v-model="scope.row.bw3" :disabled="scope.row.ptsfid == '-1' || scope.row.ptsfid == ''" step="0.01" type="number" style="width:100%;padding:10px 0;" @blur="blurBw(scope.row)" @focus="focusBw(scope.row)" />
|
|
|
|
|
|
+ <el-input v-if="scope.row.Edit" v-model="scope.row.bw3" :disabled="scope.row.ptsfid == '-1' || scope.row.ptsfid == ''" step="0.01" type="number" style="width:100%;padding:10px 0;" />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column v-if="table.isRW4" :key="17" label="第四班比例(%)" min-width="85px" align="center">
|
|
<el-table-column v-if="table.isRW4" :key="17" label="第四班比例(%)" min-width="85px" align="center">
|
|
@@ -164,7 +163,7 @@
|
|
<el-table-column v-if="table.isRW4 && table.isPtsfname" :key="19" label="第四班补料重量" min-width="90px" align="center">
|
|
<el-table-column v-if="table.isRW4 && table.isPtsfname" :key="19" label="第四班补料重量" min-width="90px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.bw4 }}</span>
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.bw4 }}</span>
|
|
- <el-input v-if="scope.row.Edit" v-model="scope.row.bw4" :disabled="scope.row.ptsfid == '-1' || scope.row.ptsfid == ''" step="0.01" type="number" style="width:100%;padding:10px 0;" @blur="blurBw(scope.row)" @focus="focusBw(scope.row)" />
|
|
|
|
|
|
+ <el-input v-if="scope.row.Edit" v-model="scope.row.bw4" :disabled="scope.row.ptsfid == '-1' || scope.row.ptsfid == ''" step="0.01" type="number" style="width:100%;padding:10px 0;" />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column v-if="table.isRW5" :key="20" label="第五班比例(%)" min-width="85px" align="center">
|
|
<el-table-column v-if="table.isRW5" :key="20" label="第五班比例(%)" min-width="85px" align="center">
|
|
@@ -182,7 +181,7 @@
|
|
<el-table-column v-if="table.isRW5 && table.isPtsfname" :key="22" label="第五班补料重量" min-width="90px" align="center">
|
|
<el-table-column v-if="table.isRW5 && table.isPtsfname" :key="22" label="第五班补料重量" min-width="90px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.bw5 }}</span>
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.bw5 }}</span>
|
|
- <el-input v-if="scope.row.Edit" v-model="scope.row.bw5" :disabled="scope.row.ptsfid == '-1' || scope.row.ptsfid == ''" step="0.01" type="number" style="width:100%;padding:10px 0;" @blur="blurBw(scope.row)" @focus="focusBw(scope.row)" />
|
|
|
|
|
|
+ <el-input v-if="scope.row.Edit" v-model="scope.row.bw5" :disabled="scope.row.ptsfid == '-1' || scope.row.ptsfid == ''" step="0.01" type="number" style="width:100%;padding:10px 0;" />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column v-if="table.isRW6" :key="23" label="第六班比例(%)" min-width="85px" align="center">
|
|
<el-table-column v-if="table.isRW6" :key="23" label="第六班比例(%)" min-width="85px" align="center">
|
|
@@ -200,7 +199,7 @@
|
|
<el-table-column v-if="table.isRW6 && table.isPtsfname" :key="25" label="第六班补料重量" min-width="90px" align="center">
|
|
<el-table-column v-if="table.isRW6 && table.isPtsfname" :key="25" label="第六班补料重量" min-width="90px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.bw6 }}</span>
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.bw6 }}</span>
|
|
- <el-input v-if="scope.row.Edit" v-model="scope.row.bw6" :disabled="scope.row.ptsfid == '-1' || scope.row.ptsfid == ''" step="0.01" type="number" style="width:100%;padding:10px 0;" @blur="blurBw(scope.row)" @focus="focusBw(scope.row)" />
|
|
|
|
|
|
+ <el-input v-if="scope.row.Edit" v-model="scope.row.bw6" :disabled="scope.row.ptsfid == '-1' || scope.row.ptsfid == ''" step="0.01" type="number" style="width:100%;padding:10px 0;" />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column :key="26" label="饲喂总比例(%)" min-width="60px" align="center">
|
|
<el-table-column :key="26" label="饲喂总比例(%)" min-width="60px" align="center">
|
|
@@ -2238,9 +2237,6 @@ export default {
|
|
this.getList()
|
|
this.getList()
|
|
// this.$router.push('/formulationPlan/dhedFormula')
|
|
// this.$router.push('/formulationPlan/dhedFormula')
|
|
},
|
|
},
|
|
- cellClick(row, column, event) {
|
|
|
|
- console.log(column)
|
|
|
|
- },
|
|
|
|
handleSelect(val) {
|
|
handleSelect(val) {
|
|
console.log('勾选数据', val)
|
|
console.log('勾选数据', val)
|
|
this.selectList = val
|
|
this.selectList = val
|
|
@@ -3115,12 +3111,6 @@ export default {
|
|
this.$refs.mychild.getBalconicFormula()
|
|
this.$refs.mychild.getBalconicFormula()
|
|
this.$refs.mychild.restTemp()
|
|
this.$refs.mychild.restTemp()
|
|
},
|
|
},
|
|
- blurBw(row) {
|
|
|
|
- console.log(row)
|
|
|
|
- },
|
|
|
|
- focusBw(row) {
|
|
|
|
- console.log(row)
|
|
|
|
- },
|
|
|
|
handleSynchronous(){
|
|
handleSynchronous(){
|
|
const url = 'authdata/ud/feedp/sync'
|
|
const url = 'authdata/ud/feedp/sync'
|
|
const data = {}
|
|
const data = {}
|