汇总上报功能提交

20240109-yw
yuanwei 1 year ago
parent bd1da2f46f
commit 8b5958523b

@ -4,12 +4,13 @@
<!---生产企业资质-->
<el-card>
<el-form
v-if="queryList && queryList.length > 0"
:model="filterQuery"
class="query-form"
label-width="100px"
v-show="showSearch"
>
<el-row>
<!-- <el-row>
<el-col span="6">
<el-form-item label="企业名称:">
<el-input
@ -44,6 +45,72 @@
</el-select>
</el-form-item>
</el-col>
</el-row> -->
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList" >
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
<el-input
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
clearable
></el-input>
</el-form-item>
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-select v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
clearable>
<el-option
v-for="dict in item.lableRuleObj"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-select
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
filterable
remote
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
clearable>
<el-option
v-for="item in options[item.clickFuc]"
:key="item.code"
:label="item.label"
:value="item.code"
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-date-picker
v-model="dateRange"
:style="`width:${item.width+'px'}`"
value-format="yyyy-MM-dd HH:mm:ss"
:disabled="executeEval(null,item.disabledFuc,false)"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-date-picker
v-model="filterQuery[item.columnName]"
:style="`width:${item.width+'px'}`"
value-format="yyyy-MM-dd"
:disabled="executeEval(null,item.disabledFuc,false)"
type="date"
:placeholder="item.columnDesc"
></el-date-picker>
</el-form-item>
</template>
</el-row>
</el-form>
@ -73,9 +140,9 @@
style="width: 100%"
border
highlight-current-row
@current-change="supManufacturerClick"
@current-change="(row) => executeFuc(row,'0',tableObj.handleChangeFuc)"
>
<el-table-column label="序号" type="index"></el-table-column>
<!-- <el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="企业名称"
prop="companyName"
@ -130,7 +197,94 @@
>说明
</el-button>
</template>
</el-table-column>
</el-table-column> -->
<template v-for="(item, index) in tableHeader">
<el-table-column
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
type="index" :label="item.columnDesc"></el-table-column>
<el-table-column
v-if="item.columnType == 'selection'"
type="selection"
:width="item.width"
:selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"
></el-table-column>
<el-table-column
v-if="item.columnType == 'radio' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'laber' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'eltag' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-tag :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
<span>{{ item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName] }}</span>
</el-tag>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'button' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:width="item.width"
:key="item.columnName"
fixed="right"
>
<template slot-scope="scope">
<el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"
:type="buttonItem.type"
:size="buttonItem.size"
:style="buttonItem.style"
:key="buttonItem"
v-if="executeEval(scope.row,buttonItem.hasPermi,true)"
:disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"
@click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"
>{{ buttonItem.name }}
</el-button>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'text' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
</template>
</el-table-column>
</template>
</el-table>
<pagination
@ -162,13 +316,14 @@
<!---配送企业资质-->
<el-card class="el-card">
<el-form
v-if="queryList2 && queryList2.length > 0"
:model="registrationQuery"
class="query-form"
style="margin-top: 5px"
v-show="showSearch2"
label-width="100px"
>
<el-row>
<!-- <el-row>
<el-col span="6">
<el-form-item label="物资名称:">
<el-input
@ -199,6 +354,72 @@
></el-input>
</el-form-item>
</el-col>
</el-row> -->
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList3" >
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
<el-input
v-model="registrationQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
clearable
></el-input>
</el-form-item>
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-select v-model="registrationQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
clearable>
<el-option
v-for="dict in item.lableRuleObj"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-select
v-model="registrationQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
filterable
remote
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
clearable>
<el-option
v-for="item in options[item.clickFuc]"
:key="item.code"
:label="item.label"
:value="item.code"
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-date-picker
v-model="dateRange"
:style="`width:${item.width+'px'}`"
value-format="yyyy-MM-dd HH:mm:ss"
:disabled="executeEval(null,item.disabledFuc,false)"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-date-picker
v-model="registrationQuery[item.columnName]"
:style="`width:${item.width+'px'}`"
value-format="yyyy-MM-dd"
:disabled="executeEval(null,item.disabledFuc,false)"
type="date"
:placeholder="item.columnDesc"
></el-date-picker>
</el-form-item>
</template>
</el-row>
</el-form>
@ -234,7 +455,7 @@
border
highlight-current-row
>
<el-table-column type="index" label="序号" width="50"></el-table-column>
<!-- <el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column
label="注册/备案产品名称"
prop="recordProductName"
@ -284,7 +505,94 @@
>删除
</el-button>
</template>
</el-table-column>
</el-table-column> -->
<template v-for="(item, index) in tableHeader2">
<el-table-column
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
type="index" :label="item.columnDesc"></el-table-column>
<el-table-column
v-if="item.columnType == 'selection'"
type="selection"
:width="item.width"
:selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"
></el-table-column>
<el-table-column
v-if="item.columnType == 'radio' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'laber' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'eltag' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-tag :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
<span>{{ item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName] }}</span>
</el-tag>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'button' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:width="item.width"
:key="item.columnName"
fixed="right"
>
<template slot-scope="scope">
<el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"
:type="buttonItem.type"
:size="buttonItem.size"
:style="buttonItem.style"
:key="buttonItem"
v-if="executeEval(scope.row,buttonItem.hasPermi,true)"
:disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"
@click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"
>{{ buttonItem.name }}
</el-button>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'text' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
</template>
</el-table-column>
</template>
</el-table>
<pagination
@ -327,6 +635,9 @@ import {
deleteRegistration,
} from "@/api/purchase/suppliersRegistrationBasic";
import suppliersRegistrationBasic from "@/views/purchase/product/supProductEditDialog";
import {
getHead,executeFuc
} from "@/utils/customConfig";
export default {
name: "supCertificationAdd",
@ -346,6 +657,14 @@ export default {
limit: 20,
},
total: 0,
tableHeader:[],
queryList:[],
fromList:[],
tableHeader2:[],
queryList2:[],
fromList2:[],
options:{
},
companyTypeMap: {
1: "境内企业",
2: "境外企业",
@ -482,20 +801,24 @@ export default {
hideSearch2() {
this.showSearch2 = !this.showSearch2;
},
addInfoDialog(row) {
if (this.$isNotBlank(row)) {
this.enterpriseId = row.id;
this.editType = 1;
this.inputQuery = row;
addInfoDialog(_this,row) {
if(_this == null){
_this = this
}
if (_this.$isNotBlank(row)) {
_this.enterpriseId = row.id;
_this.editType = 1;
_this.inputQuery = row;
} else {
this.enterpriseId = null;
this.editType = 0;
this.inputQuery = {
_this.enterpriseId = null;
_this.editType = 0;
_this.inputQuery = {
auditStatus: 0,
};
}
this.addInfoVisible = true;
_this.addInfoVisible = true;
},
closeDialog(type) {
this.addInfoVisible = false;
@ -519,8 +842,8 @@ export default {
console.log(this.check);
},
rejectInfo(row) {
this.$confirm(row.auditComment, "驳回说明", {
rejectInfo(_this,row) {
_this.$confirm(row.auditComment, "驳回说明", {
confirmButtonText: "确定",
type: "warning",
showCancelButton: false,
@ -528,8 +851,8 @@ export default {
});
},
deleteDialog(row) {
this.$confirm("删除后将清空该生产企业以及所有关联信息?", "提示", {
deleteDialog(_this,row) {
_this.$confirm("删除后将清空该生产企业以及所有关联信息?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
@ -539,18 +862,18 @@ export default {
id: row.id,
};
deleteCompany(tQuery).then(() => {
this.getList();
_this.getList();
});
})
.catch(() => {
});
},
supManufacturerClick(row) {
this.registrationQuery.customerId = row.customerId;
this.registrationQuery.manufacturerIdFk = row.manufacturerId;
this.getRegistrationList();
this.currentManufacturer = row;
supManufacturerClick(_this,row) {
_this.registrationQuery.customerId = row.customerId;
_this.registrationQuery.manufacturerIdFk = row.manufacturerId;
_this.getRegistrationList();
_this.currentManufacturer = row;
},
/**---------------------------配送产品资质----------------------*/
@ -579,39 +902,42 @@ export default {
this.registrationQuery.page = 1;
this.getRegistrationList();
},
registrationDialog(row) {
if (this.currentManufacturer == null) {
this.$message.error("请先选中生产企业!");
registrationDialog(_this,row) {
if(_this == null){
_this = this
}
if (_this.currentManufacturer == null) {
_this.$message.error("请先选中生产企业!");
return;
}
if (this.$isNotBlank(row)) {
this.registrationId = row.id;
this.curProductQuery = row;
this.curProductQuery.cuStatus = this.currentManufacturer.auditStatus;
this.curProductQuery.manufacturerId =
this.registrationQuery.manufacturerIdFk;
this.formName = "update";
this.editProductType = 1;
if (_this.$isNotBlank(row)) {
_this.registrationId = row.id;
_this.curProductQuery = row;
_this.curProductQuery.cuStatus = _this.currentManufacturer.auditStatus;
_this.curProductQuery.manufacturerId =
_this.registrationQuery.manufacturerIdFk;
_this.formName = "update";
_this.editProductType = 1;
} else {
this.editProductType = 0;
this.formName = "add";
this.curProductQuery = {
_this.editProductType = 0;
_this.formName = "add";
_this.curProductQuery = {
auditStatus: 0,
cuStatus: this.currentManufacturer.auditStatus,
manufacturerId: this.registrationQuery.manufacturerIdFk,
cuStatus: _this.currentManufacturer.auditStatus,
manufacturerId: _this.registrationQuery.manufacturerIdFk,
};
}
this.registrationVisible = true;
_this.registrationVisible = true;
},
deleteRegistration(row) {
this.$confirm("是否删除?", "提示", {
deleteRegistration(_this,row) {
_this.$confirm("是否删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.certLoading = true;
_this.certLoading = true;
let tQuery = {
id: row.id,
filePath: row.filePath,
@ -619,19 +945,19 @@ export default {
};
deleteRegistration(tQuery)
.then((response) => {
this.certLoading = false;
_this.certLoading = false;
if (response.code === 20000) {
this.getRegistrationList();
this.$message({
_this.getRegistrationList();
_this.$message({
type: "success",
message: "删除成功!",
});
} else {
this.$message.error(response.message);
_this.$message.error(response.message);
}
})
.catch(() => {
this.certLoading = false;
_this.certLoading = false;
});
})
.catch(() => {
@ -664,6 +990,15 @@ export default {
this.registrationQuery.page = val.page;
this.getRegistrationList();
},
executeFuc(row,type,clickFuc,value){
return executeFuc(this,row,type,clickFuc,value);
},
executeEval(row,expression,defaultRet){
if(expression){
return eval(expression);
}
return defaultRet;
}
},
components: {
suppliersEnterpriseBasicAdd,
@ -674,7 +1009,21 @@ export default {
created() {
this.fileUrl =
this.BASE_URL + "/udiwms/image/register/file/getImage?type=image4&name=";
this.getList();
getHead("client-supCertAudit-1","1").then((re) => {
//
this.tableObj = re.data;
this.tableHeader = re.data.tableList;
this.queryList = re.data.queryList;
this.fromList = re.data.fromList;
this.getList();
});
getHead("client-supCertAudit-2","1").then((re) => {
//
this.tableObj2 = re.data;
this.tableHeader2 = re.data.tableList;
this.queryList2 = re.data.queryList;
this.fromList2 = re.data.fromList;
});
// this.getRegistrationList();
},
};

@ -2,7 +2,7 @@
<div>
<el-card class="el-card">
<el-form :model="query" label-width="100px" class="query-form" size="mini" v-show="showSearch">
<el-row>
<!-- <el-row>
<el-col span="6">
<el-form-item label="搜索:">
<el-input v-model="query.key" placeholder="搜索" style="width: 90%" clearable="true"></el-input>
@ -17,6 +17,72 @@
</el-select>
</el-form-item>
</el-col>
</el-row> -->
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList" >
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
<el-input
v-model="query[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
clearable
></el-input>
</el-form-item>
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-select v-model="query[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
clearable>
<el-option
v-for="dict in item.lableRuleObj"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-select
v-model="query[item.columnName]"
:placeholder="item.columnDesc"
@change="executeFuc($event,'5',item.checkRules)"
:disabled="executeEval(null,item.disabledFuc,false)"
filterable
remote
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
clearable>
<el-option
v-for="item in options[item.clickFuc]"
:key="item.code"
:label="item.label"
:value="item.code"
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-date-picker
:picker-options="pickerOptions"
v-model="actDateRange"
type="daterange"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-date-picker
v-model="query[item.columnName]"
:style="`width:${item.width+'px'}`"
value-format="yyyy-MM-dd"
:disabled="executeEval(null,item.disabledFuc,false)"
type="date"
:placeholder="item.columnDesc"
></el-date-picker>
</el-form-item>
</template>
</el-row>
</el-form>
@ -29,7 +95,7 @@
<!-- <el-button type="primary" icon="el-icon-plus" @click.native="handleForm(null, null)"-->
<!-- :disabled="!configParms.basicCorp">新增-->
<!-- </el-button>-->
<el-button type="primary" icon="el-icon-plus" @click.native="handleForm(null, null)">新增</el-button>
<el-button type="primary" icon="el-icon-plus" @click.native="handleForm()">新增</el-button>
<!-- <el-button type="primary" icon="el-icon-bottom-right" @click="intentDetail"></el-button>-->
</el-button-group>
</div>
@ -37,7 +103,7 @@
<el-table v-loading="loading" :data="list" border highlight-current-row>
<el-table-column label="序号" type="index" width="50"></el-table-column>
<!-- <el-table-column label="序号" type="index" width="50"></el-table-column>
<el-table-column label="往来单位编码" prop="erpId" show-overflow-tooltip></el-table-column>
<el-table-column label="第三方主系统ID" prop="thirdId" show-overflow-tooltip></el-table-column>
<el-table-column label="名称" prop="name" show-overflow-tooltip></el-table-column>
@ -52,7 +118,94 @@
删除
</el-button>
</template>
</el-table-column>
</el-table-column> -->
<template v-for="(item, index) in tableHeader">
<el-table-column
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
type="index" :label="item.columnDesc"></el-table-column>
<el-table-column
v-if="item.columnType == 'selection'"
type="selection"
:width="item.width"
:selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"
></el-table-column>
<el-table-column
v-if="item.columnType == 'radio' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'laber' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'eltag' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-tag :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
<span>{{ item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName] }}</span>
</el-tag>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'button' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:width="item.width"
:key="item.columnName"
fixed="right"
>
<template slot-scope="scope">
<el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"
:type="buttonItem.type"
:size="buttonItem.size"
:style="buttonItem.style"
:key="buttonItem"
v-if="executeEval(scope.row,buttonItem.hasPermi,true)"
:disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"
@click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"
>{{ buttonItem.name }}
</el-button>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'text' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
</template>
</el-table-column>
</template>
</el-table>
@ -296,7 +449,7 @@ import {deleteCompanyCert, filterCompanyCert} from "@/api/purchase/companyCert";
import companyAddCert from "@/views/purchase/cert/supCertAddDialog.vue";
import {getUUID} from "@/utils/strUtil";
import {getCompanyList} from "@/api/purchase/supManufacturer";
import {executeFuc, getHead} from "@/utils/customConfig";
var pinyin = require("pinyin");
export default {
@ -345,7 +498,7 @@ export default {
},
query: {
key: "",
corpType: "2",
corpType: this.$route.query.corpType,
page: 1,
limit: 20,
},
@ -436,6 +589,11 @@ export default {
sysList: [],
loading: false,
total: 0,
tableHeader:[],
queryList:[],
fromList:[],
options: {
},
multipleSelection: [],
thirdSys: [],
thirdSysFk: null,
@ -656,85 +814,74 @@ export default {
this.getList();
return true;
},
handCert(index, row) {
this.registrationId = row.id;
this.curProductQuery = row;
handCert(_this, row) {
_this.registrationId = row.id;
_this.curProductQuery = row;
// this.curProductQuery.cuStatus = this.currentManufacturer.auditStatus;
// this.curProductQuery.companyIdFk =
// this.list.companyIdFk;
console.log(this.curProductQuery)
if (this.editType == 0) {
console.log(_this.curProductQuery)
if (_this.editType == 0) {
// this.inputQuery.productId = getUUID("");
this.inputQuery.companyIdFk = this.list.companyIdFk;
this.inputQuery.customerId=this.curProductQuery.erpId;
_this.inputQuery.companyIdFk = _this.list.companyIdFk;
_this.inputQuery.customerId=_this.curProductQuery.erpId;
} else {
this.getCompanyCertList();
this.pmQuery.customerId = this.curProductQuery.erpId;
this.pmQuery.companyIdFk = this.curProductQuery.companyIdFk;
console.log("2"+ this.list.companyIdFk);
_this.getCompanyCertList();
_this.pmQuery.customerId = _this.curProductQuery.erpId;
_this.pmQuery.companyIdFk = _this.curProductQuery.companyIdFk;
console.log("2"+ _this.list.companyIdFk);
}
this.cuStatus = this.certList.auditStatus;
this.findMethod();
this.findPMMethod();
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
console.log("666666666666:"+this.cuStatus);
_this.cuStatus = _this.certList.auditStatus;
_this.findMethod();
_this.findPMMethod();
_this.certFileUrl = _this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
console.log("666666666666:"+_this.cuStatus);
this.formName = "cert";
this.editProductType = 1;
_this.formName = "cert";
_this.editProductType = 1;
this.formVisible = true;
_this.formVisible = true;
// this.formName = "add";
this.spellUpdate = false;
if (index !== null) {
this.index = index;
this.formName = "cert";
this.spellUpdate = true;
this.editQuery = row;
_this.spellUpdate = false;
} else {
this.editQuery = {
id: "",
thirdId: "",
erpId: "",
name: "",
spell: "",
addr: "",
status: "",
type: "",
creditNo: "",
contact: "",
mobile: ""
};
}
_this.editQuery = {
id: "",
thirdId: "",
erpId: "",
name: "",
spell: "",
addr: "",
status: "",
type: "",
creditNo: "",
contact: "",
mobile: ""
};
//this.getThirdSysDetail();
},
//
handleForm(index, row) {
this.formVisible = true;
this.formName = "add";
this.spellUpdate = false;
if (index !== null) {
this.index = index;
this.formName = "update";
this.spellUpdate = true;
this.editQuery = row;
} else {
this.editQuery = {
id: "",
thirdId: "",
erpId: "",
name: "",
spell: "",
addr: "",
status: "",
type: "",
creditNo: "",
contact: "",
mobile: ""
};
handleForm(_this, row) {
if(_this == null){
_this = this
}
_this.formVisible = true;
_this.formName = "add";
_this.spellUpdate = false;
_this.editQuery = {
id: "",
thirdId: "",
erpId: "",
name: "",
spell: "",
addr: "",
status: "",
type: "",
creditNo: "",
contact: "",
mobile: ""
};
//this.getThirdSysDetail();
},
@ -836,14 +983,14 @@ export default {
//this.getThirdSysDetail();
},
deleteDialog(rowId) {
this.$confirm("此操作将永久删除该往来单位信息, 是否继续?", "提示", {
deleteDialog(_this,rowId) {
_this.$confirm("此操作将永久删除该往来单位信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.deleteUnit(rowId);
_this.deleteUnit(rowId);
})
.catch(() => {
});
@ -958,6 +1105,15 @@ export default {
.catch(() => {
});
},
executeFuc(row,type,clickFuc,value){
return executeFuc(this,row,type,clickFuc,value);
},
executeEval(row,expression,defaultRet){
if(expression){
return eval(expression);
}
return defaultRet;
},
}
,
mounted() {
@ -969,7 +1125,14 @@ export default {
}
,
created() {
this.getList();
getHead("client-corpMaintain","1").then((re) => {
//
this.tableObj = re.data;
this.tableHeader = re.data.tableList;
this.queryList = re.data.queryList;
this.fromList = re.data.fromList;
this.getList()
});
//this.getSyncConfig();
//this.getBasicThirdSys();

@ -338,8 +338,8 @@
<script>
import {getUdiInfos, filterRel, filterDict, filterCompany} from "@/api/basic/product/udiInfo";
import {superSearch} from "@/api/basic/udiInfo";
import selectDiDetail from "./SelectDIDetailDialog"
import {batchCombine} from "../../../../api/basic/udiRlCompany";
import selectDiDetail from "@/views/basic/client/rel/SelectDIDetailDialog"
import {batchCombine} from "@/api/basic/udiRlCompany";
import {batchDictAdd} from "@/api/basic/UdiBasic";
export default {

@ -2,37 +2,13 @@
<div>
<el-card>
<el-form :model="filterQuery" label-width="120px" v-show="showSearch">
<el-row>
<!-- <el-row>
<el-col :span="6">
<el-form-item label="生产企业:">
<el-input v-model="filterQuery.ylqxzcrbarmc" style="width: 90%" placeholder="请输入生产企业/注册备案人"
clearable="true"></el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="6">-->
<!-- <el-form-item label="注册企业:">-->
<!-- <el-select-->
<!-- v-model="filterQuery.companyIdFk"-->
<!-- style="width: 90%"-->
<!-- filterable-->
<!-- remote-->
<!-- clearable="true"-->
<!-- reserve-keyword-->
<!-- placeholder="请选择注册企业"-->
<!-- :remote-method="findMethod"-->
<!-- :loading="loading"-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="item in fromOptions"-->
<!-- :key="item.id"-->
<!-- :label="item.companyName"-->
<!-- :value="item.id"-->
<!-- >-->
<!-- <span style="float: left">{{ item.companyName }}</span>-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="6">
<el-form-item label="产品编码:">
<el-input v-model="filterQuery.unionCode" style="width: 90%" placeholder="请输入DI/医保编码/商品条码"
@ -60,6 +36,72 @@
</el-form-item>
</el-col>
</el-row> -->
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList" >
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
<el-input
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
clearable
></el-input>
</el-form-item>
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-select v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
clearable>
<el-option
v-for="dict in item.lableRuleObj"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-select
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
@change="executeFuc($event,'5',item.checkRules)"
:disabled="executeEval(null,item.disabledFuc,false)"
filterable
remote
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
clearable>
<el-option
v-for="item in options[item.clickFuc]"
:key="item.code"
:label="item.label"
:value="item.code"
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-date-picker
:picker-options="pickerOptions"
v-model="actDateRange"
type="daterange"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-date-picker
v-model="filterQuery[item.columnName]"
:style="`width:${item.width+'px'}`"
value-format="yyyy-MM-dd"
:disabled="executeEval(null,item.disabledFuc,false)"
type="date"
:placeholder="item.columnDesc"
></el-date-picker>
</el-form-item>
</template>
</el-row>
</el-form>
<div class="top-right-btn">
@ -82,11 +124,10 @@
<el-table v-loading="loading" :data="list" key="1"
style="width: 100%" border @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/>
<!-- <el-table-column type="selection" width="55" align="center"/>
<el-table-column label="序号" type="index" prop="noticeId"></el-table-column>
<el-table-column label="产品名称" prop="cpmctymc" show-overflow-tooltip></el-table-column>
<el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip width="80"></el-table-column>
<!-- <el-table-column label="注册企业" prop="companyName" show-overflow-tooltip></el-table-column>-->
<el-table-column label="填报者身份" prop="companyName" show-overflow-tooltip width="90">
<template slot-scope="scope">
@ -106,7 +147,94 @@
<el-button type="text" @click.native.stop="diEdit(scope.row)">编辑</el-button>
<el-button type="text" @click.native.stop="deleteDialog(scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table-column> -->
<template v-for="(item, index) in tableHeader">
<el-table-column
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
type="index" :label="item.columnDesc"></el-table-column>
<el-table-column
v-if="item.columnType == 'selection'"
type="selection"
:width="item.width"
:selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"
></el-table-column>
<el-table-column
v-if="item.columnType == 'radio' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'laber' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'eltag' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-tag :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
<span>{{ item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName] }}</span>
</el-tag>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'button' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:width="item.width"
:key="item.columnName"
fixed="right"
>
<template slot-scope="scope">
<el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"
:type="buttonItem.type"
:size="buttonItem.size"
:style="buttonItem.style"
:key="buttonItem"
v-if="executeEval(scope.row,buttonItem.hasPermi,true)"
:disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"
@click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"
>{{ buttonItem.name }}
</el-button>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'text' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
</template>
</el-table-column>
</template>
</el-table>
<el-dialog
@ -198,6 +326,7 @@ import {
filterProductInfoDetail
} from '@/api/basic/udiRlCompany'
import ProductEdit from "@/views/basic/product/rel/productEdit";
import {executeFuc, getHead} from "@/utils/customConfig";
export default {
data() {
@ -240,6 +369,12 @@ export default {
sysList: [],
filterList: [],
total: 0,
tableHeader:[],
queryList:[],
fromList:[],
options: {
findMethod:[]
},
thirdNo: "",
originUuid: null,
thirdId: null,
@ -285,19 +420,19 @@ export default {
},
//
commit(row){
commit(_this,row){
let tquery = {
uuid: row.uuid + "",
};
filterProductInfoDetail(tquery)
.then((response) => {
if (response.code == 20000) {
this.$message({
_this.$message({
type: "success",
message: "提交成功!",
});
}else {
this.$message.error(response.message);
_this.$message.error(response.message);
}
})
.catch(() => {
@ -414,14 +549,14 @@ export default {
this.multiple = !selection.length
},
deleteDialog(rowId) {
this.$confirm("此操作将永久删除该产品信息, 是否继续?", "提示", {
deleteDialog(_this,rowId) {
_this.$confirm("此操作将永久删除该产品信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.deleteOrders(rowId);
_this.deleteOrders(rowId);
})
.catch(() => {
});
@ -458,13 +593,13 @@ export default {
this.filterQuery.page = val.page;
this.getList();
},
handleModifyClick(row) {
this.uuid = row.uuid;
this.isImport = false;
this.thisData = row;
this.editDialogVisible = true;
this.detailQuery = row;
this.checked = row.isUseDy == 1;
handleModifyClick(_this,row) {
_this.uuid = row.uuid;
_this.isImport = false;
_this.thisData = row;
_this.editDialogVisible = true;
_this.detailQuery = row;
_this.checked = row.isUseDy == 1;
},
closeUdi(val) {
@ -509,10 +644,10 @@ export default {
//
diEdit(row) {
this.uuid = row.uuid;
this.editFormat = JSON.parse(JSON.stringify(row));
this.editDiDialogVisible = true;
diEdit(_this,row) {
_this.uuid = row.uuid;
_this.editFormat = JSON.parse(JSON.stringify(row));
_this.editDiDialogVisible = true;
},
//
onAddSubmit(relSubmit) {
@ -531,6 +666,15 @@ export default {
this.cancelDialog();
});
},
executeFuc(row,type,clickFuc,value){
return executeFuc(this,row,type,clickFuc,value);
},
executeEval(row,expression,defaultRet){
if(expression){
return eval(expression);
}
return defaultRet;
}
}
,
mounted() {
@ -543,8 +687,14 @@ export default {
}
,
created() {
this.getList();
this.findMethod();
getHead("client-UdiRlCompany","1").then((re) => {
//
this.tableObj = re.data;
this.tableHeader = re.data.tableList;
this.queryList = re.data.queryList;
this.fromList = re.data.fromList;
this.getList()
});
}
,
}

@ -904,15 +904,6 @@ export default {
//this.getThirdSysDetail();
},
executeFuc(row,type,clickFuc,value){
return executeFuc(this,row,type,clickFuc,value);
},
executeEval(row,expression,defaultRet){
if(expression){
return eval(expression);
}
return defaultRet;
},
formSubmit() {
if (this.$isBlank(this.editQuery.corpType)) {
this.$message.error("往来单位类型不能为空!");
@ -1133,6 +1124,15 @@ export default {
.catch(() => {
});
},
executeFuc(row,type,clickFuc,value){
return executeFuc(this,row,type,clickFuc,value);
},
executeEval(row,expression,defaultRet){
if(expression){
return eval(expression);
}
return defaultRet;
},
}
,
mounted() {

@ -162,7 +162,7 @@
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'text' && executeEval(row,item.expression,true)"
v-if="item.columnType == 'text' && item.columnName!='startDate' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
@ -174,6 +174,20 @@
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'text' && item.columnName=='startDate' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row.startDate }}~{{ scope.row.endDate }}</span>
</template>
</el-table-column>
</template>
</el-table>
@ -341,6 +355,7 @@ import orderDetailDialog from "@/views/stat/orderDetailDialog";
import {deleteMonth, listMonth} from "@/api/stat/statMonth";
import {deleteOrder, listOrder} from "@/api/stat/statOrder";
import {executeFuc, getHead} from "@/utils/customConfig";
import {seachCompanyOptimize} from "@/api/basic/udiRlCompany.js";
export default {
name: "anncmntDev",
@ -352,6 +367,13 @@ export default {
limit: 10,
},
total: 0,
tableHeader:[],
queryList:[],
fromList:[],
tableObj:[],
options: {
findMethod:[]
},
loading: false,
list: [],
formName: 1,
@ -444,7 +466,7 @@ export default {
path: "",
});
this.filterCertQuery = {
manuCreditCode:this.changeCode,
recordKeyFk:this.recordKeyFk,
page: 1,
limit: 10,
};
@ -482,13 +504,13 @@ export default {
this.getCertList();
},
addCertMuti(){
var changeCode = this.changeCode;
if(!changeCode){
var recordKeyFk = this.recordKeyFk;
if(!recordKeyFk){
this.$message.error("请先选择企业");
return;
}
this.inputCertQuery={
manuCreditCode:changeCode
recordKeyFk:recordKeyFk
}
this.formCertName=1;
this.manuCertDialogVisible = true;
@ -499,7 +521,7 @@ export default {
_this.manuCertDialogVisible = true;
},
supCertClick(_this,row) {
_this.changeCode= row.creditCode
_this.recordKeyFk= row.recordKey
_this.onCertReset();
},
getList() {
@ -569,6 +591,23 @@ export default {
});
});
},
findMethod(_this,query) {
_this.fromOptions = [];
let cQuery = {
searchKey: query,
page: 1,
limit: 10,
};
seachCompanyOptimize(cQuery)
.then((response) => {
_this.loading = false;
_this.options.findMethod = response.data.list || [];
})
.catch(() => {
_this.loading = false;
_this.options.findMethod= [];
});
},
executeFuc(row,type,clickFuc,value){
return executeFuc(this,row,type,clickFuc,value);
},
@ -598,6 +637,7 @@ export default {
this.queryList2 = re.data.queryList;
this.fromList2 = re.data.fromList;
});
this.findMethod(this);
},
}
</script>

@ -200,14 +200,13 @@ export default {
},
components: {},
created() {
getHead("manu-2","1").then((re) => {
getHead("stat-order-2","1").then((re) => {
//
this.tableObj = re.data;
this.tableHeader = re.data.tableList;
this.queryList = re.data.queryList;
this.fromList = re.data.fromList;
});
this.getYlqxzczh(this);
},
}
</script>

@ -58,7 +58,7 @@
:placeholder="item.columnDesc"
:style="item.style"
@change="executeFuc($event,'5',item.clickFuc)"
:disabled="executeEval(null,item.disabledFuc,false)"
:disabled="item.disabled"
filterable
remote
:remote-method="(query) => executeFuc(query,'5',item.dataFuc)"
@ -83,11 +83,28 @@
<el-date-picker
v-model="inputQuery[item.columnName]"
:style="item.style"
:disabled="item.disabled"
value-format="yyyy-MM-dd"
type="date"
:placeholder="item.columnDesc"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType =='datetime'" :rules="item.checkRulesObj" :prop="item.columnName">
<span slot="label">
{{item.columnDesc}}
</span>
<el-date-picker
:picker-options="pickerOptions"
v-model="actDateRange"
type="daterange"
:disabled="item.disabled"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType =='treeCustom'" :prop="item.columnName">
<span slot="label">
{{item.columnDesc}}
@ -116,6 +133,7 @@
<script>
import {saveOrder} from "@/api/stat/statOrder";
import {seachCompanyOptimize} from "@/api/basic/udiRlCompany.js";
import {
getHead,executeFuc
} from "@/utils/customConfig";
@ -144,12 +162,51 @@ export default {
tableObj:[],
invList:[],
options: {
}
findMethod:[]
},
actDateRange: [],
pickerOptions: {
shortcuts: [
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
],
},
}
},
methods: {
submitInv(){
if (this.actDateRange !== null) {
this.inputQuery.startDate = this.actDateRange[0]+" 00:00:00";
this.inputQuery.endDate = this.actDateRange[1]+" 23:59:59";
} else {
this.inputQuery.startDate = null;
this.inputQuery.endDate = null;
}
if(this.formName==1){
saveOrder(this.inputQuery,"add").then((response) => {
if(response.code == 20000){
@ -176,6 +233,23 @@ export default {
});
}
},
findMethod(_this,query) {
_this.fromOptions = [];
let cQuery = {
searchKey: query,
page: 1,
limit: 10,
};
seachCompanyOptimize(cQuery)
.then((response) => {
_this.loading = false;
_this.options.findMethod = response.data.list || [];
})
.catch(() => {
_this.loading = false;
_this.options.findMethod= [];
});
},
executeFuc(row,type,clickFuc,value){
return executeFuc(this,row,type,clickFuc,value);
},
@ -188,14 +262,17 @@ export default {
},
components: {},
created() {
getHead("manu-1","1").then((re) => {
getHead("stat-order-1","1").then((re) => {
//
this.tableObj = re.data;
this.tableHeader = re.data.tableList;
this.queryList = re.data.queryList;
this.fromList = re.data.fromList;
});
if(this.inputQuery.id){
this.actDateRange = [this.inputQuery.startDate, this.inputQuery.endDate];
}
this.findMethod(this)
},
}
</script>

@ -446,7 +446,7 @@ export default {
path: "",
});
this.filterCertQuery = {
manuCreditCode:this.changeCode,
setFk:this.setFk,
page: 1,
limit: 10,
};
@ -466,6 +466,7 @@ export default {
closeAddDialog(){
this.addDialogVisible = false;
this.getList();
this.onCertReset();
},
addDialog(){
this.inputAddQuery={
@ -485,13 +486,13 @@ export default {
this.getCertList();
},
addCertMuti(){
var changeCode = this.changeCode;
if(!changeCode){
var setFk = this.setFk;
if(!setFk){
this.$message.error("请先选择企业");
return;
}
this.inputCertQuery={
manuCreditCode:changeCode
setFk:setFk
}
this.formCertName=1;
this.manuCertDialogVisible = true;
@ -502,7 +503,7 @@ export default {
_this.manuCertDialogVisible = true;
},
supCertClick(_this,row) {
_this.changeCode= row.creditCode
_this.setFk= row.id
_this.onCertReset();
},
getList() {
@ -540,6 +541,10 @@ export default {
},
getCertList() {
this.filterCertQuery.cpmctymc = this.filterQuery.cpmctymc;
this.filterCertQuery.ggxh = this.filterQuery.ggxh
this.filterCertQuery.zczbhhzbapzbh = this.filterQuery.zczbhhzbapzbh
this.filterCertQuery.companyName = this.filterQuery.companyName
this.loadCertLoading = true;
listSetDetail(this.filterCertQuery)
.then((response) => {

@ -127,9 +127,22 @@
</el-table-column>
<el-table-column width="120" label="注册企业名称">
<template slot-scope="scope">
<el-input v-model="scope.row.companyName"
:disabled="scope.row.id !== selectedIndex"
placeholder="请输入注册企业名称"></el-input>
<el-select
v-model="scope.row.companyName"
placeholder="请选择注册企业名称"
filterable
remote
:disabled="scope.row.id !== selectedIndex"
remote-method="findMethod"
clearable>
<el-option
v-for="item in fromOptions"
:key="item.label"
:label="item.label"
:value="item.label"
>
<span style="float: left">{{ item.label }}</span></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column width="120" label="di/标识">
@ -197,6 +210,7 @@ import setSelecProduct from "@/views/stat/setSelecProduct";
import {
getHead,executeFuc
} from "@/utils/customConfig";
import { seachCompanyOptimize } from "../../api/basic/udiRlCompany";
export default {
name: "ylqxzcrDialog",
@ -359,6 +373,23 @@ export default {
}
this.productVisible = true;
},
findMethod(query) {
this.fromOptions = [];
let cQuery = {
searchKey: query,
page: 1,
limit: 10,
};
seachCompanyOptimize(cQuery)
.then((response) => {
this.loading = false;
this.fromOptions = response.data.list || [];
})
.catch(() => {
this.loading = false;
this.fromOptions = [];
});
},
addSet(){
if (this.actDateRange !== null) {
this.inputQuery.startDate = this.actDateRange[0]+" 00:00:00";
@ -419,7 +450,7 @@ export default {
this.getOrderDetails();
this.actDateRange = [this.inputQuery.startDate, this.inputQuery.endDate];
}
this.findMethod()
},
}
</script>

@ -65,15 +65,11 @@
clearable>
<el-option
v-for="item in options[item.dataFuc]"
:key="item.code"
:label="item.code"
:value="item.code"
:key="item.label"
:label="item.label"
:value="item.label"
>
<span style="float: left">{{ item.code }}</span>
<span style="float: right; color: #8492a6; font-size: 13px;width:200px">{{
item.productName
}}</span>
</el-option>
<span style="float: left">{{ item.label }}</span></el-option>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType =='date'" :rules="item.checkRulesObj" :prop="item.columnName">
@ -128,6 +124,7 @@
<script>
import {saveSetDetail} from "@/api/stat/statSetDetail";
import {seachCompanyOptimize} from "@/api/basic/udiRlCompany.js";
import {
getHead,executeFuc
} from "@/utils/customConfig";
@ -156,7 +153,8 @@ export default {
tableObj:[],
invList:[],
options: {
getYlqxzczh:[]
getYlqxzczh:[],
findMethod:[]
}
}
},
@ -188,6 +186,23 @@ export default {
});
}
},
findMethod(_this,query) {
_this.fromOptions = [];
let cQuery = {
searchKey: query,
page: 1,
limit: 10,
};
seachCompanyOptimize(cQuery)
.then((response) => {
_this.loading = false;
_this.options.findMethod = response.data.list || [];
})
.catch(() => {
_this.loading = false;
_this.options.findMethod= [];
});
},
executeFuc(row,type,clickFuc,value){
return executeFuc(this,row,type,clickFuc,value);
},
@ -207,6 +222,7 @@ export default {
this.queryList = re.data.queryList;
this.fromList = re.data.fromList;
});
this.findMethod(this)
},
}
</script>

Loading…
Cancel
Save