|
|
|
|
@ -67,83 +67,27 @@ |
|
|
|
|
<el-table-column prop="model" label="规格/型号"> </el-table-column> |
|
|
|
|
<el-table-column prop="type" label="类别"> </el-table-column> |
|
|
|
|
<el-table-column prop="unit" label="单位"> </el-table-column> |
|
|
|
|
<el-table-column prop="applicationQuantity" label="需求数量"> |
|
|
|
|
<el-table-column prop="demandQuantity" label="需求数量"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="yirukushuliang" label="已入库数量"> |
|
|
|
|
<el-table-column prop="inboundQuantity" label="入库数量"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="inboundQuantity" label="入库数量" width="140"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-input-number |
|
|
|
|
size="mini" |
|
|
|
|
v-model="scope.row.inboundQuantity" |
|
|
|
|
:min="1" |
|
|
|
|
style="width: 100%" |
|
|
|
|
></el-input-number> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="amount" label="单价"> </el-table-column> |
|
|
|
|
|
|
|
|
|
<el-table-column prop="unitPrice" label="单价"> </el-table-column> |
|
|
|
|
<el-table-column prop="demandDepartmentName" label="需求部门"> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<div class="form-title">入库账目表格:</div> |
|
|
|
|
<el-table |
|
|
|
|
:data="sizeForm.inAccountsTableData" |
|
|
|
|
border |
|
|
|
|
style="width: 100%" |
|
|
|
|
> |
|
|
|
|
<el-table-column prop="date" label="当前库存"> |
|
|
|
|
<el-table-column prop="twoPutStorageNo" label="编码"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="materialName" label="名称"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-select |
|
|
|
|
v-if="sizeForm.radio == 2" |
|
|
|
|
v-model="sizeForm.type" |
|
|
|
|
placeholder="请选择" |
|
|
|
|
style="width: 100%" |
|
|
|
|
:disabled="inDialogType != 'add'" |
|
|
|
|
> |
|
|
|
|
<el-option label="办公室物资" value="1"></el-option> |
|
|
|
|
<el-option label="其他物资" value="2"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
<span v-else>{{ scope.row.materialName }}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="model" label="规格"> </el-table-column> |
|
|
|
|
<el-table-column prop="type" label="类别"> </el-table-column> |
|
|
|
|
<el-table-column prop="unit" label="单位"> </el-table-column> |
|
|
|
|
<el-table-column prop="applicationQuantity" label="数量"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="inboundQuantity" label="单价"> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="date" label="入库信息"> |
|
|
|
|
<el-table-column prop="amount" label="数量"> </el-table-column> |
|
|
|
|
<el-table-column prop="department" label="单价"> </el-table-column> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="date" label="入库后库存"> |
|
|
|
|
<el-table-column prop="twoPutStorageNo0" label="数量"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="twoPutStorageNo1" label="单价"> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="date" label="入库信息"> |
|
|
|
|
<el-table-column prop="twoPutStorageNo2" label="入库人"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="twoPutStorageNo3" label="入库时间"> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
</el-form> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button @click="handleCloseDetail()">取 消</el-button> |
|
|
|
|
<el-button type="primary" @click="sumbit()">确 定</el-button> |
|
|
|
|
</span> |
|
|
|
|
<template #footer> |
|
|
|
|
<span class="dialog-footer"> |
|
|
|
|
<el-button @click="handleCloseDetail()">取 消</el-button> |
|
|
|
|
<el-button type="primary" @click="sumbit()">确 定</el-button> |
|
|
|
|
</span> |
|
|
|
|
</template> |
|
|
|
|
</el-dialog> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { getDetails } from "@/api/secondOrder/inbound"; |
|
|
|
|
import { getDetails, submit } from "@/api/secondOrder/inbound"; |
|
|
|
|
export default { |
|
|
|
|
props: { |
|
|
|
|
repairVisible: { |
|
|
|
|
@ -176,7 +120,6 @@ export default { |
|
|
|
|
submitName: "", //填报人 |
|
|
|
|
waNmae: "", //仓库名称 |
|
|
|
|
argument: "", //事由 |
|
|
|
|
inAccountsTableData: [], //总计 |
|
|
|
|
inTableData: [], |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
@ -201,7 +144,6 @@ export default { |
|
|
|
|
methods: { |
|
|
|
|
inInit() { |
|
|
|
|
getDetails({ twoPutStorageId: this.inDialogData.id }).then((res) => { |
|
|
|
|
console.log(9898989, res.data.result); |
|
|
|
|
this.sizeForm = res.data.result; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
@ -225,11 +167,21 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 提交 |
|
|
|
|
sumbit() { |
|
|
|
|
this.$message({ |
|
|
|
|
type: "success", |
|
|
|
|
message: "提交成功", |
|
|
|
|
let query = { |
|
|
|
|
...this.sizeForm, |
|
|
|
|
userInfoVO: { |
|
|
|
|
userId: "87", |
|
|
|
|
name: "张迪", |
|
|
|
|
department:'部门一', |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
submit(query).then((res) => { |
|
|
|
|
this.$message({ |
|
|
|
|
type: "success", |
|
|
|
|
message: "提交成功", |
|
|
|
|
}); |
|
|
|
|
this.handleCloseDetail(this.sizeForm.inTableData); |
|
|
|
|
}); |
|
|
|
|
this.handleCloseDetail(this.sizeForm.inTableData); |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
|