|
|
@ -237,6 +237,50 @@ |
|
|
|
<MaterDtl :dialog-show.sync="materialShow" :is-single="true" @setMaterValue="setMaterValue" /> |
|
|
|
<DeviceDialog :dialog-show.sync="deviceShow" :is-single="true" @tableChanged="tableChanged" /> |
|
|
|
<ViewDialog ref="child3" /> |
|
|
|
<!--表单组件--> |
|
|
|
<el-dialog |
|
|
|
:close-on-click-modal="false" |
|
|
|
:visible.sync="finishShow" |
|
|
|
title="强制完成" |
|
|
|
width="600px" |
|
|
|
> |
|
|
|
<el-form ref="form" :model="orderData" :rules="rules" size="mini" label-width="160px" label-suffix=":"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="实际数量" prop="material_id"> |
|
|
|
<el-input-number |
|
|
|
style="width: 150px" |
|
|
|
v-model="orderData.qty" |
|
|
|
:min="0"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="合格数量" prop="qualified_qty"> |
|
|
|
<el-input-number |
|
|
|
style="width: 150px" |
|
|
|
v-model="orderData.qualified_qty" |
|
|
|
:min="0"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="不合格数量" prop="unqualified_qty"> |
|
|
|
<el-input-number |
|
|
|
style="width: 150px" |
|
|
|
v-model="orderData.unqualified_qty" |
|
|
|
:min="0"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="info" @click="cancelFinish">取消</el-button> |
|
|
|
<el-button type="primary" @click="toForceFinish">确认</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -328,6 +372,8 @@ export default { |
|
|
|
workprocedureList: [], |
|
|
|
order_status: ['-1'], |
|
|
|
permission: {}, |
|
|
|
orderData: {}, |
|
|
|
finishShow: false, |
|
|
|
rules: { |
|
|
|
plan_qty: [ |
|
|
|
{ required: true, message: '计划数量不能为空', trigger: 'blur' } |
|
|
@ -369,9 +415,20 @@ export default { |
|
|
|
this.$refs.child3.setForm(row) |
|
|
|
} |
|
|
|
}, |
|
|
|
clearForm() { |
|
|
|
this.orderData = {} |
|
|
|
}, |
|
|
|
cancelFinish() { |
|
|
|
this.clearForm() |
|
|
|
this.finishShow = false |
|
|
|
}, |
|
|
|
// 强制完成 |
|
|
|
forceFinish(data) { |
|
|
|
crudWorkorder.forceFinish({ row: data }).then(res => { |
|
|
|
this.orderData = data |
|
|
|
this.finishShow = true |
|
|
|
}, |
|
|
|
toForceFinish() { |
|
|
|
crudWorkorder.forceFinish({ row: this.orderData }).then(res => { |
|
|
|
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS) |
|
|
|
this.crud.toQuery() |
|
|
|
}) |
|
|
|