|
@@ -16,7 +16,7 @@
|
|
<ws-input v-model="inspect.binNumber" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
<ws-input v-model="inspect.binNumber" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="业务编号" span="1" prop="number">
|
|
<ws-form-item label="业务编号" span="1" prop="number">
|
|
- <ws-input v-model="inspect.number" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
|
|
|
|
+ <ws-input v-model="inspect.weighingManagement.number" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="囤位号" span="1" prop="storageTagNo">
|
|
<ws-form-item label="囤位号" span="1" prop="storageTagNo">
|
|
<ws-input v-model="inspect.storageTagNo" placeholder="暂无" disabled size="small" />
|
|
<ws-input v-model="inspect.storageTagNo" placeholder="暂无" disabled size="small" />
|
|
@@ -25,26 +25,26 @@
|
|
<ws-input v-model="inspect.contractNo" placeholder="自动获取,不可编辑" disabled size="small" v-if="inspect.contractNo" />
|
|
<ws-input v-model="inspect.contractNo" placeholder="自动获取,不可编辑" disabled size="small" v-if="inspect.contractNo" />
|
|
<ws-input v-model="inspect.moveTaskNo" placeholder="自动获取,不可编辑" disabled size="small" v-else/>
|
|
<ws-input v-model="inspect.moveTaskNo" placeholder="自动获取,不可编辑" disabled size="small" v-else/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- <ws-form-item label="提示" span="1" prop="goodsName">
|
|
|
|
- <ws-input v-model="inspect.goodsName" placeholder="暂无" disabled size="small" />
|
|
|
|
|
|
+ <ws-form-item label="提示" span="1" prop="tips">
|
|
|
|
+ <ws-input v-model="inspect.weighingManagement.tips" placeholder="暂无" disabled size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="货名" span="1" prop="goodsName">
|
|
<ws-form-item label="货名" span="1" prop="goodsName">
|
|
<ws-input v-model="inspect.goodsName" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
<ws-input v-model="inspect.goodsName" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- <ws-form-item label="经办人" span="1" prop="agent">
|
|
|
|
- <ws-input v-model="inspect.agent" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
|
|
|
|
+ <ws-form-item label="经办人" span="1" prop="secretaryWeigher">
|
|
|
|
+ <ws-input v-model="inspect.weighingManagement.secretaryWeigher" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="出库类型" span="1" prop="inOutType">
|
|
<ws-form-item label="出库类型" span="1" prop="inOutType">
|
|
<ws-input v-model="inspect.weighingManagement.inOutType" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
<ws-input v-model="inspect.weighingManagement.inOutType" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- <ws-form-item label="出库日期" span="1" prop="inOutDate">
|
|
|
|
- <ws-input v-model="inspect.inOutDate" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
|
|
|
|
+ <ws-form-item label="出库日期" span="1" prop="updateDate">
|
|
|
|
+ <ws-input v-model="inspect.updateDate" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="运输方式" span="1" prop="outType">
|
|
<ws-form-item label="运输方式" span="1" prop="outType">
|
|
- <ws-input v-model="inspect.outType" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
|
|
|
|
+ <ws-input v-model="inspect.weighingManagement.outType" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="车队" span="1" prop="fleet">
|
|
<ws-form-item label="车队" span="1" prop="fleet">
|
|
- <ws-input v-model="inspect.fleet" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
|
|
|
|
+ <ws-input v-model="inspect.fleet" placeholder="非车辆车队" disabled size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="车牌号" span="1" prop="carNumber">
|
|
<ws-form-item label="车牌号" span="1" prop="carNumber">
|
|
<ws-input v-model="inspect.carNumber" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
<ws-input v-model="inspect.carNumber" placeholder="自动获取,不可编辑" disabled size="small" />
|
|
@@ -73,10 +73,10 @@
|
|
</el-select>
|
|
</el-select>
|
|
<div class="screen">
|
|
<div class="screen">
|
|
<div class="screen_left">
|
|
<div class="screen_left">
|
|
- <el-badge :value="inspectList.length" class="badge_item">
|
|
|
|
|
|
+ <el-badge :value="noinspectList.length" class="badge_item">
|
|
<div :class="inspectbtn == 1 ? 'inspect_css':'noinspect_css'" @click="inspectChange(1)">未质检</div>
|
|
<div :class="inspectbtn == 1 ? 'inspect_css':'noinspect_css'" @click="inspectChange(1)">未质检</div>
|
|
</el-badge>
|
|
</el-badge>
|
|
- <el-badge :value="noinspectList.length" class="badge_item">
|
|
|
|
|
|
+ <el-badge :value="inspectList.length" class="badge_item">
|
|
<div :class="inspectbtn == 2 ? 'inspect_css':'noinspect_css'" @click="inspectChange(2)">已质检</div>
|
|
<div :class="inspectbtn == 2 ? 'inspect_css':'noinspect_css'" @click="inspectChange(2)">已质检</div>
|
|
</el-badge>
|
|
</el-badge>
|
|
</div>
|
|
</div>
|
|
@@ -99,9 +99,10 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table> -->
|
|
</el-table> -->
|
|
- <el-table ref="singleTable" :data="inspectList" highlight-current-row @current-change="rowChange"
|
|
|
|
|
|
+ <el-table ref="singleTable" :data="switchList" highlight-current-row @current-change="rowChange"
|
|
style="width: 100%; overflow-y: scroll !important; height: calc(100vh - 54vh);margin-top:14px">
|
|
style="width: 100%; overflow-y: scroll !important; height: calc(100vh - 54vh);margin-top:14px">
|
|
<el-table-column property="number" label="业务编号">
|
|
<el-table-column property="number" label="业务编号">
|
|
|
|
+ <span slot-scope="scope">{{scope.row.weighingManagement?scope.row.weighingManagement.number:""}}</span>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column property="carNumber" label="车牌号">
|
|
<el-table-column property="carNumber" label="车牌号">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -151,12 +152,12 @@
|
|
</ws-info-table>
|
|
</ws-info-table>
|
|
</ws-form>
|
|
</ws-form>
|
|
<div class="but">
|
|
<div class="but">
|
|
- <el-button @click="print" type="primary">提交</el-button>
|
|
|
|
|
|
+ <!-- <el-button @click="print" type="primary">提交</el-button> -->
|
|
<el-button @click="print" type="primary">提交并打印</el-button>
|
|
<el-button @click="print" type="primary">提交并打印</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint" title="粮食质检单">
|
|
|
|
|
|
+ <el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint" title="粮食质检单" @close="closeDialog">
|
|
<!-- <inspectInfoPrint :printData="printData"></inspectInfoPrint> -->
|
|
<!-- <inspectInfoPrint :printData="printData"></inspectInfoPrint> -->
|
|
<outInspectPrint :printData="printData" ref="saveImg"></outInspectPrint>
|
|
<outInspectPrint :printData="printData" ref="saveImg"></outInspectPrint>
|
|
<div style="text-align:center">
|
|
<div style="text-align:center">
|
|
@@ -176,6 +177,8 @@
|
|
import {
|
|
import {
|
|
packList
|
|
packList
|
|
} from '@/model/contarct/index'
|
|
} from '@/model/contarct/index'
|
|
|
|
+ import html2canvas from 'html2canvas'
|
|
|
|
+ import axios from 'axios'
|
|
import outInspectPrint from './component/outInspectPrint.vue'
|
|
import outInspectPrint from './component/outInspectPrint.vue'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -195,6 +198,7 @@
|
|
inspectbtn: 1,
|
|
inspectbtn: 1,
|
|
inspectList: [],
|
|
inspectList: [],
|
|
noinspectList:[],
|
|
noinspectList:[],
|
|
|
|
+ switchList:[],
|
|
//分页
|
|
//分页
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
@@ -249,10 +253,14 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
printSmall(){
|
|
printSmall(){
|
|
- window.open('../../../static/outInspectionPrint.html?type=1&dataList=' + JSON.stringify(this.inspect))
|
|
|
|
|
|
+ this.inspect.type = 1
|
|
|
|
+ localStorage.setItem('out-Warehouse_print',JSON.stringify( this.inspect))
|
|
|
|
+ window.open('../../../static/outInspectionPrint.html')
|
|
},
|
|
},
|
|
printBig(){
|
|
printBig(){
|
|
- window.open('../../../static/outInspectionPrint.html?type=2&dataList=' + JSON.stringify(this.inspect))
|
|
|
|
|
|
+ this.inspect.type = 2
|
|
|
|
+ localStorage.setItem('out-Warehouse_print',JSON.stringify(this.inspect))
|
|
|
|
+ window.open('../../../static/outInspectionPrint.html')
|
|
},
|
|
},
|
|
warehouseNameChange() {
|
|
warehouseNameChange() {
|
|
this.getList()
|
|
this.getList()
|
|
@@ -266,6 +274,21 @@
|
|
},
|
|
},
|
|
inspectChange(num) {
|
|
inspectChange(num) {
|
|
this.inspectbtn = num
|
|
this.inspectbtn = num
|
|
|
|
+ if(num == 1){
|
|
|
|
+ this.switchList = this.noinspectList
|
|
|
|
+ }else if(num == 2){
|
|
|
|
+ this.switchList = this.inspectList
|
|
|
|
+ }
|
|
|
|
+ if(this.switchList.length > 0){
|
|
|
|
+ this.inspect = this.switchList[0]
|
|
|
|
+ if(!this.inspect.weighingManagement){
|
|
|
|
+ this.inspect.weighingManagement = {}
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.inspect = {}
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this.deptBudgetTotal = this.switchList.length
|
|
|
|
|
|
},
|
|
},
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
@@ -302,71 +325,97 @@
|
|
}
|
|
}
|
|
return year + '' + mouth + datetime
|
|
return year + '' + mouth + datetime
|
|
},
|
|
},
|
|
|
|
+ closeDialog() {
|
|
|
|
+ html2canvas(this.$refs.saveImg.$el).then((canvas) => {
|
|
|
|
+ let dataURL = canvas.toDataURL('image/png')
|
|
|
|
+ this.imgUrl = dataURL
|
|
|
|
+ if (this.imgUrl !== '') {
|
|
|
|
+ let b = this.dataURLtoFile(this.imgUrl, 'printImage')
|
|
|
|
+ let formdata = new FormData()
|
|
|
|
+ formdata.append('file', b)
|
|
|
|
+ axios({
|
|
|
|
+ method: 'post',
|
|
|
|
+ url: 'https://www.zthymaoyi.com/upload/admin',
|
|
|
|
+ data: formdata,
|
|
|
|
+ }).then((response) => {
|
|
|
|
+ //编辑接口
|
|
|
|
+ this.inspect.pictureAddress = response.data.url
|
|
|
|
+ addOut(this.inspect)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ console.log(response)
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.isShowPrint = false
|
|
|
|
+ },
|
|
print() {
|
|
print() {
|
|
this.inspect.warehouseName = this.warehouseName
|
|
this.inspect.warehouseName = this.warehouseName
|
|
- this.inspect.id = this.$route.query.id
|
|
|
|
|
|
+ // this.inspect.id = this.$route.query.id
|
|
this.inspect.qualityInspector = localStorage.getItem('ws-pf_staffName')
|
|
this.inspect.qualityInspector = localStorage.getItem('ws-pf_staffName')
|
|
this.inspect.compId = localStorage.getItem('ws-pf_compId')
|
|
this.inspect.compId = localStorage.getItem('ws-pf_compId')
|
|
- if (!this.inspect.grade) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '等级不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.inspect.impurity) {
|
|
|
|
|
|
+ // if (!this.inspect.grade) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '等级不能为空',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // if (!this.inspect.impurity) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '杂质不能为空',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ if (this.inspect.impurity && (this.inspect.impurity < 0 || this.inspect.impurity > 40)) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '杂质不能为空',
|
|
|
|
|
|
+ message: '杂质输入错误',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (String(this.inspect.impurity).indexOf('.') != -1 && String(this.inspect.impurity).length - (String(this
|
|
|
|
|
|
+ if (this.inspect.impurity && String(this.inspect.impurity).indexOf('.') != -1 && String(this.inspect.impurity).length - (String(this
|
|
.inspect.impurity).indexOf('.') + 1) > 1) {
|
|
.inspect.impurity).indexOf('.') + 1) > 1) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '杂质输入错误',
|
|
|
|
|
|
+ message: '杂质应保留一位小数',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- if (this.inspect.impurity < 0 || this.inspect.impurity > 40) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '杂质输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.inspect.waterContent) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '水分不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.inspect.waterContent < 0 || this.inspect.waterContent > 40) {
|
|
|
|
|
|
+
|
|
|
|
+ // if (!this.inspect.waterContent) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '水分不能为空',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ if (this.inspect.waterContent && (this.inspect.waterContent < 0 || this.inspect.waterContent > 40)) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '水分输入错误',
|
|
message: '水分输入错误',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (String(this.inspect.waterContent).indexOf('.') != -1 && String(this.inspect.waterContent).length - (String(
|
|
|
|
|
|
+ if (this.inspect.waterContent && String(this.inspect.waterContent).indexOf('.') != -1 && String(this.inspect.waterContent).length - (String(
|
|
this.inspect.waterContent).indexOf('.') + 1) > 1) {
|
|
this.inspect.waterContent).indexOf('.') + 1) > 1) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '水分输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.inspect.mildewGrain) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '霉变粒不能为空',
|
|
|
|
|
|
+ message: '水分应保留一位小数',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.inspect.mildewGrain < 0 || this.inspect.mildewGrain > 40) {
|
|
|
|
|
|
+ // if (!this.inspect.mildewGrain) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '霉变粒不能为空',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ if (this.inspect.mildewGrain && this.inspect.mildewGrain < 0 || this.inspect.mildewGrain > 40) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '霉变粒输入错误',
|
|
message: '霉变粒输入错误',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
@@ -376,26 +425,26 @@
|
|
if (String(this.inspect.mildewGrain).indexOf('.') != -1 && String(this.inspect.mildewGrain).length - (String(
|
|
if (String(this.inspect.mildewGrain).indexOf('.') != -1 && String(this.inspect.mildewGrain).length - (String(
|
|
this.inspect.mildewGrain).indexOf('.') + 1) > 1) {
|
|
this.inspect.mildewGrain).indexOf('.') + 1) > 1) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '霉变粒输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.inspect.bulkDensity) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '容重不能为空',
|
|
|
|
|
|
+ message: '霉变粒应保留一位小数',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.inspect.bulkDensity < 500 || this.inspect.bulkDensity > 1000) {
|
|
|
|
|
|
+ // if (!this.inspect.bulkDensity) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '容重不能为空',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ if (this.inspect.bulkDensity && this.inspect.bulkDensity < 500 || this.inspect.bulkDensity > 1000) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '容重输入错误',
|
|
message: '容重输入错误',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (String(this.inspect.bulkDensity).indexOf('.') != -1 && String(this.inspect.bulkDensity).length - (String(
|
|
|
|
|
|
+ if (this.inspect.bulkDensity && String(this.inspect.bulkDensity).indexOf('.') != -1 && String(this.inspect.bulkDensity).length - (String(
|
|
this.inspect.bulkDensity).indexOf('.') + 1) > 0) {
|
|
this.inspect.bulkDensity).indexOf('.') + 1) > 0) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '容重需输入整数',
|
|
message: '容重需输入整数',
|
|
@@ -403,14 +452,14 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.inspect.jiaorenli) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '热损伤不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.inspect.jiaorenli < 0 || this.inspect.jiaorenli > 40) {
|
|
|
|
|
|
+ // if (!this.inspect.jiaorenli) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '热损伤不能为空',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ if (this.inspect.jiaorenli && this.inspect.jiaorenli < 0 || this.inspect.jiaorenli > 40) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '热损伤输入错误',
|
|
message: '热损伤输入错误',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
@@ -420,29 +469,29 @@
|
|
if (String(this.inspect.jiaorenli).indexOf('.') != -1 && String(this.inspect.jiaorenli).length - (String(this
|
|
if (String(this.inspect.jiaorenli).indexOf('.') != -1 && String(this.inspect.jiaorenli).length - (String(this
|
|
.inspect.jiaorenli).indexOf('.') + 1) > 1) {
|
|
.inspect.jiaorenli).indexOf('.') + 1) > 1) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '热损伤输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.inspect.imperfectGrain) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '不完善粒不能为空',
|
|
|
|
|
|
+ message: '热损伤应保留一位小数',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.inspect.imperfectGrain < 0 || this.inspect.imperfectGrain > 40) {
|
|
|
|
|
|
+ // if (!this.inspect.imperfectGrain) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '不完善粒不能为空',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ if (this.inspect.imperfectGrain && this.inspect.imperfectGrain < 0 || this.inspect.imperfectGrain > 40) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '不完善粒输入错误',
|
|
message: '不完善粒输入错误',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (String(this.inspect.imperfectGrain).indexOf('.') != -1 && String(this.inspect.imperfectGrain).length - (
|
|
|
|
|
|
+ if ( this.inspect.imperfectGrain && String(this.inspect.imperfectGrain).indexOf('.') != -1 && String(this.inspect.imperfectGrain).length - (
|
|
String(this.inspect.imperfectGrain).indexOf('.') + 1) > 1) {
|
|
String(this.inspect.imperfectGrain).indexOf('.') + 1) > 1) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '不完善粒输入错误',
|
|
|
|
|
|
+ message: '不完善粒应保留一位小数',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -478,32 +527,49 @@
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
warehouseName: this.warehouseName,
|
|
warehouseName: this.warehouseName,
|
|
managementType: this.managementType,
|
|
managementType: this.managementType,
|
|
- // statusType:1
|
|
|
|
|
|
+ qualityType:1
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ debugger
|
|
|
|
+ this.noinspectList = response.records
|
|
|
|
+ if(this.inspectbtn == 1 && this.noinspectList.length > 0){
|
|
|
|
+ this.switchList = this.noinspectList
|
|
|
|
+ this.inspect = this.noinspectList[0]
|
|
|
|
+ if(!this.inspect.weighingManagement){
|
|
|
|
+ this.inspect.weighingManagement = {}
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.switchList = []
|
|
|
|
+ this.inspect = {}
|
|
|
|
+ this.inspect.weighingManagement = {}
|
|
|
|
+ }
|
|
|
|
+ this.deptBudgetTotal = this.switchList.length
|
|
|
|
+ })
|
|
|
|
+ getinspectList({
|
|
|
|
+ compId: localStorage.getItem('ws-pf_compId'),
|
|
|
|
+ currentPage: this.currentPage,
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ warehouseName: this.warehouseName,
|
|
|
|
+ managementType: this.managementType,
|
|
|
|
+ qualityType:2
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.inspectList = response.records
|
|
this.inspectList = response.records
|
|
- if(this.inspectbtn == 1 && this.inspectList.length > 0){
|
|
|
|
|
|
+ if(this.inspectbtn == 2 && this.inspectList.length > 0){
|
|
|
|
+ this.switchList = this.inspectList
|
|
this.inspect = this.inspectList[0]
|
|
this.inspect = this.inspectList[0]
|
|
|
|
+ if(!this.inspect.weighingManagement){
|
|
|
|
+ this.inspect.weighingManagement = {}
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.switchList = []
|
|
|
|
+ this.inspect = {}
|
|
|
|
+ this.inspect.weighingManagement = {}
|
|
}
|
|
}
|
|
- this.deptBudgetTotal = response.total
|
|
|
|
|
|
+ this.deptBudgetTotal = this.switchList.length
|
|
})
|
|
})
|
|
- // getinspectList({
|
|
|
|
- // compId: localStorage.getItem('ws-pf_compId'),
|
|
|
|
- // currentPage: this.currentPage,
|
|
|
|
- // pageSize: this.pageSize,
|
|
|
|
- // warehouseName: this.warehouseName,
|
|
|
|
- // managementType: this.managementType,
|
|
|
|
- // // statusType:2
|
|
|
|
- // })
|
|
|
|
- // .toPromise()
|
|
|
|
- // .then((response) => {
|
|
|
|
- // this.noinspectList = response.records
|
|
|
|
- // if(this.inspect == 2 && this.inspectList.length > 0){
|
|
|
|
- // this.inspect = this.noinspectList[0]
|
|
|
|
- // }
|
|
|
|
- // this.deptBudgetTotal = response.total
|
|
|
|
- // })
|
|
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|
|
@@ -536,12 +602,6 @@
|
|
/deep/.ws-info-table .el-form-item .el-form-item__content {
|
|
/deep/.ws-info-table .el-form-item .el-form-item__content {
|
|
border: none;
|
|
border: none;
|
|
}
|
|
}
|
|
-
|
|
|
|
- // .title {
|
|
|
|
- // font-size: 16px;
|
|
|
|
- // font-weight: 600;
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
.title::before {
|
|
.title::before {
|
|
content: '';
|
|
content: '';
|
|
display: inline-block;
|
|
display: inline-block;
|
|
@@ -610,7 +670,7 @@
|
|
width: 50%;
|
|
width: 50%;
|
|
}
|
|
}
|
|
.screen_left{
|
|
.screen_left{
|
|
- min-width: 175px;
|
|
|
|
|
|
+ min-width: 182px;
|
|
}
|
|
}
|
|
|
|
|
|
.badge_item {
|
|
.badge_item {
|
|
@@ -625,6 +685,10 @@
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
text-align: center;
|
|
text-align: center;
|
|
line-height: 32px;
|
|
line-height: 32px;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .record:hover,.inspect_css:hover,.noinspect_css:hover{
|
|
|
|
+ cursor:pointer;
|
|
}
|
|
}
|
|
|
|
|
|
.inspect_css {
|
|
.inspect_css {
|