|
@@ -173,17 +173,6 @@
|
|
|
width="50px"
|
|
|
:show-overflow-tooltip="true"
|
|
|
></el-table-column>
|
|
|
- <el-table-column
|
|
|
- fixed="left"
|
|
|
- prop="unit"
|
|
|
- label="计量单位"
|
|
|
- width="160px"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ nameObj.unitid.obj[scope.row.unit] ? nameObj.unitid.obj[scope.row.unit] : scope.row.unit }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="yearmonth"
|
|
|
label="月份"
|
|
@@ -203,20 +192,20 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="weight"
|
|
|
- label="年度计划量"
|
|
|
+ prop="productid"
|
|
|
+ label="产品名称"
|
|
|
width="160px"
|
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item
|
|
|
v-if="!isCheck && scope.row.isSelection && scope.row.state !== '2'"
|
|
|
- :prop="scope.row.seq + '.weight'"
|
|
|
- :rules="tableFormRules.weight"
|
|
|
+ :prop="scope.row.seq + '.productid'"
|
|
|
+ :rules="tableFormRules.productid"
|
|
|
>
|
|
|
<el-input clearable
|
|
|
style="width: 100%;"
|
|
|
- v-model="tableFormDataObj[scope.row.seq].weight"
|
|
|
+ v-model="tableFormDataObj[scope.row.seq].productid"
|
|
|
refcous="true"
|
|
|
@keydown.native="keyDown" :id="scope.$index + scope.column.id"
|
|
|
@change="chnageSecondVal(scope.row.seq, tableFormDataObj[scope.row.seq].secondVal, scope.$index)"
|
|
@@ -225,24 +214,35 @@
|
|
|
<p class="error" :title="scope.error">{{ scope.error }}</p>
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
- <span v-else>{{scope.row.weight}}</span>
|
|
|
+ <span v-else>{{scope.row.productid}}</span>
|
|
|
</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ fixed="left"
|
|
|
+ prop="unit"
|
|
|
+ label="计量单位"
|
|
|
+ width="100px"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ nameObj.unitid.obj[scope.row.unit] ? nameObj.unitid.obj[scope.row.unit] : scope.row.unit }}</span>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="productid"
|
|
|
- label="产品名称"
|
|
|
+ prop="weight"
|
|
|
+ label="年度计划量"
|
|
|
width="160px"
|
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item
|
|
|
v-if="!isCheck && scope.row.isSelection && scope.row.state !== '2'"
|
|
|
- :prop="scope.row.seq + '.productid'"
|
|
|
- :rules="tableFormRules.productid"
|
|
|
+ :prop="scope.row.seq + '.weight'"
|
|
|
+ :rules="tableFormRules.weight"
|
|
|
>
|
|
|
<el-input clearable
|
|
|
style="width: 100%;"
|
|
|
- v-model="tableFormDataObj[scope.row.seq].productid"
|
|
|
+ v-model="tableFormDataObj[scope.row.seq].weight"
|
|
|
refcous="true"
|
|
|
@keydown.native="keyDown" :id="scope.$index + scope.column.id"
|
|
|
@change="chnageSecondVal(scope.row.seq, tableFormDataObj[scope.row.seq].secondVal, scope.$index)"
|
|
@@ -251,13 +251,13 @@
|
|
|
<p class="error" :title="scope.error">{{ scope.error }}</p>
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
- <span v-else>{{scope.row.productid}}</span>
|
|
|
+ <span v-else>{{scope.row.weight}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="cjsj"
|
|
|
label="创建时间"
|
|
|
- width="160px"
|
|
|
+ width="220px"
|
|
|
:show-overflow-tooltip="true"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
@@ -269,7 +269,7 @@
|
|
|
<el-table-column
|
|
|
prop="xgsj"
|
|
|
label="修改时间"
|
|
|
- width="160px"
|
|
|
+ width="220px"
|
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
|
</el-table-column>
|
|
@@ -282,7 +282,7 @@
|
|
|
<el-table-column
|
|
|
prop="memo"
|
|
|
label="备注"
|
|
|
- width="160px"
|
|
|
+ width="190px"
|
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
|
<template slot-scope="scope">
|