|
|
@@ -59,17 +59,20 @@
|
|
|
<span class="label-required after" slot="label">投料数量(PCS)</span>
|
|
|
<el-form-item
|
|
|
label=""
|
|
|
+ required
|
|
|
label-width="0"
|
|
|
class="w100"
|
|
|
prop="categoryMsg.number"
|
|
|
>
|
|
|
- <el-input-number
|
|
|
+ <el-input
|
|
|
class="w100"
|
|
|
- :controls="false"
|
|
|
v-model="categoryMsg.number"
|
|
|
- :min="0"
|
|
|
+ @input="
|
|
|
+ (value) =>
|
|
|
+ (categoryMsg.number = value ? parseInt(value) : value)
|
|
|
+ "
|
|
|
clearable
|
|
|
- ></el-input-number>
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="">
|
|
|
@@ -84,9 +87,10 @@
|
|
|
class="w100"
|
|
|
:value="
|
|
|
(categoryMsg.totalWeight =
|
|
|
- categoryMsg.number * (infoData.productUnitWeight || 1))
|
|
|
+ categoryMsg.number === ''
|
|
|
+ ? ''
|
|
|
+ : categoryMsg.number * (infoData.productUnitWeight || 1))
|
|
|
"
|
|
|
- :min="0"
|
|
|
clearable
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -119,16 +123,21 @@
|
|
|
<span class="label-required after" slot="label">合格品数量(PCS)</span>
|
|
|
<el-form-item
|
|
|
label=""
|
|
|
+ required
|
|
|
label-width="0"
|
|
|
class="w100"
|
|
|
prop="productInfo.standardNum"
|
|
|
- ><el-input-number
|
|
|
+ ><el-input
|
|
|
class="w100"
|
|
|
- :controls="false"
|
|
|
v-model="workReport.productInfo.standardNum"
|
|
|
- :min="0"
|
|
|
+ @input="
|
|
|
+ (value) =>
|
|
|
+ (workReport.productInfo.standardNum = value
|
|
|
+ ? parseInt(value)
|
|
|
+ : value)
|
|
|
+ "
|
|
|
clearable
|
|
|
- ></el-input-number> </el-form-item
|
|
|
+ ></el-input> </el-form-item
|
|
|
></el-descriptions-item>
|
|
|
<el-descriptions-item label=""
|
|
|
><span class="label-required after" slot="label">合格品重量(KG)</span>
|
|
|
@@ -137,50 +146,58 @@
|
|
|
label-width="0"
|
|
|
class="w100"
|
|
|
prop="productInfo.standardWeight"
|
|
|
- ><el-input-number
|
|
|
+ ><el-input
|
|
|
readonly
|
|
|
class="w100"
|
|
|
- :controls="false"
|
|
|
:value="
|
|
|
(workReport.productInfo.standardWeight =
|
|
|
- workReport.productInfo.standardNum *
|
|
|
- (infoData.productUnitWeight || 1))
|
|
|
+ workReport.productInfo.standardNum === ''
|
|
|
+ ? ''
|
|
|
+ : workReport.productInfo.standardNum *
|
|
|
+ (infoData.productUnitWeight || 1))
|
|
|
"
|
|
|
- :min="0"
|
|
|
clearable
|
|
|
- ></el-input-number> </el-form-item
|
|
|
+ ></el-input> </el-form-item
|
|
|
></el-descriptions-item>
|
|
|
<el-descriptions-item label="不合格品数量(PCS)">
|
|
|
- <el-input-number
|
|
|
+ <el-input
|
|
|
class="w100"
|
|
|
- :controls="false"
|
|
|
v-model="workReport.productInfo.noStandardNum"
|
|
|
- :min="0"
|
|
|
+ @input="
|
|
|
+ (value) =>
|
|
|
+ (workReport.productInfo.noStandardNum = value
|
|
|
+ ? parseInt(value)
|
|
|
+ : value)
|
|
|
+ "
|
|
|
clearable
|
|
|
- ></el-input-number>
|
|
|
+ ></el-input>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="不合格品重量(KG)"
|
|
|
- ><el-input-number
|
|
|
+ ><el-input
|
|
|
class="w100"
|
|
|
readonly
|
|
|
- :controls="false"
|
|
|
:value="
|
|
|
(workReport.productInfo.noStandardWeight =
|
|
|
- workReport.productInfo.noStandardNum *
|
|
|
- (infoData.productUnitWeight || 1))
|
|
|
+ workReport.productInfo.noStandardNum === ''
|
|
|
+ ? ''
|
|
|
+ : workReport.productInfo.noStandardNum *
|
|
|
+ (infoData.productUnitWeight || 1))
|
|
|
"
|
|
|
- :min="0"
|
|
|
clearable
|
|
|
- ></el-input-number
|
|
|
+ ></el-input
|
|
|
></el-descriptions-item>
|
|
|
<el-descriptions-item label="副产品重量(KG)"
|
|
|
- ><el-input-number
|
|
|
+ ><el-input
|
|
|
class="w100"
|
|
|
- :controls="false"
|
|
|
v-model="workReport.productInfo.byProductWeight"
|
|
|
- :min="0"
|
|
|
+ @input="
|
|
|
+ (value) =>
|
|
|
+ (workReport.productInfo.byProductWeight = value
|
|
|
+ ? parseInt(value)
|
|
|
+ : value)
|
|
|
+ "
|
|
|
clearable
|
|
|
- ></el-input-number
|
|
|
+ ></el-input
|
|
|
></el-descriptions-item>
|
|
|
<el-descriptions-item label="备注">
|
|
|
<el-input v-model="workReport.remark"></el-input
|