|
|
|
@ -51,18 +51,18 @@
|
|
|
|
|
<el-button size="mini" type="info" @click="completeReturnMaterials()" v-if="(!$route.query || $route.query.id==='2')"
|
|
|
|
|
:disabled="!form.planDetailCode">完成退料
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button size="mini" type="primary" v-if="($route.query && $route.query.id) !== '2'"
|
|
|
|
|
<el-button size="mini" type="primary" v-if="($route.query && $route.query.id) === '1'"
|
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
|
@click="getMaterials('1')">
|
|
|
|
|
领柜体
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button size="mini" type="danger" v-if="($route.query && $route.query.id) !== '2'"
|
|
|
|
|
<el-button size="mini" type="danger" v-if="($route.query && $route.query.id) === '1'"
|
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
|
@click="print()">
|
|
|
|
|
条码
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<el-button size="mini" type="info" v-if="($route.query && $route.query.id) !== '2'"
|
|
|
|
|
<el-button size="mini" type="info" v-if="($route.query && $route.query.id) === '1'"
|
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
|
@click="printInternalBarcode()">
|
|
|
|
|
对内条码
|
|
|
|
@ -72,14 +72,24 @@
|
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
|
@click="handleBindBarcode">绑定
|
|
|
|
|
</el-button-->
|
|
|
|
|
<el-button size="mini" v-if="($route.query && $route.query.id) !== '2'" type="warning"
|
|
|
|
|
<el-button size="mini" v-if="($route.query && $route.query.id) === '1'" type="warning"
|
|
|
|
|
:disabled="!form.planDetailCode" @click="handleRawBack">返库
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-button size="mini" type="info" v-if="($route.query && $route.query.id) === '3'"
|
|
|
|
|
:disabled=" !form.planDetailCode"
|
|
|
|
|
@click="printProductBarcode()">
|
|
|
|
|
成品条码
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<el-button size="mini" :disabled="form.planDetailStatus === '已完成' || !form.planDetailCode" type="success"
|
|
|
|
|
@click="finish">完成
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<el-popover
|
|
|
|
|
v-if="($route.query && $route.query.id) !== '2'"
|
|
|
|
|
v-if="($route.query && $route.query.id) === '1'"
|
|
|
|
|
v-model="assignModel"
|
|
|
|
|
placement="top"
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
@ -282,8 +292,7 @@
|
|
|
|
|
|
|
|
|
|
<div class="bottom">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-button type="primary">首页</el-button>
|
|
|
|
|
<el-button type="success" @click="continueRawInstock">继续调度入库</el-button>
|
|
|
|
|
<el-button type="success" @click="continueRawInstock" v-if="($route.query && $route.query.id) === '1'">继续调度入库</el-button>
|
|
|
|
|
<el-button type="danger" @click="logout">退出</el-button>
|
|
|
|
|
</el-row>
|
|
|
|
|
</div>
|
|
|
|
@ -579,7 +588,8 @@ export default {
|
|
|
|
|
loginStationInfo: {},
|
|
|
|
|
PROCESS_TYPE: {
|
|
|
|
|
FIFTH_SPLIT: '1',
|
|
|
|
|
FIFTH_ASSEMBLE: '2'
|
|
|
|
|
FIFTH_ASSEMBLE: '2',
|
|
|
|
|
SELF_CHECK:'3',
|
|
|
|
|
},
|
|
|
|
|
stationData: [
|
|
|
|
|
{
|
|
|
|
@ -668,6 +678,11 @@ export default {
|
|
|
|
|
thisTitle: "查看SOP附件",
|
|
|
|
|
//预览文件数据列表
|
|
|
|
|
fileListData: [],
|
|
|
|
|
BARCODE_TYPE: {
|
|
|
|
|
RAW: '1',//原材料
|
|
|
|
|
PRODUCT: '3',//成品
|
|
|
|
|
BIND_BARCODE: '4',//配对码
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async mounted() {
|
|
|
|
@ -912,6 +927,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.form = data.data || {}
|
|
|
|
|
this.form.materialId = val.materialId
|
|
|
|
|
this.form.materialBomId = val.materialBomId
|
|
|
|
|
this.form.materialCode = val.materialCode
|
|
|
|
|
this.form.materialName = val.materialName
|
|
|
|
|
this.form.materialSpec = val.materialSpec;
|
|
|
|
@ -949,6 +965,7 @@ export default {
|
|
|
|
|
const {data} = await getNewestProductPlanDetail({planId: val.planId})
|
|
|
|
|
this.form = data || {}
|
|
|
|
|
this.form.materialId = val.materialId
|
|
|
|
|
this.form.materialBomId = val.materialBomId
|
|
|
|
|
this.form.materialCode = val.materialCode
|
|
|
|
|
this.form.materialName = val.materialName
|
|
|
|
|
this.form.materialSpec = val.materialSpec
|
|
|
|
@ -1316,8 +1333,7 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
async finish() {
|
|
|
|
|
let processType = this.$route.query && this.$route.query.id && this.$route.query.id === '2'
|
|
|
|
|
? this.PROCESS_TYPE.FIFTH_ASSEMBLE : this.PROCESS_TYPE.FIFTH_SPLIT;
|
|
|
|
|
let processType = this.$route.query.id;
|
|
|
|
|
|
|
|
|
|
this.$confirm('确认明细完成?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
@ -1364,6 +1380,8 @@ export default {
|
|
|
|
|
dispatchCode: this.form?.dispatchCode,
|
|
|
|
|
planDetailCode: this.form?.planDetailCode,
|
|
|
|
|
saleOrderId: this.form?.saleOrderId,
|
|
|
|
|
productId: this.form?.materialId,
|
|
|
|
|
materialBomId: this.form?.materialBomId,
|
|
|
|
|
maxPlanAmount: this.maxPlanAmount,
|
|
|
|
|
returnFlag: returnFlag,
|
|
|
|
|
applyReason: '',
|
|
|
|
@ -1407,6 +1425,11 @@ export default {
|
|
|
|
|
this.printModel = true
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
printProductBarcode(){
|
|
|
|
|
this.PrintData = this.form;
|
|
|
|
|
this.PrintData.barcodeType = this.BARCODE_TYPE.PRODUCT
|
|
|
|
|
this.printModel = true
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 表单重置
|
|
|
|
|
resetBindBarcode() {
|
|
|
|
|