|
@@ -238,6 +238,30 @@ const DISCOUNT_CUSTOM_STORAGE_KEY = 'ghsPad_selectPrice_customDiscountZhe'
|
|
|
const DISCOUNT_SELECTED_STORAGE_KEY = 'ghsPad_selectPrice_discountZhe'
|
|
const DISCOUNT_SELECTED_STORAGE_KEY = 'ghsPad_selectPrice_discountZhe'
|
|
|
/** 计算器弹层置顶:须在 console.vue 中使用同名常量 */
|
|
/** 计算器弹层置顶:须在 console.vue 中使用同名常量 */
|
|
|
const GATHERING_PIN_TOP_STORAGE_KEY = 'ghsPad_selectPrice_gatheringPinTop'
|
|
const GATHERING_PIN_TOP_STORAGE_KEY = 'ghsPad_selectPrice_gatheringPinTop'
|
|
|
|
|
+/** 与 settlePop.vue data().form 初始值一致,临时收款 createOrder 参数与结算弹框对齐 */
|
|
|
|
|
+const SETTLE_FORM_DEFAULTS = {
|
|
|
|
|
+ sendType: 1,
|
|
|
|
|
+ hasPay: 0,
|
|
|
|
|
+ payWay: 0,
|
|
|
|
|
+ needPrint: 1,
|
|
|
|
|
+ freight: '',
|
|
|
|
|
+ groupName: '',
|
|
|
|
|
+ remark: '',
|
|
|
|
|
+ sendCost: 0,
|
|
|
|
|
+ customSendCost: 0,
|
|
|
|
|
+ labourCost: 0,
|
|
|
|
|
+ modifyPrice: 0,
|
|
|
|
|
+ getStaffId: 0,
|
|
|
|
|
+ getStaffName: '',
|
|
|
|
|
+ shopAdminId: 0,
|
|
|
|
|
+ shopAdminName: '',
|
|
|
|
|
+ cash: 0,
|
|
|
|
|
+ dealPrice: 0,
|
|
|
|
|
+ reductionRule: 0,
|
|
|
|
|
+ callErrand: 0,
|
|
|
|
|
+ weight: 1,
|
|
|
|
|
+ deliveryRemark: '',
|
|
|
|
|
+}
|
|
|
export default {
|
|
export default {
|
|
|
name: 'selectPrice',
|
|
name: 'selectPrice',
|
|
|
props: {
|
|
props: {
|
|
@@ -1200,12 +1224,15 @@ export default {
|
|
|
source: 'submit',
|
|
source: 'submit',
|
|
|
orderOnly: !hasCalc,
|
|
orderOnly: !hasCalc,
|
|
|
})
|
|
})
|
|
|
|
|
+ const orderName = (this.name != null ? String(this.name) : '').trim()
|
|
|
this.$emit('zjGathering', {
|
|
this.$emit('zjGathering', {
|
|
|
- price: p,
|
|
|
|
|
- name: this.name,
|
|
|
|
|
- cash: cashSubmit,
|
|
|
|
|
|
|
+ ...SETTLE_FORM_DEFAULTS,
|
|
|
hasPay: emitHasPay,
|
|
hasPay: emitHasPay,
|
|
|
- payWay: emitPayWay
|
|
|
|
|
|
|
+ payWay: emitPayWay,
|
|
|
|
|
+ modifyPrice: p,
|
|
|
|
|
+ cash: cashSubmit,
|
|
|
|
|
+ orderName,
|
|
|
|
|
+ gatheringPrice: p,
|
|
|
})
|
|
})
|
|
|
this.price = 0
|
|
this.price = 0
|
|
|
this.checkType = 3
|
|
this.checkType = 3
|