Commit b3d8be6b authored by Damon's avatar Damon

feat: 物料-异常单处理

parent a7288379
......@@ -91,6 +91,7 @@ export default {
methods: {
getWorkOrderParts() {
// this.lists = JSON.parse(this.dataValue) || []
console.log("this.dataValue", this.dataValue)
this.lists = this.dataValue ? JSON.parse(this.dataValue) : []
},
partsChange(val, index) {
......
......@@ -40,9 +40,14 @@
<view class="reason-view" v-if="showReason">
<view class="reason-title"><text>未通过原因:</text></view>
<view class="reason-text"
><text v-for="(item, index) in orderData.auditResults" :key="index">{{
>
<text v-for="(item, index) in orderData.partAuditResults" :key="index">{{
item
}}</text></view
}}</text>
<text v-for="(item, index) in orderData.auditResults" :key="index">{{
item
}}</text>
</view
>
</view>
<view class="bottom-view">
......@@ -319,7 +324,7 @@ export default {
return 3
} else if (
this.orderData.orderStatus == 85 ||
this.orderData.orderStatus == 87 ||
this.orderData.orderStatus == 87 ||
this.orderData.orderStatus == 88
) {
return 4
......
......@@ -304,7 +304,11 @@ export default {
handleClickCellButton(item, type) {
if (type == 'exception') {
this.$u.api.workerDealWithError(item.orderId).then(() => {})
}
}
let partAuditResults = item.partAuditResults ? ['orderSpareParts'] : []
let auditResults = Object.keys(item.auditResults) || []
auditResults = auditResults.concat(partAuditResults)
// 去完工
uni.navigateTo({
url:
......@@ -325,7 +329,7 @@ export default {
'&brandId=' +
item.lianbaoBrandId +
'&auditResults=' +
(item.auditResults ? Object.keys(item.auditResults).join() : ''),
(auditResults ? auditResults.join() : ''),
})
},
handleClick(item, type, showCountTime) {
......
......@@ -250,7 +250,7 @@
:itemIndex="itemIndex"
:item="item"
:value="form[item.fieldsName] || ''"
:disabled="exception || readOnly"
:disabled="readOnly"
@value-change="fieldValueChange"
>
</xh-parts>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment