外协零件查询

This commit is contained in:
liulujia1
2020-04-14 15:49:46 +08:00
parent 489cdcac55
commit ad92787ba0
3 changed files with 7 additions and 5 deletions

View File

@@ -420,8 +420,10 @@ export function transferMX(num1, name, num2, remark, mark, num3, num4, num5, num
} }
}) })
} }
// 传递零件 // 传递零件
export function transferMX1(num1, name, num2, remark, mark, num3, num4, num5, num7, type, transmit, num6, num8, num9, id, oldId, oldNum, tiaojian, peopleid) { export function transferMX1(num1, name, num2, remark, mark, num3, num4, num5, num7, type, transmit, num6, num8, num9, id, oldId, oldNum, peopleid) {
console.log(peopleid, 9090909090)
return request({ return request({
url: '', url: '',
method: 'post', method: 'post',

View File

@@ -21,7 +21,7 @@
<el-table-column label="外协状态" align="center" width="80px"> <el-table-column label="外协状态" align="center" width="80px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="Number(scope.row.外协状态)==1" type="primary" size="mini">未提交</el-tag> <el-tag v-if="Number(scope.row.外协状态)==1" type="primary" size="mini">未提交</el-tag>
<el-tag v-if="Number(scope.row.到货状态)===9" type="success" size="mini">未外协</el-tag> <el-tag v-if="Number(scope.row.外协状态)===0" type="success" size="mini">未外协</el-tag>
<el-tag v-if="Number(scope.row.外协状态)==2 && Number(scope.row.到货状态)!==1" type="warning" size="mini">未到货</el-tag> <el-tag v-if="Number(scope.row.外协状态)==2 && Number(scope.row.到货状态)!==1" type="warning" size="mini">未到货</el-tag>
<el-tag v-if="Number(scope.row.外协状态)==2 && Number(scope.row.到货状态)===1" type="success" size="mini">已到货</el-tag> <el-tag v-if="Number(scope.row.外协状态)==2 && Number(scope.row.到货状态)===1" type="success" size="mini">已到货</el-tag>
</template> </template>
@@ -73,7 +73,7 @@
</el-table-column> </el-table-column>
<el-table-column label="外协日期" align="center" width="100"> <el-table-column label="外协日期" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.任务下达日期.split(' ')[0] }} {{ scope.row.任务下达日期 ? scope.row.任务下达日期.split(' ')[0]:scope.row.任务下达日期 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="外协员" align="center" width="70" show-overflow-tooltip> <el-table-column label="外协员" align="center" width="70" show-overflow-tooltip>
@@ -121,7 +121,7 @@ export default {
procedure: [], procedure: [],
procedureTime: [], procedureTime: [],
pageCurrent: 1, pageCurrent: 1,
pageSize: 50, pageSize: 500,
tableData1: [] tableData1: []
} }
}, },

View File

@@ -728,7 +728,7 @@ export default {
for (let i = 0; i < this.tableDataAll.length; i++) { for (let i = 0; i < this.tableDataAll.length; i++) {
const data = this.tableDataAll[i] const data = this.tableDataAll[i]
const total = parseInt(data.备件数量) + parseInt(data.装机数量) * parseInt(data.部件数量) const total = parseInt(data.备件数量) + parseInt(data.装机数量) * parseInt(data.部件数量)
const resp = await transferMX1(data.图号或者型号, data.名称, total, data.备注, data.标记, data.设计者编号, data.组件流水号, data.材料流水号, data.规格, 1, data.是否传递, data.序号, data.分类码, data.整改类型, data.id, data.前id, data.前图号或者型号, this.$store.user.id) const resp = await transferMX1(data.图号或者型号, data.名称, total, data.备注, data.标记, data.设计者编号, data.组件流水号, data.材料流水号, data.规格, 1, data.是否传递, data.序号, data.分类码, data.整改类型, data.id, data.前id, data.前图号或者型号, this.$store.state.user.id)
await sleep(10) await sleep(10)
if (resp.data[0].result === '0') { if (resp.data[0].result === '0') {
this.err++ this.err++