Compare commits
3 Commits
56b05a02a1
...
8f1e8c9381
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f1e8c9381 | ||
|
|
60576864bf | ||
|
|
f4be9312c3 |
@@ -15,6 +15,16 @@
|
|||||||
|
|
||||||
<!-- 搜索栏 -->
|
<!-- 搜索栏 -->
|
||||||
<el-form :model="materialQueryParams" ref="materialQueryForm" size="small" :inline="true" class="query-form">
|
<el-form :model="materialQueryParams" ref="materialQueryForm" size="small" :inline="true" class="query-form">
|
||||||
|
<el-form-item label="钢卷类型" prop="dataType">
|
||||||
|
<el-select v-model="coilType" placeholder="请选择钢卷类型">
|
||||||
|
<el-option label="全部" value="all" />
|
||||||
|
<el-option label="当前钢卷" value="now" />
|
||||||
|
<el-option label="历史钢卷" value="history" />
|
||||||
|
<el-option label="已发货钢卷" value="trans" />
|
||||||
|
<el-option label="未入库钢卷" value="unIn" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="入场钢卷号" prop="enterCoilNo">
|
<el-form-item label="入场钢卷号" prop="enterCoilNo">
|
||||||
<el-input v-model="materialQueryParams.enterCoilNo" placeholder="请输入入场钢卷号" clearable
|
<el-input v-model="materialQueryParams.enterCoilNo" placeholder="请输入入场钢卷号" clearable
|
||||||
@keyup.enter.native="handleMaterialQuery" style="width: 150px;" />
|
@keyup.enter.native="handleMaterialQuery" style="width: 150px;" />
|
||||||
@@ -206,9 +216,13 @@
|
|||||||
style="position: absolute; bottom: 10px; right: 10px;" type="success" icon="el-icon-refresh"
|
style="position: absolute; bottom: 10px; right: 10px;" type="success" icon="el-icon-refresh"
|
||||||
size="mini" @click="handleRestoreMaterial(item)" :loading="item.cancelling"
|
size="mini" @click="handleRestoreMaterial(item)" :loading="item.cancelling"
|
||||||
class="action-btn">回滚</el-button>
|
class="action-btn">回滚</el-button>
|
||||||
|
<el-button v-if="item.dataType == 10 && item.status == 0"
|
||||||
|
style="position: absolute; bottom: 10px; right: 10px;" type="success" icon="el-icon-refresh"
|
||||||
|
size="mini" @click="handleForceInMaterial(item)" :loading="item.cancelling"
|
||||||
|
class="action-btn">强制入库</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-footer" v-if="item.dataType != 10">
|
<div class="card-footer">
|
||||||
<el-button type="primary" icon="el-icon-check" size="mini" @click="handleCorrectMaterial(item)"
|
<el-button type="primary" icon="el-icon-check" size="mini" @click="handleCorrectMaterial(item)"
|
||||||
:loading="item.picking" class="action-btn">修正</el-button>
|
:loading="item.picking" class="action-btn">修正</el-button>
|
||||||
<el-button type="danger" icon="el-icon-delete" size="mini" @click="hanleDeleteMaterial(item)"
|
<el-button type="danger" icon="el-icon-delete" size="mini" @click="hanleDeleteMaterial(item)"
|
||||||
@@ -414,6 +428,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
coilType: 'all',
|
||||||
title: '钢卷信息修正',
|
title: '钢卷信息修正',
|
||||||
// 物料列表相关
|
// 物料列表相关
|
||||||
materialLoading: false,
|
materialLoading: false,
|
||||||
@@ -731,9 +746,39 @@ export default {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
handleForceInMaterial(row) {
|
||||||
|
this.$modal.confirm('是否要强制入库改钢卷?').then(_ => {
|
||||||
|
const loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '处理中...',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
})
|
||||||
|
updateMaterialCoilSimple({
|
||||||
|
...row,
|
||||||
|
dataType: 1,
|
||||||
|
}).then(_ => {
|
||||||
|
this.$modal.msgSuccess("强制入库成功");
|
||||||
|
this.getMaterialCoil();
|
||||||
|
}).finally(() => {
|
||||||
|
loading.close()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
getMaterialCoil() {
|
getMaterialCoil() {
|
||||||
this.materialLoading = true
|
this.materialLoading = true
|
||||||
listMaterialCoil(this.materialQueryParams).then(response => {
|
const payload = { ...this.materialQueryParams }
|
||||||
|
if (this.coilType == 'now') {
|
||||||
|
payload.dataType = 1;
|
||||||
|
payload.status = 0;
|
||||||
|
} else if (this.coilType == 'history') {
|
||||||
|
payload.dataType = 0;
|
||||||
|
} else if (this.coilType == 'trans') {
|
||||||
|
payload.status = 1;
|
||||||
|
} else if (this.coilType == 'unIn') {
|
||||||
|
payload.dataType = 10;
|
||||||
|
}
|
||||||
|
listMaterialCoil(payload).then(response => {
|
||||||
this.materialCoilList = response.rows || []
|
this.materialCoilList = response.rows || []
|
||||||
this.materialTotal = response.total || 0
|
this.materialTotal = response.total || 0
|
||||||
this.materialLoading = false
|
this.materialLoading = false
|
||||||
|
|||||||
@@ -54,9 +54,16 @@
|
|||||||
{value: '1988151076996706306', label: '镀铬原料库'},
|
{value: '1988151076996706306', label: '镀铬原料库'},
|
||||||
{value: '1988151132361519105', label: '镀铬成品库'},
|
{value: '1988151132361519105', label: '镀铬成品库'},
|
||||||
],
|
],
|
||||||
|
'纵剪分条工序': [
|
||||||
|
{value: '', label: '原料库'},
|
||||||
|
{value: '1988150210872930306', label: '酸连轧分条成品'},
|
||||||
|
{value: '1988150800092950529', label: '退火分条成品'},
|
||||||
|
{value: '1988150380649967617', label: '镀锌分条成品'},
|
||||||
|
{value: '1988151027466170370', label: '拉矫分条成品'},
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.actionType === '镀锌工序' || this.actionType === '脱脂工序' || this.actionType === '拉矫平整工序' || this.actionType === '双机架工序' || this.actionType === '镀铬工序') {
|
if (this.actionType === '镀锌工序' || this.actionType === '脱脂工序' || this.actionType === '拉矫平整工序' || this.actionType === '双机架工序' || this.actionType === '镀铬工序' || this.actionType === '纵剪分条工序') {
|
||||||
this.useSpecialSplit = true
|
this.useSpecialSplit = true
|
||||||
}
|
}
|
||||||
// 从map中获取默认的查询参数
|
// 从map中获取默认的查询参数
|
||||||
|
|||||||
@@ -747,11 +747,11 @@ export default {
|
|||||||
}
|
}
|
||||||
delPendingAction(row.actionId).then(response => {
|
delPendingAction(row.actionId).then(response => {
|
||||||
this.$modal.msgSuccess("删除成功");
|
this.$modal.msgSuccess("删除成功");
|
||||||
delCoilWarehouseOperationLogByCoilId({
|
// delCoilWarehouseOperationLogByCoilId({
|
||||||
coilId: row.coilId,
|
// coilId: row.coilId,
|
||||||
operationType: 1,
|
// operationType: 1,
|
||||||
inOutType: 1
|
// inOutType: 1
|
||||||
})
|
// })
|
||||||
this.getList();
|
this.getList();
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.buttonLoading = false;
|
this.buttonLoading = false;
|
||||||
|
|||||||
@@ -306,7 +306,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<el-empty description="暂无进行中的镀锌工序" />
|
<el-empty :description="`暂无进行中的${label}`" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -642,6 +642,12 @@ export default {
|
|||||||
border: '1px solid blue',
|
border: '1px solid blue',
|
||||||
color: '#fff'
|
color: '#fff'
|
||||||
}
|
}
|
||||||
|
} else if (this.acidRollingActionType == 506) {
|
||||||
|
return {
|
||||||
|
backgroundColor: '#2bf',
|
||||||
|
border: '1px solid #2bf',
|
||||||
|
color: '#fff'
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
@@ -671,9 +677,12 @@ export default {
|
|||||||
},
|
},
|
||||||
currentTab: {
|
currentTab: {
|
||||||
handler(newVal) {
|
handler(newVal) {
|
||||||
if (newVal) {
|
if (newVal && newVal != 0) {
|
||||||
this.materialQueryParams.warehouseId = newVal
|
this.materialQueryParams.warehouseId = newVal
|
||||||
|
} else {
|
||||||
|
this.materialQueryParams.warehouseId = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
this.getMaterialCoil()
|
this.getMaterialCoil()
|
||||||
},
|
},
|
||||||
immediate: true
|
immediate: true
|
||||||
|
|||||||
Reference in New Issue
Block a user