You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
2.5 KiB
95 lines
2.5 KiB
|
6 months ago
|
<template>
|
||
|
3 months ago
|
<el-dialog title="处理" append-to-body :modelValue="openShow" width="35%" @close="closeDialog">
|
||
|
|
<el-form
|
||
|
|
ref="form"
|
||
|
|
:model="formData"
|
||
|
|
:rules="rules"
|
||
|
|
label-width="80px"
|
||
|
|
class="vd-form-row"
|
||
|
|
>
|
||
|
|
<el-row>
|
||
|
|
<el-col :span="24">
|
||
|
|
<el-form-item label="审理单号" prop="rsCode">
|
||
|
|
<el-input v-model="formData.rsCode" type="text" />
|
||
|
|
</el-form-item>
|
||
|
|
</el-col>
|
||
|
|
</el-row>
|
||
|
|
<el-row>
|
||
|
|
<el-col :span="24">
|
||
|
|
<el-form-item label="处理意见" prop="handleResult">
|
||
|
|
<el-input v-model="formData.handleResult" type="textarea" :rows="3" />
|
||
|
|
</el-form-item>
|
||
|
|
</el-col>
|
||
|
|
</el-row>
|
||
|
|
</el-form>
|
||
|
6 months ago
|
|
||
|
3 months ago
|
<template #footer>
|
||
|
|
<span class="dialog-footer">
|
||
|
|
<el-button @click="closeDialog">取 消</el-button>
|
||
|
2 months ago
|
<el-button type="primary" @click="submit" :loading="loading">确 定</el-button>
|
||
|
3 months ago
|
</span>
|
||
|
|
</template>
|
||
|
|
</el-dialog>
|
||
|
6 months ago
|
</template>
|
||
|
|
<script>
|
||
|
3 months ago
|
import { taskComplete } from '@/api/productionManagement/WIPChange.js';
|
||
|
|
|
||
|
6 months ago
|
export default {
|
||
|
3 months ago
|
props: {
|
||
|
|
showDialog: {
|
||
|
|
type: Boolean,
|
||
|
|
default: false,
|
||
|
6 months ago
|
},
|
||
|
3 months ago
|
rowItem: {
|
||
|
|
type: Object,
|
||
|
|
default: () => ({}),
|
||
|
6 months ago
|
},
|
||
|
3 months ago
|
},
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
2 months ago
|
loading: false,
|
||
|
3 months ago
|
openShow: false,
|
||
|
|
formData: {},
|
||
|
|
rules: {
|
||
|
|
rsCode: [{ required: true }],
|
||
|
|
handleResult: [{ required: true }],
|
||
|
|
},
|
||
|
|
};
|
||
|
|
},
|
||
|
|
mounted() {
|
||
|
|
this.openShow = this.showDialog;
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
2 months ago
|
closeDialog(type) {
|
||
|
3 months ago
|
this.openShow = false;
|
||
|
2 months ago
|
this.$emit('closeDialog',type);
|
||
|
6 months ago
|
},
|
||
|
3 months ago
|
submit() {
|
||
|
|
this.$refs.form.validate(valid => {
|
||
|
|
if (valid) {
|
||
|
2 months ago
|
this.loading = true;
|
||
|
3 months ago
|
let query = {
|
||
|
2 months ago
|
ddtIdList:[this.rowItem.id], //调度任务ID
|
||
|
3 months ago
|
rsCode: this.formData.rsCode, //审理单号
|
||
|
|
handleResult: this.formData.handleResult, //处理结果
|
||
|
|
loginUser: '', //登录用户
|
||
|
|
isDefault: '',
|
||
|
|
partCode: this.rowItem.partCode, //物料号
|
||
|
|
partName: this.rowItem.partName, //物料名称
|
||
|
|
plate: this.rowItem.plate, //镀种
|
||
|
|
version: this.rowItem.version, //版本
|
||
|
|
changeNo: this.rowItem.changeNo, //更改单号
|
||
|
|
disAssignMan: this.rowItem.disAssignMan, //调度员
|
||
|
|
};
|
||
|
|
taskComplete(query).then(res => {
|
||
|
2 months ago
|
this.$message.success('操作成功');
|
||
|
2 months ago
|
this.closeDialog(true);
|
||
|
3 months ago
|
});
|
||
|
6 months ago
|
}
|
||
|
3 months ago
|
});
|
||
|
|
},
|
||
|
|
},
|
||
|
|
};
|
||
|
6 months ago
|
</script>
|
||
|
3 months ago
|
<style lang="scss" scoped></style>
|