Commit bc5abcca by 张立顺

feat 功能开发

1 parent e925d0bc
......@@ -47,12 +47,12 @@
</div>
</d2-container>
<!-- 查看 -->
<!-- <allocation-detail-dialog
:allocation-detail-visible="allocationDetailVisible"
:record-info="recordInfo"
v-if="allocationDetailVisible"
@dialogClose="dialogClose"
/> -->
<transferDetailDialog
:visible.sync="transferDetailVisible"
v-if="transferDetailVisible"
:params-obj="transferObj"
:hideContact="true"
/>
</div>
</template>
......@@ -71,6 +71,7 @@ export default {
name: "TransferOperationsReviewList",
components: {
// allocationDetailDialog
transferDetailDialog: () => import("../components/transferDetailDialog.vue")
},
data() {
return {
......@@ -279,8 +280,8 @@ export default {
]
},
allocationDetailVisible: false,
recordInfo: null
transferDetailVisible: false,
transferObj: {}
}
},
computed: {
......@@ -307,7 +308,13 @@ export default {
// async getBaseData() {
// this.getOptionsList()
// },
// 查看
look(row) {
this.transferObj = {
allocateCode: row.allocateCode
}
this.transferDetailVisible = true
},
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = deepClone(this.searchForm)
......@@ -364,8 +371,7 @@ export default {
async handleExport() {
await this.beforeSearchFn()
var params = this.searchFormSearch
params.method =
"dj.smartcarlife.api.stockAllocate.exportExcel.async excel"
params.method = "dj.smartcarlife.api.stockAllocate.exportExcel.async"
const list = [
...this.dowloadList,
{
......@@ -378,18 +384,39 @@ export default {
this.actionSetDownloadList({ list, type: "dowloadList" })
},
// 查看
look(row) {
this.recordInfo = row
this.allocationDetailVisible = true
},
// // 查看
// look(row) {
// this.recordInfo = row
// this.allocationDetailVisible = true
// },
// // 审批
// handleReview(row) {
// this.$router.push({
// name: "handleReview",
// query: {
// id: row.id
// }
// })
// },
// // 驳回
// handleReject(row) {
// this.$router.push({
// name: "handleReject",
// query: {
// id: row.id
// }
// })
// },
// 审批
handleReview(row) {
this.$router.push({
name: "handleReview",
query: {
id: row.id
id: row.id,
allocateCode: row.allocateCode,
reviewType: "business"
}
})
},
......@@ -399,11 +426,12 @@ export default {
this.$router.push({
name: "handleReject",
query: {
id: row.id
id: row.id,
allocateCode: row.allocateCode,
reviewType: "business"
}
})
},
gotoAdd() {
this.$router.push({ name: "addAllocation" })
},
......
......@@ -47,12 +47,12 @@
</div>
</d2-container>
<!-- 查看 -->
<!-- <allocation-detail-dialog
:allocation-detail-visible="allocationDetailVisible"
:record-info="recordInfo"
v-if="allocationDetailVisible"
@dialogClose="dialogClose"
/> -->
<transferDetailDialog
:visible.sync="transferDetailVisible"
v-if="transferDetailVisible"
:params-obj="transferObj"
:hideContact="true"
/>
</div>
</template>
......@@ -71,6 +71,7 @@ export default {
name: "TransferOperationsReviewList",
components: {
// allocationDetailDialog
transferDetailDialog: () => import("../components/transferDetailDialog.vue")
},
data() {
return {
......@@ -279,8 +280,8 @@ export default {
]
},
allocationDetailVisible: false,
recordInfo: null
transferDetailVisible: false,
transferObj: {}
}
},
computed: {
......@@ -364,8 +365,7 @@ export default {
async handleExport() {
await this.beforeSearchFn()
var params = this.searchFormSearch
params.method =
"dj.smartcarlife.api.stockAllocate.exportExcel.async excel"
params.method = "dj.smartcarlife.api.stockAllocate.exportExcel.async"
const list = [
...this.dowloadList,
{
......@@ -380,8 +380,10 @@ export default {
// 查看
look(row) {
this.recordInfo = row
this.allocationDetailVisible = true
this.transferObj = {
allocateCode: row.allocateCode
}
this.transferDetailVisible = true
},
// 审批
......@@ -390,7 +392,8 @@ export default {
name: "handleReview",
query: {
id: row.id,
allocateCode: row.allocateCode
allocateCode: row.allocateCode,
reviewType: "operator"
}
})
},
......@@ -400,7 +403,9 @@ export default {
this.$router.push({
name: "handleReject",
query: {
id: row.id
id: row.id,
allocateCode: row.allocateCode,
reviewType: "operator"
}
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!