You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
588 lines
21 KiB
588 lines
21 KiB
<template> |
|
<a-card :bordered="false"> |
|
<!-- 查询区域 --> |
|
<div class="table-page-search-wrapper"> |
|
<a-form layout="inline" @keyup.enter.native="searchQuery"> |
|
<a-row :gutter="24"> |
|
<a-col :xl="5" :lg="7" :md="8" :sm="16"> |
|
<a-form-item label="供应商"> |
|
<a-input placeholder="请输入供应商信息" v-model="queryParam.supplier"></a-input> |
|
</a-form-item> |
|
</a-col> |
|
<a-col :xl="5" :lg="7" :md="8" :sm="16"> |
|
<a-form-item label="物料组"> |
|
<a-input placeholder="请输入物料组" v-model="queryParam.descriptionId"/> |
|
</a-form-item> |
|
</a-col> |
|
<a-col :xl="5" :lg="7" :md="8" :sm="16" hidden="hidden" > |
|
<a-form-item label="物料号"> |
|
<a-input placeholder="请输入物料" v-model="queryParam.materialsNumber" disabled="disabled"/> |
|
</a-form-item> |
|
</a-col> |
|
<a-col :xl="5" :lg="7" :md="8" :sm="16"> |
|
<a-form-item label="物料描述"> |
|
<a-input placeholder="请输入物料描述" v-model="queryParam.merchandiseName"/> |
|
</a-form-item> |
|
</a-col> |
|
<a-col :xl="4" :lg="7" :md="8" :sm="16"> |
|
<a-form-item label="仓储地点"> |
|
<a-input placeholder="请选择仓储地点" v-model="queryParam.unitWasteWarehouseCodeId"/> |
|
</a-form-item> |
|
</a-col> |
|
<a-col :xl="5" :lg="7" :md="8" :sm="16"> |
|
<a-form-item label="生产日期" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
<a-range-picker |
|
style="width: 240px" |
|
format="YYYY-MM-DD" |
|
:placeholder="['开始时间', '结束时间']" |
|
@change="onDateChange" |
|
v-model="productLicenseDate" |
|
/> |
|
</a-form-item> |
|
</a-col> |
|
<!-- <a-col :xl="5" :lg="7" :md="8" :sm="16">--> |
|
<!-- <a-form-item label="入库批次">--> |
|
<!-- <a-input placeholder="请选择批次" v-model="queryParam.supplierBatch"/>--> |
|
<!-- </a-form-item>--> |
|
<!-- </a-col>--> |
|
<!-- <a-col :xl="5" :lg="7" :md="8" :sm="16">--> |
|
<!-- <a-form-item label="保质期">--> |
|
<!-- <a-input placeholder="请选择保质期" v-model="queryParam.expirationDate"/>--> |
|
<!-- </a-form-item>--> |
|
<!-- </a-col>--> |
|
<!-- <a-col :xl="5" :lg="7" :md="8" :sm="16">--> |
|
<!-- <a-form-item label="入库时间" :labelCol="labelCol" :wrapperCol="wrapperCol">--> |
|
<!-- <a-range-picker--> |
|
<!-- style="width: 245px"--> |
|
<!-- format="YYYY-MM-DD"--> |
|
<!-- :placeholder="['开始时间', '结束时间']"--> |
|
<!-- @change="onDateChangestorageTime"--> |
|
<!-- />--> |
|
<!-- </a-form-item>--> |
|
<!-- </a-col>--> |
|
<!-- <a-col :xl="5" :lg="7" :md="8" :sm="16" style="margin-left: 30px">--> |
|
<!-- <a-form-item label="入库人">--> |
|
<!-- <a-input placeholder="请选择入库人" v-model="queryParam.librarySign"/>--> |
|
<!-- </a-form-item>--> |
|
<!-- </a-col>--> |
|
<!-- <a-col :xl="4" :lg="7" :md="8" :sm="16" style="margin-left: 30px">--> |
|
|
|
<!-- </a-col>--> |
|
|
|
</a-row> |
|
<a-row :gutter="24"> |
|
<a-col :xl="5" :lg="7" :md="8" :sm="16"> |
|
<a-form-item label="入库批次"> |
|
<a-input placeholder="请选择批次" v-model="queryParam.supplierBatch"/> |
|
</a-form-item> |
|
</a-col> |
|
|
|
<a-col :xl="4" :lg="7" :md="8" :sm="16"> |
|
<a-form-item label="保质期"> |
|
<a-input placeholder="请输入保质期" v-model="queryParam.expirationDate"/> |
|
</a-form-item> |
|
</a-col> |
|
<!-- <a-col :xl="5" :lg="7" :md="8" :sm="16">--> |
|
<!-- <a-form-item label="保质期">--> |
|
<!-- <a-date-picker--> |
|
<!-- style="width: 240px"--> |
|
<!-- format="YYYY-MM-DD"--> |
|
<!-- placeholder="请输入创建开始时间"--> |
|
<!-- v-model="queryParam.expirationDate"--> |
|
<!-- />--> |
|
<!--<!– <a-input placeholder="请选择保质期" v-model="queryParam.expirationDate"/>–>--> |
|
<!-- </a-form-item>--> |
|
<!-- </a-col>--> |
|
<a-col :xl="5" :lg="7" :md="8" :sm="16"> |
|
<a-form-item label="入库时间" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
<a-range-picker |
|
style="width: 245px" |
|
format="YYYY-MM-DD" |
|
:placeholder="['开始时间', '结束时间']" |
|
@change="onDateChangestorageTime" |
|
v-model="inboundLicenseDate" |
|
/> |
|
</a-form-item> |
|
</a-col> |
|
<a-col :xl="4" :lg="7" :md="8" :sm="16"> |
|
<a-form-item label="入库人"> |
|
<a-input placeholder="请选择入库人" v-model="queryParam.librarySign"/> |
|
</a-form-item> |
|
</a-col> |
|
<!-- <a-col :xl="4" :lg="7" :md="8" :sm="16" style="margin-left: 30px">--> |
|
|
|
<!-- </a-col>--> |
|
|
|
</a-row> |
|
</a-form> |
|
</div> |
|
<!-- 查询区域-END --> |
|
|
|
<!-- 操作按钮区域 --> |
|
<div class="table-operator"> |
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0"> |
|
<a-menu slot="overlay"> |
|
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
|
</a-menu> |
|
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
|
</a-dropdown> |
|
|
|
|
|
</div> |
|
|
|
<!-- table区域-begin --> |
|
<div> |
|
<!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">--> |
|
<!-- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项--> |
|
<!-- <a style="margin-left: 24px" @click="onClearSelected">清空</a>--> |
|
<!-- </div>--> |
|
|
|
<a-table |
|
ref="table" |
|
size="middle" |
|
:scroll="{y:460}" |
|
bordered |
|
rowKey="id" |
|
:columns="columns" |
|
:dataSource="dataSource" |
|
:pagination="ipagination" |
|
:loading="loading" |
|
@change="handleTableChange"> |
|
<!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"--> |
|
|
|
<span slot="processId" slot-scope="text, record"> |
|
<a href="javascript:void(0);" @click="jumpLink(text,record)"> |
|
<j-ellipsis :value="text" :length="7"/> |
|
</a> |
|
</span> |
|
<span slot="supplierName" slot-scope="text, record"> |
|
<j-ellipsis :value="text" :length="4"/> |
|
</span> |
|
<span slot="rates" slot-scope="text, record"> |
|
<j-ellipsis :value="text" :length="5"/> |
|
</span> |
|
<span slot="materialClassify" slot-scope="text, record"> |
|
<j-ellipsis :value="text" :length="10"/> |
|
</span> |
|
<span slot="materialsNumber" slot-scope="text, record"> |
|
<j-ellipsis :value="text" :length="7"/> |
|
</span> |
|
<span slot="merchandiseName" slot-scope="text, record"> |
|
<j-ellipsis :value="text" :length="4"/> |
|
</span> |
|
<span slot="specification" slot-scope="text, record"> |
|
<j-ellipsis :value="text" :length="5"/> |
|
</span> |
|
<span slot="type" slot-scope="text, record"> |
|
<j-ellipsis :value="text" :length="5"/> |
|
</span> |
|
<span slot="departName" slot-scope="text, record"> |
|
<j-ellipsis :value="text" :length="7"/> |
|
</span> |
|
<span slot="productionTime" slot-scope="text, record"> |
|
<j-ellipsis :value="text" :length="8"/> |
|
</span> |
|
<span slot="createTime" slot-scope="text, record"> |
|
<j-ellipsis :value="text" :length="8"/> |
|
</span> |
|
<template slot="htmlSlot" slot-scope="text"> |
|
<div v-html="text"></div> |
|
</template> |
|
<template slot="imgSlot" slot-scope="text"> |
|
<span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span> |
|
<img v-else :src="getImgView(text)" 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> |
|
<a-button |
|
v-else |
|
:ghost="true" |
|
type="primary" |
|
icon="download" |
|
size="small" |
|
@click="downloadFile(text)"> |
|
下载 |
|
</a-button> |
|
</template> |
|
|
|
</a-table> |
|
</div> |
|
<!--流程表单--> |
|
<a-modal :title="lcModa.title" v-model="lcModa.visible" :footer="null" :maskClosable="false" width="80%" height="93%"> |
|
<component :disabled="lcModa.disabled" v-if="lcModa.visible" :is="lcModa.formComponent" :hieg ="lcModa.hieg" |
|
:processData="lcModa.processData" :isNew = "lcModa.isNew" :procInstId="lcModa.procInstId" :pictureId="lcModa.pictureId" |
|
@close="lcModa.visible=false,lcModa.disabled = false"></component> |
|
</a-modal> |
|
<process-supplies-stronger-modal ref="modalForm" @ok="modalFormOk"></process-supplies-stronger-modal> |
|
</a-card> |
|
</template> |
|
|
|
<script> |
|
|
|
import '@/assets/less/TableExpand.less' |
|
import { mixinDevice } from '@/utils/mixin' |
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
|
import { activitiMixin } from '@/views/activiti/mixins/activitiMixin' |
|
import ProcessSuppliesStrongerModal from './modules/ProcessSuppliesStrongerModal' |
|
import JDate from '@/components/jeecg/JDate.vue' |
|
import JSearchSelectTag from '@/components/dict/JSearchSelectTag' |
|
import JSuperQuery from '@/components/jeecg/JSuperQuery.vue' |
|
import { getAction } from '@api/manage' |
|
|
|
|
|
export default { |
|
name: 'ProcessSuppliesStrongerLists', |
|
mixins:[JeecgListMixin, mixinDevice,activitiMixin], |
|
components: { |
|
JDate, |
|
JSearchSelectTag, |
|
ProcessSuppliesStrongerModal, |
|
JSuperQuery, |
|
}, |
|
data () { |
|
return { |
|
lcModa: { |
|
title: '', |
|
disabled: false, |
|
visible: false, |
|
formComponent: null, |
|
isNew: false |
|
}, |
|
productLicenseDate:[], |
|
inboundLicenseDate:[], |
|
queryParam: { |
|
supplier: null, |
|
itemGroup: null, |
|
merchandiseNewsId: this.$route.query.item, |
|
itemDescription: null, |
|
unitWasteWarehouseCodeId: null, |
|
freightSpace: null, |
|
productionTime: null, |
|
supplierBatch: null, |
|
expirationDate: null, |
|
storageTime: null, |
|
librarySign: null, |
|
}, |
|
merchandiseNewsId: this.$route.query.item, |
|
description: '物资总库管理详情页面', |
|
columns: [ |
|
{ |
|
title: '序号', |
|
dataIndex: '', |
|
key:'rowIndex', |
|
width:50, |
|
align:"center", |
|
customRender:function (t,r,index) { |
|
return parseInt(index)+1; |
|
} |
|
}, |
|
{ |
|
title:'流程表单号', |
|
align:"center", |
|
scopedSlots: { customRender: 'processId' }, |
|
dataIndex: 'flowPath', |
|
}, |
|
{ |
|
title:'供应商', |
|
align:"center", |
|
scopedSlots: { customRender: 'supplierName' }, |
|
dataIndex: 'supplierId' |
|
}, |
|
// { |
|
// title:'供应商描述', |
|
// align:"center", |
|
// dataIndex: 'supplierDescription' |
|
// }, |
|
{ |
|
title:'物料组', |
|
align:"center", |
|
scopedSlots: { customRender: 'materialClassify' }, |
|
dataIndex: 'materialClassify' |
|
}, |
|
{ |
|
title:'物料编号', |
|
align:"center", |
|
scopedSlots: { customRender: 'materialsNumber' }, |
|
dataIndex: 'materialsNumber' |
|
}, |
|
{ |
|
title:'物料名称及规格型号', |
|
align:"center", |
|
scopedSlots: { customRender: 'merchandiseName' }, |
|
dataIndex: 'merchandiseName' |
|
}, |
|
/* { |
|
title:'规格', |
|
align:"center", |
|
scopedSlots: { customRender: 'specification' }, |
|
dataIndex: 'specification' |
|
}, |
|
{ |
|
title:'型号', |
|
align:"center", |
|
scopedSlots: { customRender: 'type' }, |
|
dataIndex: 'type' |
|
},*/ |
|
{ |
|
title:'计量单位', |
|
align:"center", |
|
dataIndex: 'unitMeasurement' |
|
}, |
|
{ |
|
title:'数量', |
|
align:"center", |
|
dataIndex: 'materialQuantity' |
|
}, |
|
{ |
|
title:'单价', |
|
align:"center", |
|
dataIndex: 'materialPrice' |
|
}, |
|
{ |
|
title:'金额', |
|
align:"center", |
|
scopedSlots: { customRender: 'rates' }, |
|
dataIndex: 'rates' |
|
}, |
|
{ |
|
title:'仓储地点', |
|
align:"center", |
|
scopedSlots: { customRender: 'departName' }, |
|
dataIndex: 'warehouseId_dictText' |
|
}, |
|
// { |
|
// title:'存储仓位', |
|
// align:"center", |
|
// dataIndex: 'freightSpace' |
|
// }, |
|
{ |
|
title:'生产时间', |
|
align:"center", |
|
scopedSlots: { customRender: 'productionTime' }, |
|
dataIndex: 'productionTime', |
|
}, |
|
{ |
|
title:'保质期', |
|
align:"center", |
|
dataIndex: 'expirationDate' |
|
}, |
|
{ |
|
title:'批次', |
|
align:"center", |
|
dataIndex: 'supplierBatch' |
|
}, |
|
{ |
|
title:'来源', |
|
align:"center", |
|
dataIndex: 'state' |
|
}, |
|
{ |
|
title:'是否到货', |
|
align:"center", |
|
dataIndex: 'arrivalNotice', |
|
customRender(t,r,ind){ |
|
// console.log(t,r,ind); |
|
if(r.arrivalNotice === '1'){ |
|
return "是"; |
|
}else if(r.arrivalNotice === '0'){ |
|
return "否"; |
|
} |
|
} |
|
}, |
|
{ |
|
title:'入库时间', |
|
align:"center", |
|
scopedSlots: { customRender: 'createTime' }, |
|
dataIndex: 'createTime', |
|
}, |
|
{ |
|
title:'入库人', |
|
align:"center", |
|
dataIndex: 'librarySign' |
|
}, |
|
{ |
|
title:'核算属性', |
|
align:"center", |
|
dataIndex: 'accountingAttributes_dictText' |
|
} |
|
], |
|
url: { |
|
listUrl: "/actBusiness/listDataAll", |
|
list: "/suppliesstronger/processSuppliesStronger/lists", |
|
delete: "/suppliesstronger/processSuppliesStronger/delete", |
|
deleteBatch: "/suppliesstronger/processSuppliesStronger/deleteBatch", |
|
exportXlsUrl: "/suppliesstronger/processSuppliesStronger/exportXls", |
|
importExcelUrl: "suppliesstronger/processSuppliesStronger/importExcel", |
|
|
|
}, |
|
dictOptions:{}, |
|
superFieldList:[], |
|
labelCol: { |
|
xs: { span: 4 }, |
|
sm: { span: 4 }, |
|
}, |
|
wrapperCol: { |
|
xs: { span: 20 }, |
|
sm: { span: 20 }, |
|
}, |
|
} |
|
}, |
|
created() { |
|
// 判断路由上是否存在参数,如果没有则跳转回帐外物资管理页面 |
|
this.judgeRouterParam(); |
|
this.getSuperFieldList(); |
|
}, |
|
watch: { |
|
$route() { |
|
this.queryParam.merchandiseNewsId = this.$route.query.item |
|
this.loadData() |
|
} |
|
}, |
|
computed: { |
|
importExcelUrl: function(){ |
|
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
|
}, |
|
}, |
|
methods: { |
|
jumpLink(text,record){ |
|
// console.log("跳转了",text,record) |
|
let params = { |
|
tableId: record.processMaterialWarehousingId, |
|
logType:1 |
|
} |
|
this.loading = true; |
|
getAction(this.url.listUrl, params).then((res) => { |
|
if (res.success) { |
|
// console.log(res.result.records); |
|
this.edit(res.result.records[0],true); |
|
} |
|
if(res.code===510){ |
|
this.$message.warning(res.message) |
|
} |
|
this.loading = false; |
|
}).finally(()=>{ |
|
this.loading = false; |
|
}) |
|
|
|
}, |
|
edit(r,isView) { |
|
// if (!r.routeName) { |
|
// this.$message.warning( |
|
// "该流程信息未配置表单,请联系开发人员!" |
|
// ); |
|
// return; |
|
// } |
|
// console.log("isView>>>>>>>>>>>>",isView) |
|
// console.log("r>>>>>>>>>>>>",r) |
|
isView = isView||false; |
|
this.lcModa.disabled = isView; |
|
this.lcModa.hieg = isView; |
|
if (isView) this.lcModa.title = '查看流程业务信息:'+r.title; |
|
this.lcModa.formComponent = this.getFormComponent("@/views/activiti/form/ProcessMaterialWarehousing").component; |
|
this.lcModa.processData = r; |
|
this.lcModa.pictureId=r.procDefId |
|
if(!r.procInstId){ |
|
r.procInstId=''; |
|
} |
|
this.lcModa.procInstId=r.procInstId; |
|
this.lcModa.isNew = false; |
|
this.lcModa.visible = true; |
|
}, |
|
|
|
|
|
onDateChange: function (value, dateString) { |
|
this.productLicenseDate = value; |
|
this.queryParam.productDateBegin=dateString[0]; |
|
this.queryParam.productDateEnd=dateString[1]; |
|
}, |
|
onDateChangestorageTime: function (value, dateString) { |
|
this.inboundLicenseDate = value; |
|
this.queryParam.inboundDateBegin=dateString[0]; |
|
this.queryParam.inboundDateEnd=dateString[1]; |
|
}, |
|
searchReset(){ |
|
this.productLicenseDate=[]; |
|
this.inboundLicenseDate=[]; |
|
this.queryParam = { |
|
supplier: null, |
|
itemGroup: null, |
|
merchandiseNewsId: this.$route.query.item, |
|
itemDescription: null, |
|
unitWasteWarehouseCodeId: null, |
|
freightSpace: null, |
|
productionTime: null, |
|
supplierBatch: null, |
|
expirationDate: null, |
|
storageTime: null, |
|
librarySign: null, |
|
del_flag: 0 |
|
}, |
|
this.loadData(1) |
|
// getAction(this.url.list,this.queryParam).then((res)=>{ |
|
// if(res.success){ |
|
// // console.log("res.result----------",res.result) |
|
// this.dataSource=res.result.records; |
|
// } |
|
// }); |
|
}, |
|
judgeRouterParam(){ |
|
if (this.$route.query.item == null){ |
|
this.$router.go(-1); |
|
} |
|
}, |
|
initDictConfig(){ |
|
}, |
|
// loadData(){ |
|
// getAction(this.url.list,this.queryParam).then((res)=>{ |
|
// if(res.success){ |
|
// this.dataSource=res.result.records; |
|
// } |
|
// }); |
|
// }, |
|
getSuperFieldList(){ |
|
let fieldList=[]; |
|
fieldList.push({type:'string',value:'processId',text:'流程表单号',dictCode:''}) |
|
fieldList.push({type:'string',value:'supplier',text:'供应商',dictCode:''}) |
|
fieldList.push({type:'string',value:'supplierDescription',text:'供应商描述',dictTable:'', dictText:'', dictCode:''}) |
|
fieldList.push({type:'string',value:'itemGroup',text:'物料组',dictTable:'', dictText:'', dictCode:''}) |
|
fieldList.push({type:'string',value:'item',text:'物料',dictTable:'', dictText:'', dictCode:''}) |
|
fieldList.push({type:'string',value:'itemDescription',text:'物料描述',dictTable:'', dictText:'', dictCode:''}) |
|
fieldList.push({type:'string',value:'unitMeasurement',text:'计量单位',dictCode:''}) |
|
fieldList.push({type:'int',value:'materialQuantity',text:'数量',dictCode:''}) |
|
fieldList.push({type:'BigDecimal',value:'materialPrice',text:'单价',dictCode:''}) |
|
fieldList.push({type:'BigDecimal',value:'rates',text:'金额',dictCode:''}) |
|
fieldList.push({type:'string',value:'unitWasteWarehouseCodeId',text:'仓储地点',dictTable:'', dictText:'', dictCode:''}) |
|
fieldList.push({type:'string',value:'freightSpace',text:'存储仓位',dictTable:'', dictText:'', dictCode:''}) |
|
fieldList.push({type:'date',value:'productionTime',text:'生产时间'}) |
|
fieldList.push({type:'String',value:'expirationDate',text:'保质期'}) |
|
fieldList.push({type:'string',value:'supplierBatch',text:'批次',dictTable:'', dictText:'', dictCode:''}) |
|
fieldList.push({type:'int',value:'arrivalNotice',text:'是否到货',dictCode:''}) |
|
fieldList.push({type:'date',value:'storageTime',text:'入库时间'}) |
|
fieldList.push({type:'string',value:'librarySign',text:'入库人',dictTable:'', dictText:'', dictCode:''}) |
|
fieldList.push({type:'int',value:'accountingAttributes',text:'核算属性',dictCode:''}) |
|
this.superFieldList = fieldList |
|
} |
|
} |
|
} |
|
</script> |
|
<style scoped> |
|
@import '~@assets/less/common.less'; |
|
|
|
/deep/.ant-modal { |
|
overflow-y: hidden; |
|
} |
|
/deep/.ant-modal-content{ |
|
height: 100%; |
|
overflow-y: hidden; |
|
} |
|
/deep/.ant-modal-body{ |
|
height: 100%; |
|
overflow-y: scroll; |
|
} |
|
/deep/.ant-modal{ |
|
top:45px |
|
} |
|
</style> |