|
@@ -112,7 +112,7 @@
|
|
<!-- v-if="actualFreight && tranPriceIng" -->
|
|
<!-- v-if="actualFreight && tranPriceIng" -->
|
|
<div class="freightSet" v-if="processNo">
|
|
<div class="freightSet" v-if="processNo">
|
|
<div style="display: flex;width:200px;line-height: 30px;"> 预计运费(元):{{tranPriceIng}}元</div>
|
|
<div style="display: flex;width:200px;line-height: 30px;"> 预计运费(元):{{tranPriceIng}}元</div>
|
|
- <span style="display: flex;line-height: 30px;">实际运费(元):<el-input type="text" maxlength="70" size="small" v-model="actualFreight" v-show="textShow"/><span v-show="!textShow">{{actualFreight == 0?tranPriceIng:actualFreight }}</span>元</span>
|
|
|
|
|
|
+ <span style="display: flex;line-height: 30px;">实际运费(元):<el-input type="text" maxlength="70" size="small" v-model="actualFreight" v-show="textShow"/><span v-show="!textShow">{{actualFreight ? actualFreight : tranPriceIng}}</span>元</span>
|
|
<i @click="actualFreightchange" class="iconfont icon-dui" v-show="textShow" style="margin-top:10px"></i>
|
|
<i @click="actualFreightchange" class="iconfont icon-dui" v-show="textShow" style="margin-top:10px"></i>
|
|
<img
|
|
<img
|
|
width="17"
|
|
width="17"
|
|
@@ -123,6 +123,17 @@
|
|
alt=""
|
|
alt=""
|
|
v-show="!textShow"
|
|
v-show="!textShow"
|
|
/>
|
|
/>
|
|
|
|
+ <span class="span_text">已付:{{amountEdPayable}}元
|
|
|
|
+ <img
|
|
|
|
+ width="18"
|
|
|
|
+ height="20"
|
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
|
+ src="../../../public/img/fujian.png"
|
|
|
|
+ @click="fujian()"
|
|
|
|
+ alt=""
|
|
|
|
+ />{{paymentScreenshotList.length == 0 ? "暂无附件" : paymentScreenshotList.length}}</span>
|
|
|
|
+ <span class="span_text">未付:{{alreadyInvoice}}元</span>
|
|
|
|
+ <span class="span_text">{{priceStatus}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<el-table
|
|
<el-table
|
|
@@ -131,8 +142,6 @@
|
|
style="width: 100%; margin-top: 20px"
|
|
style="width: 100%; margin-top: 20px"
|
|
ref="warehouseList"
|
|
ref="warehouseList"
|
|
border
|
|
border
|
|
- :summary-method="getSummaries"
|
|
|
|
- show-summary
|
|
|
|
@row-click="handleRowClick"
|
|
@row-click="handleRowClick"
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
>
|
|
>
|
|
@@ -349,14 +358,14 @@
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!--磅单 -->
|
|
<!--磅单 -->
|
|
- <WinseaContentModal
|
|
|
|
|
|
+ <!-- <WinseaContentModal
|
|
v-model="accessoryTFs"
|
|
v-model="accessoryTFs"
|
|
title="磅单信息"
|
|
title="磅单信息"
|
|
@on-cancel="handleClose"
|
|
@on-cancel="handleClose"
|
|
>
|
|
>
|
|
<p>查看装车磅单</p>
|
|
<p>查看装车磅单</p>
|
|
<img width="100" height="100" :src="loadingImg1" alt="" />
|
|
<img width="100" height="100" :src="loadingImg1" alt="" />
|
|
- </WinseaContentModal>
|
|
|
|
|
|
+ </WinseaContentModal> -->
|
|
<WinseaContentModal
|
|
<WinseaContentModal
|
|
v-model="accesscard"
|
|
v-model="accesscard"
|
|
title="磅单信息"
|
|
title="磅单信息"
|
|
@@ -376,6 +385,15 @@
|
|
<img style="width: 100px; height: 100px" :src="item" alt="" />
|
|
<img style="width: 100px; height: 100px" :src="item" alt="" />
|
|
</div>
|
|
</div>
|
|
</WinseaContentModal>
|
|
</WinseaContentModal>
|
|
|
|
+
|
|
|
|
+ <WinseaContentModal v-model="accessoryTFs" :title="$t('system.noticeCircular.information')"
|
|
|
|
+ @on-cancel="accessoryTFs = false">
|
|
|
|
+ <div v-for="(item,index) in paymentScreenshotList" :key="index">
|
|
|
|
+ <!-- <ws-upload ref="upload" :comp-id="compId" :appendix-ids="item" :editable="false"
|
|
|
|
+ accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" /> -->
|
|
|
|
+ <img :src="item" alt="附件" class="img_css">
|
|
|
|
+ </div>
|
|
|
|
+ </WinseaContentModal>
|
|
</div>
|
|
</div>
|
|
<!-- </div> -->
|
|
<!-- </div> -->
|
|
</template>
|
|
</template>
|
|
@@ -526,6 +544,10 @@ export default {
|
|
return time.getTime() > Date.now()
|
|
return time.getTime() > Date.now()
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ amountEdPayable : "",//已付金额
|
|
|
|
+ alreadyInvoice:"",//未付金额
|
|
|
|
+ priceStatus:"",//状态
|
|
|
|
+ paymentScreenshotList:[],//付款截图
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
@@ -1063,7 +1085,8 @@ export default {
|
|
processNoValue:this.taskNoList[i].processNo[j].processNo,
|
|
processNoValue:this.taskNoList[i].processNo[j].processNo,
|
|
actualFreight : this.taskNoList[i].processNo[j].actualFreight,
|
|
actualFreight : this.taskNoList[i].processNo[j].actualFreight,
|
|
id:this.taskNoList[i].processNo[j].id,
|
|
id:this.taskNoList[i].processNo[j].id,
|
|
- tranPriceIng:this.taskNoList[i].processNo[j].tranPrice
|
|
|
|
|
|
+ tranPriceIng:this.taskNoList[i].processNo[j].tranPrice,
|
|
|
|
+ priceStatus:this.taskNoList[i].processNo[j].priceStatus
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1076,6 +1099,7 @@ export default {
|
|
this.actualFreight = this.processNoList[i].actualFreight
|
|
this.actualFreight = this.processNoList[i].actualFreight
|
|
this.processNoId =this.processNoList[i].id
|
|
this.processNoId =this.processNoList[i].id
|
|
this.tranPriceIng = this.processNoList[i].tranPriceIng
|
|
this.tranPriceIng = this.processNoList[i].tranPriceIng
|
|
|
|
+ this.priceStatus = this.processNoList[i].priceStatus
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.getList()
|
|
this.getList()
|
|
@@ -1094,6 +1118,10 @@ export default {
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
|
|
+ this.$notify.success({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '实际运费总价设置成功',
|
|
|
|
+ })
|
|
this.textShow = false
|
|
this.textShow = false
|
|
})
|
|
})
|
|
})
|
|
})
|
|
@@ -1104,37 +1132,37 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//合计
|
|
//合计
|
|
- getSummaries(param) {
|
|
|
|
- const { columns, data } = param
|
|
|
|
- const sums = []
|
|
|
|
- columns.forEach((column, index) => {
|
|
|
|
- if (index === 0) {
|
|
|
|
- sums[index] = '合计'
|
|
|
|
- } else if (
|
|
|
|
- index === 13 ||
|
|
|
|
- index === 14 ||
|
|
|
|
- index === 15 ||
|
|
|
|
- index === 16
|
|
|
|
- ) {
|
|
|
|
- const values = data.map((item) => Number(item[column.property]))
|
|
|
|
- if (!values.every((value) => isNaN(value))) {
|
|
|
|
- sums[index] = values.reduce((prev, curr) => {
|
|
|
|
- const value = Number(curr)
|
|
|
|
- if (!isNaN(value)) {
|
|
|
|
- return prev + curr
|
|
|
|
- } else {
|
|
|
|
- return prev
|
|
|
|
- }
|
|
|
|
- }, 0)
|
|
|
|
- } else {
|
|
|
|
- sums[index] = '元'
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- sums[index] = '--'
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- return sums
|
|
|
|
- },
|
|
|
|
|
|
+ // getSummaries(param) {
|
|
|
|
+ // const { columns, data } = param
|
|
|
|
+ // const sums = []
|
|
|
|
+ // columns.forEach((column, index) => {
|
|
|
|
+ // if (index === 0) {
|
|
|
|
+ // sums[index] = '合计'
|
|
|
|
+ // } else if (
|
|
|
|
+ // index === 13 ||
|
|
|
|
+ // index === 14 ||
|
|
|
|
+ // index === 15 ||
|
|
|
|
+ // index === 16
|
|
|
|
+ // ) {
|
|
|
|
+ // const values = data.map((item) => Number(item[column.property]))
|
|
|
|
+ // if (!values.every((value) => isNaN(value))) {
|
|
|
|
+ // sums[index] = values.reduce((prev, curr) => {
|
|
|
|
+ // const value = Number(curr)
|
|
|
|
+ // if (!isNaN(value)) {
|
|
|
|
+ // return prev + curr
|
|
|
|
+ // } else {
|
|
|
|
+ // return prev
|
|
|
|
+ // }
|
|
|
|
+ // }, 0)
|
|
|
|
+ // } else {
|
|
|
|
+ // sums[index] = '元'
|
|
|
|
+ // }
|
|
|
|
+ // } else {
|
|
|
|
+ // sums[index] = '--'
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // return sums
|
|
|
|
+ // },
|
|
//列表
|
|
//列表
|
|
getList() {
|
|
getList() {
|
|
autoList({
|
|
autoList({
|
|
@@ -1154,12 +1182,11 @@ export default {
|
|
response.records[i].settlementWeightchange = false
|
|
response.records[i].settlementWeightchange = false
|
|
response.records[i].deductionAmountchange = false
|
|
response.records[i].deductionAmountchange = false
|
|
response.records[i].amountNotPayable=response.records[i].amountIngPayable-response.records[i].amountEdPayable
|
|
response.records[i].amountNotPayable=response.records[i].amountIngPayable-response.records[i].amountEdPayable
|
|
- // response.records[i].settlementPrice =
|
|
|
|
- // response.records[i].unitPrice -
|
|
|
|
- // Math.abs(response.records[i].basisPrice) -
|
|
|
|
- // Math.abs(response.records[i].unloadingCharge) -
|
|
|
|
- // Math.abs(response.records[i].invoiceFee) -
|
|
|
|
- // Math.abs(response.records[i].deductionAmount)
|
|
|
|
|
|
+ if(this.processNo){
|
|
|
|
+ this.amountEdPayable += response.records[i].amountEdPayable // 已付
|
|
|
|
+ this.alreadyInvoice += response.records[i].alreadyInvoice//未付
|
|
|
|
+ this.paymentScreenshotList = response.records[0].paymentScreenshot.split(",")//附件地址取运输阶段第一条
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.deptBudgetTotal = response.total
|
|
this.deptBudgetTotal = response.total
|
|
this.warehouseList = response
|
|
this.warehouseList = response
|
|
@@ -1523,7 +1550,18 @@ hr {
|
|
.freightSet{
|
|
.freightSet{
|
|
margin: 10px 0 0 20px;
|
|
margin: 10px 0 0 20px;
|
|
display: flex;
|
|
display: flex;
|
|
- width:500px;
|
|
|
|
|
|
+ width:800px;
|
|
|
|
+ .span_text{
|
|
|
|
+ margin-left: 20px;
|
|
|
|
+ line-height: 30px;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+/deep/.freightSet .el-input{
|
|
|
|
+ width: 44%;
|
|
|
|
+}
|
|
|
|
+.findValue{
|
|
|
|
+ width: 300px;
|
|
|
|
+ margin-left: 5px;
|
|
}
|
|
}
|
|
/deep/.freightSet .el-input{
|
|
/deep/.freightSet .el-input{
|
|
width: 44%;
|
|
width: 44%;
|
|
@@ -1532,4 +1570,8 @@ hr {
|
|
width: 300px;
|
|
width: 300px;
|
|
margin-left: 5px;
|
|
margin-left: 5px;
|
|
}
|
|
}
|
|
|
|
+.img_css{
|
|
|
|
+ width: 200px;
|
|
|
|
+ height: 200px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|