Commit b3d8be6b authored by Damon's avatar Damon

feat: 物料-异常单处理

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