Commit cddbd1d5 by 王志慧

第一轮测试bug修复

1 parent db341a14
......@@ -125,15 +125,6 @@
}}</span>
</template>
</el-table-column>
<el-table-column label="施工状态" align="center" prop="upgradeFlag">
<template slot-scope="scope">
<span>{{
scope.row.constructionFlag
? constructioOpts[scope.row.constructionFlag]
: "未施工"
}}</span>
</template>
</el-table-column>
<el-table-column label="订单状态" align="center" prop="status">
<template slot-scope="scope">
<span>{{ statusOpts[scope.row.status] }}</span>
......@@ -354,10 +345,10 @@ export default {
Y: "已升级",
N: "不升级"
},
constructioOpts: {
Y: "已施工",
N: "未施工"
},
// constructioOpts: {
// Y: "已施工",
// N: "未施工"
// },
showFormData: [
{
label: "订单状态",
......@@ -377,14 +368,14 @@ export default {
optionLabel: "confLabel",
optionsName: "upgradeList"
},
{
label: "施工状态",
name: "constructionFlag",
type: "select",
optionId: "confId",
optionLabel: "confLabel",
optionsName: "constructionList"
},
// {
// label: "施工状态",
// name: "constructionFlag",
// type: "select",
// optionId: "confId",
// optionLabel: "confLabel",
// optionsName: "constructionList"
// },
{
label: "商品名称",
......@@ -775,6 +766,7 @@ export default {
subShopMerchantId: ""
}
this.baseData.storeIdList = []
this.handleSearch()
this.getOptionsList()
},
getServiceStore(merchantId) {
......
......@@ -61,7 +61,7 @@
<d2-table
ref="crowdfundTable"
:has-num="true"
:search-form="searchForm"
:search-form="tableSearchForm"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
......@@ -193,7 +193,7 @@
:show-btn-ids="['9040106']"
:data="scope.scope"
/>
<span style="margin-right: 40px">
<span>
<el-button
type="text"
size="mini"
......@@ -465,6 +465,7 @@ export default {
})
})
}
console.log(merchantNameList,'9999999999')
const merchantNamesIndex = this.searchFormData.findIndex(
(e) => e.name == "merchantNames"
)
......@@ -1124,6 +1125,7 @@ export default {
this.tableParams.tableColumns = tableColumns
this.searchFormData = searchFormData
this.getOptionsList("searchFormData")
this.getCrowdfundingParams()
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
......@@ -1201,7 +1203,8 @@ export default {
width: 100%;
margin-top: 16px;
padding: 20px 40px;
position: positive;
position: relative;
box-sizing: border-box;
}
.tabs {
::v-deep .el-tabs__header {
......@@ -1212,7 +1215,7 @@ export default {
.btn-group {
position: absolute;
right: 41px;
top: 37px;
top: 16px;
z-index: 999;
}
.assignLabel {
......
......@@ -36,7 +36,7 @@ export default {
name: "1"
},
{
label: "众筹订单",
label: "1.3众筹订单",
name: "2"
},
{
......
......@@ -39,7 +39,8 @@
v-if="
scope.scope.orderStatus == 1 ||
scope.scope.orderStatus == 2 ||
scope.scope.orderStatus == 3
scope.scope.orderStatus == 3 ||
scope.scope.orderStatus == -1
"
>
<auth-button :data="scope.scope" />
......@@ -59,7 +60,7 @@
<script>
import { mapActions, mapState } from "vuex"
import { getList, quotationPrint,quotationExport } from "@api/vehicleDamage"
import { getList, quotationPrint, quotationExport } from "@api/vehicleDamage"
export default {
name: "StockList",
data() {
......@@ -73,6 +74,12 @@ export default {
searchFormSearch: {},
showFormData: [
{
label: "客户姓名",
name: "customerName",
type: "input",
isClear: true
},
{
label: "服务状态",
name: "orderStatus",
type: "select",
......@@ -96,6 +103,12 @@ export default {
isClear: true
},
{
label: "车架号",
name: "carVin",
type: "input",
isClear: true
},
{
label: "创建时间",
name: "createTime",
type: "datePicker",
......@@ -137,7 +150,7 @@ export default {
.map((item) => item.severType)
.includes(cellValue.orderStatus)
? this.baseData.severTypeList.find(
(item) => item.severType == cellValue.orderStatus
(item) => item.severType === cellValue.orderStatus
).severName
: "-"
}
......@@ -157,6 +170,11 @@ export default {
width: "200px"
},
{
label: "预计权益金额/元",
prop: "estEquityPrice",
width: "250px"
},
{
label: "实际权益金额/元",
prop: "equityPrice",
width: "250px"
......@@ -174,7 +192,7 @@ export default {
{ severName: "待支付", severType: 2 },
{ severName: "已支付", severType: 3 },
{ severName: "战败", severType: -1 }
],
]
},
stockMonthVisible: false,
......@@ -205,13 +223,16 @@ export default {
quotationPrint({ id: row.id }).then((res) => {
console.log(res)
let oWin = window.open(res)
oWin.document.fn = function() {
oWin.document.fn = function () {
if (oWin) {
oWin.print()
oWin.close()
}
}
let html = '<div style="height: 100%;width: 100%;">' + `<img src="${res}" onload="fn()" style="max-height:100%;max-width: 100%;" />` + '</div>'
let html =
'<div style="height: 100%;width: 100%;">' +
`<img src="${res}" onload="fn()" style="max-height:100%;max-width: 100%;" />` +
"</div>"
oWin.document.open()
oWin.document.write(html)
oWin.document.close()
......@@ -219,23 +240,23 @@ export default {
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.createDate?.length) {
if (this.searchForm.createTime?.length) {
params.minCreateTime =
new Date(this.searchForm.createDate[0])
new Date(this.searchForm.createTime[0])
.toLocaleDateString()
.replace(/\//g, "-") + " 00:00:00"
params.maxCreateTime =
new Date(this.searchForm.createDate[1])
new Date(this.searchForm.createTime[1])
.toLocaleDateString()
.replace(/\//g, "-") + " 23:59:59"
}
delete params.createDate
delete params.createTime
return params
},
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = this.getParams()
delete this.searchFormSearch.createDate
delete this.searchFormSearch.createTime
resolve()
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!