|
@@ -24,6 +24,8 @@ Page({
|
|
|
model: "#Invoice"
|
|
|
}],
|
|
|
saletypeList: null,
|
|
|
+ showMYModel: false,
|
|
|
+ reminddays: 7,
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.setData({
|
|
@@ -593,28 +595,53 @@ Page({
|
|
|
/* 提交订单 */
|
|
|
submit() {
|
|
|
let that = this;
|
|
|
- wx.showModal({
|
|
|
- cancelText: getApp().globalData.Language.getMapText('取消'),
|
|
|
- confirmText: getApp().globalData.Language.getMapText('确定'),
|
|
|
- title: getApp().globalData.Language.getMapText('提示'),
|
|
|
- content: getApp().globalData.Language.getMapText('是否确认提交订单') + '?',
|
|
|
- complete: (res) => {
|
|
|
- if (res.confirm) _Http.basic({
|
|
|
- "id": 20221108153402,
|
|
|
- "content": {
|
|
|
- sa_orderid: that.data.sa_orderid
|
|
|
- },
|
|
|
- }).then(s => {
|
|
|
- console.log("提交订单", s)
|
|
|
- wx.showToast({
|
|
|
- title: s.code != '1' ? s.msg : getApp().globalData.Language.getMapText('提交成功'),
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
- if (s.code == '1') that.setData({
|
|
|
- "detail.status": "提交"
|
|
|
- })
|
|
|
- })
|
|
|
- }
|
|
|
+ if (['HY', 'YOSTEST1'].includes(wx.getStorageSync('userMsg').siteid)) {
|
|
|
+ this.setData({
|
|
|
+ showMYModel: true
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ wx.showModal({
|
|
|
+ cancelText: getApp().globalData.Language.getMapText('取消'),
|
|
|
+ confirmText: getApp().globalData.Language.getMapText('确定'),
|
|
|
+ title: getApp().globalData.Language.getMapText('提示'),
|
|
|
+ content: getApp().globalData.Language.getMapText('是否确认提交订单') + '?',
|
|
|
+ complete: (res) => {
|
|
|
+ if (res.confirm) that.handleSubmit();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleSubmit(reminddays = 0) {
|
|
|
+ _Http.basic({
|
|
|
+ "id": 20221108153402,
|
|
|
+ "content": {
|
|
|
+ sa_orderid: this.data.sa_orderid,
|
|
|
+ reminddays
|
|
|
+ },
|
|
|
+ }).then(s => {
|
|
|
+ console.log("提交订单", s)
|
|
|
+ wx.showToast({
|
|
|
+ title: s.code != '1' ? s.msg : getApp().globalData.Language.getMapText('提交成功'),
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ if (s.code == '1') this.setData({
|
|
|
+ "detail.status": "提交"
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ stepperSubmit() {
|
|
|
+ this.handleSubmit(this.data.reminddays)
|
|
|
+ },
|
|
|
+ dialogOnClose() {
|
|
|
+ this.setData({
|
|
|
+ showMYModel: false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ stepperChange({
|
|
|
+ detail
|
|
|
+ }) {
|
|
|
+ this.setData({
|
|
|
+ reminddays: detail
|
|
|
})
|
|
|
},
|
|
|
/* 确认订单交期 */
|