Browse Source

修改统计查询,添加规则

dev
caoyizhong 2 years ago
parent
commit
14776f68c1
  1. 29
      src/views/dashboard/HomePage.vue
  2. 21
      src/views/description/modules/ProcessDescriptionForm.vue
  3. 2
      src/views/dictionaries/ProcessDictionariesList.vue
  4. 2
      src/views/dictionaries/ProcessLibraryAssociationList.vue
  5. 2
      src/views/gunpowder/ProcessIndustrialExplosiveList.vue
  6. 36
      src/views/gunpowder/modules/ProcessIndustrialScrapForm.vue
  7. 25
      src/views/materialstorage/modules/ProcessMaterialStorageForm.vue
  8. 46
      src/views/regime/ProcessRegimeList.vue
  9. 2
      src/views/statisticanalysis/costecharts/CaseCost.vue
  10. 2
      src/views/statisticanalysis/costecharts/CostAnalysis.vue
  11. 32
      src/views/supplier/modules/ProcessSupplierForm.vue
  12. 19
      src/views/unitwaste/modules/ProcessUnitWasteWarehouseCodeForm.vue

29
src/views/dashboard/HomePage.vue

@ -3,11 +3,11 @@
<div style="height: 40%; width: 100%;display: flex;justify-content: stretch;" >
<!--待办任务-->
<a-card id="todo" style="float: left; width: 33%; height: 100%;padding-bottom: 10px;" :body-style="{height: '95%', overflow:'hidden'}">
<a-card id="todo" style="float: left; width: 33%; height: 100%;" :body-style="{height: '98%', overflow:'hidden'}">
<div style="height: 40px;font-weight: 600; font-size: 16px;line-height: 40px">
公司风采
</div>
<div id="messageDiv" style="height: 280px;overflow-y: auto;margin: 0 0 0 0;" >
<div id="messageDiv" style="height: 290px;overflow-y: auto;margin: 0 0 0 0;" >
<!-- <div id="messageDiv" style="height: 250px;overflow-y: auto;margin: 0 0 0 0;" @scroll="heightScrollTodo()">-->
<!-- <a-table-->
<!-- rowKey="id"-->
@ -51,7 +51,7 @@
<a-icon type="right-circle" />
</div>
<div v-for="item in this.listMien" style="height: 300px" >
<img class="rightulliimg" :src="item.url" />
<img class="rightulliimg" :src="item.url" style="height: 290px"/>
</div>
</a-carousel>
</div>
@ -113,14 +113,14 @@
</a-card>
</div>
<a-modal v-model="visible" title="" width="1200px"
<a-modal v-model="visible" :title=titles width="1200px"
@cancel="handlerOk"
cancelText="关闭">
<template slot="footer">
<a-button @click="handlerOk">关闭</a-button>
</template>
<p v-html="regimeConter" :style="{'max-height': this.timeLineHeight + 'px' }"
style="overflow-y:scroll;margin-top: 2%"></p>
style="overflow:auto;"></p>
</a-modal>
@ -231,6 +231,7 @@ export default {
order: 'desc',
},
visible: false,
titles: null,
//
url: {
listCementByUser:"/sys/annountCement/listByUser",
@ -327,9 +328,9 @@ export default {
}
},
mounted() {
this.timeLineHeight = document.documentElement.clientHeight - 300;
this.timeLineHeight = document.documentElement.clientHeight - 330;
window.onresize = () => {
this.timeLineHeight = document.documentElement.clientHeight - 300;
this.timeLineHeight = document.documentElement.clientHeight - 330;
};
},
created() {
@ -587,13 +588,13 @@ export default {
}
},
handleDetail(record){
console.log(record,"-=-=");
this.$nextTick(() => {
this.visible = true;
this.regimeConter = record.contentDetails;
// console.log("=edrsfg-q=wse0gf=",record.contentDetails);
// this.$refs.modalForm.edit(record);
// this.$refs.modalForm.title="";
this.titles=record.title;
// this.$refs.modalForm.disableSubmit = true;
})
@ -687,12 +688,12 @@ export default {
border: 0;
border-radius: 2px;
pointer-events: auto;
width: 1500px;
width: 1300px;
display: inline-block;
}
/*风采*/
.ant-carousel >>> .slick-slide img {
border: 5px solid #fff;
border: 2px solid #fff;
display: block;
margin: 5px auto;
height: 90%;
@ -703,7 +704,7 @@ export default {
.ant-carousel >>> .slick-slide {
text-align: center;
height: 260px;
height: 282px;
line-height: 160px;
/*background: #888a8d;*/
overflow: hidden;
@ -846,7 +847,7 @@ export default {
/deep/.ant-card-body{
height: 80%;
padding: 0px 24px;
padding: 0px 12px;
}

21
src/views/description/modules/ProcessDescriptionForm.vue

@ -5,19 +5,19 @@
<a-row>
<a-col :span="8">
<a-form-item label="物料分类编号" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-decorator="['materialClassify']" placeholder="请输入物料分类编号" ></a-input>
<a-input v-decorator="['materialClassify',validatorRules.materialClassify]" placeholder="请输入物料分类编号" ></a-input>
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="品名名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-decorator="['descriptionName']" placeholder="请输入品名名称" ></a-input>
<a-input v-decorator="['descriptionName',validatorRules.descriptionName]" placeholder="请输入品名名称" ></a-input>
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="分类名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<!-- <a-input v-decorator="['classifyName']" placeholder="请输入分类名称" ></a-input>-->
<!-- <j-dict-select-tag type="list" v-decorator="['classifyName']" :trigger-change="true" dictCode="hardware_category" placeholder="请输入分类" />-->
<a-select v-decorator="['classifyName']" placeholder="请选择" v-if="!hideDis">
<a-select v-decorator="['classifyName',validatorRules.classifyName]" placeholder="请选择" v-if="!hideDis">
<a-select-option v-for="(item,index) in bigIdser" :key="index" :value="item.classifyName">{{item.classifyName}}</a-select-option>
</a-select>
@ -79,7 +79,7 @@
model: {},
labelCol: {
xs: { span: 24 },
sm: { span: 5 },
sm: { span: 6 },
},
wrapperCol: {
xs: { span: 24 },
@ -87,6 +87,19 @@
},
confirmLoading: false,
validatorRules: {
materialClassify: {rules: [
{ required: true, message: '请输入物料分类编号!'},
{ message: '请输入物料分类编号!'},
]},
descriptionName: {rules: [
{ required: true, message: '请输入品名名称!'},
{ message: '请输入品名名称!'},
]},
classifyName: {rules: [
{ required: true, message: '请输入分类名称!'},
{ message: '请输入分类名称!'},
]},
},
bigId:[],
bigIdser:[],

2
src/views/dictionaries/ProcessDictionariesList.vue

@ -238,7 +238,7 @@
if(selectionRows[0].dictionaryLabel == "FJWZ_BM"){
this.typeId = "1";
}else{
this.typeId = "2";
this.typeId = "0";
}
this.tabKey= '1';
}

2
src/views/dictionaries/ProcessLibraryAssociationList.vue

@ -171,7 +171,7 @@
customRender:function (t,r,index) {
console.log(t,r,index);
let name = '';
if(r.sort === 2){
if(r.sort === 0){
name = "账外物资库房";
}else if(r.sort === 1){
name = "废旧物资库房";

2
src/views/gunpowder/ProcessIndustrialExplosiveList.vue

@ -34,7 +34,7 @@
<!-- 操作按钮区域 -->
<div class="table-operator">
<!-- <a-button @click="handleAdd" type="primary" icon="plus" v-has="'ProcessIndustrialExplosiveList:add'">新增</a-button>-->
<a-button @click="handleAdd" type="primary" icon="plus" v-has="'ProcessIndustrialExplosiveList:add'">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('process_industrial_explosive')" v-has="'ProcessIndustrialExplosiveList:export'">导出</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import" v-has="'ProcessIndustrialExplosiveList:import'">导入</a-button>

36
src/views/gunpowder/modules/ProcessIndustrialScrapForm.vue

@ -3,11 +3,11 @@
<j-form-container :disabled="formDisabled">
<a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
<a-row>
<a-col :span="8">
<a-form-model-item label="出库时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="deliveryTime">
<j-date placeholder="请选择出库时间" v-model="model.deliveryTime" style="width: 100%" />
</a-form-model-item>
</a-col>
<!-- <a-col :span="8">-->
<!-- <a-form-model-item label="出库时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="deliveryTime">-->
<!-- <j-date placeholder="请选择出库时间" v-model="model.deliveryTime" style="width: 100%" />-->
<!-- </a-form-model-item>-->
<!-- </a-col>-->
<a-col :span="8">
<a-form-model-item label="火工品编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="pyrotechnics">
<a-input v-model="model.pyrotechnics" placeholder="请输入火工品编号" ></a-input>
@ -113,10 +113,30 @@
},
confirmLoading: false,
validatorRules: {
disburseNum: [
{ required: true, message: '请输入支出数量!'},
{ pattern: /^-?\d+\.?\d*$/, message: '请输入数字!'},
pyrotechnics: [
{ required: true, message: '请输入火工品编号!'},
{ pattern: /^-?\d+\.?\d*$/, message: '请输入火工品编号!'},
],
price: [
{ required: true, message: '请输入价格!'},
{ pattern: /^-?\d+\.?\d*$/, message: '请输入价格!'},
],
pyrotechnicsName: [
{ required: true, message: '请输入名称及规格!'},
{ message: '请输入名称及规格!'},
],
disburseNum: [
{ required: true, message: '请输入支出数量!'},
{ pattern: /^-?\d+\.?\d*$/, message: '请输入数字!'},
],
category: [
{ required: true, message: '请选择火工品类型!'},
{ message: '请选择火工品类型!'},
],
materialUnit: [
{ required: true, message: '请输入用料单位!'},
{ message: '请输入用料单位!'},
],
},
url: {
add: "/gunpowder/processIndustrialScrap/add",

25
src/views/materialstorage/modules/ProcessMaterialStorageForm.vue

@ -7,7 +7,7 @@
<a-form-item label="供应商" :labelCol="labelCol" :wrapperCol="wrapperCol">
<!-- <a-input v-decorator="['supplierId']" placeholder="请输入供应商" ></a-input>-->
<a-auto-complete
v-decorator="['supplierId']" placeholder="请输入供应商"
v-decorator="['supplierId',validatorRules.supplierId]" placeholder="请输入供应商"
:data-source="bigSupplierId"
@select="onSelectRake"
@search="onSearchSupplier"
@ -18,7 +18,7 @@
<a-form-item label="物料名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<!-- <a-input v-decorator="['merchandiseNewsId']" placeholder="请输入物料详情" ></a-input>-->
<a-auto-complete
v-decorator="['merchandiseNewsId']" placeholder="请输入物料名称"
v-decorator="['merchandiseNewsId',validatorRules.merchandiseNewsId]" placeholder="请输入物料名称"
:data-source="bigMerchandiseId"
@select="onSelectRake"
@search="onSearchMerchandiseNews"
@ -30,7 +30,7 @@
<a-form-item label="物料组编号" :labelCol="labelCol" :wrapperCol="wrapperCol">
<!-- <a-input v-decorator="['descriptionId']" placeholder="请输入品名类" ></a-input>-->
<a-auto-complete
v-decorator="['descriptionId']" placeholder="请输入品名类"
v-decorator="['descriptionId',validatorRules.descriptionId]" placeholder="请输入品名类"
:data-source="bigId"
@select="onSelectRake"
@search="onSearch"
@ -44,7 +44,7 @@
<!-- <a-select-option v-for="(item,index) in bigId" :key="index" :value="item.id">{{item.supplierName}}</a-select-option>-->
<!-- </a-select>-->
<a-auto-complete
placeholder="请选择库存地点" v-decorator="['inventoryAddress']"
placeholder="请选择库存地点" v-decorator="['inventoryAddress',validatorRules.inventoryAddress]"
:data-source="bigIdRake"
@select="onSelectRake"
@search="onSearchRake"
@ -58,7 +58,7 @@
<!-- <a-select-option v-for="(item,index) in bigId" :key="index" :value="item.id">{{item.supplierName}}</a-select-option>-->
<!-- </a-select>-->
<a-auto-complete
v-decorator="['unit']" placeholder="请输入单位"
v-decorator="['unit',validatorRules.unit]" placeholder="请输入单位"
:data-source="bigIdUnit"
@select="onSelectRake"
@search="onSearchRake"
@ -141,6 +141,21 @@
},
confirmLoading: false,
validatorRules: {
supplierId: {rules: [
{ required: true, message: '请输入供应商!'},
]},
merchandiseNewsId: {rules: [
{ required: true, message: '请输入物料名称!'},
]},
descriptionId: {rules: [
{ required: true, message: '请输入物料组编号!'},
]},
inventoryAddress: {rules: [
{ required: true, message: '请输入库存地点!'},
]},
unit: {rules: [
{ required: true, message: '请输入单位!'},
]},
},
url: {
add: "/materialstorage/processMaterialStorage/add",

46
src/views/regime/ProcessRegimeList.vue

@ -77,8 +77,12 @@
class="j-table-force-nowrap"
@change="handleTableChange">
<span slot="name" slot-scope="text, record">
<j-ellipsis :value="text" :length="10"/>
</span>
<template slot="htmlSlot" slot-scope="text">
<div v-html="text"></div>
<div v-html="$options.filters.setContent(text)"></div>
</template>
<template slot="imgSlot" slot-scope="text,record">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
@ -161,13 +165,28 @@
{
title:'标题',
align:"center",
dataIndex: 'title'
dataIndex: 'title',
width:260,
scopedSlots: {customRender: 'name'}
},
{
title:'内容',
align:"center",
dataIndex: 'contentDetails',
scopedSlots: {customRender: 'htmlSlot'}
scopedSlots: {customRender: 'htmlSlot'},
// onCell: ()=>{
// return {
// style:{
// maxWidth:260,
// overflow:'hidden',
// whiteSpace:'nowrap',
// textOverflow:'ellipsis',
// cursor:'pointer',
// }
// }
// },
// render: (text) => <span placement="topLeft" title={text}>{text}</span>,
},
// {
// title:'',
@ -208,6 +227,16 @@
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
},
},
filters: {
//
setContent(value) {
if (!value) return "";
if (value.length > 100) {
return value.slice(0, 300) + "...";
}
return value;
}
},
methods: {
initDictConfig(){
},
@ -225,4 +254,15 @@
</script>
<style scoped>
@import '~@assets/less/common.less';
/*.ant-table-tbody > tr > td,*/
/*.ant-table-thead > tr > th {*/
/* height: 62px;*/
/* */
/* }*/
/* .ant-table-thead > tr > th {*/
/* background: #2db7f5;*/
/* }*/
</style>

2
src/views/statisticanalysis/costecharts/CaseCost.vue

@ -261,7 +261,7 @@ export default {
getAction(this.url.listByuntil).then((res) => {
if (res.success) {
this.queryParamsUntil = res.result.records || res.result
console.log(this.queryParamsUntil)
// console.log(this.queryParamsUntil)
let ind = this.queryParamsUntil.findIndex(item => item.id === this.bu);
console.log(ind);

2
src/views/statisticanalysis/costecharts/CostAnalysis.vue

@ -99,7 +99,7 @@ name: "CostAnalysis",
// console.log(this.queryParamsUntil)
let index = this.queryParamsUntil.findIndex(item => item.id=== this.bu)
if(index == -1) {
this.formData.materialType = this.queryParamsUntil[1].id;
// this.formData.materialType = this.queryParamsUntil[1].id;
}else{
this.formData.materialType = this.bu;
}

32
src/views/supplier/modules/ProcessSupplierForm.vue

@ -5,24 +5,24 @@
<a-row>
<a-col :span="8">
<a-form-item label="供应商编码" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-decorator="['coding']" placeholder="请输入供应商编码" ></a-input>
<a-input v-decorator="['coding',validatorRules.coding]" placeholder="请输入供应商编码" ></a-input>
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="供应商名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-decorator="['supplierName']" placeholder="请输入供应商名称" ></a-input>
<a-input v-decorator="['supplierName',validatorRules.supplierName]" placeholder="请输入供应商名称" ></a-input>
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="级别" :labelCol="labelCol" :wrapperCol="wrapperCol">
<!-- <a-input-number v-decorator="['rank']" placeholder="请输入级别" style="width: 100%" />-->
<!-- <j-dict-select-tag type="list" v-decorator="['rank']" :trigger-change="true" placeholder="请输入级别" dictCode="supplier_type" />-->
<a-select v-decorator="['superior']" placeholder="请选择级别" v-if="!hideDis" >
<a-select-option v-for="(item,index) in bigIder" :key="index" :value="item.superior">{{item.superior}}123</a-select-option>
<a-select v-decorator="['superior',validatorRules.superior]" placeholder="请选择级别" v-if="!hideDis" >
<a-select-option v-for="(item,index) in bigIder" :key="index" :value="item.superior">{{item.superior}}</a-select-option>
</a-select>
<a-auto-complete
v-if="hideDis"
v-decorator="['superior']"
v-decorator="['superior',validatorRules.superior]"
:data-source="bigId"
style="width: 200px"
placeholder="请选择级"
@ -33,7 +33,7 @@
</a-col>
<a-col :span="8">
<a-form-item label="状态" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-dict-select-tag type="list" v-decorator="['state']" :trigger-change="true" dictCode="supplier_state" placeholder="请选择状态" />
<j-dict-select-tag type="list" v-decorator="['state',validatorRules.state]" :trigger-change="true" dictCode="supplier_state" placeholder="请选择状态" />
</a-form-item>
</a-col>
<!-- <a-col :span="8">-->
@ -93,7 +93,7 @@
bigIder: [],
labelCol: {
xs: { span: 24 },
sm: { span: 5 },
sm: { span: 6 },
},
wrapperCol: {
xs: { span: 24 },
@ -101,6 +101,22 @@
},
confirmLoading: false,
validatorRules: {
coding: {rules: [ { required: true, message: '请输入供应商编码!'},] } ,
// { pattern: /^-?\d+\.?\d*$/, message: '!'},
supplierName: {rules: [
{ required: true, message: '请输入供应商名称!'},
// { pattern: /^-?\d+\.?\d*$/, message: '!'},
]},
superior: {rules: [
{ required: true, message: '请选择供应商级别!'},
// { pattern: /^-?\d+\.?\d*$/, message: '!'},
]},
state: {rules: [
{ required: true, message: '请选择状态!'},
// { pattern: /^-?\d+\.?\d*$/, message: '!'},
]},
},
url: {
add: "/supplier/processSupplier/add",
@ -182,7 +198,7 @@
this.bigIder = [];
getAction(this.url.supplierRake,null).then((res)=>{
if(res.success){
// console.log(res.result);
// console.log(res);
this.bigIder = res.result;
}
});

19
src/views/unitwaste/modules/ProcessUnitWasteWarehouseCodeForm.vue

@ -5,17 +5,17 @@
<a-row>
<a-col :span="8">
<a-form-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-select-depart v-decorator="['unit']" multi />
<j-select-depart v-decorator="['unit',validatorRules.unit]" multi />
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="账外物资编码" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-decorator="['libraryAssociationIdInvisible']" placeholder="请输入账外物资编码" :disabled = this.hideDis ></a-input>
<a-input v-decorator="['libraryAssociationIdInvisible',validatorRules.libraryAssociationIdInvisible]" placeholder="请输入账外物资编码" :disabled = this.hideDis ></a-input>
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="废旧物资编码" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-decorator="['libraryAssociationIdWaste']" placeholder="请输入废旧物资编码" :disabled = this.hideDis ></a-input>
<a-input v-decorator="['libraryAssociationIdWaste',validatorRules.libraryAssociationIdWaste]" placeholder="请输入废旧物资编码" :disabled = this.hideDis ></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
@ -73,7 +73,7 @@
hideDis : true,
labelCol: {
xs: { span: 24 },
sm: { span: 6 },
sm: { span: 7 },
},
labelCols: {
xs: { span: 24 },
@ -85,10 +85,19 @@
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 15 },
sm: { span: 14 },
},
confirmLoading: false,
validatorRules: {
unit: {rules: [
{ required: true, message: '请输入单位!'},
]},
libraryAssociationIdInvisible: {rules: [
{ required: true, message: '请输入账外物资编码!'},
]},
libraryAssociationIdWaste: {rules: [
{ required: true, message: '请输入废旧物资编码!'},
]},
},
url: {
add: "/unitwaste/processUnitWasteWarehouseCode/add",

Loading…
Cancel
Save