Commit 17152b8e authored by 沈翠玲's avatar 沈翠玲

车间异常单

parent 1597d5dc
......@@ -65,3 +65,11 @@ export function completeReport(abnormalReportId) {
method: 'put'
})
}
// 提交功能
export function submit(id) {
return request({
url: '/qc/report/submit/' + id,
method: 'put'
})
}
\ No newline at end of file
......@@ -147,7 +147,7 @@
size="mini"
type="text"
icon="el-icon-upload2"
@click="0"
@click="handleSubmit(scope.row)"
:disabled="!scope.row.userId"
>提交</el-button>
<el-button
......@@ -264,7 +264,6 @@
@click="$refs['oldItemSelectRef'].showFlag = true"
></el-button>
</el-input>
<oldItemSelect ref="oldItemSelectRef" :batchNumber="form.batchNumber" @onSelected="onoldItemSelectRef" />
</el-form-item>
</el-col>
<el-col :span="12">
......@@ -280,7 +279,6 @@
@click="$refs['ItemSelectRef'].showFlag = true"
></el-button>
</el-input>
<ItemSelect ref="ItemSelectRef" @onSelected="onItemSelect" />
</el-form-item>
</el-col>
</el-row>
......@@ -324,11 +322,14 @@
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
<ItemSelect ref="ItemSelectRef" @onSelected="onItemSelect" />
<oldItemSelect ref="oldItemSelectRef" :batchNumber="form.batchNumber" @onSelected="onoldItemSelectRef" />
</div>
</template>
<script>
import { listReport, getReport, delReport, addReport, updateReport,completeReport, getAllProcess } from "@/api/mes/qc/report";
import { listReport, getReport, delReport, addReport, updateReport,completeReport, getAllProcess, submit } from "@/api/mes/qc/report";
import {listAllProcess} from "@/api/mes/pro/process";
import dayjs from 'dayjs'
import ItemSelect from "@/components/itemSelect/single.vue";
......@@ -336,7 +337,7 @@ import oldItemSelect from "./single.vue";
export default {
dicts: ['qc_submit_status','pc_abnormal_type'],
components: [ItemSelect, oldItemSelect],
components: {ItemSelect, oldItemSelect},
name: "Report",
data() {
return {
......@@ -389,6 +390,13 @@ export default {
this.getList();
},
methods: {
handleSubmit (row){
submit(row.abnormalReportCode).then(res=>{
if(res.code === 200) {
this.getList()
}
})
},
//查询工序信息
getProcess(){
listAllProcess().then( response =>{
......
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