代码更新
This commit is contained in:
parent
ffa2fb6790
commit
b8321b332f
|
|
@ -31,8 +31,8 @@
|
||||||
<span class="display-title-text">料号</span>
|
<span class="display-title-text">料号</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="display-form-div">
|
<div class="display-form-div">
|
||||||
<el-input v-model="workFormEntity.goodsId" size="default" v-on:keyup.prevent.enter="getCurrentWorkInfo()"
|
<el-input v-model="workFormEntity.goodsId" size="default"
|
||||||
clearable></el-input>
|
v-on:keyup.prevent.enter="getCurrentWorkInfo()" clearable></el-input>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex; flex-direction: column;">
|
<div style="display: flex; flex-direction: column;">
|
||||||
|
|
@ -45,7 +45,8 @@
|
||||||
controls-position="right" :min="0" width="200px" />
|
controls-position="right" :min="0" width="200px" />
|
||||||
</div>
|
</div>
|
||||||
<div class="display-form-div-right">
|
<div class="display-form-div-right">
|
||||||
<span class="display-form-text-right">{{ workFormEntity.goodsUnit }}</span>
|
<span class="display-form-text-right">{{ workFormEntity.goodsUnit
|
||||||
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -59,7 +60,8 @@
|
||||||
controls-position="right" :min="0" />
|
controls-position="right" :min="0" />
|
||||||
</div>
|
</div>
|
||||||
<div class="display-form-div-right">
|
<div class="display-form-div-right">
|
||||||
<span class="display-form-text-right">{{ workFormEntity.goodsUnit }}</span>
|
<span class="display-form-text-right">{{ workFormEntity.goodsUnit
|
||||||
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -71,7 +73,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
style="display: inline-flex; justify-content: center; width: 700px; margin: 5px; padding: 5px; background-color: #00AAE8;">
|
style="display: inline-flex; justify-content: center; width: 700px; margin: 5px; padding: 5px; background-color: #00AAE8;">
|
||||||
<span style="align-self: center; font-weight: bold;font-size: 25px;">{{ workFormEntity.remark }}</span>
|
<span style="align-self: center; font-weight: bold;font-size: 25px;">{{
|
||||||
|
workFormEntity.remark }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex; margin-top: 5px; margin-top: 15px">
|
<div style="display: flex; margin-top: 5px; margin-top: 15px">
|
||||||
|
|
@ -98,7 +101,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
style="display: inline-flex; justify-content: center; width: 80px; margin: 5px; padding: 5px; background-color: #CCCCCC;">
|
style="display: inline-flex; justify-content: center; width: 80px; margin: 5px; padding: 5px; background-color: #CCCCCC;">
|
||||||
<span style="align-self: center; font-weight: bold;font-size: 20px;">{{ workFormEntity.goodsUnit }}</span>
|
<span style="align-self: center; font-weight: bold;font-size: 20px;">{{
|
||||||
|
workFormEntity.goodsUnit }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -118,7 +122,7 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
import { getWorkByStand } from '@/api/task'
|
import { getWorkByStandAndGoods } from '@/api/task'
|
||||||
import { taskStatusFormatter, dueFormatter, timeFormatter } from '@/utils/formatter.js'
|
import { taskStatusFormatter, dueFormatter, timeFormatter } from '@/utils/formatter.js'
|
||||||
import { reactive, ref } from 'vue'
|
import { reactive, ref } from 'vue'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
|
|
@ -163,40 +167,57 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getCurrentWorkInfo() {
|
getCurrentWorkInfo() {
|
||||||
this.workFormEntity = {
|
// this.workFormEntity = {
|
||||||
goodsId: 'text0001',
|
// goodsId: 'text0001',
|
||||||
goodsUnit: 'PC',
|
// goodsUnit: 'PC',
|
||||||
planPickNum: 10,
|
// planPickNum: 10,
|
||||||
actualDifference: 0,
|
// actualDifference: 0,
|
||||||
remark: '装盒子',
|
// remark: '装盒子',
|
||||||
finishedRows: 800,
|
// finishedRows: 800,
|
||||||
totalRows: 2500,
|
// totalRows: 2500,
|
||||||
finishedCounts: 2500,
|
// finishedCounts: 2500,
|
||||||
totalCounts: 6000,
|
// totalCounts: 6000,
|
||||||
tip: ''
|
// tip: ''
|
||||||
|
// }
|
||||||
|
const request = {
|
||||||
|
standId: this.standId,
|
||||||
|
goodsId: this.workFormEntity.goodsId
|
||||||
}
|
}
|
||||||
// const request = {
|
getWorkByStandAndGoods(request).then(res => {
|
||||||
// standId: this.standId,
|
const response = res.data
|
||||||
// goodsId: this.workFormEntity.goodsId
|
if (response.code == 0) {
|
||||||
// }
|
this.workFormEntity.goodsId = response.returnData.goodsId
|
||||||
// getWorkByStandAndGoods(request).then(res => {
|
this.workFormEntity.goodsUnit = response.returnData.goodsUnit
|
||||||
// const response = res.data
|
this.workFormEntity.planPickNum = response.returnData.planPickNum
|
||||||
// if (response.code == 0) {
|
this.workFormEntity.actualDifference = response.returnData.actualDifference
|
||||||
// this.workFormEntity.goodsId = response.returnData.goodsId
|
this.workFormEntity.remark = response.returnData.remark
|
||||||
// this.workFormEntity.goodsUnit = response.returnData.goodsUnit
|
this.workFormEntity.finishedRows = response.returnData.finishedRows
|
||||||
// this.workFormEntity.planPickNum = response.returnData.planPickNum
|
this.workFormEntity.totalRows = response.returnData.totalRows
|
||||||
// this.workFormEntity.actualDifference = response.returnData.actualDifference
|
this.workFormEntity.finishedCounts = response.returnData.finishedCounts
|
||||||
// this.workFormEntity.remark = response.returnData.remark
|
this.workFormEntity.totalCounts = response.returnData.totalCounts
|
||||||
// this.workFormEntity.finishedRows = response.returnData.finishedRows
|
this.workFormEntity.tip = response.returnData.tip
|
||||||
// this.workFormEntity.totalRows = response.returnData.totalRows
|
} else {
|
||||||
// this.workFormEntity.finishedCounts = response.returnData.finishedCounts
|
this.resetForms()
|
||||||
// this.workFormEntity.totalCounts = response.returnData.totalCounts
|
}
|
||||||
// this.workFormEntity.tip = response.returnData.tip
|
}).catch(err => {
|
||||||
// }
|
console.log(err)
|
||||||
// }).catch(err => {
|
this.resetForms()
|
||||||
// console.log(err)
|
ElMessage.error('查询工作信息错误')
|
||||||
// ElMessage.error('查询工作信息错误')
|
})
|
||||||
// })
|
},
|
||||||
|
resetForms() {
|
||||||
|
this.workFormEntity = reactive({
|
||||||
|
goodsId: '',
|
||||||
|
goodsUnit: '',
|
||||||
|
planPickNum: 0,
|
||||||
|
actualDifference: 0,
|
||||||
|
remark: '',
|
||||||
|
finishedRows: 0,
|
||||||
|
totalRows: 0,
|
||||||
|
finishedCounts: 0,
|
||||||
|
totalCounts: 0,
|
||||||
|
tip: ''
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 任务状态中文化
|
// 任务状态中文化
|
||||||
taskStatusFormat: (row, column, cellValue, index) => {
|
taskStatusFormat: (row, column, cellValue, index) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user