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