半成品盘点
This commit is contained in:
@@ -61,7 +61,7 @@
|
|||||||
<div class="search-item_3">
|
<div class="search-item_3">
|
||||||
<button class="button button--primary" @click="_checkGetDtlAll">查询</button>
|
<button class="button button--primary" @click="_checkGetDtlAll">查询</button>
|
||||||
<button class="button button--primary" :disabled="disabled1" :class="{'button--defalut': pkId === '' || value2 === ''}" @click="_checkSendTask">下发</button>
|
<button class="button button--primary" :disabled="disabled1" :class="{'button--defalut': pkId === '' || value2 === ''}" @click="_checkSendTask">下发</button>
|
||||||
<button class="button button--primary" :disabled="disabled2" :class="{'button--defalut': dataList.length === 0}" @click="_checkConfirm">盘点确认</button>
|
<button class="button button--primary" :disabled="disabled2" :class="{'button--defalut': dataList.length === 0 || flag}" @click="_checkConfirm">盘点确认</button>
|
||||||
<button class="button button--primary" :disabled="disabled3" :class="{'button--defalut': pkId === ''}" @click="_checkConfirmOffer">实盘为准</button>
|
<button class="button button--primary" :disabled="disabled3" :class="{'button--defalut': pkId === ''}" @click="_checkConfirmOffer">实盘为准</button>
|
||||||
<button class="button button--primary" :disabled="disabled4" :class="{'button--defalut': pkId === ''}" @click="_checkConfirmFinance">账务为准</button>
|
<button class="button button--primary" :disabled="disabled4" :class="{'button--defalut': pkId === ''}" @click="_checkConfirmFinance">账务为准</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
<th>物料规格</th>
|
<th>物料规格</th>
|
||||||
<th>数量</th>
|
<th>数量</th>
|
||||||
<th>重量(kg)</th>
|
<th>重量(kg)</th>
|
||||||
<th>盘点数量</th>
|
<th>盘点重量</th>
|
||||||
<th>是否异常</th>
|
<th>是否异常</th>
|
||||||
<th>盘点状态</th>
|
<th>盘点状态</th>
|
||||||
<th>盘点站台</th>
|
<th>盘点站台</th>
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
<td>{{e.material_spec}}</td>
|
<td>{{e.material_spec}}</td>
|
||||||
<td>{{e.qty | numeric(3)}}</td>
|
<td>{{e.qty | numeric(3)}}</td>
|
||||||
<td>{{e.base_qty | numeric(3)}}</td>
|
<td>{{e.base_qty | numeric(3)}}</td>
|
||||||
<td><input type="number" v-model="e.fac_qty"></td>
|
<td><input type="number" class="input" v-model="e.fac_qty"></td>
|
||||||
<td>{{ ['正常', '盘亏', '盘盈'][Number(e.check_resultI)] }}</td>
|
<td>{{ ['正常', '盘亏', '盘盈'][Number(e.check_resultI)] }}</td>
|
||||||
<td v-if="e.status === '01'">生成</td>
|
<td v-if="e.status === '01'">生成</td>
|
||||||
<td v-if="e.status === '04'">盘点中</td>
|
<td v-if="e.status === '04'">盘点中</td>
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
<td v-if="e.status === '07'">异常处理完成</td>
|
<td v-if="e.status === '07'">异常处理完成</td>
|
||||||
<td v-if="e.status === '99'">确认完成</td>
|
<td v-if="e.status === '99'">确认完成</td>
|
||||||
<td>{{ e.checkpoint_id }}</td>
|
<td>{{ e.checkpoint_id }}</td>
|
||||||
<td>{{ e.is_down }}</td>
|
<td>{{ ['未生成', '出库中', '回库中'][Number(e.is_down)] }}</td>
|
||||||
<td>{{e.check_code}}</td>
|
<td>{{e.check_code}}</td>
|
||||||
<td v-if="e.check_type === '31'">计划盘点</td>
|
<td v-if="e.check_type === '31'">计划盘点</td>
|
||||||
<td v-if="e.check_type === '32'">临时盘点</td>
|
<td v-if="e.check_type === '32'">临时盘点</td>
|
||||||
@@ -147,6 +147,19 @@ export default {
|
|||||||
disabled4: false
|
disabled4: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
flag () {
|
||||||
|
let flag = false
|
||||||
|
if (this.dataList.length) {
|
||||||
|
this.dataList.map(el => {
|
||||||
|
if (el.fac_qty === '' || Number(el.fac_qty) < 0) {
|
||||||
|
flag = true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return flag
|
||||||
|
}
|
||||||
|
},
|
||||||
created () {
|
created () {
|
||||||
this._checkGetBcpStor()
|
this._checkGetBcpStor()
|
||||||
this._checkGetDtlAll()
|
this._checkGetDtlAll()
|
||||||
@@ -162,6 +175,9 @@ export default {
|
|||||||
async _checkGetDtlAll () {
|
async _checkGetDtlAll () {
|
||||||
let res = await checkGetDtlAll(this.value1, this.date !== null ? dateTimeFtt(this.date[0]) : '', this.date !== null ? dateTimeFtt(this.date[1]) : '', this.material_code, this.storagevehicle_code, this.struct_code)
|
let res = await checkGetDtlAll(this.value1, this.date !== null ? dateTimeFtt(this.date[0]) : '', this.date !== null ? dateTimeFtt(this.date[1]) : '', this.material_code, this.storagevehicle_code, this.struct_code)
|
||||||
this.dataList = [...res.data]
|
this.dataList = [...res.data]
|
||||||
|
this.dataList.map(el => {
|
||||||
|
this.$set(el, 'fac_qty', '')
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 盘点位下拉框
|
// 盘点位下拉框
|
||||||
async _checkGetPoint () {
|
async _checkGetPoint () {
|
||||||
@@ -191,13 +207,7 @@ export default {
|
|||||||
// 盘点确认
|
// 盘点确认
|
||||||
async _checkConfirm () {
|
async _checkConfirm () {
|
||||||
this.disabled2 = true
|
this.disabled2 = true
|
||||||
let flag = false
|
if (this.flag || this.dataList.length === 0) {
|
||||||
this.dataList.map(el => {
|
|
||||||
if (el.fac_qty === '' || Number(el.fac_qty) < 0) {
|
|
||||||
flag = true
|
|
||||||
}
|
|
||||||
})
|
|
||||||
if (flag) {
|
|
||||||
this.disabled2 = false
|
this.disabled2 = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user