jsk 报价
This commit is contained in:
parent
43f63e365e
commit
dfdef28161
|
|
@ -162,6 +162,28 @@ export function editGoodsInquiryApi(data) {
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 修改采购报价
|
||||||
|
export function editGoodsQuotationApi(data) {
|
||||||
|
return request({
|
||||||
|
url: '/smart-canteen/ims_quote/edit',
|
||||||
|
method: 'post',
|
||||||
|
headers: {
|
||||||
|
//"merchant-id":"378915229716713472",
|
||||||
|
},
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function getGoodsInquiryDetailInfoApi(data) {
|
||||||
|
return request({
|
||||||
|
url: '/smart-canteen/ims_quote/detail',
|
||||||
|
method: 'post',
|
||||||
|
headers: {
|
||||||
|
//"merchant-id":"378915229716713472",
|
||||||
|
},
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 删除采购询价
|
// 删除采购询价
|
||||||
export function delGoodsInquiryApi(data) {
|
export function delGoodsInquiryApi(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,10 @@
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item>
|
<el-descriptions-item>
|
||||||
<template slot="label">询价状态</template>
|
<template slot="label">询价状态</template>
|
||||||
<span v-if="baseInfo.inquiryState==1">未开始</span>
|
<span v-if="baseInfo.status==1">未开始</span>
|
||||||
<span v-if="baseInfo.inquiryState==2">进行中</span>
|
<span v-if="baseInfo.status==2">进行中</span>
|
||||||
<span v-if="baseInfo.inquiryState==3">已结束</span>
|
<span v-if="baseInfo.status==3">已结束</span>
|
||||||
<span v-if="baseInfo.inquiryState==4">已取消</span>
|
<span v-if="baseInfo.status==5">已取消</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item>
|
<el-descriptions-item>
|
||||||
<template slot="label">报价时间</template>
|
<template slot="label">报价时间</template>
|
||||||
|
|
@ -39,15 +39,15 @@
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item>
|
<el-descriptions-item>
|
||||||
<template slot="label">所属区域</template>
|
<template slot="label">所属区域</template>
|
||||||
{{ baseInfo.areaName }}
|
{{ baseInfo.area }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item>
|
<el-descriptions-item>
|
||||||
<template slot="label">询价供应商</template>
|
<template slot="label">询价供应商</template>
|
||||||
|
{{ baseInfo.supplierNames }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item>
|
<el-descriptions-item>
|
||||||
<template slot="label">备注</template>
|
<template slot="label">备注</template>
|
||||||
{{ baseInfo.remark }}
|
{{ baseInfo.inquiryNotes }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -59,7 +59,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%;height: 400px;overflow-y: auto;">
|
<div style="width: 100%;height: 400px;overflow-y: auto;">
|
||||||
<el-table v-loading="loading" :data="materialLis" ref="multipleTable" height="380" :row-key="(row)=>{return row.materialId}" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="materialList" ref="multipleTable" height="380" :row-key="(row)=>{return row.materialId}" @selection-change="handleSelectionChange">
|
||||||
<!-- <el-table-column type="selection" width="50" align="center" :reserve-selection="true" /> -->
|
<!-- <el-table-column type="selection" width="50" align="center" :reserve-selection="true" /> -->
|
||||||
<el-table-column label="序号" align="center" width="80" type="index" />
|
<el-table-column label="序号" align="center" width="80" type="index" />
|
||||||
<!-- <el-table-column label="图片" align="center" prop="" :show-overflow-tooltip="true" /> -->
|
<!-- <el-table-column label="图片" align="center" prop="" :show-overflow-tooltip="true" /> -->
|
||||||
|
|
@ -110,6 +110,7 @@ export default {
|
||||||
contractType:undefined,
|
contractType:undefined,
|
||||||
areaId:undefined,
|
areaId:undefined,
|
||||||
canteenId:undefined,
|
canteenId:undefined,
|
||||||
|
materialList:[],
|
||||||
dateRange:[],
|
dateRange:[],
|
||||||
},
|
},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
@ -191,6 +192,7 @@ export default {
|
||||||
//查询
|
//查询
|
||||||
getGoodsInquiryInfoApi(param).then((response) => {
|
getGoodsInquiryInfoApi(param).then((response) => {
|
||||||
this.baseInfo = response.data;
|
this.baseInfo = response.data;
|
||||||
|
console.log("this.baseInfo",this.baseInfo)
|
||||||
// this.$set(this.baseInfo,'dateRange',[this.baseInfo.startTime,this.baseInfo.endTime])
|
// this.$set(this.baseInfo,'dateRange',[this.baseInfo.startTime,this.baseInfo.endTime])
|
||||||
this.materialList = this.baseInfo.detailList;
|
this.materialList = this.baseInfo.detailList;
|
||||||
// supplierPageApi({ isPaging:1,areaIdList:[] }).then((response) => {
|
// supplierPageApi({ isPaging:1,areaIdList:[] }).then((response) => {
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,26 @@
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item>
|
<el-descriptions-item>
|
||||||
<template slot="label">备注</template>
|
<template slot="label">备注</template>
|
||||||
{{ baseInfo.remark }}
|
{{ baseInfo.inquiryNotes }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="所属区域" prop="areaId">
|
||||||
|
<el-cascader v-model="baseInfo.areaId"
|
||||||
|
:options="treeAreaOptions" :filterable="true" style="width: 240px" :show-all-levels="false"
|
||||||
|
:props="{
|
||||||
|
emitPath: false,// 若设置 false,则只返回该节点的值,只返回最后选择的id
|
||||||
|
checkStrictly: false,//来设置父子节点取消选中关联,从而达到选择任意一级选项的目的
|
||||||
|
value:'id',label:'label'
|
||||||
|
}" @change="handleAreaChange">
|
||||||
|
</el-cascader>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="邀请供应商" prop="supplierId">
|
||||||
|
<el-select v-model="baseInfo.supplierId" @change="handleSupplierChange" placeholder="请选择供应商" style="width: 100%;">
|
||||||
|
<el-option v-for="item in supplierOptions"
|
||||||
|
:key="item.supplierId"
|
||||||
|
:label="item.supplierName"
|
||||||
|
:value="item.supplierId"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -155,7 +174,7 @@
|
||||||
import { imgUpLoadTwo } from '@/api/system/upload'
|
import { imgUpLoadTwo } from '@/api/system/upload'
|
||||||
import { systemAreaTreeApi } from "@/api/base/stall";
|
import { systemAreaTreeApi } from "@/api/base/stall";
|
||||||
import { systemMaterialTreeApi,getMaterialListApi,supplierPageApi } from "@/api/foodManage/stockManage";
|
import { systemMaterialTreeApi,getMaterialListApi,supplierPageApi } from "@/api/foodManage/stockManage";
|
||||||
import { getGoodsInquiryInfoApi,addGoodsInquiryApi,editGoodsInquiryApi } from "@/api/foodManage/purchaseManage";
|
import { getGoodsInquiryInfoApi,addGoodsInquiryApi,editGoodsQuotationApi,getGoodsInquiryDetailInfoApi } from "@/api/foodManage/purchaseManage";
|
||||||
export default {
|
export default {
|
||||||
name: "SupplierQuotationEdit",
|
name: "SupplierQuotationEdit",
|
||||||
dicts: [],
|
dicts: [],
|
||||||
|
|
@ -293,6 +312,18 @@ export default {
|
||||||
this.supplierOptions = response.rows||[];
|
this.supplierOptions = response.rows||[];
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
handleSupplierChange(e){
|
||||||
|
let param = {
|
||||||
|
inquiryId:this.supplierQuotationData.inquiryId,
|
||||||
|
supplierId:this.baseInfo.supplierId
|
||||||
|
}
|
||||||
|
console.log("detailparam",param)
|
||||||
|
//查询
|
||||||
|
getGoodsInquiryDetailInfoApi(param).then((response) => {
|
||||||
|
console.log('response',response);
|
||||||
|
this.materialList = response.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
/** 查询货品类别下拉树结构 */
|
/** 查询货品类别下拉树结构 */
|
||||||
getMaterialTree() {
|
getMaterialTree() {
|
||||||
let param = {
|
let param = {
|
||||||
|
|
@ -409,7 +440,8 @@ export default {
|
||||||
this.$modal.msgError("请添加货品!");
|
this.$modal.msgError("请添加货品!");
|
||||||
}else{
|
}else{
|
||||||
this.loadingBtn=true;
|
this.loadingBtn=true;
|
||||||
editGoodsInquiryApi(param).then((response) => {
|
console.log("param",param)
|
||||||
|
editGoodsQuotationApi(param).then((response) => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.loadingBtn=false
|
this.loadingBtn=false
|
||||||
this.jumpList()
|
this.jumpList()
|
||||||
|
|
|
||||||
|
|
@ -56,13 +56,13 @@
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit" v-if="scope.row.orderStatus==1"
|
icon="el-icon-edit" v-if="scope.row.status==2"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
>报价</el-button>
|
>报价</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit" v-if="scope.row.orderStatus==2"
|
icon="el-icon-edit" v-if="scope.row.status>2"
|
||||||
@click="handleView(scope.row)"
|
@click="handleView(scope.row)"
|
||||||
>详情</el-button>
|
>详情</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue