业务单据功能提交

pro
郑明梁 2 years ago
parent adc4ec982d
commit 0960540330

@ -146,4 +146,12 @@ export function getDetailList(params) {
});
}
export function filterSupList(data) {
return request({
url: "/purchase/order/filterSupList",
method: 'post',
data: data
})
}

@ -98,6 +98,7 @@
</el-tag>
</template>
</el-table-column>
<el-table-column label="备注" prop="remark"></el-table-column>
<el-table-column label="创建时间" prop="createTime"></el-table-column>
<el-table-column label="操作" width="120px">
<template slot-scope="scope">

@ -25,7 +25,7 @@
</el-col>
<el-col :span="6">
<el-form-item label="分类编码:" class="query-form-item">
<el-input v-model="listQuery.flbm" style="width: 90%" placeholder="请输入分类编码"
<el-input v-model="listQuery.mainId" style="width: 90%" placeholder="请输入三方物资分类"
clearable="true"></el-input>
</el-form-item>
</el-col>

@ -127,7 +127,8 @@
<el-row type="flex" justify="end">
<el-button-group style="display: flex">
<el-button-group style="display: flex;margin-bottom: 15px; margin-right: 50px">
<el-button type="primary" @click.native.stop="selectProductFunction()" :loading="loading">产品录入</el-button>
<el-button type="primary" @click.native.stop="selectProductFunction()" :loading="loading">产品录入
</el-button>
<!-- <el-button type="primary" :loading="loading" @click.native.stop="selectApply()">选入采购单</el-button>-->
</el-button-group>
@ -154,7 +155,21 @@
</el-table-column>
<el-table-column label="注册/备案号" prop="zczbhhzbapzbh"></el-table-column>
<el-table-column label="生产厂家" prop="manufactory"></el-table-column>
<el-table-column label="供应商" prop="supName"></el-table-column>
<el-table-column label="供应商" prop="supName">
<template slot-scope="scope">
<el-select size="mini"
@change='tableCountChange(scope.row)'
v-model="scope.row.supName" clearable
:disabled="scope.row.index !== selectedIndex"
placeholder="请选择">
<el-option v-for="item in suppliers"
:key="item.erpId"
:label="item.name"
:value="item.name">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="操作" width="120">
<template slot-scope="scope">
<el-button type="text" size="small" :disabled="scope.row.index === selectedIndex" @click.stop="true"
@ -214,7 +229,8 @@ import {
listOrderDetail,
addOrderId,
selectOrderDetail,
updateDetail
updateDetail,
filterSupList
} from "@/api/purchase/purOrder";
import {filterSubByInv} from "@/api/system/invSubWarehouse";
import SelectPlanListDialog from "@/views/purchase/purPlan/selectPlanListDialog";
@ -267,6 +283,7 @@ export default {
formVisible: false,
deleteLoading: false,
orderNo: null,
suppliers: [],
statusMap: {
1: "草稿",
2: "未审核",
@ -422,6 +439,13 @@ export default {
rowChange(val) {
this.currentRow = val;
this.selectedIndex = val.index;
filterSupList({productId:val.productId}) //
.then((response) => {
this.suppliers = response.data.list || [];
})
.catch(() => {
});
},
tableCountChange(row) {
if (this.$isNotBlank(row)) {

Loading…
Cancel
Save