Merge branch 'master' of https://gitee.com/tangziqi/ktg-mes-ui
This commit is contained in:
commit
b8356bc88c
@ -426,11 +426,11 @@ export default {
|
|||||||
itemCode: null,
|
itemCode: null,
|
||||||
itemName: null,
|
itemName: null,
|
||||||
specification: null,
|
specification: null,
|
||||||
quantity: null,
|
quantity: 0,
|
||||||
quantityUncheck: null,
|
quantityUncheck: 0,
|
||||||
quantityFeedback: null,
|
quantityFeedback: 0,
|
||||||
quantityQualified: null,
|
quantityQualified: 0,
|
||||||
quantityUnquanlified: null,
|
quantityUnquanlified: 0,
|
||||||
userName: null,
|
userName: null,
|
||||||
nickName: null,
|
nickName: null,
|
||||||
feedbackChannel: null,
|
feedbackChannel: null,
|
||||||
@ -533,7 +533,7 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//执行
|
//审批通过执行
|
||||||
handleExecute(){
|
handleExecute(){
|
||||||
const recordIds = this.form.recordId;
|
const recordIds = this.form.recordId;
|
||||||
this.$modal.confirm('确认执行报工?').then(function() {
|
this.$modal.confirm('确认执行报工?').then(function() {
|
||||||
@ -544,6 +544,17 @@ export default {
|
|||||||
this.open = false;
|
this.open = false;
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
},
|
},
|
||||||
|
//审批不通过,拒绝
|
||||||
|
handleReject(){
|
||||||
|
this.form.status = "PREPARE";
|
||||||
|
if (this.form.recordId != null) {
|
||||||
|
updateFeedback(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("提交成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
const recordIds = row.recordId || this.ids;
|
const recordIds = row.recordId || this.ids;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" v-if="optType !='view'" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
width="80%"
|
width="80%"
|
||||||
center
|
center
|
||||||
>
|
>
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" v-if="optType !='view'" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -14,7 +14,6 @@
|
|||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
v-hasPermi="['mes:qc:defectrecord:add']"
|
|
||||||
>新增</el-button>
|
>新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
@ -25,7 +24,6 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
:disabled="single"
|
:disabled="single"
|
||||||
@click="handleUpdate"
|
@click="handleUpdate"
|
||||||
v-hasPermi="['mes:qc:defectrecord:edit']"
|
|
||||||
>常见缺陷</el-button>
|
>常见缺陷</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
@ -54,7 +52,7 @@
|
|||||||
<el-input-number :min="1" v-model="scope.row.defectQuantity" />
|
<el-input-number :min="1" v-model="scope.row.defectQuantity" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" v-if="optType !='view'" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -62,7 +60,7 @@
|
|||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
v-if="optType !='view'"
|
v-if="optType !='view'"
|
||||||
@click="handleDelete(scope.$index, scope.row)"
|
@click="handleDelete(scope.$index, scope.row)"
|
||||||
v-hasPermi="['mes:qc:defectrecord:remove']"
|
|
||||||
>删除</el-button>
|
>删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -77,7 +75,7 @@
|
|||||||
/>
|
/>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="cancel" v-if="optType =='view'">返回</el-button>
|
<el-button type="primary" @click="cancel" v-if="optType =='view'">返回</el-button>
|
||||||
<el-button type="primary" v-hasPermi="['mes:qc:defectrecord:update']" v-else @click="confirm">确 定</el-button>
|
<el-button type="primary" v-else @click="confirm">确 定</el-button>
|
||||||
<el-button @click="showFlag=false">取 消</el-button>
|
<el-button @click="showFlag=false">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
Loading…
Reference in New Issue
Block a user