作者 Win10-2023FDZSZ\Administrator

询价页面字段调整

<template>
<div>
<!-- table区域-begin -->
<div>
<a-table
... ... @@ -21,7 +20,13 @@
</template>
<template slot="imgSlot" slot-scope="text,record">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
<img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
<img
v-else
:src="getImgView(text)"
:preview="record.id"
height="25px"
alt=""
style="max-width:80px;font-size: 12px;font-style: italic;"/>
</template>
<template slot="fileSlot" slot-scope="text">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
... ... @@ -40,8 +45,8 @@
<a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" />
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
<a>删除</a>
</a-popconfirm>
<!-- <a-divider type="vertical" />
<a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
... ... @@ -66,7 +71,7 @@
</template>
<script>
import { getAction,deleteAction } from '@api/manage'
import { getAction, deleteAction } from '@api/manage'
import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
... ... @@ -74,14 +79,14 @@
export default {
name: 'TblTradeInquiryInfoList',
mixins:[JeecgListMixin, mixinDevice],
mixins: [JeecgListMixin, mixinDevice],
components: {
TblTradeInquiryInfoModal
},
props: {
record: {
type: Object,
default: null,
default: null
}
},
data () {
... ... @@ -93,108 +98,103 @@
{
title: '#',
dataIndex: '',
key:'rowIndex',
width:60,
align:"center",
customRender:function (t,r,index) {
return parseInt(index)+1;
key: 'rowIndex',
width: 60,
align: 'center',
customRender: function (t, r, index) {
return parseInt(index) + 1
}
},
{
title:'供货商名称',
align:"center",
title: '供货商名称',
align: 'center',
dataIndex: 'ghsmc'
},
// {
// title:'电话',
// align:"center",
// dataIndex: 'tel'
// },
// {
// title:'网络链接地址',
// align:"center",
// dataIndex: 'wldz'
// },
// {
// title:'微信号',
// align:"center",
// dataIndex: 'wxh'
// },
{
title:'电话',
align:"center",
dataIndex: 'tel'
},
{
title:'网络链接地址',
align:"center",
dataIndex: 'wldz'
title: '专票单价',
align: 'center',
dataIndex: 'zpdj'
},
{
title:'微信号',
align:"center",
dataIndex: 'wxh'
title: '专票税率(%)',
align: 'center',
dataIndex: 'zpsl'
},
{
title:'单价(元)',
align:"center",
dataIndex: 'dj'
title: '普票单价',
align: 'center',
dataIndex: 'ppdj'
},
{
title:'总价(元)',
align:"center",
dataIndex: 'zj'
title: '普票税率(%)',
align: 'center',
dataIndex: 'ppsl'
},
{
title:'票据',
align:"center",
dataIndex: 'piaoju'
title: '无票单价',
align: 'center',
dataIndex: 'wpdj'
},
{
title:'票据税额比例',
align:"center",
dataIndex: 'pjsebl'
title: '是否含运费',
align: 'center',
dataIndex: 'sfhyf'
},
{
title:'最小出货量',
align:"center",
dataIndex: 'zxchl'
title: '运费',
align: 'center',
dataIndex: 'yf'
},
{
title:'L/T(交货周期天)',
align:"center",
dataIndex: 'jhzqt'
},
{
title:'发货地址',
align:"center",
title: '发货地址',
align: 'center',
dataIndex: 'fhdz'
},
{
title:'单价是否含运费',
align:"center",
dataIndex: 'djsfhyf'
title: '最小出货量',
align: 'center',
dataIndex: 'zxchl'
},
{
title:'含运费单价',
align:"center",
dataIndex: 'hyfdj'
title: 'L/T(交货周期天)',
align: 'center',
dataIndex: 'jhzqt'
},
{
title:'价格评价',
align:"center",
title: '价格评价',
align: 'center',
dataIndex: 'jgpj'
},
{
title:'含税价格(元)',
align:"center",
dataIndex: 'hsjg'
},
{
title:'不含税价格(元)',
align:"center",
dataIndex: 'bhsjg'
},
{
title:'是否需要重新询价',
align:"center",
title: '是否需要重新询价',
align: 'center',
dataIndex: 'sfxycxxj',
customRender: (text,record)=>{
if(text == 'Y'){
customRender: (text, record) => {
if (text == 'Y') {
return '是'
}else if(text == 'N'){
} else if (text == 'N') {
return '否'
}
},
}
},
{
title:'原因/备注',
align:"center",
title: '原因/备注',
align: 'center',
dataIndex: 'bz'
},
// {
... ... @@ -205,34 +205,34 @@
{
title: '操作',
dataIndex: 'action',
align:"center",
fixed:"right",
width:147,
align: 'center',
fixed: 'right',
width: 147,
scopedSlots: { customRender: 'action' }
}
],
url: {
list: "/trade/tblTradeInquiryInfo/list",
delete: "/trade/tblTradeInquiryInfo/delete",
deleteBatch: "/trade/tblTradeInquiryInfo/deleteBatch",
exportXlsUrl: "/trade/tblTradeInquiryInfo/exportXls",
importExcelUrl: "trade/tblTradeInquiryInfo/importExcel",
list: '/trade/tblTradeInquiryInfo/list',
delete: '/trade/tblTradeInquiryInfo/delete',
deleteBatch: '/trade/tblTradeInquiryInfo/deleteBatch',
exportXlsUrl: '/trade/tblTradeInquiryInfo/exportXls',
importExcelUrl: 'trade/tblTradeInquiryInfo/importExcel'
},
dictOptions:{},
superFieldList:[],
dictOptions: {},
superFieldList: []
}
},
created() {
this.getSuperFieldList();
this.getSuperFieldList()
},
computed: {
importExcelUrl: function(){
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
},
importExcelUrl: function() {
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
}
},
methods: {
modalFormOk(){
modalFormOk() {
this.loadData(this.record)
},
// handleDelete(id){
... ... @@ -240,42 +240,42 @@
// },
handleDelete: function (id) {
if (!this.url.delete) {
this.$message.error("请设置url.delete属性!")
this.$message.error('请设置url.delete属性!')
return
}
var that = this;
var that = this
deleteAction(that.url.delete, { id: id }).then((res) => {
if (res.success) {
that.$message.success(res.message);
that.$message.success(res.message)
that.loadData(that.record)
} else {
that.$message.warning(res.message);
that.$message.warning(res.message)
}
});
})
},
initDictConfig(){
initDictConfig() {
},
getSuperFieldList(){
let fieldList=[];
fieldList.push({type:'string',value:'ghsmc',text:'供货商名称',dictCode:''})
fieldList.push({type:'string',value:'tel',text:'电话',dictCode:''})
fieldList.push({type:'string',value:'wldz',text:'网络链接地址',dictCode:''})
fieldList.push({type:'string',value:'wxh',text:'微信号',dictCode:''})
fieldList.push({type:'string',value:'dj',text:'单价(元)',dictCode:''})
fieldList.push({type:'string',value:'zj',text:'总价(元)',dictCode:''})
fieldList.push({type:'string',value:'piaoju',text:'票据',dictCode:''})
fieldList.push({type:'string',value:'pjsebl',text:'票据税额比例',dictCode:''})
fieldList.push({type:'string',value:'zxchl',text:'最小出货量',dictCode:''})
fieldList.push({type:'string',value:'lt',text:'L/T(交货周期天)',dictCode:''})
fieldList.push({type:'string',value:'fhdz',text:'发货地址',dictCode:''})
fieldList.push({type:'string',value:'djsfhyf',text:'单价是否含运费',dictCode:''})
fieldList.push({type:'string',value:'hyfdj',text:'含运费单价',dictCode:''})
fieldList.push({type:'string',value:'jgpj',text:'价格评价',dictCode:''})
fieldList.push({type:'string',value:'hsjg',text:'含税价格(元)',dictCode:''})
fieldList.push({type:'string',value:'bhsjg',text:'不含税价格(元)',dictCode:''})
fieldList.push({type:'string',value:'sfxycxxj',text:'是否需要重新询价',dictCode:''})
fieldList.push({type:'string',value:'bz',text:'原因/备注',dictCode:''})
fieldList.push({type:'string',value:'tradeId',text:'关联招标id',dictCode:''})
getSuperFieldList() {
let fieldList = []
fieldList.push({ type: 'string', value: 'ghsmc', text: '供货商名称', dictCode: '' })
fieldList.push({ type: 'string', value: 'tel', text: '电话', dictCode: '' })
fieldList.push({ type: 'string', value: 'wldz', text: '网络链接地址', dictCode: '' })
fieldList.push({ type: 'string', value: 'wxh', text: '微信号', dictCode: '' })
fieldList.push({ type: 'string', value: 'dj', text: '单价(元)', dictCode: '' })
fieldList.push({ type: 'string', value: 'zj', text: '总价(元)', dictCode: '' })
fieldList.push({ type: 'string', value: 'piaoju', text: '票据', dictCode: '' })
fieldList.push({ type: 'string', value: 'pjsebl', text: '票据税额比例', dictCode: '' })
fieldList.push({ type: 'string', value: 'zxchl', text: '最小出货量', dictCode: '' })
fieldList.push({ type: 'string', value: 'lt', text: 'L/T(交货周期天)', dictCode: '' })
fieldList.push({ type: 'string', value: 'fhdz', text: '发货地址', dictCode: '' })
fieldList.push({ type: 'string', value: 'djsfhyf', text: '单价是否含运费', dictCode: '' })
fieldList.push({ type: 'string', value: 'hyfdj', text: '含运费单价', dictCode: '' })
fieldList.push({ type: 'string', value: 'jgpj', text: '价格评价', dictCode: '' })
fieldList.push({ type: 'string', value: 'hsjg', text: '含税价格(元)', dictCode: '' })
fieldList.push({ type: 'string', value: 'bhsjg', text: '不含税价格(元)', dictCode: '' })
fieldList.push({ type: 'string', value: 'sfxycxxj', text: '是否需要重新询价', dictCode: '' })
fieldList.push({ type: 'string', value: 'bz', text: '原因/备注', dictCode: '' })
fieldList.push({ type: 'string', value: 'tradeId', text: '关联招标id', dictCode: '' })
this.superFieldList = fieldList
},
loadData(record) {
... ... @@ -290,7 +290,7 @@
}).finally(() => {
this.loading = false
})
},
}
},
watch: {
record: {
... ... @@ -301,9 +301,9 @@
}
}
}
},
}
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>
\ No newline at end of file
</style>
... ...
... ... @@ -31,7 +31,6 @@
</div>
<!-- 查询区域 end -->
<!-- table区域 begin -->
<div>
... ... @@ -77,7 +76,6 @@
</div>
</template>
<template slot="fileSlot" slot-scope="text">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
<a-button
... ... @@ -129,11 +127,11 @@
export default {
name: 'TblTradePriceInquiryList',
mixins: [JeecgListMixin,mixinDevice],
mixins: [JeecgListMixin, mixinDevice],
components: {
TblTradePriceInquiryModal,
TblTradeTenderInfoSubTable,
TblTradeInquiryInfoList,
TblTradeInquiryInfoList
},
data() {
return {
... ... @@ -148,60 +146,66 @@
customRender: (t, r, index) => parseInt(index) + 1
},
{
title: '优先等级',
align: 'center',
dataIndex: 'yxdj',
},
{
title: '询价标书文件号',
align: 'center',
dataIndex: 'xjbswjh',
dataIndex: 'xjbswjh'
},
{
title: '单号',
align: 'center',
dataIndex: 'danhao',
dataIndex: 'danhao'
},
{
title: '询价完成日期',
title: '项目类型',
align: 'center',
dataIndex: 'xjwcrq',
dataIndex: 'xmlx'
},
{
title: '责任人',
title: '送货地址',
align: 'center',
dataIndex: 'zrr',
dataIndex: 'shdz'
},
{
title: '计划完成日期',
title: '优先等级',
align: 'center',
dataIndex: 'jhwcrq',
dataIndex: 'yxdj'
},
{
title: '实际完成日期',
title: '询价完成日期',
align: 'center',
dataIndex: 'sjwcrq',
dataIndex: 'xjwcrq'
},
// {
// title: '计划完成日期',
// align: 'center',
// dataIndex: 'jhwcrq',
// },
{
title: '项目类型',
title: '实际完成日期',
align: 'center',
dataIndex: 'xmlx',
dataIndex: 'sjwcrq'
},
{
title: '送货地址',
title: '标的类型',
align: 'center',
dataIndex: 'shdz',
dataIndex: 'bdlx'
},
{
title: '询单状态',
title: '责任人',
align: 'center',
dataIndex: 'xdzt',
dataIndex: 'zrr'
},
{
title: '负责人',
title: '询单状态',
align: 'center',
dataIndex: 'fzr',
},
dataIndex: 'xdzt'
}
// {
// title: '负责人',
// align: 'center',
// dataIndex: 'fzr'
// }
// {
// title: '操作',
// dataIndex: 'action',
... ... @@ -219,13 +223,13 @@
delete: '/trade/tblTradePriceInquiry/delete',
deleteBatch: '/trade/tblTradePriceInquiry/deleteBatch',
exportXlsUrl: '/trade/tblTradePriceInquiry/exportXls',
importExcelUrl: '/trade/tblTradePriceInquiry/importExcel',
importExcelUrl: '/trade/tblTradePriceInquiry/importExcel'
},
superFieldList:[],
superFieldList: []
}
},
created() {
this.getSuperFieldList();
this.getSuperFieldList()
},
computed: {
importExcelUrl() {
... ... @@ -242,19 +246,19 @@
this.expandedRowKeys.push(record.id)
}
},
getSuperFieldList(){
let fieldList=[];
fieldList.push({type:'string',value:'yxdj',text:'优先等级',dictCode:''})
fieldList.push({type:'string',value:'xjbswjh',text:'询价标书文件号',dictCode:''})
fieldList.push({type:'string',value:'danhao',text:'单号',dictCode:''})
fieldList.push({type:'date',value:'xjwcrq',text:'询价完成日期'})
fieldList.push({type:'string',value:'zrr',text:'责任人',dictCode:''})
fieldList.push({type:'date',value:'jhwcrq',text:'计划完成日期'})
fieldList.push({type:'date',value:'sjwcrq',text:'实际完成日期'})
fieldList.push({type:'string',value:'xmlx',text:'项目类型',dictCode:''})
fieldList.push({type:'string',value:'shdz',text:'送货地址',dictCode:''})
fieldList.push({type:'string',value:'xdzt',text:'询单状态',dictCode:''})
fieldList.push({type:'string',value:'fzr',text:'负责人',dictCode:''})
getSuperFieldList() {
let fieldList = []
fieldList.push({ type: 'string', value: 'yxdj', text: '优先等级', dictCode: '' })
fieldList.push({ type: 'string', value: 'xjbswjh', text: '询价标书文件号', dictCode: '' })
fieldList.push({ type: 'string', value: 'danhao', text: '单号', dictCode: '' })
fieldList.push({ type: 'date', value: 'xjwcrq', text: '询价完成日期' })
fieldList.push({ type: 'string', value: 'zrr', text: '责任人', dictCode: '' })
fieldList.push({ type: 'date', value: 'jhwcrq', text: '计划完成日期' })
fieldList.push({ type: 'date', value: 'sjwcrq', text: '实际完成日期' })
fieldList.push({ type: 'string', value: 'xmlx', text: '项目类型', dictCode: '' })
fieldList.push({ type: 'string', value: 'shdz', text: '送货地址', dictCode: '' })
fieldList.push({ type: 'string', value: 'xdzt', text: '询单状态', dictCode: '' })
fieldList.push({ type: 'string', value: 'fzr', text: '负责人', dictCode: '' })
this.superFieldList = fieldList
}
}
... ... @@ -262,4 +266,4 @@
</script>
<style lang="less" scoped>
@import '~@assets/less/common.less';
</style>
\ No newline at end of file
</style>
... ...
... ... @@ -16,44 +16,44 @@
</a-col>
<a-col :span="6" >
<a-form-model-item label="物料编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wlbm">
<a-input v-model="model.wlbm" disabled></a-input>
<a-input v-model="model.wlbm" disabled></a-input>
</a-form-model-item>
</a-col>
</a-col>
<a-col :span="6" >
<a-form-model-item label="物料长描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wlbm">
<a-input v-model="model.tenderInfo.miaoshu" disabled></a-input>
<a-input v-model="model.tenderInfo.miaoshu" disabled></a-input>
</a-form-model-item>
</a-col>
</a-col>
<a-col :span="6" >
<a-form-model-item label="品牌" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wlbm">
<a-input v-model="model.tenderInfo.pinpai" disabled></a-input>
<a-input v-model="model.tenderInfo.pinpai" disabled></a-input>
</a-form-model-item>
</a-col>
</a-col>
<a-col :span="6" >
<a-form-model-item label="标的类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wlbm">
<a-input v-model="model.tenderInfo.bdlx" disabled></a-input>
<a-input v-model="model.tenderInfo.bdlx" disabled></a-input>
</a-form-model-item>
</a-col>
</a-col>
<a-col :span="6" >
<a-form-model-item label="优先等级" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wlbm">
<a-input v-model="model.tenderInfo.yxdj" disabled></a-input>
<a-input v-model="model.tenderInfo.yxdj" disabled></a-input>
</a-form-model-item>
</a-col>
</a-col>
<a-col :span="6" >
<a-form-model-item label="送货地址" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wlbm">
<a-input v-model="model.tenderInfo.shdz" disabled></a-input>
<a-input v-model="model.tenderInfo.shdz" disabled></a-input>
</a-form-model-item>
</a-col>
</a-col>
<a-col :span="6" >
<a-form-model-item label="询价计划完成日期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wlbm">
<a-input v-model="model.tenderInfo.xjjhwcsj" disabled></a-input>
<a-input v-model="model.tenderInfo.xjjhwcsj" disabled></a-input>
</a-form-model-item>
</a-col>
</a-col>
<a-col :span="6" >
<a-form-model-item label="需求数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wlbm">
<a-input v-model="model.tenderInfo.xqsl" disabled></a-input>
<a-input v-model="model.tenderInfo.xqsl" disabled></a-input>
</a-form-model-item>
</a-col>
</a-col>
<a-col :span="6" >
<a-form-model-item label="库存数据" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="kcsj">
<a-input v-model="model.kcsj" placeholder="请输入库存数据" ></a-input>
... ... @@ -127,7 +127,7 @@
</a-row>
</a-form-model>
</j-form-container>
<!-- 子表单区域 -->
<!-- 子表单区域 -->
<!-- <a-tabs v-model="activeKey" @change="handleChangeTabs">
<a-tab-pane tab="询价明细表" :key="refKeys[0]" :forceRender="true">
<j-vxe-table
... ... @@ -155,7 +155,7 @@
:rowNumber="true"
:rowSelection="false"
:toolbar="false"
/>
/>
</a-spin>
</template>
... ... @@ -164,7 +164,7 @@
import { getAction } from '@/api/manage'
import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js'
import { JVXETypes } from '@/components/jeecg/JVxeTable'
import { getRefPromise,VALIDATE_FAILED} from '@/components/jeecg/JVxeTable/utils/vxeUtils.js'
import { getRefPromise, VALIDATE_FAILED } from '@/components/jeecg/JVxeTable/utils/vxeUtils.js'
import { validateDuplicateValue } from '@/utils/util'
import JFormContainer from '@/components/jeecg/JFormContainer'
... ... @@ -172,27 +172,27 @@
name: 'TblTradeBidSubForm',
mixins: [JVxeTableModelMixin],
components: {
JFormContainer,
JFormContainer
},
data() {
return {
labelCol: {
xs: { span: 24 },
sm: { span: 8 },
sm: { span: 8 }
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 14 },
sm: { span: 14 }
},
model:{
tenderInfo:{}
model: {
tenderInfo: {}
},
// 新增时子表默认添加几行空数据
addDefaultRowNum: 1,
validatorRules: {
},
refKeys: ['tblTradeInquiryInfo', ],
tableKeys:['tblTradeInquiryInfo', ],
refKeys: ['tblTradeInquiryInfo' ],
tableKeys: ['tblTradeInquiryInfo' ],
activeKey: 'tblTradeInquiryInfo',
// 询价明细表
tblTradeInquiryInfoTable: {
... ... @@ -203,161 +203,161 @@
title: '供货商名称',
key: 'ghsmc',
type: JVXETypes.input,
disabled:true,
width:"200px",
disabled: true,
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '电话',
key: 'tel',
type: JVXETypes.input,
disabled:true,
width:"200px",
disabled: true,
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '网络链接地址',
key: 'wldz',
type: JVXETypes.input,
disabled:true,
width:"200px",
disabled: true,
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '微信号',
key: 'wxh',
type: JVXETypes.input,
disabled:true,
width:"200px",
disabled: true,
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '单价(元)',
key: 'dj',
type: JVXETypes.input,
disabled:true,
width:"200px",
disabled: true,
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '总价(元)',
key: 'zj',
type: JVXETypes.input,
disabled:true,
width:"200px",
disabled: true,
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '票据',
key: 'piaoju',
type: JVXETypes.input,
disabled:true,
width:"200px",
disabled: true,
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '票据税额比例',
key: 'pjsebl',
type: JVXETypes.input,
disabled:true,
width:"200px",
disabled: true,
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '最小出货量',
key: 'zxchl',
type: JVXETypes.input,
disabled:true,
width:"200px",
disabled: true,
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: 'L/T(交货周期天)',
key: 'jhzqt',
type: JVXETypes.input,
disabled:true,
width:"200px",
disabled: true,
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '发货地址',
key: 'fhdz',
type: JVXETypes.input,
disabled:true,
width:"200px",
disabled: true,
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '单价是否含运费',
key: 'djsfhyf',
type: JVXETypes.input,
disabled:true,
width:"200px",
disabled: true,
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '含运费单价',
key: 'hyfdj',
type: JVXETypes.input,
disabled:true,
width:"200px",
disabled: true,
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '价格评价',
key: 'jgpj',
type: JVXETypes.input,
width:"200px",
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '含税价格(元)',
key: 'hsjg',
type: JVXETypes.input,
width:"200px",
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '不含税价格(元)',
key: 'bhsjg',
type: JVXETypes.input,
width:"200px",
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '是否需要重新询价',
key: 'sfxycxxj',
type: JVXETypes.select,
options:[],
dictCode:"is_open",
width:"200px",
options: [],
dictCode: 'is_open',
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
defaultValue: ''
},
{
title: '原因/备注',
key: 'bz',
type: JVXETypes.input,
width:"200px",
width: '200px',
placeholder: '请输入${title}',
defaultValue:'',
},
defaultValue: ''
}
// {
// title: '关联招标id',
// key: 'tradeId',
... ... @@ -369,17 +369,17 @@
]
},
url: {
add: "/trade/tblTradeBidSub/add",
edit: "/trade/tblTradeBidSub/edit",
queryById: "/trade/tblTradeBidSub/queryById",
add: '/trade/tblTradeBidSub/add',
edit: '/trade/tblTradeBidSub/edit',
queryById: '/trade/tblTradeBidSub/queryById',
tblTradeInquiryInfo: {
list: '/trade/tblTradeBidSub/queryTblTradeInquiryInfoByMainId'
},
}
}
}
},
props: {
//表单禁用
// 表单禁用
disabled: {
type: Boolean,
default: false,
... ... @@ -387,19 +387,19 @@
}
},
computed: {
formDisabled(){
formDisabled() {
return this.disabled
},
}
},
created () {
},
methods: {
// edit(record){
// console.log(record)
// },
addBefore(){
this.tblTradeInquiryInfoTable.dataSource=[]
addBefore() {
this.tblTradeInquiryInfoTable.dataSource = []
},
getAllTable() {
let values = this.tableKeys.map(key => getRefPromise(this, key))
... ... @@ -409,16 +409,15 @@
editAfter() {
this.$nextTick(() => {
})
console.log(this.model)
// 加载子表数据
if (this.model.id) {
let params = { id: this.model.id }
if (this.model.tradeId) {
let params = { id: this.model.tradeId }
this.requestSubTableData(this.url.tblTradeInquiryInfo.list, params, this.tblTradeInquiryInfoTable)
}
},
//校验所有一对一子表表单
validateSubForm(allValues){
return new Promise((resolve,reject)=>{
// 校验所有一对一子表表单
validateSubForm(allValues) {
return new Promise((resolve, reject) => {
Promise.all([
]).then(() => {
resolve(allValues)
... ... @@ -437,16 +436,16 @@
let main = Object.assign(this.model, allValues.formValue)
return {
...main, // 展开
tblTradeInquiryInfoList: allValues.tablesValue[0].tableData,
tblTradeInquiryInfoList: allValues.tablesValue[0].tableData
}
},
validateError(msg){
validateError(msg) {
this.$message.error(msg)
},
}
}
}
</script>
<style scoped>
</style>
\ No newline at end of file
</style>
... ...
... ... @@ -123,6 +123,10 @@
tradeId:{
type:String,
default:''
},
wlbm:{
type:String,
default:''
}
},
data () {
... ... @@ -177,6 +181,7 @@
httpurl+=this.url.add;
method = 'post';
this.model.tradeId = this.tradeId;
this.model.wlbm = this.wlbm;
}else{
httpurl+=this.url.edit;
method = 'put';
... ...
... ... @@ -8,7 +8,7 @@
:okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel"
cancelText="关闭">
<tbl-trade-inquiry-info-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" :tradeId="tradeId"></tbl-trade-inquiry-info-form>
<tbl-trade-inquiry-info-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" :tradeId="tradeId" :wlbm="wlbm"></tbl-trade-inquiry-info-form>
</j-modal>
</template>
... ... @@ -23,46 +23,47 @@
props: {
model: {
type: Object,
default: null,
default: null
}
},
data () {
return {
title:'',
width:896,
title: '',
width: 896,
visible: false,
disableSubmit: false,
tradeId:'',
tradeId: '',
wlbm: ''
}
},
methods: {
add () {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.add();
this.visible = true
this.$nextTick(() => {
this.$refs.realForm.add()
})
console.log(this.tradeId)
},
edit (record) {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.edit(record);
this.visible = true
this.$nextTick(() => {
this.$refs.realForm.edit(record)
})
},
close () {
this.$emit('close');
this.visible = false;
this.$emit('close')
this.visible = false
},
handleOk () {
this.$refs.realForm.submitForm();
this.$refs.realForm.submitForm()
},
submitCallback(){
this.$emit('ok');
this.visible = false;
submitCallback() {
this.$emit('ok')
this.visible = false
},
handleCancel () {
this.close()
}
}
}
</script>
\ No newline at end of file
</script>
... ...
<template>
<div>
<a-table ref="table1"
rowKey="id"
size="middle"
<a-table
ref="table1"
rowKey="id"
size="middle"
:scroll="{x:true}"
bordered
:loading="loading"
:columns="columns"
bordered
:loading="loading"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
@change="handleTableChange"
... ... @@ -31,15 +32,22 @@
<template slot="fileSlot" slot-scope="text">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
<a-button v-else ghost type="primary" icon="download" size="small" @click="downloadFile(text)">
<a-button
v-else
ghost
type="primary"
icon="download"
size="small"
@click="downloadFile(text)">
<span>下载</span>
</a-button>
</template>
<span slot="action" slot-scope="text, record">
<a @click="handleAdd(record)">新增询价</a>
<a-divider type="vertical" />
<a @click="handleSubmit(record)">提交</a>
<!-- <a-divider type="vertical" />
<a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
... ... @@ -55,27 +63,24 @@
</a-menu>
</a-dropdown> -->
</span>
</a-table>
<tbl-trade-inquiry-info-modal ref="modalForm" @ok="modalFormOk" ></tbl-trade-inquiry-info-modal>
</div>
</template>
<script>
import { getAction } from '@api/manage'
import {JeecgListMixin} from '@/mixins/JeecgListMixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { mixinDevice } from '@/utils/mixin'
import TblTradeInquiryInfoList from '../TblTradeInquiryInfoList'
import '@/assets/less/TableExpand.less'
import TblTradeInquiryInfoModal from '../modules/TblTradeInquiryInfoModal'
export default {
name: 'TblTradeTenderInfoSubTable',
mixins: [JeecgListMixin,mixinDevice],
mixins: [JeecgListMixin, mixinDevice],
components: {
TblTradeInquiryInfoList,
TblTradeInquiryInfoModal
... ... @@ -83,7 +88,7 @@
props: {
record: {
type: Object,
default: null,
default: null
}
},
data() {
... ... @@ -92,45 +97,56 @@
disableMixinCreated: true,
loading: false,
dataSource: [],
columns: [{
title: '询价标书文件号',
columns: [
// {
// title: '询价标书文件号',
// align: 'center',
// dataIndex: 'xjbswjh',
// },
{
title: '物料编码',
align: 'center',
dataIndex: 'xjbswjh',
dataIndex: 'code'
},
{
title: '物料编码',
title: '标段(包)名称',
align: 'center',
dataIndex: 'code',
dataIndex: 'tenderName'
},
// {
// title: '标段(包)名称',
// align: 'center',
// dataIndex: 'tenderName',
// },
{
title: '物料长描述',
align: 'center',
dataIndex: 'miaoshu',
dataIndex: 'miaoshu'
},
{
title: '品牌',
align: 'center',
dataIndex: 'pinpai'
},
{
title: '计量单位',
align: 'center',
dataIndex: 'jldw'
},
// {
// title: '计量单位',
// align: 'center',
// dataIndex: 'jldw',
// },
{
title: '需求数量',
align: 'center',
dataIndex: 'xqsl',
dataIndex: 'xqsl'
},
{
title: '需求交货期',
align: 'center',
dataIndex: 'xqjhq',
dataIndex: 'xqjhq'
},
{
title: '品牌',
title: '需求单位',
align: 'center',
dataIndex: 'pinpai',
dataIndex: 'xqdw'
},
{
title: '备注',
align: 'center',
dataIndex: 'bz'
},
// {
// title: '税率',
... ... @@ -187,94 +203,90 @@
// align: 'center',
// dataIndex: 'ppfjx',
// },
// {
// title: '需求单位',
// title: '询价标书文件号',
// align: 'center',
// dataIndex: 'xqdw',
// dataIndex: 'xjbswjh',
// },
// {
// title: '备注',
// title: '项目类型',
// align: 'center',
// dataIndex: 'bz',
// dataIndex: 'xmlx',
// },
// {
// title: '询价标书文件号',
// title: '送货地址',
// align: 'center',
// dataIndex: 'xjbswjh',
// dataIndex: 'shdz'
// },
// {
// title: '项目类型',
// title: '优先等级',
// align: 'center',
// dataIndex: 'xmlx',
// dataIndex: 'yxdj'
// },
// {
// title: '询价计划完成日期',
// align: 'center',
// dataIndex: 'xjjhwcsj'
// },
// {
// title: '标的类型',
// align: 'center',
// dataIndex: 'bdlx'
// },
{
title: '送货地址',
align: 'center',
dataIndex: 'shdz',
},
{
title: '优先等级',
title: '库存数据',
align: 'center',
dataIndex: 'yxdj',
dataIndex: 'kcsj'
},
{
title: '询价计划完成日期',
title: '在途库存',
align: 'center',
dataIndex: 'xjjhwcsj',
dataIndex: 'ztkc'
},
{
title: '标的类型',
title: '最近中标单价',
align: 'center',
dataIndex: 'bdlx',
dataIndex: 'zjzbdj'
},
// {
// title: '中标次数',
// align: 'center',
// dataIndex: 'zbcs'
// },
{
title: '库存数据',
align: 'center',
dataIndex: 'kcsj',
}, {
title: '在途库存',
align: 'center',
dataIndex: 'ztkc',
}, {
title: '最近中标单价',
align: 'center',
dataIndex: 'zjzbdj',
}, {
title: '中标次数',
align: 'center',
dataIndex: 'zbcs',
}, {
title: '最后一次中标时间',
align: 'center',
dataIndex: 'zhzbsj',
}, {
title: '最后一次未中标时间',
align: 'center',
dataIndex: 'zhwzbsj',
dataIndex: 'zhzbsj'
},
// {
// title: '最后一次未中标时间',
// align: 'center',
// dataIndex: 'zhwzbsj'
// },
{
title: '操作',
dataIndex: 'action',
align:"center",
width:147,
align: 'center',
width: 147,
scopedSlots: { customRender: 'action' }
}
],
url: {
list: '/trade/tblTradePriceInquiry/queryTblTradeTenderInfoByMainId',
list: '/trade/tblTradePriceInquiry/queryTblTradeTenderInfoByMainId'
},
/* 分页参数 */
ipagination: {
current: 1,
pageSize: 5,
pageSizeOptions: ['5', '10', '20','30'],
pageSizeOptions: ['5', '10', '20', '30'],
showTotal: (total, range) => {
return range[0] + "-" + range[1] + " 共" + total + "条"
return range[0] + '-' + range[1] + ' 共' + total + '条'
},
showQuickJumper: true,
showSizeChanger: true,
total: 0
},
}
}
},
watch: {
... ... @@ -288,15 +300,15 @@
}
},
methods: {
modalFormOk(){
modalFormOk() {
this.loadData(this.record)
console.log(898989)
},
handleAdd(record){
this.$refs.modalForm.tradeId = record.id;
this.$refs.modalForm.add();
this.$refs.modalForm.title = "新增";
this.$refs.modalForm.disableSubmit = false;
handleAdd(record) {
this.$refs.modalForm.tradeId = record.id
this.$refs.modalForm.wlbm = record.code
this.$refs.modalForm.add()
this.$refs.modalForm.title = '新增'
this.$refs.modalForm.disableSubmit = false
},
loadData(record) {
this.loading = true
... ... @@ -312,17 +324,17 @@
})
},
handleTableChange(pagination, filters, sorter) {
//分页、排序、筛选变化时触发
//TODO 筛选
// 分页、排序、筛选变化时触发
// TODO 筛选
console.log(pagination)
if (Object.keys(sorter).length > 0) {
this.isorter.column = sorter.field;
this.isorter.order = "ascend" == sorter.order ? "asc" : "desc"
this.isorter.column = sorter.field
this.isorter.order = sorter.order == 'ascend' ? 'asc' : 'desc'
}
this.ipagination = pagination;
this.ipagination = pagination
// this.loadData(this.record);
},
},
}
}
}
</script>
... ...