Browse Source

修改报废页面显示

dev
caoyizhong 2 years ago
parent
commit
abe0e0db01
  1. 2
      src/components/jeecg/JEditableTable.vue
  2. 19
      src/components/jeecg/PEditableTable.vue
  3. 18
      src/components/jeecg/modal/ProcessDelivery.vue
  4. 4
      src/views/activiti/applyList.vue
  5. 40
      src/views/activiti/form/ProcessSmaterialsScrapForm.vue
  6. 10
      src/views/activiti/form/ProcessUdgetPlanForm.vue
  7. 60
      src/views/processmaterials/ProcessMaterialsDeliveryListList.vue
  8. 2
      src/views/processmaterials/modules/ProcessMaterialsDeliveryListModal.vue

2
src/components/jeecg/JEditableTable.vue

@ -51,7 +51,7 @@
/> />
</div> </div>
<div v-if="rowNumber" class="td td-num" :style="style.tdLeft"> <div v-if="rowNumber" class="td td-num" :style="style.tdLeft">
<span>#</span> <span>序号</span>
</div> </div>
<!-- 右侧动态生成td --> <!-- 右侧动态生成td -->
<template v-for="col in columns"> <template v-for="col in columns">

19
src/components/jeecg/PEditableTable.vue

@ -52,7 +52,7 @@
/> />
</div> </div>
<div v-if="rowNumber" class="td td-num" :style="style.tdLeft"> <div v-if="rowNumber" class="td td-num" :style="style.tdLeft">
<span>#</span> <span>序号</span>
</div> </div>
<!-- 右侧动态生成td --> <!-- 右侧动态生成td -->
<template v-for="col in columns"> <template v-for="col in columns">
@ -536,6 +536,7 @@
:placeholder="replaceProps(col, col.placeholder)" :placeholder="replaceProps(col, col.placeholder)"
@change="(v)=>handleSearchSelectChange(v,id,row,col)" @change="(v)=>handleSearchSelectChange(v,id,row,col)"
allowClear allowClear
@focus="a"
/> />
<!-- :filterOption="filterOption"--> <!-- :filterOption="filterOption"-->
<span <span
@ -543,6 +544,7 @@
class="j-td-span no-edit" class="j-td-span no-edit"
:class="{disabled: buildProps(row,col).disabled}" :class="{disabled: buildProps(row,col).disabled}"
@click="handleEditRow(row, col)" @click="handleEditRow(row, col)"
@focus="a"
>{{ getSelectTranslateText(searchSelectValues[id], row, col) }}</span> >{{ getSelectTranslateText(searchSelectValues[id], row, col) }}</span>
</a-tooltip> </a-tooltip>
</template> </template>
@ -952,6 +954,21 @@
}, },
methods: { methods: {
a(){
console.log("执行l");
this.getSelection((a,b,c)=>{
console.log(a,b,c);
// b.forEach(item =>{
// console.log(item);
// });
});
},
getElement(id, noCaseId = false) { getElement(id, noCaseId = false) {
if (!this.el[id]) { if (!this.el[id]) {
this.el[id] = document.getElementById((noCaseId ? '' : this.caseId) + id) this.el[id] = document.getElementById((noCaseId ? '' : this.caseId) + id)

18
src/components/jeecg/modal/ProcessDelivery.vue

@ -25,10 +25,10 @@
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button> <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-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a @click="handleToggleSearch" style="margin-left: 8px"> <!-- <a @click="handleToggleSearch" style="margin-left: 8px">-->
{{ toggleSearchStatus ? '收起' : '展开' }} <!-- {{ toggleSearchStatus ? '收起' : '展开' }}-->
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/> <!-- <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>-->
</a> <!-- </a>-->
</span> </span>
</a-col> </a-col>
</a-row> </a-row>
@ -49,11 +49,11 @@
<!-- table区域-begin --> <!-- table区域-begin -->
<div> <div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> <!-- <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">{{ <!-- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{-->
this.selectedRowKeys.length }}</a> <!-- this.selectedRowKeys.length }}</a>-->
<a style="margin-left: 24px" @click="onClearSelected">清空</a> <!-- <a style="margin-left: 24px" @click="onClearSelected">清空</a>-->
</div> <!-- </div>-->
<a-table <a-table
ref="table" ref="table"

4
src/views/activiti/applyList.vue

@ -66,13 +66,13 @@
:scroll="{x: false, y: 470 }" :scroll="{x: false, y: 470 }"
@change="handleTableChange"> @change="handleTableChange">
<span slot="result" slot-scope="text, r"> <span slot="result" slot-scope="text, r">
<span v-if="r.result == 0" style="color: #e78c8c">未提交</span> <span v-if="r.result == 0" style="color: #afa8a8">未提交</span>
<span v-else-if="r.result==1" style="color: orange">处理中</span> <span v-else-if="r.result==1" style="color: orange">处理中</span>
<span v-else-if="r.result==2" style="color: green">已通过</span> <span v-else-if="r.result==2" style="color: green">已通过</span>
<span v-else-if="r.result==3" style="color: red">已驳回</span> <span v-else-if="r.result==3" style="color: red">已驳回</span>
</span> </span>
<span slot="status" slot-scope="text, r"> <span slot="status" slot-scope="text, r">
<span v-if="r.status == 0" style="color: #ec7b7b">草稿</span> <span v-if="r.status == 0" style="color: #b8b5b5">草稿</span>
<span v-else-if="r.result==1" style="color: orange">处理中</span> <span v-else-if="r.result==1" style="color: orange">处理中</span>
<span v-else-if="r.status==2" style="color: blue">已结束</span> <span v-else-if="r.status==2" style="color: blue">已结束</span>
<span v-else-if="r.status==3" style="color: magenta">已撤回</span> <span v-else-if="r.status==3" style="color: magenta">已撤回</span>

40
src/views/activiti/form/ProcessSmaterialsScrapForm.vue

@ -32,7 +32,7 @@
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="物资类型" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="物资类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-dict-select-tag type="list" @change="materialType" v-decorator="['materialType']" <j-dict-select-tag type="list" v-decorator="['materialType']"
:trigger-change="true" dictCode="material_type" placeholder="请选择物资类型" disabled/> :trigger-change="true" dictCode="material_type" placeholder="请选择物资类型" disabled/>
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -55,7 +55,7 @@
<a-tabs v-model="activeKey" @change="handleChangeTabs"> <a-tabs v-model="activeKey" @change="handleChangeTabs">
<a-tab-pane tab="物资报废流程报废清单" :key="refKeys[0]" :forceRender="true"> <a-tab-pane tab="物资报废流程报废清单" :key="refKeys[0]" :forceRender="true">
<j-editable-table <j-editable-table
:ref="refKeys[0]" ref="processSmaterialsScrapList"
:loading="processSmaterialsScrapListTable.loading" :loading="processSmaterialsScrapListTable.loading"
:columns="processSmaterialsScrapListTable.columns" :columns="processSmaterialsScrapListTable.columns"
:dataSource="processSmaterialsScrapListTable.dataSource" :dataSource="processSmaterialsScrapListTable.dataSource"
@ -63,7 +63,8 @@
:disabled="formDisabled" :disabled="formDisabled"
:rowNumber="true" :rowNumber="true"
:rowSelection="true" :rowSelection="true"
:actionButton="true"/> @valueChange ="onSelect"
:actionButton="false"/>
</a-tab-pane> </a-tab-pane>
</a-tabs> </a-tabs>
<j-form-container> <j-form-container>
@ -154,7 +155,17 @@
dataSource: [], dataSource: [],
columns: [ columns: [
{ {
title: '器材编号', title: '物料组',
key: 'materialGroup',
type: FormTypes.sel_search,
disabled: true,
dictCode: '',
width: '200px',
placeholder: '请输入${title}',
defaultValue: ''
},
{
title: '物料编号',
key: 'equipment', key: 'equipment',
type: FormTypes.sel_search, type: FormTypes.sel_search,
disabled: true, disabled: true,
@ -166,7 +177,7 @@
{ {
title: 'WBS', title: 'WBS',
key: 'wbs', key: 'wbs',
type: FormTypes.sel_search, type: FormTypes.input,
dictCode: '', dictCode: '',
width: '200px', width: '200px',
placeholder: '请输入${title}', placeholder: '请输入${title}',
@ -346,6 +357,25 @@
} }
}, },
methods: { methods: {
onSelect(record){
// console.log(record.row);
if(!!record.row.scrapNumber && !!record.row.materialPrice && !! record.row.id){
let values = [
{
rowKey: record.row.id,
values: {
// 'scrapNumber': '',
'materialAmount': record.row.scrapNumber * record.row.materialPrice,
},
},
]
this.$refs.processSmaterialsScrapList.setValues(values);
}
},
materialType(val) { materialType(val) {
if (val !== undefined) { if (val !== undefined) {
this.heid = false this.heid = false

10
src/views/activiti/form/ProcessUdgetPlanForm.vue

@ -81,6 +81,7 @@
:actionButton="true" :actionButton="true"
@descriptionFetch="descriptionFetchDatas" @descriptionFetch="descriptionFetchDatas"
> >
<!-- @selectRowChange="selectRowChange"-->
<!-- <template v-slot:group="props">--> <!-- <template v-slot:group="props">-->
<!-- <a-auto-complete--> <!-- <a-auto-complete-->
<!-- v-decorator="[`materialGroup`]"--> <!-- v-decorator="[`materialGroup`]"-->
@ -591,6 +592,9 @@
// this.form.setFieldsValue("materialGroup",123123); // this.form.setFieldsValue("materialGroup",123123);
}, },
methods: { methods: {
selectRowChange(a,b,c){
console.log("执行了",a,b,c);
},
// handleChange(value, key, column) { // handleChange(value, key, column) {
// const newData = [...this.data]; // const newData = [...this.data];
@ -742,7 +746,7 @@
let isEr = true; let isEr = true;
if(!!record.row.materialGroup){ if(!!record.row.materialGroup){
if( !!record.row.id && this.isBu !== record.row.materialGroup ){ if( !!record.row.id && this.isBu !== record.row.materialGroup ){
console.log("1出发了",record.row); // console.log("1",record.row);
this.isabled = false; this.isabled = false;
this.fetchMerchandiseNews(record.row.materialGroup); this.fetchMerchandiseNews(record.row.materialGroup);
this.isBu = record.row.materialGroup; this.isBu = record.row.materialGroup;
@ -769,7 +773,7 @@
} }
// console.log("5555",record.row); // console.log("5555",record.row);
if(!!record.row.materialGroup && !!record.row.materialNumber && isEr){ if(!!record.row.materialGroup && !!record.row.materialNumber && isEr){
console.log("2出发了",record.row); // console.log("2",record.row);
let materialName = { } let materialName = { }
// console.log("this.bigIdMerchandiseNewsList",this.bigIdMerchandiseNewsList) // console.log("this.bigIdMerchandiseNewsList",this.bigIdMerchandiseNewsList)
this.bigIdMerchandiseNewsList.forEach( item => { this.bigIdMerchandiseNewsList.forEach( item => {
@ -805,7 +809,7 @@
if(!!record.row.materialQuantity && !!record.row.materialPrice ){ if(!!record.row.materialQuantity && !!record.row.materialPrice ){
// record.row.materialAmount = record.row.materialQuantity * record.row.materialPrice; // record.row.materialAmount = record.row.materialQuantity * record.row.materialPrice;
console.log("3出发了",record.row); // console.log("3",record.row);
//5 //5
if(record.row.materialPrice>50000){ if(record.row.materialPrice>50000){
this.materialPrice=record.row.materialPrice this.materialPrice=record.row.materialPrice

60
src/views/processmaterials/ProcessMaterialsDeliveryListList.vue

@ -1,34 +1,34 @@
<template> <template>
<a-card :bordered="false" :class="'cust-erp-sub-tab'"> <a-card :bordered="false" :class="'cust-erp-sub-tab'">
<!-- 操作按钮区域 --> <!-- 操作按钮区域 -->
<div class="table-operator" v-if="mainId"> <!-- <div class="table-operator" v-if="mainId">-->
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> <!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
<a-button type="primary" icon="download" @click="handleExportXls('物资出库流程出库清单')">导出</a-button> <!-- <a-button type="primary" icon="download" @click="handleExportXls('物资出库流程出库清单')">导出</a-button>-->
<a-upload <!-- <a-upload-->
name="file" <!-- name="file"-->
:showUploadList="false" <!-- :showUploadList="false"-->
:multiple="false" <!-- :multiple="false"-->
:headers="tokenHeader" <!-- :headers="tokenHeader"-->
:action="importExcelUrl" <!-- :action="importExcelUrl"-->
@change="handleImportExcel"> <!-- @change="handleImportExcel">-->
<a-button type="primary" icon="import">导入</a-button> <!-- <a-button type="primary" icon="import">导入</a-button>-->
</a-upload> <!-- </a-upload>-->
<!-- 高级查询区域 --> <!-- &lt;!&ndash; 高级查询区域 &ndash;&gt;-->
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> <!--&lt;!&ndash; <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>&ndash;&gt;-->
<a-dropdown v-if="selectedRowKeys.length > 0"> <!-- <a-dropdown v-if="selectedRowKeys.length > 0">-->
<a-menu slot="overlay"> <!-- <a-menu slot="overlay">-->
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> <!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>-->
</a-menu> <!-- </a-menu>-->
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> <!-- <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>-->
</a-dropdown> <!-- </a-dropdown>-->
</div> <!-- </div>-->
<!-- table区域-begin --> <!-- table区域-begin -->
<div> <div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> <!-- <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> <!-- <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> <!-- <a style="margin-left: 24px" @click="onClearSelected">清空</a>-->
</div> <!-- </div>-->
<a-table <a-table
ref="table" ref="table"
@ -40,7 +40,6 @@
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="ipagination"
:loading="loading" :loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange"> @change="handleTableChange">
<template slot="htmlSlot" slot-scope="text"> <template slot="htmlSlot" slot-scope="text">
@ -116,7 +115,7 @@
// //
columns: [ columns: [
{ {
title: '#', title: '序号',
dataIndex: '', dataIndex: '',
key:'rowIndex', key:'rowIndex',
width:60, width:60,
@ -126,7 +125,7 @@
} }
}, },
{ {
title:'器材编号', title:'物料编号',
align:"center", align:"center",
dataIndex: 'equipment', dataIndex: 'equipment',
}, },
@ -158,7 +157,7 @@
{ {
title:'供货商', title:'供货商',
align:"center", align:"center",
dataIndex: 'supplier', dataIndex: 'supplierId',
}, },
{ {
title:'单价', title:'单价',
@ -174,9 +173,8 @@
title:'用途', title:'用途',
align:"center", align:"center",
dataIndex: 'purpose', dataIndex: 'purpose',
fixed:"right", // fixed:"right",
}, },
/*{ /*{
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',

2
src/views/processmaterials/modules/ProcessMaterialsDeliveryListModal.vue

@ -12,7 +12,7 @@
<a-form :form="form"> <a-form :form="form">
<a-row> <a-row>
<a-col :span="24"> <a-col :span="24">
<a-form-item label="器材编号" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="物料编号" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-search-select-tag v-decorator="['equipment']" dict="" /> <j-search-select-tag v-decorator="['equipment']" dict="" />
</a-form-item> </a-form-item>
</a-col> </a-col>

Loading…
Cancel
Save