|
@@ -40,7 +40,8 @@ Page({
|
|
|
isRecall: checkPermission("recall"),
|
|
isRecall: checkPermission("recall"),
|
|
|
isSure: checkPermission("sure"),
|
|
isSure: checkPermission("sure"),
|
|
|
ProductFile: checkPermission("ProductFile"),
|
|
ProductFile: checkPermission("ProductFile"),
|
|
|
- siteid: wx.getStorageSync('userMsg').siteid
|
|
|
|
|
|
|
+ siteid: wx.getStorageSync('userMsg').siteid,
|
|
|
|
|
+ setproject:checkPermission("setproject"),
|
|
|
});
|
|
});
|
|
|
this.getDetail(true);
|
|
this.getDetail(true);
|
|
|
//销售分类
|
|
//销售分类
|
|
@@ -381,6 +382,55 @@ Page({
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ /* 设置项目 */
|
|
|
|
|
+ selectProject() {
|
|
|
|
|
+ if (this.isEdit()) return;
|
|
|
|
|
+ wx.navigateTo({
|
|
|
|
|
+ url: `/select/project/index?params=${JSON.stringify({
|
|
|
|
|
+ "id":2026011416113702,
|
|
|
|
|
+ "content": {
|
|
|
|
|
+ nocache:true,
|
|
|
|
|
+ sys_enterpriseid:2784||this.data.detail.sys_enterpriseid,
|
|
|
|
|
+ "pageNumber": 1,
|
|
|
|
|
+ "pageTotal": 1,
|
|
|
|
|
+ "pageSize": 20,
|
|
|
|
|
+ "where": {
|
|
|
|
|
+ "condition": ""
|
|
|
|
|
+ },
|
|
|
|
|
+ }
|
|
|
|
|
+ })}&radio=true`,
|
|
|
|
|
+ });
|
|
|
|
|
+ let that = this;
|
|
|
|
|
+ getApp().globalData.handleSelect = function ({
|
|
|
|
|
+ item
|
|
|
|
|
+ }) {
|
|
|
|
|
+ wx.showModal({
|
|
|
|
|
+ cancelText: getApp().globalData.Language.getMapText('取消'),
|
|
|
|
|
+ confirmText: getApp().globalData.Language.getMapText('确定'),
|
|
|
|
|
+ title: getApp().globalData.Language.getMapText('提示'),
|
|
|
|
|
+ content: getApp().globalData.Language.getMapText('是否确定关联项目') + ':' + item.projectname,
|
|
|
|
|
+ complete: ({
|
|
|
|
|
+ confirm
|
|
|
|
|
+ }) => {
|
|
|
|
|
+ if (confirm) {
|
|
|
|
|
+ that.data.detail.sa_projectid = item.sa_projectid;
|
|
|
|
|
+ that.changeDetail().then(s => {
|
|
|
|
|
+ if (s.code == '1') {
|
|
|
|
|
+ wx.showToast({
|
|
|
|
|
+ title: getApp().globalData.Language.getMapText('关联成功'),
|
|
|
|
|
+ icon: "none"
|
|
|
|
|
+ });
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ wx.navigateBack();
|
|
|
|
|
+ that.getDetail();
|
|
|
|
|
+ }, 500)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }.bind(this)
|
|
|
|
|
+ },
|
|
|
//tabs 切换
|
|
//tabs 切换
|
|
|
tabsChange({
|
|
tabsChange({
|
|
|
detail
|
|
detail
|
|
@@ -419,6 +469,7 @@ Page({
|
|
|
"sys_enterpriseid": data.sys_enterpriseid, //订货企业id
|
|
"sys_enterpriseid": data.sys_enterpriseid, //订货企业id
|
|
|
"sa_accountclassid": data.accountclass.sa_accountclassid || 0, //营销账户类型ID
|
|
"sa_accountclassid": data.accountclass.sa_accountclassid || 0, //营销账户类型ID
|
|
|
projectnote: data.projectnote || "", //项目备注
|
|
projectnote: data.projectnote || "", //项目备注
|
|
|
|
|
+ sa_projectid: data.sa_projectid || 0, //关联项目
|
|
|
"sa_brandid": data.sa_brandid, //品牌ID
|
|
"sa_brandid": data.sa_brandid, //品牌ID
|
|
|
"sys_enterprise_financeid": data.sys_enterprise_financeid || 0, //合作企业财务信息ID(开票信息)
|
|
"sys_enterprise_financeid": data.sys_enterprise_financeid || 0, //合作企业财务信息ID(开票信息)
|
|
|
//"sa_logiscompid": data.logiscomp.sa_logiscompid || 0, 物流公司档案ID
|
|
//"sa_logiscompid": data.logiscomp.sa_logiscompid || 0, 物流公司档案ID
|
|
@@ -451,7 +502,7 @@ Page({
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- /* 修改订单备注 */
|
|
|
|
|
|
|
+ /* 修改对外备注 */
|
|
|
changeRemarks(e) {
|
|
changeRemarks(e) {
|
|
|
let name = e.currentTarget.dataset.name,
|
|
let name = e.currentTarget.dataset.name,
|
|
|
value = e.detail.value,
|
|
value = e.detail.value,
|
|
@@ -464,13 +515,7 @@ Page({
|
|
|
title: getApp().globalData.Language.getMapText('提示'),
|
|
title: getApp().globalData.Language.getMapText('提示'),
|
|
|
content: getApp().globalData.Language.joint([{
|
|
content: getApp().globalData.Language.joint([{
|
|
|
t: 1,
|
|
t: 1,
|
|
|
- v: '是否确定修改',
|
|
|
|
|
- r: " "
|
|
|
|
|
- }, {
|
|
|
|
|
- t: 1,
|
|
|
|
|
- v: name == 'remarks' ? '订单' : '项目',
|
|
|
|
|
- f: "“",
|
|
|
|
|
- r: "”"
|
|
|
|
|
|
|
+ v: '是否确定修改'
|
|
|
}, {
|
|
}, {
|
|
|
t: 1,
|
|
t: 1,
|
|
|
v: '备注',
|
|
v: '备注',
|