|
@@ -124,6 +124,8 @@
|
|
v-loading="loading"
|
|
v-loading="loading"
|
|
:data="contrastList"
|
|
:data="contrastList"
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
|
|
+ show-summary
|
|
|
|
+ :summary-method="listTotal"
|
|
>
|
|
>
|
|
<el-table-column width="50" align="center" type="selection"/>
|
|
<el-table-column width="50" align="center" type="selection"/>
|
|
<!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
|
|
<!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
|
|
@@ -337,6 +339,10 @@
|
|
<span v-else>{{scope.row.fBilltype}}</span>
|
|
<span v-else>{{scope.row.fBilltype}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="计价单位" align="center" prop="fFeeunitid" />
|
|
|
|
+ <el-table-column label="数量" align="center" prop="fQty" />
|
|
|
|
+ <el-table-column label="单价" align="center" prop="fUnitprice" />
|
|
|
|
+
|
|
<el-table-column label="来源编号" align="center" prop="srcBillNo" />
|
|
<el-table-column label="来源编号" align="center" prop="srcBillNo" />
|
|
<el-table-column label="提单号" align="center" prop="fMblno" />
|
|
<el-table-column label="提单号" align="center" prop="fMblno" />
|
|
<el-table-column label="货物品名" align="center" prop="fProductName" />
|
|
<el-table-column label="货物品名" align="center" prop="fProductName" />
|
|
@@ -666,6 +672,7 @@ export default {
|
|
|
|
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ jFeetunitOptions:[],
|
|
// 总条数
|
|
// 总条数
|
|
total: 0,
|
|
total: 0,
|
|
totAL:0,
|
|
totAL:0,
|
|
@@ -821,11 +828,37 @@ export default {
|
|
created() {
|
|
created() {
|
|
this.getList()
|
|
this.getList()
|
|
this.register()
|
|
this.register()
|
|
|
|
+ this.getDicts("data_unitfees").then((response) => {
|
|
|
|
+ this.jFeetunitOptions = response.data;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
activated(){
|
|
activated(){
|
|
this.Jump()
|
|
this.Jump()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //对账页面合计
|
|
|
|
+ listTotal(param){
|
|
|
|
+ const { columns, data } = param
|
|
|
|
+ const sums = []
|
|
|
|
+ columns.forEach((column, index) => {
|
|
|
|
+ if (index === 0) {
|
|
|
|
+ sums[index] = '合计'
|
|
|
|
+ } else if (index ===7 || index ===8 ) {
|
|
|
|
+ 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)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ return sums
|
|
|
|
+ },
|
|
//财务主取消
|
|
//财务主取消
|
|
signOut(){
|
|
signOut(){
|
|
this.innerVisible = false
|
|
this.innerVisible = false
|
|
@@ -1147,7 +1180,6 @@ export default {
|
|
this.pass.fName = this.nothing[0] + "..."
|
|
this.pass.fName = this.nothing[0] + "..."
|
|
}
|
|
}
|
|
this.DzfeeList = this.DzfeeList.concat(this.selection)
|
|
this.DzfeeList = this.DzfeeList.concat(this.selection)
|
|
- console.log(this.selection)
|
|
|
|
this.queryParams.tMblno = this.pass.fMblno //提单号
|
|
this.queryParams.tMblno = this.pass.fMblno //提单号
|
|
this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid
|
|
this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid
|
|
this.queryParams.fCtrlcorpid = this.pass.fName
|
|
this.queryParams.fCtrlcorpid = this.pass.fName
|
|
@@ -1451,7 +1483,6 @@ export default {
|
|
getFee(fId).then(response => {
|
|
getFee(fId).then(response => {
|
|
this.Operator = response.data.tFee.createBy
|
|
this.Operator = response.data.tFee.createBy
|
|
this.DzfeeList = response.data.feeDoList
|
|
this.DzfeeList = response.data.feeDoList
|
|
- console.log(this.DzfeeList)
|
|
|
|
this.fWbuOptions = response.data.feesList
|
|
this.fWbuOptions = response.data.feesList
|
|
this.queryParams = response.data.tFee
|
|
this.queryParams = response.data.tFee
|
|
this.fMblnoOptions = response.data.corps
|
|
this.fMblnoOptions = response.data.corps
|