|
@@ -26,12 +26,12 @@
|
|
<ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
|
|
<ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
|
|
<div class="basicInformation">
|
|
<div class="basicInformation">
|
|
<h2>
|
|
<h2>
|
|
- {{ this.deptBudgetList1.warehouseName}}库
|
|
|
|
- <span class="position">
|
|
|
|
- {{this.deptBudgetList1.binNumber }}仓位
|
|
|
|
|
|
+ {{ this.deptBudgetList1.warehouseName }}库
|
|
|
|
+ <span class="position">
|
|
|
|
+ {{ this.deptBudgetList1.binNumber }}仓位
|
|
</span>
|
|
</span>
|
|
</h2>
|
|
</h2>
|
|
- <div class="small-title">基本信息</div>
|
|
|
|
|
|
+ <div class="small-title">基本信息</div>
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
<!-- 货名 -->
|
|
<!-- 货名 -->
|
|
<ws-form-item label="货名" span="1">
|
|
<ws-form-item label="货名" span="1">
|
|
@@ -113,7 +113,12 @@
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--出库日期-->
|
|
<!--出库日期-->
|
|
- <ws-form-item label="出库日期" span="1" prop="inOutDate" class="deliverydate">
|
|
|
|
|
|
+ <ws-form-item
|
|
|
|
+ label="出库日期"
|
|
|
|
+ span="1"
|
|
|
|
+ prop="inOutDate"
|
|
|
|
+ class="deliverydate"
|
|
|
|
+ >
|
|
<ws-date-picker
|
|
<ws-date-picker
|
|
v-model="deptBudgetList.inOutDate"
|
|
v-model="deptBudgetList.inOutDate"
|
|
type="date"
|
|
type="date"
|
|
@@ -159,7 +164,7 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
</ws-info-table>
|
|
</ws-info-table>
|
|
</div>
|
|
</div>
|
|
- <div class="small-title">上传仓库照片</div>
|
|
|
|
|
|
+ <div class="small-title">上传仓库照片</div>
|
|
<ws-upload
|
|
<ws-upload
|
|
ref="upload"
|
|
ref="upload"
|
|
table-name="maintain_work_order"
|
|
table-name="maintain_work_order"
|
|
@@ -172,10 +177,10 @@
|
|
@onChange="onChange"
|
|
@onChange="onChange"
|
|
accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
|
|
accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
|
|
/>
|
|
/>
|
|
- <div class="small-title">化验数据(选填)</div>
|
|
|
|
|
|
+ <div class="small-title">化验数据(选填)</div>
|
|
<div class="inspector">
|
|
<div class="inspector">
|
|
- <!--自检员-->
|
|
|
|
- <ws-form-item label="质检员" span="1" prop="qualityInspector" >
|
|
|
|
|
|
+ <!--自检员-->
|
|
|
|
+ <ws-form-item label="质检员" span="1" prop="qualityInspector">
|
|
<ws-input
|
|
<ws-input
|
|
v-model="deptBudgetList.warehouseInOutDetail.qualityInspector"
|
|
v-model="deptBudgetList.warehouseInOutDetail.qualityInspector"
|
|
placeholder="请输入质检员姓名"
|
|
placeholder="请输入质检员姓名"
|
|
@@ -183,65 +188,64 @@
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- </div>
|
|
|
|
- <div class="neifor">
|
|
|
|
- <ws-info-table>
|
|
|
|
- <!--水分(%)<=-->
|
|
|
|
- <ws-form-item label="水分(%)<=" span="1" prop="waterContent">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.waterContent"
|
|
|
|
- placeholder="请输入水分占比"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--杂质(%)<=-->
|
|
|
|
- <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.impurity"
|
|
|
|
- placeholder="请输入杂质占比"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--容重(克/升)>=-->
|
|
|
|
- <ws-form-item label="容重(克/升)>=" span="1" prop="bulkDensity">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.bulkDensity"
|
|
|
|
- placeholder="请输入容重"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--霉变粒(%)<=-->
|
|
|
|
- <ws-form-item label="霉变粒(%)<=" span="1" prop="mildewGrain">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.mildewGrain"
|
|
|
|
- placeholder="请输入霉变粒占比"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--热损伤(%)<=-->
|
|
|
|
- <ws-form-item label="热损伤(%)<=" span="1" prop="jiaorenli">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.jiaorenli"
|
|
|
|
- placeholder="请输入热损伤占比"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--不完整粒(%)<=-->
|
|
|
|
- <ws-form-item label="不完整粒(%)<=" span="1" prop="imperfectGrain">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.imperfectGrain"
|
|
|
|
- placeholder="请输入不完整粒占比"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
-
|
|
|
|
- </ws-info-table>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ <div class="neifor">
|
|
|
|
+ <ws-info-table>
|
|
|
|
+ <!--水分(%)<=-->
|
|
|
|
+ <ws-form-item label="水分(%)<=" span="1" prop="waterContent">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.warehouseInOutDetail.waterContent"
|
|
|
|
+ placeholder="请输入水分占比"
|
|
|
|
+ maxlength="120"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--杂质(%)<=-->
|
|
|
|
+ <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.warehouseInOutDetail.impurity"
|
|
|
|
+ placeholder="请输入杂质占比"
|
|
|
|
+ maxlength="120"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--容重(克/升)>=-->
|
|
|
|
+ <ws-form-item label="容重(克/升)>=" span="1" prop="bulkDensity">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.warehouseInOutDetail.bulkDensity"
|
|
|
|
+ placeholder="请输入容重"
|
|
|
|
+ maxlength="120"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--霉变粒(%)<=-->
|
|
|
|
+ <ws-form-item label="霉变粒(%)<=" span="1" prop="mildewGrain">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.warehouseInOutDetail.mildewGrain"
|
|
|
|
+ placeholder="请输入霉变粒占比"
|
|
|
|
+ maxlength="120"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--热损伤(%)<=-->
|
|
|
|
+ <ws-form-item label="热损伤(%)<=" span="1" prop="jiaorenli">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.warehouseInOutDetail.jiaorenli"
|
|
|
|
+ placeholder="请输入热损伤占比"
|
|
|
|
+ maxlength="120"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--不完整粒(%)<=-->
|
|
|
|
+ <ws-form-item label="不完整粒(%)<=" span="1" prop="imperfectGrain">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.warehouseInOutDetail.imperfectGrain"
|
|
|
|
+ placeholder="请输入不完整粒占比"
|
|
|
|
+ maxlength="120"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ </ws-info-table>
|
|
</div>
|
|
</div>
|
|
<div style="text-align: right; padding: 10px">
|
|
<div style="text-align: right; padding: 10px">
|
|
<el-button
|
|
<el-button
|
|
@@ -311,7 +315,7 @@ export default {
|
|
appendixIdsAdd: '',
|
|
appendixIdsAdd: '',
|
|
uploadSuccess: {},
|
|
uploadSuccess: {},
|
|
onChange: {},
|
|
onChange: {},
|
|
- deptBudgetList1:[],
|
|
|
|
|
|
+ deptBudgetList1: [],
|
|
gradeList: [],
|
|
gradeList: [],
|
|
rules: {
|
|
rules: {
|
|
netWeight: [
|
|
netWeight: [
|
|
@@ -390,7 +394,9 @@ export default {
|
|
},
|
|
},
|
|
//提交按钮
|
|
//提交按钮
|
|
submit() {
|
|
submit() {
|
|
- if (this.deptBudgetList.warehouseInOutDetail.qualityInspector.length<2 || deptBudgetList.warehouseInOutDetail.qualityInspector > 10
|
|
|
|
|
|
+ if (
|
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.qualityInspector.length < 2 ||
|
|
|
|
+ deptBudgetList.warehouseInOutDetail.qualityInspector > 10
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '质检员姓名长度错误!',
|
|
message: '质检员姓名长度错误!',
|
|
@@ -398,7 +404,9 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.deptBudgetList.warehouseInOutDetail.qualityInspector.length<2 || deptBudgetList.warehouseInOutDetail.qualityInspector > 10
|
|
|
|
|
|
+ if (
|
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.qualityInspector.length < 2 ||
|
|
|
|
+ deptBudgetList.warehouseInOutDetail.qualityInspector > 10
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '质检员姓名长度错误!',
|
|
message: '质检员姓名长度错误!',
|
|
@@ -407,7 +415,6 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
@@ -657,36 +664,37 @@ export default {
|
|
}
|
|
}
|
|
.center {
|
|
.center {
|
|
margin-top: -60px;
|
|
margin-top: -60px;
|
|
- width: 80%;
|
|
|
|
|
|
+ width: 80%;
|
|
}
|
|
}
|
|
//仓位
|
|
//仓位
|
|
-.position{
|
|
|
|
- width: 52px;
|
|
|
|
-height: 20px;
|
|
|
|
-background: #AFB5CB;
|
|
|
|
-border-radius: 2px;
|
|
|
|
-font-size: 12px;
|
|
|
|
-font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
-color: #FFFFFF;
|
|
|
|
-line-height: 20px;
|
|
|
|
|
|
+.position {
|
|
|
|
+ width: 52px;
|
|
|
|
+ height: 20px;
|
|
|
|
+ background: #afb5cb;
|
|
|
|
+ border-radius: 2px;
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
+ color: #ffffff;
|
|
|
|
+ line-height: 20px;
|
|
}
|
|
}
|
|
//表格文字
|
|
//表格文字
|
|
-/deep/.ws-info-table .el-form-item .el-form-item__label{
|
|
|
|
|
|
+/deep/.ws-info-table .el-form-item .el-form-item__label {
|
|
text-align: left;
|
|
text-align: left;
|
|
-font-size: 14px;
|
|
|
|
-font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
-font-weight: 400;
|
|
|
|
-color: #8890B1;
|
|
|
|
-line-height: 16px;
|
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
+ font-weight: 400;
|
|
|
|
+ color: #8890b1;
|
|
|
|
+ line-height: 16px;
|
|
}
|
|
}
|
|
//质检员
|
|
//质检员
|
|
-.inspector .el-form-item__content{
|
|
|
|
|
|
+.inspector .el-form-item__content {
|
|
text-align: left;
|
|
text-align: left;
|
|
margin-left: 0px;
|
|
margin-left: 0px;
|
|
}
|
|
}
|
|
.small-title {
|
|
.small-title {
|
|
position: relative;
|
|
position: relative;
|
|
padding: 10px;
|
|
padding: 10px;
|
|
|
|
+ font-weight: 600;
|
|
}
|
|
}
|
|
.small-title::before {
|
|
.small-title::before {
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -699,22 +707,22 @@ line-height: 16px;
|
|
top: 13px;
|
|
top: 13px;
|
|
}
|
|
}
|
|
//下面列表
|
|
//下面列表
|
|
-.neifor{
|
|
|
|
|
|
+.neifor {
|
|
width: 80%;
|
|
width: 80%;
|
|
- background-color: #F6F7FC;
|
|
|
|
|
|
+ background-color: #f6f7fc;
|
|
}
|
|
}
|
|
-/deep/.neifor .ws-info-table .el-form-item .el-form-item__label{
|
|
|
|
|
|
+/deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
|
|
width: 35%;
|
|
width: 35%;
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
-/deep/.neifor .ws-info-table .el-form-item .el-form-item__content{
|
|
|
|
|
|
+/deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
|
|
width: 60%;
|
|
width: 60%;
|
|
- background-color: #F6F7FC;
|
|
|
|
|
|
+ background-color: #f6f7fc;
|
|
}
|
|
}
|
|
-/deep/.neifor .el-input--small .el-input__inner{
|
|
|
|
|
|
+/deep/.neifor .el-input--small .el-input__inner {
|
|
width: 120%;
|
|
width: 120%;
|
|
}
|
|
}
|
|
-.el-input__inner{
|
|
|
|
|
|
+.el-input__inner {
|
|
width: 150px;
|
|
width: 150px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|