|
@@ -56,16 +56,22 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="4">
|
|
|
- <el-select
|
|
|
+ <!-- <el-select
|
|
|
style="width:100%"
|
|
|
:size="searchSize"
|
|
|
- v-model="parmValue.demandCompany"
|
|
|
+ v-model="parmValue.customer_id"
|
|
|
clearable
|
|
|
placeholder="需求企业"
|
|
|
@change="pageInfo.curr = 1;parmValue.page = 1;searchList();"
|
|
|
>
|
|
|
<el-option />
|
|
|
- </el-select>
|
|
|
+ </el-select> -->
|
|
|
+ <search-customer
|
|
|
+ size="mini"
|
|
|
+ placeholder="需求企业"
|
|
|
+ :value.sync="parmValue.customer_id"
|
|
|
+ @change="pageInfo.curr = 1;parmValue.page = 1;searchList();"
|
|
|
+ />
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="3" style="width: 66px; float: right">
|
|
@@ -97,7 +103,7 @@
|
|
|
clearable
|
|
|
:size="searchSize"
|
|
|
placeholder="开票申请编号"
|
|
|
- v-model="parmValue.openInviceNo"
|
|
|
+ v-model="parmValue.invNo"
|
|
|
@change="
|
|
|
pageInfo.curr = 1;
|
|
|
parmValue.page = 1;
|
|
@@ -111,7 +117,7 @@
|
|
|
clearable
|
|
|
:size="searchSize"
|
|
|
placeholder="需求订单编号"
|
|
|
- v-model="parmValue.demandOrderNo"
|
|
|
+ v-model="parmValue.reqCode"
|
|
|
@change="
|
|
|
pageInfo.curr = 1;
|
|
|
parmValue.page = 1;
|
|
@@ -166,25 +172,16 @@
|
|
|
v-text="(statusList.find((item) => item.id == scope.row.status) || {}).label || '--'"
|
|
|
></el-tag>
|
|
|
</template>
|
|
|
- <template #good_name="{ scope }">
|
|
|
- <span>{{ scope.row.good_name }}</span>
|
|
|
- <span
|
|
|
- v-for="(si, sii) in scope.row.specinfo"
|
|
|
- :key="si.spec_value_id + sii"
|
|
|
- >
|
|
|
- {{ sii == 0 ? "__" : "--" }}{{ si.spec_name }}[{{
|
|
|
- si.spec_value_name
|
|
|
- }}]</span
|
|
|
- >
|
|
|
- </template>
|
|
|
- <template #can="{ scope }">
|
|
|
- <span v-for="(si, sii) in scope.row.can" :key="si.id + sii">
|
|
|
- <span v-if="sii !== 0">_</span>{{ si.name }}</span
|
|
|
- >
|
|
|
+
|
|
|
+ <template #invoice_type="{ scope: { row } }">
|
|
|
+ <el-tag size="mini">
|
|
|
+ {{
|
|
|
+ (invoiceTypeList.find(({value}) => value === String(row.invoice_type)) || {}).label || '--'
|
|
|
+ }}
|
|
|
+ </el-tag>
|
|
|
</template>
|
|
|
<template #operation="{ scope }">
|
|
|
<el-tooltip
|
|
|
- v-if="powers.some((i) => i == '007')"
|
|
|
effect="dark"
|
|
|
content="详情"
|
|
|
placement="top"
|
|
@@ -192,7 +189,7 @@
|
|
|
<i
|
|
|
class="el-icon-view tb-icon"
|
|
|
|
|
|
- @click="getRouter('invoiceApplyDetail', scope.row.bargainNo )"
|
|
|
+ @click="getRouter('invoiceApplyDetail', scope.row.id )"
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
@@ -203,19 +200,22 @@
|
|
|
import mixinPage from "@/mixins/elPaginationHandle";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
import asyncRequest from "@/apis/service/customerService/invoiceApply";
|
|
|
+import { invoiceTypeList } from '@/assets/js/statusList';
|
|
|
import companyHelper from "@/mixins/companyHelper"
|
|
|
import { listCol, statusList } from "./columns";
|
|
|
import { mapGetters } from "vuex";
|
|
|
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
*@props
|
|
|
createStart//创建开始时间
|
|
|
createEnd //创建结束时间
|
|
|
- demandCompany //需求企业
|
|
|
+ customer_id //需求企业
|
|
|
invoiceNumber //发票号码
|
|
|
invoiceType //发票类型
|
|
|
- openInviceNo //发票申请编号
|
|
|
- demandOrderNo //需求订单编号
|
|
|
+ invNo //发票申请编号
|
|
|
+ reqCode //需求订单编号
|
|
|
status //申请状态
|
|
|
*/
|
|
|
export default {
|
|
@@ -234,6 +234,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ invoiceTypeList,
|
|
|
customerCode: [], //客户公司code
|
|
|
statusList,
|
|
|
sitem: null,
|
|
@@ -244,11 +245,11 @@ export default {
|
|
|
parmValue: {
|
|
|
createStart:"",//创建开始时间
|
|
|
createEnd:"", //创建结束时间
|
|
|
- demandCompany:"", //需求企业
|
|
|
+ customer_id:"", //需求企业
|
|
|
invoiceNumber:"", //发票号码
|
|
|
invoiceType:"", //发票类型
|
|
|
- openInviceNo:"", //发票申请编号
|
|
|
- demandOrderNo:"", //需求订单编号
|
|
|
+ invNo:"", //发票申请编号
|
|
|
+ reqCode:"", //需求订单编号
|
|
|
status:"", //申请状态
|
|
|
page: 1, // 页码
|
|
|
size: 15, // 每页显示条数
|
|
@@ -278,7 +279,7 @@ export default {
|
|
|
if (back) {
|
|
|
this.parmValue = JSON.parse(back);
|
|
|
console.log(this.parmValue)
|
|
|
- const {page,size}=this.parmValue;
|
|
|
+ const { page, size } = this.parmValue;
|
|
|
// this.parmValue.createStart = start || last_start;
|
|
|
// this.parmValue.createEnd = end || last_end;
|
|
|
|
|
@@ -286,7 +287,7 @@ export default {
|
|
|
// this.customerCode = [this.parmValue.customer_code] ;
|
|
|
// }
|
|
|
|
|
|
- this.pageInfo= {
|
|
|
+ this.pageInfo = {
|
|
|
size: size,
|
|
|
curr: page,
|
|
|
total: 0,
|
|
@@ -308,27 +309,15 @@ export default {
|
|
|
this.$router.push(`/customerService/invoiceApplyDetail?id=add`)
|
|
|
},
|
|
|
getRouter(toRouter, queryId){
|
|
|
- if (toRouter && queryId) {
|
|
|
- let model = {
|
|
|
- id: queryId,
|
|
|
- type: 'view',
|
|
|
- };
|
|
|
+ this.$router.push(toRouter + '?id=' + queryId)
|
|
|
+ // let routerModel = {
|
|
|
+ // options: JSON.parse(JSON.stringify(this.parmValue)),
|
|
|
+ // router: this.$route.path,
|
|
|
+ // };
|
|
|
|
|
|
- //有多选框的条件
|
|
|
- this.parmValue.select = this.select ;
|
|
|
- // this.parmValue.sselect = this.sselect ;
|
|
|
- this.parmValue.s_input= this.s_input;
|
|
|
- let routerModel = {
|
|
|
- options: JSON.parse(JSON.stringify(this.parmValue)),
|
|
|
- router: this.$route.path,
|
|
|
- };
|
|
|
-
|
|
|
- model.preModel = JSON.stringify(routerModel);
|
|
|
+ // model.preModel = JSON.stringify(routerModel);
|
|
|
|
|
|
- this.routeGoto(toRouter, model);
|
|
|
- } else {
|
|
|
- this.$message.warning("暂未找到相关流程!");
|
|
|
- }
|
|
|
+ // this.routeGoto(toRouter, model);
|
|
|
},
|
|
|
restSearch() {
|
|
|
this.customerCode = [];
|
|
@@ -337,11 +326,11 @@ export default {
|
|
|
this.parmValue = {
|
|
|
createStart:"",//创建开始时间
|
|
|
createEnd:"", //创建结束时间
|
|
|
- demandCompany:"", //需求企业
|
|
|
+ customer_id:"", //需求企业
|
|
|
invoiceNumber:"", //发票号码
|
|
|
invoiceType:"", //发票类型
|
|
|
- openInviceNo:"", //发票申请编号
|
|
|
- demandOrderNo:"", //需求订单编号
|
|
|
+ invNo:"", //发票申请编号
|
|
|
+ reqCode:"", //需求订单编号
|
|
|
status:"", //申请状态
|
|
|
page: 1, // 页码
|
|
|
size: 15, // 每页显示条数
|
|
@@ -390,7 +379,6 @@ export default {
|
|
|
},
|
|
|
// 列表搜索
|
|
|
async searchList() {
|
|
|
- return
|
|
|
if (
|
|
|
(this.parmValue.createStart !== "" && this.parmValue.createEnd === "") ||
|
|
|
(this.parmValue.createStart === "" && this.parmValue.createEnd !== "")
|
|
@@ -400,23 +388,12 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.loading = true;
|
|
|
- this.parmValue.bargainNo = this.select === "1" ? this.s_input : "";
|
|
|
- this.parmValue.bidsNo = this.select === "2" ? this.s_input : "";
|
|
|
- this.parmValue.infoNo = this.select === "3" ? this.s_input : "";
|
|
|
- this.parmValue.company_name = this.select === "4" ? this.s_input : "";
|
|
|
|
|
|
- const res = await asyncRequest.list({
|
|
|
- ...this.parmValue,
|
|
|
- companyNo: this.currentCompany,
|
|
|
- customer_code: Array.isArray(this.parmValue.customer_code) ? this.parmValue.customer_code[0] : "",
|
|
|
- noRelation: true
|
|
|
- });
|
|
|
+ const res = await asyncRequest.list(this.parmValue);
|
|
|
|
|
|
- if (res && res.code === 0 && res.data) {
|
|
|
+ if (res && res.code === 1 && res.data) {
|
|
|
this.tableData = res.data.list;
|
|
|
this.pageInfo.total = Number(res.data.count);
|
|
|
- } else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
- await this.logout();
|
|
|
} else {
|
|
|
this.tableData = [];
|
|
|
this.pageInfo.total = 0;
|