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

车间异常单

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