|
@@ -62,8 +62,7 @@
|
|
|
size="small" />
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="货名" span="1" prop="goodsName">
|
|
|
- <ws-select v-model="inspect.goodsName" placeholder="" class="typeselect" :disabled="disabledName"
|
|
|
- @change="waterContentChange">
|
|
|
+ <ws-select v-model="inspect.goodsName" placeholder="" class="typeselect" :disabled="disabledName" @change="waterContentChange">
|
|
|
<ws-option v-for="item in goodNameList" :key="item.goodsName" :label="item.goodsName"
|
|
|
:value="item.goodsName" />
|
|
|
</ws-select>
|
|
@@ -148,11 +147,12 @@
|
|
|
</ws-form-item>
|
|
|
</ws-info-table>
|
|
|
<div class="but">
|
|
|
- <el-button @click="cancel" v-if="this.types != 2" type="primary">取消</el-button>
|
|
|
- <el-button @click="print" v-if="this.types ==3 || this.types ==4 ||this.types ==1" type="primary">保存
|
|
|
+ <el-button @click="cancel" v-if="types != 2" type="primary">取消</el-button>
|
|
|
+ <el-button @click="checkOk" v-if="types ==3 || types == 4" type="primary">确认初检信息</el-button>
|
|
|
+ <el-button @click="print" v-if="types ==3 || types ==1" type="primary">保存
|
|
|
</el-button>
|
|
|
- <el-button @click="print" v-if="this.types ==5 " type="primary">确认并打印</el-button>
|
|
|
- <el-button @click="cancel" v-if="this.types == 2" type="primary">关闭</el-button>
|
|
|
+ <el-button @click="print" v-if="types == 5 || types==4" type="primary">确认并打印</el-button>
|
|
|
+ <el-button @click="cancel" v-if="types == 2" type="primary">关闭</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</ws-form>
|
|
@@ -180,7 +180,8 @@
|
|
|
getamount,
|
|
|
getCount,
|
|
|
getDryGrainPrice,
|
|
|
- getshippinginfo
|
|
|
+ getshippinginfo,
|
|
|
+ postCheck
|
|
|
} from '@/model/houseSelfCollect/index'
|
|
|
import {
|
|
|
packList
|
|
@@ -280,11 +281,36 @@
|
|
|
} else {
|
|
|
this.disabled1 = false
|
|
|
this.disabled = false
|
|
|
+ this.disabledName = false
|
|
|
}
|
|
|
this.calculation()
|
|
|
this.getList(this.id)
|
|
|
},
|
|
|
methods: {
|
|
|
+ //确认初检信息
|
|
|
+ checkOk(){
|
|
|
+ this.$confirm('确定初检信息后,初检员不需要再次确认质检信息,是否确认提交', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ postCheck({id:this.id,flag:2})
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ debugger
|
|
|
+ if(response == "OK"){
|
|
|
+ this.$message.success('提交成功')
|
|
|
+ this.$router.push({path: 'inspectionManagement' })
|
|
|
+ }else{
|
|
|
+ this.$message.error('提交失败')
|
|
|
+ }
|
|
|
+ }).catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
printSmall() {
|
|
|
window.open('../../../static/inspection.html?type=1&dataList=' + JSON.stringify(this.inspect))
|
|
|
},
|
|
@@ -431,9 +457,18 @@
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.$message.success('修改成功')
|
|
|
- this.$router.push({
|
|
|
- path: 'inspectionManagement'
|
|
|
- })
|
|
|
+
|
|
|
+ // this.$router.push({
|
|
|
+ // path: 'inspectionManagement'
|
|
|
+ // })
|
|
|
+ getinspectLook({
|
|
|
+ id: this.inspect.id
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.inspect = response
|
|
|
+ })
|
|
|
+ this.isShowPrint = true
|
|
|
})
|
|
|
})
|
|
|
.catch(() => {
|
|
@@ -489,20 +524,21 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.inspect.storageTagNo) {
|
|
|
- this.$message({
|
|
|
- message: '囤位号不能为空',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
- if (this.inspect.storageTagNo.length > 10) {
|
|
|
- this.$message({
|
|
|
- message: '囤位号不超过10个字符',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
+ // if (!this.inspect.storageTagNo) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '囤位号不能为空',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ if(this.inspect.storageTagNo){
|
|
|
+ if (this.inspect.storageTagNo.length > 10) {
|
|
|
+ this.$message({
|
|
|
+ message: '囤位号不超过10个字符',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
if (!this.inspect.carNumber) {
|
|
|
this.$message({
|
|
@@ -661,6 +697,7 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ if( this.information != "编辑复检"){
|
|
|
if (!this.inspect.waterContent) {
|
|
|
this.$message({
|
|
|
message: '水分不能为空',
|
|
@@ -683,6 +720,8 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
if (!this.inspect.mildewGrain) {
|
|
|
this.$message({
|
|
|
message: '霉变粒不能为空',
|