Commit 725ffa9c authored by 我在何方's avatar 我在何方

付款单修复

parent 252f3762
...@@ -531,7 +531,7 @@ export default { ...@@ -531,7 +531,7 @@ export default {
this.defaultList = [...res.data] this.defaultList = [...res.data]
}) })
}else{ }else{
this.$set(this.form,'applicationAt',this.getYmd()) if(!this.form.applicationAt) this.$set(this.form,'applicationAt',this.getYmd())
} }
}, },
async created() { async created() {
...@@ -572,7 +572,7 @@ export default { ...@@ -572,7 +572,7 @@ export default {
this.defaultList = [...res.data] this.defaultList = [...res.data]
}) })
}else{ }else{
this.$set(this.form,'applicationAt',this.getYmd()) if(!this.form.applicationAt) this.$set(this.form,'applicationAt',this.getYmd())
} }
listSimpleUsers().then((res) => (that.creatorData = res.data)); listSimpleUsers().then((res) => (that.creatorData = res.data));
getChannelList().then((res) => (that.channelList = res.data)); getChannelList().then((res) => (that.channelList = res.data));
...@@ -738,7 +738,8 @@ export default { ...@@ -738,7 +738,8 @@ export default {
getSupplier(val).then((res)=>{ getSupplier(val).then((res)=>{
this.bankData = res.data.bankList this.bankData = res.data.bankList
var bank = this.bankData.find(item=>item.bankAccount==this.form.supplierBankAccount) var bank = this.bankData.find(item=>item.bankAccount==this.form.supplierBankAccount)
if(this.bankData.length==0||!bank) this.form.supplierBankAccount= this.bankData[0]['bankAccount'] console.log(this.bankData)
if(this.bankData.length>0&&!bank) this.form.supplierBankAccount= this.bankData[0]['bankAccount']
}) })
} }
......
...@@ -303,20 +303,22 @@ export default { ...@@ -303,20 +303,22 @@ export default {
this.selectChange(this.form.supplierId) this.selectChange(this.form.supplierId)
}); });
listSimpleDepts().then((res) => { listSimpleDepts().then((res) => {
res.data.forEach((item) => { that.deptData = res.data
if (item.parentId == 0) {
that.deptArr.push(item);
} else {
that.deptData.push(item);
}
});
that.deptData.forEach((value) => { // res.data.forEach((item) => {
var dept = that.deptArr.filter((itt) => itt.id == value.parentId); // if (item.parentId == 0) {
if (dept.length > 0) { // that.deptArr.push(item);
value.name = dept[0].name + " | " + value.name; // } else {
} // that.deptData.push(item);
}); // }
// });
// that.deptData.forEach((value) => {
// var dept = that.deptArr.filter((itt) => itt.id == value.parentId);
// if (dept.length > 0) {
// value.name = dept[0].name + " | " + value.name;
// }
// });
}); });
}, },
computed: { computed: {
......
...@@ -355,7 +355,7 @@ ...@@ -355,7 +355,7 @@
<print-warehouse-receipt v-if="showWarehouseReceipt" :order-id="order.orderId" @close="showWarehouseReceipt=false" /> <print-warehouse-receipt v-if="showWarehouseReceipt" :order-id="order.orderId" @close="showWarehouseReceipt=false" />
<print-lading-bill v-if="showLadingBill" :order-id="order.orderId" :transport-type="order.transportId" @close="showLadingBill=false" /> <print-lading-bill v-if="showLadingBill" :order-id="order.orderId" :transport-type="order.transportId" @close="showLadingBill=false" />
<warehouse-detail :order="order" :orderItemId="showWarehouseInItemId" v-if="showWarehouseInItemId" @close="showWarehouseInItemId=null" /> <warehouse-detail :order="order" :orderItemId="showWarehouseInItemId" @openPackHistory="openPackHistory" v-if="showWarehouseInItemId" @close="showWarehouseInItemId=null" />
<el-dialog :title="$t('付款人')" :visible.sync="showDarweeDialog" v-if="order && order.customDraweeVOList"> <el-dialog :title="$t('付款人')" :visible.sync="showDarweeDialog" v-if="order && order.customDraweeVOList">
<el-table :data="order.customDraweeVOList" v-if="order.drawee==3" > <el-table :data="order.customDraweeVOList" v-if="order.drawee==3" >
<el-table-column :label="$t('费用类型')" prop="label" width="200px"> <el-table-column :label="$t('费用类型')" prop="label" width="200px">
...@@ -423,6 +423,11 @@ ...@@ -423,6 +423,11 @@
<!--日志详情--> <!--日志详情-->
<operate-log-detail v-if="showLogDetailId" :log-id="showLogDetailId" @close="showLogDetailId=null"></operate-log-detail> <operate-log-detail v-if="showLogDetailId" :log-id="showLogDetailId" @close="showLogDetailId=null"></operate-log-detail>
<!--打包历史-->
<pack-history v-if="shopPackId" :order ="order" :orderItemId="shopPackId" @showPackDetail="showPackDetail" @close="shopPackId=null"></pack-history>
<!--打包历史详情-->
<pack-history-detail v-if="packAfterData" :order="order" :packAfterData="packAfterData" :orderItemId="showWarehouseInItemId" @close="packAfterData=null"></pack-history-detail>
<!-- 报关资料 --> <!-- 报关资料 -->
<declaration-documents v-if="showDeclaration" :order-id="order.orderId" :order-no="order.orderNo" @close="showDeclaration=false" /> <declaration-documents v-if="showDeclaration" :order-id="order.orderId" :order-no="order.orderNo" @close="showDeclaration=false" />
<!--费用汇总--> <!--费用汇总-->
...@@ -453,13 +458,16 @@ import OperateLogDetail from "@/views/ecw/order/components/OprateLogDetail"; ...@@ -453,13 +458,16 @@ import OperateLogDetail from "@/views/ecw/order/components/OprateLogDetail";
import DeclarationDocuments from './components/DeclarationDocuments'; import DeclarationDocuments from './components/DeclarationDocuments';
import ImageDisplay from "@/views/ecw/order/components/imageDisplay.vue"; import ImageDisplay from "@/views/ecw/order/components/imageDisplay.vue";
import FeeDetail from "@/views/ecw/order/components/FeeDetail.vue"; import FeeDetail from "@/views/ecw/order/components/FeeDetail.vue";
import PackHistory from './components/PackHistory';
import PackHistoryDetail from './components/PackHistoryDetail';
export default { export default {
name: "detail", name: "detail",
components: { components: {
ImageDisplay, ImageDisplay,
OperateLogDetail, OperateLogDetail,
PrintWarehouseReceipt, PrintLadingBill, WarehouseDetail, WarehouseAreaSelect,DeclarationDocuments, PrintWarehouseReceipt, PrintLadingBill, WarehouseDetail, WarehouseAreaSelect,DeclarationDocuments,
FeeDetail FeeDetail,PackHistory,PackHistoryDetail
}, },
filters: { filters: {
customsTypeFilter(e, customsTypeList) { customsTypeFilter(e, customsTypeList) {
...@@ -506,6 +514,9 @@ export default { ...@@ -506,6 +514,9 @@ export default {
showLogDetailId: null, // 显示日志详情的ID, showLogDetailId: null, // 显示日志详情的ID,
showDeclaration:false, //显示报关资料 showDeclaration:false, //显示报关资料
showFeeSummary: false, // 是否显示费用汇总 showFeeSummary: false, // 是否显示费用汇总
shopPackId:null,//显示打包历史的ID
packAfterData:null,//显示打包历史详情
} }
}, },
computed:{ computed:{
...@@ -738,7 +749,16 @@ export default { ...@@ -738,7 +749,16 @@ export default {
parseLogNote(note){ parseLogNote(note){
if(!note) return [] if(!note) return []
return JSON.parse(note) return JSON.parse(note)
} },
//查看打包历史
openPackHistory(){
this.shopPackId = this.showWarehouseInItemId
},
//查看打包历史详情
showPackDetail(packAfterData){
this.packAfterData = packAfterData
},
} }
}; };
</script> </script>
......
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