|
@@ -11,9 +11,9 @@
|
|
|
:page.sync="page"
|
|
|
@on-load="onLoad">
|
|
|
</avue-crud>
|
|
|
- <div style="margin-left: 90%">
|
|
|
- <span slot="footer" class="dialog-footer" >
|
|
|
- <el-button @click="closeFun()">取 消</el-button>
|
|
|
+ <div class="botoom">
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="closeDialog">取 消</el-button>
|
|
|
<el-button type="primary" @click="importMarket" :disabled="selectMarketList.length == 0">导入</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
@@ -23,6 +23,8 @@
|
|
|
<script>
|
|
|
import option from './config/market.json'
|
|
|
import {getMarketDetailsList} from "@/api/importTrade/purchase";
|
|
|
+ import {getGNMarketDetailsList} from "@/api/basicData/purchaseOrder";
|
|
|
+ import {getCKMarketDetailsList} from "@/api/exportTrade/purchaseContract";
|
|
|
|
|
|
export default {
|
|
|
name: "index",
|
|
@@ -32,7 +34,11 @@
|
|
|
},
|
|
|
closeFun: {
|
|
|
type: Function
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 系统来源
|
|
|
+ systemType: {
|
|
|
+ type: String
|
|
|
+ },
|
|
|
},
|
|
|
data(){
|
|
|
return {
|
|
@@ -68,17 +74,36 @@
|
|
|
params.orderEndDate = params.marketDate[1] + " " + "23:59:59";
|
|
|
this.$delete(params,'marketDate')
|
|
|
}
|
|
|
- getMarketDetailsList(page.currentPage, page.pageSize,params).then(res=>{
|
|
|
- this.data = res.data.data.records
|
|
|
- this.page.total = res.data.data.total
|
|
|
- })
|
|
|
- .finally(()=>{
|
|
|
- this.loading = false;
|
|
|
- })
|
|
|
+ if (this.systemType == 'JK') {
|
|
|
+ getMarketDetailsList(page.currentPage, page.pageSize,params).then(res=>{
|
|
|
+ this.data = res.data.data.records
|
|
|
+ this.page.total = res.data.data.total
|
|
|
+ })
|
|
|
+ .finally(()=>{
|
|
|
+ this.loading = false;
|
|
|
+ })
|
|
|
+ } else if (this.systemType == 'CK') {
|
|
|
+ getCKMarketDetailsList(page.currentPage, page.pageSize,params).then(res=>{
|
|
|
+ this.data = res.data.data.records
|
|
|
+ this.page.total = res.data.data.total
|
|
|
+ }).finally(()=>{
|
|
|
+ this.loading = false;
|
|
|
+ })
|
|
|
+ } else if (this.systemType == 'GN') {
|
|
|
+ getGNMarketDetailsList(page.currentPage, page.pageSize,params).then(res=>{
|
|
|
+ this.data = res.data.data.records
|
|
|
+ this.page.total = res.data.data.total
|
|
|
+ }).finally(()=>{
|
|
|
+ this.loading = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
importMarket(){
|
|
|
this.$emit('importMarket',this.selectMarketList);
|
|
|
},
|
|
|
+ closeDialog() {
|
|
|
+ this.$emit('close')
|
|
|
+ },
|
|
|
//列保存触发
|
|
|
async saveColumn() {
|
|
|
const inSave = await this.saveColumnData(
|
|
@@ -95,5 +120,14 @@
|
|
|
}
|
|
|
</script>
|
|
|
<style scoped>
|
|
|
-
|
|
|
+.botoom:after {
|
|
|
+ content: '';
|
|
|
+ display: block;
|
|
|
+ height: 0;
|
|
|
+ clear: both;
|
|
|
+}
|
|
|
+.dialog-footer {
|
|
|
+ display: flex;
|
|
|
+ float: right;
|
|
|
+}
|
|
|
</style>
|