|
@ -40,12 +40,12 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="list_cell quality_cell"> |
|
|
<view class="list_cell uni-flex uni-row space-between"> |
|
|
<view class="title">检验结果</view> |
|
|
<view class="title">检验结果</view> |
|
|
<view class="check_textarea"> |
|
|
<view class="info" style="padding: 0;"> |
|
|
<textarea placeholder="请输入内容" :inputBorder="true" v-model="dataContent.inspectResult" |
|
|
<uni-data-picker :class="disabled===true?'disabled':''" :border="false" placeholder="请选择检验结果" |
|
|
:disabled="disabled" maxlength="100"> |
|
|
popup-title="检验结果" :localdata="inspectResultArray" v-model="dataContent.inspectResult"> |
|
|
</textarea> |
|
|
</uni-data-picker> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
@ -64,7 +64,13 @@ |
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
import { |
|
|
getInspectFailedReasonList, |
|
|
getInspectFailedReasonList, |
|
|
|
|
|
getInspectResultList |
|
|
} from '@/common/directory.js'; |
|
|
} from '@/common/directory.js'; |
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
deepCopyData |
|
|
|
|
|
} from '@/common/basic.js'; |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
uploadFile, |
|
|
uploadFile, |
|
|
getFileList, |
|
|
getFileList, |
|
@ -87,7 +93,7 @@ |
|
|
failedReasonIndex: 0, |
|
|
failedReasonIndex: 0, |
|
|
failedReasonArray: [], |
|
|
failedReasonArray: [], |
|
|
dataContent: {}, |
|
|
dataContent: {}, |
|
|
failedReasonArray: [], |
|
|
inspectResultArray: [], |
|
|
picInfoList: [] |
|
|
picInfoList: [] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -106,13 +112,14 @@ |
|
|
methods: { |
|
|
methods: { |
|
|
openEditPopup(item) { |
|
|
openEditPopup(item) { |
|
|
this.failedReasonArray = getInspectFailedReasonList(); |
|
|
this.failedReasonArray = getInspectFailedReasonList(); |
|
|
|
|
|
this.inspectResultArray =getInspectResultList() |
|
|
//拷贝数据到页面显示,防止修改数据原数据修改 |
|
|
//拷贝数据到页面显示,防止修改数据原数据修改 |
|
|
this.dataContent = Object.assign({}, item) |
|
|
this.dataContent = deepCopyData(item); |
|
|
this.getFileList(); |
|
|
this.getFileList(); |
|
|
this.$refs['editPopup'].open("bottom"); |
|
|
this.$refs['editPopup'].open("bottom"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
getFileList() { |
|
|
getFileList() { |
|
|
getFileList("jobInspectDetail", this.dataContent.id).then(res => { |
|
|
getFileList("jobInspectDetail", this.dataContent.id).then(res => { |
|
|
if(res.data){ |
|
|
if(res.data){ |
|
@ -191,7 +198,8 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
back() { |
|
|
back() { |
|
|
this.afterSave() |
|
|
this.$refs['editPopup'].close(); |
|
|
|
|
|
// this.afterSave() |
|
|
}, |
|
|
}, |
|
|
maskClick() { |
|
|
maskClick() { |
|
|
|
|
|
|
|
@ -221,11 +229,17 @@ |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (failedQty > 0 || crackQty > 0) { |
|
|
if (failedQty > 0 || crackQty > 0) { |
|
|
if (this.dataContent.failedReason == null) { |
|
|
if (this.dataContent.failedReason == null||this.dataContent.failedReason == "") { |
|
|
this.showMessage("请选择不合格原因") |
|
|
this.showMessage("请选择不合格原因") |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(this.dataContent.inspectResult == null||this.dataContent.inspectResult == ""){ |
|
|
|
|
|
this.showMessage("请选择检验结果") |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.dataContent.failedQty = failedQty; |
|
|
this.dataContent.failedQty = failedQty; |
|
|
this.dataContent.crackQty = crackQty |
|
|
this.dataContent.crackQty = crackQty |
|
|
this.dataContent.goodQty = this.dataContent.handleQty - failedQty - crackQty |
|
|
this.dataContent.goodQty = this.dataContent.handleQty - failedQty - crackQty |
|
|