Commit 6c74122f authored by dcy's avatar dcy

退仓详情

parent 616499bf
...@@ -73,18 +73,24 @@ ...@@ -73,18 +73,24 @@
{{FeeDetails.remarks}} {{FeeDetails.remarks}}
</div> </div>
</div> </div>
<div v-if="type === 3">
<p>申请理由</p>
<div>
{{ FeeDetails.details && FeeDetails.details.reason ? FeeDetails.details.reason :''}}
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
import {warehouseApprovalGetByFormId, warehouseAreaPositionList} from "@/api/ecw/batchSingleApplication"; import {warehouseApprovalGetByFormId, warehouseAreaPositionList} from "@/api/ecw/batchSingleApplication";
import {applicationGetOrderByProcessId} from "@/api/ecw/order"; import {applicationGetOrderByProcessId, getOrder} from "@/api/ecw/order";
import { getChannelList } from '@/api/ecw/channel'; import { getChannelList } from '@/api/ecw/channel';
export default { export default {
props:{ props:{
type:{ type:{
type: Number, type: Number,
default:2, default:1,
}, },
processId:{ processId:{
type:[Number,String], type:[Number,String],
...@@ -104,25 +110,36 @@ export default { ...@@ -104,25 +110,36 @@ export default {
warehouseAreaPositionList().then(r => this.warehouseList = r.data) warehouseAreaPositionList().then(r => this.warehouseList = r.data)
switch (this.type){ switch (this.type){
case 1: case 1:
//调仓
warehouseApprovalGetByFormId({formId:this.processId}).then( r => { warehouseApprovalGetByFormId({formId:this.processId}).then( r => {
this.FeeDetails = r.data this.FeeDetails = r.data
this.FeeDetails.details = JSON.parse(r.data.details) this.FeeDetails.details = JSON.parse(r.data.details)
}); });
break; break;
case 2: case 2:
// 费用申请
applicationGetOrderByProcessId({processId:this.processId}).then(r => this.FeeDetails = r.data) applicationGetOrderByProcessId({processId:this.processId}).then(r => this.FeeDetails = r.data)
break; break;
case 3:
//退仓
warehouseApprovalGetByFormId({formId:this.processId}).then( res => {
getOrder(res.data.orderIds).then(r =>{
this.FeeDetails = r.data
this.FeeDetails.details = JSON.parse(res.data.details)
})
});
break;
} }
}, },
methods:{ methods:{
selectWarehouse(val){ selectWarehouse(val){
if(this.warehouseList.length > 0){ if(this.warehouseList.length > 0 && !!val){
return this.warehouseList.find(e => e.id === val).titleZh return this.warehouseList.find(e => e.id === val).titleZh
} }
return '' return ''
}, },
selectChannel(val){ selectChannel(val){
if(this.channelList.length > 0) return this.channelList.find(e => e.channelId === val).nameEn if(this.channelList.length > 0 && !!val) return this.channelList.find(e => e.channelId === val).nameEn
return '' return ''
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment