|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
开单确认提交面板(常驻在购物车右侧,非弹窗)
|
|
开单确认提交面板(常驻在购物车右侧,非弹窗)
|
|
|
由开单 POS 页四栏布局直接挂载,始终渲染;切换客户时刷新表单。
|
|
由开单 POS 页四栏布局直接挂载,始终渲染;切换客户时刷新表单。
|
|
|
- UI/业务对齐 ghsApp affirm:配送、打折、付款与备注提交。
|
|
|
|
|
|
|
+ UI/业务对齐 ghsApp affirm:账单日期入口已下线;送货日期写入 sendTime,可补录过去日期。
|
|
|
-->
|
|
-->
|
|
|
<template>
|
|
<template>
|
|
|
<aside class="order-commit-panel">
|
|
<aside class="order-commit-panel">
|
|
@@ -218,7 +218,8 @@
|
|
|
<div class="accounts-list">
|
|
<div class="accounts-list">
|
|
|
<span class="accounts-label">送货日期</span>
|
|
<span class="accounts-label">送货日期</span>
|
|
|
<div class="accounts-center">
|
|
<div class="accounts-center">
|
|
|
- <el-date-picker v-model="form.sendTimeWant" style="width: 100%" type="date" value-format="yyyy-MM-dd" placeholder="默认当天或跨天" />
|
|
|
|
|
|
|
+ <!-- 写入 sendTime,允许补录过去日期;不要绑 sendTimeWant,过去日会被采购单拦截 -->
|
|
|
|
|
+ <el-date-picker v-model="form.sendTime" style="width: 100%" type="date" value-format="yyyy-MM-dd" placeholder="默认当天,可补录过去日期" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="accounts-list">
|
|
<div class="accounts-list">
|
|
@@ -229,12 +230,7 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="accounts-list">
|
|
|
|
|
- <span class="accounts-label">账单日期</span>
|
|
|
|
|
- <div class="accounts-center">
|
|
|
|
|
- <el-date-picker v-model="form.historyDate" style="width: 100%" type="date" value-format="yyyy-MM-dd" placeholder="默认当天" />
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <!-- 账单日期入口已下线:historyDate 固定空,后端按当天写 payTime -->
|
|
|
<div class="accounts-list accounts-list--top">
|
|
<div class="accounts-list accounts-list--top">
|
|
|
<span class="accounts-label">备注信息</span>
|
|
<span class="accounts-label">备注信息</span>
|
|
|
<div class="accounts-center">
|
|
<div class="accounts-center">
|
|
@@ -367,6 +363,7 @@ export default {
|
|
|
needPrint: 1,
|
|
needPrint: 1,
|
|
|
getStaffId: 0,
|
|
getStaffId: 0,
|
|
|
getStaffName: '',
|
|
getStaffName: '',
|
|
|
|
|
+ sendTime: '',
|
|
|
sendTimeWant: '',
|
|
sendTimeWant: '',
|
|
|
historyDate: '',
|
|
historyDate: '',
|
|
|
remark: '',
|
|
remark: '',
|
|
@@ -476,6 +473,9 @@ export default {
|
|
|
this.form.packCost = ''
|
|
this.form.packCost = ''
|
|
|
this.form.wlName = ''
|
|
this.form.wlName = ''
|
|
|
this.form.remark = ''
|
|
this.form.remark = ''
|
|
|
|
|
+ this.form.sendTime = ''
|
|
|
|
|
+ this.form.sendTimeWant = ''
|
|
|
|
|
+ this.form.historyDate = ''
|
|
|
this.form.dealPrice = 0
|
|
this.form.dealPrice = 0
|
|
|
this.form.reductionRule = 0
|
|
this.form.reductionRule = 0
|
|
|
this.form.callErrand = 0
|
|
this.form.callErrand = 0
|
|
@@ -702,6 +702,14 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 预订单送货日仍是客户要求日 sendTimeWant,采购单禁止过去;普通单只写 sendTime,可补录过去
|
|
|
|
|
+ const sendDate = this.form.sendTime || ''
|
|
|
|
|
+ const today = dayjs().format('YYYY-MM-DD')
|
|
|
|
|
+ if (Number(this.form.book) === 1 && sendDate && sendDate < today) {
|
|
|
|
|
+ this.$message({ message: '预订单不能选过去的送货日期', type: 'warning' })
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
const product = this.selectList.map(ele => {
|
|
const product = this.selectList.map(ele => {
|
|
|
return {
|
|
return {
|
|
|
productId: ele.id,
|
|
productId: ele.id,
|
|
@@ -719,7 +727,10 @@ export default {
|
|
|
product: JSON.stringify(product),
|
|
product: JSON.stringify(product),
|
|
|
modifyPrice: this.modifyPrice,
|
|
modifyPrice: this.modifyPrice,
|
|
|
newVersion: 1,
|
|
newVersion: 1,
|
|
|
- dealPrice: forceDealPrice ? 1 : this.form.dealPrice
|
|
|
|
|
|
|
+ dealPrice: forceDealPrice ? 1 : this.form.dealPrice,
|
|
|
|
|
+ historyDate: '',
|
|
|
|
|
+ sendTime: sendDate,
|
|
|
|
|
+ sendTimeWant: Number(this.form.book) === 1 ? sendDate : ''
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 跑腿平台参数(对齐 affirm)
|
|
// 跑腿平台参数(对齐 affirm)
|