Commit c866fec1 by 王志慧

Merge branch 'wangzh_dev_v4.17.0' into 'dev_v4.17.0'

commit

See merge request !95
2 parents 0c3f6aec 26611e3d
......@@ -316,7 +316,6 @@ import {
quotationDetail,
vdruleExport
} from "@api/vdrule"
import { mapActions, mapState, mapMutations } from "vuex"
import { getParkStore } from "@api/editCustomer"
export default {
name: "rule",
......@@ -397,30 +396,11 @@ export default {
}
}
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList,
updateRefesh: (state) => state.d2admin.user.updateRefesh
})
},
mounted() {
this.getParkStore()
this.getList()
},
watch: {
updateRefesh(val) {
// console.log('val', val)
if (val == true) {
this.handleSearch()
this.setUpdateRefesh("false")
}
}
},
methods: {
...mapActions({ close: "d2admin/page/close" }),
...mapActions("d2admin/user", ["actionSetDownloadList"]),
...mapMutations("d2admin/user", ["setUpdateRefesh"]),
...mapActions("d2admin/base", ["get"]),
changeDistribution(data) {
distributionTemp.forEach((item) => {
if (!data.includes(item)) {
......@@ -446,8 +426,6 @@ export default {
handleAddRule() {
this.getParkStore()
this.isConfirm = true
//清空
this.ruleId = ""
this.isRuleVisible = !this.isRuleVisible
},
handleRuleConfirm() {
......@@ -503,29 +481,8 @@ export default {
distributePassenger: ""
}
this.distributionList = []
this.ruleId = ""
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === "select") {
if (
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel
] !== "全部"
) {
const temp = {}
temp[this.showFormData[index].optionId] = ""
temp[this.showFormData[index].optionLabel] = "全部"
this.baseData[item.optionsName].unshift(temp)
}
this.$set(
this.showFormData[index],
"optionList",
this.baseData[item.optionsName]
)
}
})
this.isComputation = true
this.isAllocation = true
},
getParams() {
const params = Util.deepClone(this.searchForm)
......
......@@ -33,7 +33,7 @@
:table-params="tableParams"
:before-search-fn="beforeSearchFn"
>
<sapn
<div
slot-scope="scope"
slot="auth-button"
v-if="
......@@ -43,35 +43,27 @@
"
>
<auth-button :data="scope.scope" />
</sapn>
</div>
</d2-table>
</div>
</d2-container>
<!-- 查看 -->
<stock-month-dialog
<!-- <stock-month-dialog
:stock-month-visible="stockMonthVisible"
:recordInfo="recordInfo"
v-if="stockMonthVisible"
@dialogClose="dialogClose"
/>
/> -->
</div>
</template>
<script>
import { Util, deepClone } from "@/common/util"
import { mapActions, mapState } from "vuex"
import { getList, quotationPrint,quotationExport } from "@api/vehicleDamage"
import stockMonthDialog from "./stockMonthDialog"
import { membraneTypeList } from "@/common/constants.js"
export default {
name: "StockList",
components: {
stockMonthDialog
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: membraneTypeList,
searchForm: {
orderStatus: "",
merchantName: "",
......@@ -79,12 +71,6 @@ export default {
createTime: ""
},
searchFormSearch: {},
searchSelectObj: {
orderOrTrade: {
attr: "inputtedOrderCode",
value: ""
}
},
showFormData: [
{
label: "服务状态",
......@@ -189,7 +175,6 @@ export default {
{ severName: "已支付", severType: 3 },
{ severName: "战败", severType: -1 }
],
yqMerchantList: []
},
stockMonthVisible: false,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!