|
@@ -179,7 +179,8 @@
|
|
|
>
|
|
>
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="scope.row.totalCount"
|
|
v-model="scope.row.totalCount"
|
|
|
- @input="(val) => changeNum(val, scope.$index)"
|
|
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ @input="changeNum(scope.row, scope.$index)"
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
@@ -425,10 +426,10 @@
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- minWidth: 100,
|
|
|
|
|
|
|
+ minWidth: 150,
|
|
|
prop: 'totalCount',
|
|
prop: 'totalCount',
|
|
|
- // slot: 'totalCount',
|
|
|
|
|
- label: '计量数量',
|
|
|
|
|
|
|
+ slot: 'totalCount',
|
|
|
|
|
+ label: '退货数量',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
@@ -602,9 +603,9 @@
|
|
|
console.log(this.entrustedCode);
|
|
console.log(this.entrustedCode);
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- downloadFile(file) {
|
|
|
|
|
- getFile({ objectName: file.storePath }, file.name);
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // downloadFile(file) {
|
|
|
|
|
+ // getFile({ objectName: file.storePath }, file.name);
|
|
|
|
|
+ // },
|
|
|
|
|
|
|
|
//出库单详情
|
|
//出库单详情
|
|
|
handleOutBound(e, rows, index) {
|
|
handleOutBound(e, rows, index) {
|
|
@@ -709,11 +710,20 @@
|
|
|
// } else {
|
|
// } else {
|
|
|
// this.$set(this.form.datasource[this.curIndex], 'increaseTotalWeight', sendTotalWeight);
|
|
// this.$set(this.form.datasource[this.curIndex], 'increaseTotalWeight', sendTotalWeight);
|
|
|
// }
|
|
// }
|
|
|
- if (this.pricingWay == 2) {
|
|
|
|
|
- this.getWeightPrice();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (this.pricingWay == 2) {
|
|
|
|
|
+ // this.getWeightPrice();
|
|
|
|
|
+ // }
|
|
|
this.$refs.table.reload();
|
|
this.$refs.table.reload();
|
|
|
},
|
|
},
|
|
|
|
|
+ changeNum(row, index) {
|
|
|
|
|
+ if (row.totalCount && row.singlePrice) {
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.form.datasource[index],
|
|
|
|
|
+ 'totalPrice',
|
|
|
|
|
+ row.totalCount * row.singlePrice
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
//获取订单总金额
|
|
//获取订单总金额
|
|
|
gettotalAmount() {
|
|
gettotalAmount() {
|
|
|
let productData = this.form.datasource;
|
|
let productData = this.form.datasource;
|