领料出库前端修改
This commit is contained in:
parent
33d1358071
commit
956cfee621
|
|
@ -84,6 +84,7 @@
|
|||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
v-if="scope.row.taskStatus!=35"
|
||||
@click="handleOut(scope.row)"
|
||||
>出库</el-button>
|
||||
</template>
|
||||
|
|
@ -134,12 +135,12 @@
|
|||
<el-button
|
||||
size="mini"
|
||||
@click="codeOut(scope.row)"
|
||||
v-if="scope.row.manageType==0"
|
||||
v-if="scope.row.manageType==0&&scope.row.outNum!=0"
|
||||
>编码出库</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
v-if="scope.row.manageType==1"
|
||||
v-if="scope.row.manageType==1&&scope.row.outNum!=0"
|
||||
@click="numOut(scope.row)"
|
||||
>数量出库</el-button>
|
||||
</template>
|
||||
|
|
@ -190,7 +191,7 @@
|
|||
</el-col>
|
||||
</el-row>
|
||||
<el-table v-loading="loading" :data="outCodeList" height="500" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column type="selection" width="55" align="center" :selectable="selectable"/>
|
||||
<el-table-column label="序号" align="center" type="index" />
|
||||
<el-table-column label="类型名称" align="center" prop="typeName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="规格型号" align="center" prop="typeModelName" :show-overflow-tooltip="true" />
|
||||
|
|
@ -234,7 +235,7 @@
|
|||
<el-table-column label="序号" align="center" type="index" />
|
||||
<el-table-column label="设备类型" align="center" prop="typeName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="规格型号" align="center" prop="typeModelName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="库存数量" align="center" prop="" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="库存数量" align="center" prop="num" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="待出库数量" align="center" prop="outNum" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="已出库数量" align="center" prop="alNum" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="出库数量" align="center" prop="inputNum">
|
||||
|
|
@ -487,6 +488,14 @@
|
|||
handleSelectionChange(selection) {
|
||||
this.maCodeList = selection.map(item => item.maId)
|
||||
},
|
||||
selectable(row){
|
||||
console.log(row)
|
||||
if(row.maStatus=='在库'){
|
||||
return true
|
||||
}else{
|
||||
return false
|
||||
}
|
||||
},
|
||||
//编码出库保存
|
||||
saveCodeOut(){
|
||||
// console.log(this.outObj)
|
||||
|
|
@ -499,7 +508,7 @@
|
|||
carCode:this.codeOutForm.carCode,
|
||||
typeId:this.outObj.typeId,
|
||||
parentId:this.outObj.parentId,
|
||||
outNum:this.outObj.outNum,
|
||||
outNum:1,
|
||||
taskId:this.outObj.taskId,
|
||||
}
|
||||
return obj
|
||||
|
|
|
|||
Loading…
Reference in New Issue