Merge remote-tracking branch 'origin/0.8.X' into 0.8.X
This commit is contained in:
@@ -8,10 +8,10 @@ export function getAcidTypingPrefill(currentCoilNo) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getGalvanize1TypingPrefill(currentCoilNo) {
|
export function getGalvanize1TypingPrefill(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/pocket/galvanize1/crmPdoExcoil/list',
|
url: '/pocket/galvanize1/crmPdoExcoil/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: { currentCoilNo }
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -434,10 +434,14 @@ export default {
|
|||||||
.nob {
|
.nob {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000;
|
||||||
|
font-family: '黑体', serif;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 打印样式 - 强制单页,适配180mm x 100mm纸张,保持原有样式不变 */
|
/* 打印样式 - 强制单页,适配180mm x 100mm纸张,保持原有样式不变 */
|
||||||
|
|||||||
@@ -102,7 +102,7 @@
|
|||||||
<!-- 第八行:生产日期(跨3列) -->
|
<!-- 第八行:生产日期(跨3列) -->
|
||||||
<div class="info-grid-item label-cell">生产日期</div>
|
<div class="info-grid-item label-cell">生产日期</div>
|
||||||
<div class="info-grid-item value-cell">
|
<div class="info-grid-item value-cell">
|
||||||
<div>{{ parseTime(content.updateTime, '{y}-{m}-{d}') }}</div>
|
<div class="nob">{{ parseTime(content.updateTime, '{y}-{m}-{d}') }}</div>
|
||||||
<!-- <input type="text" class="nob" :value=" /> -->
|
<!-- <input type="text" class="nob" :value=" /> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -437,8 +437,12 @@ export default {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000;
|
||||||
|
font-family: '黑体', serif;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 打印样式 - 强制单页,适配180mm x 100mm纸张,保持原有样式不变 */
|
/* 打印样式 - 强制单页,适配180mm x 100mm纸张,保持原有样式不变 */
|
||||||
|
|||||||
@@ -333,6 +333,9 @@ export default {
|
|||||||
.nob {
|
.nob {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000;
|
||||||
|
font-family: '黑体', serif;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|||||||
@@ -392,7 +392,7 @@ export default {
|
|||||||
.info-grid-item {
|
.info-grid-item {
|
||||||
border: 1px solid #000;
|
border: 1px solid #000;
|
||||||
padding: 0.1em;
|
padding: 0.1em;
|
||||||
font-size: 1.05em;
|
font-size: 1.2em;
|
||||||
height: 2em;
|
height: 2em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
@@ -443,8 +443,12 @@ export default {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000;
|
||||||
|
font-family: '黑体', serif;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 打印样式 - 强制单页,适配180mm x 100mm纸张,保持原有样式不变 */
|
/* 打印样式 - 强制单页,适配180mm x 100mm纸张,保持原有样式不变 */
|
||||||
|
|||||||
@@ -253,6 +253,10 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000;
|
||||||
|
font-family: '黑体', serif;
|
||||||
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 打印样式 */
|
/* 打印样式 */
|
||||||
|
|||||||
@@ -246,6 +246,10 @@ export default {
|
|||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000;
|
||||||
|
font-family: '黑体', serif;
|
||||||
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 打印样式 - 强制单页,适配100mm x 80mm纸张,保持原有样式不变 */
|
/* 打印样式 - 强制单页,适配100mm x 80mm纸张,保持原有样式不变 */
|
||||||
|
|||||||
@@ -244,6 +244,7 @@ export default {
|
|||||||
.nob {
|
.nob {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
font-size: 1.2em;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
@@ -253,6 +254,10 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000;
|
||||||
|
font-family: '黑体', serif;
|
||||||
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 打印样式 */
|
/* 打印样式 */
|
||||||
|
|||||||
@@ -454,7 +454,7 @@
|
|||||||
|
|
||||||
<el-dialog title="分步加工" :visible.sync="stepSpilt.visible" width="1400px" append-to-body>
|
<el-dialog title="分步加工" :visible.sync="stepSpilt.visible" width="1400px" append-to-body>
|
||||||
<step-split @print="handlePrintLabel" @complete="handleComposeSplit" :actionId="stepSpilt.actionId"
|
<step-split @print="handlePrintLabel" @complete="handleComposeSplit" :actionId="stepSpilt.actionId"
|
||||||
:coilId="stepSpilt.coilId" :actionStatus="stepSpilt.actionStatus" />
|
:coilId="stepSpilt.coilId" :actionStatus="stepSpilt.actionStatus" :actionType="stepSpilt.actionType" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<label-render ref="labelRender" v-show="false" :content="labelRender.data" :labelType="labelRender.type" />
|
<label-render ref="labelRender" v-show="false" :content="labelRender.data" :labelType="labelRender.type" />
|
||||||
@@ -577,7 +577,8 @@ export default {
|
|||||||
visible: false,
|
visible: false,
|
||||||
coilId: null,
|
coilId: null,
|
||||||
actionId: null,
|
actionId: null,
|
||||||
actionStatus: null
|
actionStatus: null,
|
||||||
|
actionType: null,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -642,6 +643,10 @@ export default {
|
|||||||
// 如果待操作列表为空,则加载数据
|
// 如果待操作列表为空,则加载数据
|
||||||
if (this.pendingActionList.length === 0) {
|
if (this.pendingActionList.length === 0) {
|
||||||
this.getPendingAction()
|
this.getPendingAction()
|
||||||
|
console.log(this.useSpecialSplit)
|
||||||
|
if (this.useSpecialSplit) {
|
||||||
|
this.getStepSplitList()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -673,15 +678,16 @@ export default {
|
|||||||
// 立即加载物料列表(不依赖字典)
|
// 立即加载物料列表(不依赖字典)
|
||||||
// this.getMaterialCoil()
|
// this.getMaterialCoil()
|
||||||
// 尝试加载待操作列表(如果字典已加载)
|
// 尝试加载待操作列表(如果字典已加载)
|
||||||
this.$nextTick(() => {
|
// this.$nextTick(() => {
|
||||||
if (this.acidRollingActionType) {
|
// if (this.acidRollingActionType) {
|
||||||
this.actionQueryParams.actionType = this.acidRollingActionType
|
// this.actionQueryParams.actionType = this.acidRollingActionType
|
||||||
this.getPendingAction()
|
// this.getPendingAction()
|
||||||
if (this.useSpecialSplit) {
|
// console.log(this.useSpecialSplit)
|
||||||
this.getStepSplitList()
|
// if (this.useSpecialSplit) {
|
||||||
}
|
// this.getStepSplitList()
|
||||||
}
|
// }
|
||||||
})
|
// }
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// 确保在mounted时也尝试加载(字典数据可能此时才加载完成)
|
// 确保在mounted时也尝试加载(字典数据可能此时才加载完成)
|
||||||
@@ -689,6 +695,10 @@ export default {
|
|||||||
if (this.acidRollingActionType && !this.actionQueryParams.actionType) {
|
if (this.acidRollingActionType && !this.actionQueryParams.actionType) {
|
||||||
this.actionQueryParams.actionType = this.acidRollingActionType
|
this.actionQueryParams.actionType = this.acidRollingActionType
|
||||||
this.getPendingAction()
|
this.getPendingAction()
|
||||||
|
console.log(this.useSpecialSplit)
|
||||||
|
if (this.useSpecialSplit) {
|
||||||
|
this.getStepSplitList()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -1008,6 +1018,7 @@ export default {
|
|||||||
this.stepSpilt.coilId = row.coilId
|
this.stepSpilt.coilId = row.coilId
|
||||||
this.stepSpilt.actionId = row.actionId
|
this.stepSpilt.actionId = row.actionId
|
||||||
this.stepSpilt.actionStatus = row.actionStatus
|
this.stepSpilt.actionStatus = row.actionStatus
|
||||||
|
this.stepSpilt.actionType = row.actionType
|
||||||
this.stepSpilt.visible = true
|
this.stepSpilt.visible = true
|
||||||
// this.buttonLoading = true
|
// this.buttonLoading = true
|
||||||
// this.getPendingAction()
|
// this.getPendingAction()
|
||||||
|
|||||||
@@ -67,8 +67,13 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<!-- <el-descriptions :column="1" border title="二级数据" v-if="showSplitForm"></el-descriptions>
|
<el-descriptions :column="1" border title="镀锌二级数据" v-if="actionType == 501 && showSplitForm"></el-descriptions>
|
||||||
<el-table v-if="showSplitForm"></el-table> -->
|
<el-table v-if="actionType == 501 && showSplitForm" v-loading="zincLoading" :data="zincList" border stripe @row-click="handleZincItemClick">
|
||||||
|
<el-table-column prop="enterCoilNo" label="入场钢卷号" />
|
||||||
|
<el-table-column prop="createTime" label="生产开始时间" />
|
||||||
|
<el-table-column prop="endTime" label="生产结束时间" />
|
||||||
|
<el-table-column prop="shiftNo" label="班组" />
|
||||||
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
@@ -268,6 +273,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { getMaterialCoil, listMaterialCoil, createSpecialChild, completeSpecialSplit, updateMaterialCoilSimple, checkCoilNo, delMaterialCoil } from '@/api/wms/coil'
|
import { getMaterialCoil, listMaterialCoil, createSpecialChild, completeSpecialSplit, updateMaterialCoilSimple, checkCoilNo, delMaterialCoil } from '@/api/wms/coil'
|
||||||
import { completeAction, getPendingAction, updatePendingAction } from '@/api/wms/pendingAction'
|
import { completeAction, getPendingAction, updatePendingAction } from '@/api/wms/pendingAction'
|
||||||
|
import { getGalvanize1TypingPrefill } from '@/api/pocket/acidTyping';
|
||||||
import ProductSelect from "@/components/KLPService/ProductSelect";
|
import ProductSelect from "@/components/KLPService/ProductSelect";
|
||||||
import RawMaterialSelect from "@/components/KLPService/RawMaterialSelect";
|
import RawMaterialSelect from "@/components/KLPService/RawMaterialSelect";
|
||||||
import WarehouseSelect from "@/components/KLPService/WarehouseSelect";
|
import WarehouseSelect from "@/components/KLPService/WarehouseSelect";
|
||||||
@@ -280,7 +286,7 @@ export default {
|
|||||||
name: 'StepSplit',
|
name: 'StepSplit',
|
||||||
props: {
|
props: {
|
||||||
actionId: {
|
actionId: {
|
||||||
type: String,
|
type: [String, Number],
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
coilId: {
|
coilId: {
|
||||||
@@ -291,6 +297,10 @@ export default {
|
|||||||
type: Number,
|
type: Number,
|
||||||
default: 0,
|
default: 0,
|
||||||
},
|
},
|
||||||
|
actionType: {
|
||||||
|
type: Number,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
ProductSelect,
|
ProductSelect,
|
||||||
@@ -398,7 +408,10 @@ export default {
|
|||||||
defectCode: null,
|
defectCode: null,
|
||||||
degree: null,
|
degree: null,
|
||||||
remark: null
|
remark: null
|
||||||
}
|
},
|
||||||
|
|
||||||
|
zincList: [],
|
||||||
|
zincLoading: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -427,6 +440,16 @@ export default {
|
|||||||
// 若actionId变化需要重新加载数据,可在此补充逻辑
|
// 若actionId变化需要重新加载数据,可在此补充逻辑
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
actionType: {
|
||||||
|
immediate: true,
|
||||||
|
handler(val) {
|
||||||
|
console.log('actionType', val)
|
||||||
|
if (val == 501) {
|
||||||
|
// 获取镀锌线二级系统数据
|
||||||
|
this.getZincList()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 查询待分条的钢卷信息
|
// 查询待分条的钢卷信息
|
||||||
@@ -443,6 +466,16 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
async getZincList() {
|
||||||
|
this.zincLoading = true
|
||||||
|
const res = await getGalvanize1TypingPrefill({
|
||||||
|
pageSize: 10,
|
||||||
|
pageNum: 1,
|
||||||
|
})
|
||||||
|
this.zincList = res.rows || []
|
||||||
|
this.zincLoading = false
|
||||||
|
},
|
||||||
|
|
||||||
async handlePrint(row) {
|
async handlePrint(row) {
|
||||||
this.$emit('print', row)
|
this.$emit('print', row)
|
||||||
},
|
},
|
||||||
@@ -557,6 +590,20 @@ export default {
|
|||||||
this.showSplitForm = false
|
this.showSplitForm = false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
handleZincItemClick(row) {
|
||||||
|
this.splitForm = {
|
||||||
|
...this.splitForm,
|
||||||
|
team: row.shiftNo,
|
||||||
|
// enterCoilNo: row.enterCoilNo,
|
||||||
|
productionStartTime: row.createTime,
|
||||||
|
productionEndTime: row.endTime,
|
||||||
|
itemType: 'product',
|
||||||
|
materialType: '成品',
|
||||||
|
length: row.exitLength,
|
||||||
|
netWeight: row.exitNetWeight,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
// 编辑分条项
|
// 编辑分条项
|
||||||
async handleEditSplit(row) {
|
async handleEditSplit(row) {
|
||||||
this.showSplitForm = true
|
this.showSplitForm = true
|
||||||
|
|||||||
@@ -301,9 +301,7 @@ export default {
|
|||||||
computedWidth: parseFloat(width),
|
computedWidth: parseFloat(width),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// this.loading = false
|
|
||||||
this.getLossList()
|
this.getLossList()
|
||||||
// this.loading = false
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async getLossList() {
|
async getLossList() {
|
||||||
|
|||||||
Reference in New Issue
Block a user