|
@@ -328,6 +328,15 @@
|
|
|
<span v-if="order!=null">
|
|
<span v-if="order!=null">
|
|
|
¥{{order.payDelivery.toFixed(2)}}
|
|
¥{{order.payDelivery.toFixed(2)}}
|
|
|
</span>
|
|
</span>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ plain
|
|
|
|
|
+ class="edit-quantity-btn"
|
|
|
|
|
+ @click="editPayDeliveryHandle()"
|
|
|
|
|
+ v-hasPermi="['store:storeOrder:editPayDelivery']">
|
|
|
|
|
+ 修改
|
|
|
|
|
+ </el-button>
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="优惠券" >
|
|
<el-descriptions-item label="优惠券" >
|
|
|
<span v-if="order!=null">
|
|
<span v-if="order!=null">
|
|
@@ -727,6 +736,29 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 修改代收金额 -->
|
|
|
|
|
+ <el-dialog :title="editPayDelivery.title" :visible.sync="editPayDelivery.open" width="500px" append-to-body>
|
|
|
|
|
+ <el-form ref="payDeliveryForm" :model="payDeliveryForm" :rules="payDeliveryRules" label-width="150px">
|
|
|
|
|
+ <el-form-item label="代收金额(元)" prop="payDelivery">
|
|
|
|
|
+ <el-input-number
|
|
|
|
|
+ v-model="payDeliveryForm.payDelivery"
|
|
|
|
|
+ :min="0.01"
|
|
|
|
|
+ :precision="2"
|
|
|
|
|
+ :step="0.01"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ style="width: 150px"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-input-number>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+
|
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button @click="editPayDelivery.open = false">取 消</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="submitPayDeliveryForm">确 定</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -748,7 +780,8 @@ import {
|
|
|
updateErp,
|
|
updateErp,
|
|
|
updateExpress,
|
|
updateExpress,
|
|
|
updateStoreOrder,
|
|
updateStoreOrder,
|
|
|
- updateStoreOrderItemJson
|
|
|
|
|
|
|
+ updateStoreOrderItemJson,
|
|
|
|
|
+ editPayDelivery
|
|
|
} from "@/api/hisStore/storeOrder";
|
|
} from "@/api/hisStore/storeOrder";
|
|
|
import {listStoreProduct} from "@/api/hisStore/storeProduct";
|
|
import {listStoreProduct} from "@/api/hisStore/storeProduct";
|
|
|
import {getTcmScheduleList} from "@/api/company/schedule";
|
|
import {getTcmScheduleList} from "@/api/company/schedule";
|
|
@@ -922,6 +955,20 @@ export default {
|
|
|
{ type: 'number', max: 999999, message: "数量不能超过999999", trigger: "blur" }
|
|
{ type: 'number', max: 999999, message: "数量不能超过999999", trigger: "blur" }
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
|
|
+ // 修改代收金额相关参数
|
|
|
|
|
+ editPayDelivery: {
|
|
|
|
|
+ title: "修改代收金额",
|
|
|
|
|
+ open: false,
|
|
|
|
|
+ },
|
|
|
|
|
+ payDeliveryForm: {
|
|
|
|
|
+ id: null,
|
|
|
|
|
+ payDelivery: 0.00
|
|
|
|
|
+ },
|
|
|
|
|
+ payDeliveryRules: {
|
|
|
|
|
+ payDelivery: [
|
|
|
|
|
+ { required: true, message: "代收金额不能为空", trigger: "blur" },
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
// 删除商品相关
|
|
// 删除商品相关
|
|
|
removeProductLoading: false
|
|
removeProductLoading: false
|
|
|
};
|
|
};
|
|
@@ -1471,7 +1518,30 @@ export default {
|
|
|
this.tuiMoneyLogs=response.tuiMoneyLogs;
|
|
this.tuiMoneyLogs=response.tuiMoneyLogs;
|
|
|
this.auditLogs = response.auditLogs;
|
|
this.auditLogs = response.auditLogs;
|
|
|
});
|
|
});
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ editPayDeliveryHandle() {
|
|
|
|
|
+ this.payDeliveryForm.id = this.orderId;
|
|
|
|
|
+ this.payDeliveryForm.payDelivery = this.order.payDelivery || 0.00;
|
|
|
|
|
+ this.editPayDelivery.open = true;
|
|
|
|
|
+ },
|
|
|
|
|
+ // 提交修改代收金额
|
|
|
|
|
+ submitPayDeliveryForm() {
|
|
|
|
|
+ this.$refs["payDeliveryForm"].validate(valid => {
|
|
|
|
|
+ if (valid) {
|
|
|
|
|
+ editPayDelivery(this.payDeliveryForm).then(response => {
|
|
|
|
|
+ if (response.code === 200) {
|
|
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
|
|
+ this.editPayDelivery.open = false;
|
|
|
|
|
+ this.getOrder(this.order.id);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.msgError(response.message);
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(error => {
|
|
|
|
|
+ this.$message.error('请求失败: ' + error.message)
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|