订单bug修改

This commit is contained in:
朱菊兰 2024-02-27 09:12:17 +08:00
parent 3e89f4066f
commit 65e2f9ed6a
3 changed files with 12 additions and 12 deletions

View File

@ -70,7 +70,7 @@
</el-col> </el-col>
<el-col :span='4'> <el-col :span='4'>
<div class="blodTip">废片数量</div> <div class="blodTip">废片数量</div>
<div class="lightTip">该字段未绑定</div> <div class="lightTip">{{orderGroupMsg.nokQuantity}}</div>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@ -144,7 +144,7 @@
</el-col> </el-col>
<el-col :span='4'> <el-col :span='4'>
<div class="blodTip">废片数量</div> <div class="blodTip">废片数量</div>
<div class="lightTip">该字段未绑定</div> <div class="lightTip">{{item.nokQuantity}}</div>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>

View File

@ -401,9 +401,9 @@ export default {
}, },
// , // ,
handleEditStatus(val, tip, status) { handleEditStatus(val, tip, status) {
console.log(val) let _this = this
if (val.workOrderNum > 0) {// if (val.workOrderNum > 0) {//
this.$confirm('是否将"'+tip+'"操作同步至下级工单?','确认信息', { _this.$confirm('是否将"'+tip+'"操作同步至下级工单?','确认信息', {
type: 'warning', type: 'warning',
distinguishCancelAndClose: true, distinguishCancelAndClose: true,
confirmButtonText: '同步', confirmButtonText: '同步',
@ -411,26 +411,26 @@ export default {
}).then(function() { }).then(function() {
console.log('同步') console.log('同步')
orderStatusSet({ id: val.id, status: status, isSync: true}).then(() => { orderStatusSet({ id: val.id, status: status, isSync: true}).then(() => {
this.getList(); _this.getList();
this.$modal.msgSuccess("操作成功"); _this.$modal.msgSuccess("操作成功");
}) })
}).catch(action => { }).catch(action => {
if (action === 'cancel') { if (action === 'cancel') {
console.log('不同步') console.log('不同步')
orderStatusSet({ id: val.id, status: status, isSync: false}).then(() => { orderStatusSet({ id: val.id, status: status, isSync: false}).then(() => {
this.getList(); _this.getList();
this.$modal.msgSuccess("操作成功"); _this.$modal.msgSuccess("操作成功");
}) })
}else { }else {
return console.log('关闭') return console.log('关闭')
} }
}) })
}else{// }else{//
this.$modal.confirm('是否确认"'+tip+'"厂务订单名称为"' + val.name + '"的数据项?').then(function() { _this.$modal.confirm('是否确认"'+tip+'"厂务订单名称为"' + val.name + '"的数据项?').then(function() {
return orderStatusSet({ id: val.id, status: status}) return orderStatusSet({ id: val.id, status: status})
}).then(() => { }).then(() => {
this.getList(); _this.getList();
this.$modal.msgSuccess("操作成功"); _this.$modal.msgSuccess("操作成功");
}).catch(() => {}); }).catch(() => {});
} }
}, },

View File

@ -74,7 +74,7 @@
</el-col> </el-col>
<el-col :span='4'> <el-col :span='4'>
<div class="blodTip">废片数量</div> <div class="blodTip">废片数量</div>
<div class="lightTip">该字段未绑定</div> <div class="lightTip">{{orderMsg.nokQuantity}}</div>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>