Commit bc5abcca by 张立顺

feat 功能开发

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