Browse Source

代码整理

master
安虹睿 1 year ago
parent
commit
77b098fdb2
  1. 46
      Code/Fe/src/components/commonTabel-drawer/index.vue

46
Code/Fe/src/components/commonTabel-drawer/index.vue

@ -157,9 +157,7 @@
</el-drawer> </el-drawer>
</template> </template>
<script> <script>
import { getListByItemcode,byItem,byProduct,byComponent,bySupplierCode,byLocation,byLocationCode, import { getPageListForDetail } from "@/api/wms-api"
relationByLocationCode,byComponentCJ,purRecNoteCustomInfo,getPageListForDetail
} from "@/api/wms-api"
import searchOverall from "@/components/searchOverall" import searchOverall from "@/components/searchOverall"
import currenButton from "@/components/currenButton" import currenButton from "@/components/currenButton"
import currenDescriptions from "@/components/currenDescriptions" import currenDescriptions from "@/components/currenDescriptions"
@ -580,27 +578,27 @@ export default {
this.otherData = [] this.otherData = []
// this.firstTabs = val.name // this.firstTabs = val.name
// tab // tab
if (item.functionName == 'getListByItemcode') { // if (item.functionName == 'getListByItemcode') {
let params = { // let params = {
itemCode: this.propsData.code // itemCode: this.propsData.code
} // }
getListByItemcode(params, item.url).then(res => { // getListByItemcode(params, item.url).then(res => {
let zdyTableColumnsJSON = JSON.parse(JSON.stringify(this.$isTableColumns[item.tableColumns])); // let zdyTableColumnsJSON = JSON.parse(JSON.stringify(this.$isTableColumns[item.tableColumns]));
delete zdyTableColumnsJSON[0].type // delete zdyTableColumnsJSON[0].type
this.zdyTableColumns = zdyTableColumnsJSON // this.zdyTableColumns = zdyTableColumnsJSON
this.otherData = res // this.otherData = res
parent.tableLoading = false // parent.tableLoading = false
}).catch(err => { // }).catch(err => {
console.log(err) // console.log(err)
parent.tableLoading = false // parent.tableLoading = false
}) // })
} // }
else if(item.functionName == "customerDismantleBackFlushNote"){ // else if(item.functionName == "customerDismantleBackFlushNote"){
let zdyTableColumnsJSON = JSON.parse(JSON.stringify(this.$isTableColumns[item.tableColumns])); // let zdyTableColumnsJSON = JSON.parse(JSON.stringify(this.$isTableColumns[item.tableColumns]));
delete zdyTableColumnsJSON[0].type // delete zdyTableColumnsJSON[0].type
this.zdyTableColumns = zdyTableColumnsJSON // this.zdyTableColumns = zdyTableColumnsJSON
this.otherData = this.propsData.noteAndBackFlushDetails // this.otherData = this.propsData.noteAndBackFlushDetails
} // }
} }
} }
}) })

Loading…
Cancel
Save