Commit d3f5def1 by 岑成威

fix: 更新

1 parent 7bd20c9c
...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd"; ...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 0; let index = 2;
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync(); const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion; const envName = accountInfo.miniProgram.envVersion;
......
...@@ -229,6 +229,18 @@ var formatBrandLabel = function (label, brandName) { ...@@ -229,6 +229,18 @@ var formatBrandLabel = function (label, brandName) {
var hmReg = getRegExp('鸿蒙', 'g') var hmReg = getRegExp('鸿蒙', 'g')
return replaced != label ? replaced : label.replace(hmReg, name) return replaced != label ? replaced : label.replace(hmReg, name)
} }
// 客户来源:按 type 匹配名称(不能用 salesType 当下标)
var getSalesTypeName = function (columns, salesType) {
if (!columns || columns.length === 0) return ''
for (var i = 0; i < columns.length; i++) {
if (columns[i].type == salesType) {
return columns[i].name
}
}
return ''
}
/* /*
* 导出 * 导出
*/ */
...@@ -248,5 +260,6 @@ module.exports = { ...@@ -248,5 +260,6 @@ module.exports = {
subStatus: subStatus, subStatus: subStatus,
subStatusName: subStatusName, subStatusName: subStatusName,
btnPermissions: btnPermissions, btnPermissions: btnPermissions,
formatBrandLabel: formatBrandLabel formatBrandLabel: formatBrandLabel,
getSalesTypeName: getSalesTypeName
} }
...@@ -154,7 +154,7 @@ value="{{ orderObj.remark }}" ...@@ -154,7 +154,7 @@ value="{{ orderObj.remark }}"
<gl-cell <gl-cell
border border
label="客户来源" label="客户来源"
value="{{ Sourcecolumns[orderObj.customer.salesType].name }}" value="{{ filter.getSalesTypeName(Sourcecolumns, orderObj.customer.salesType) }}"
bind:click="toSelectCustomerSource" bind:click="toSelectCustomerSource"
haveArrow="{{ true }}" haveArrow="{{ true }}"
placeholder="点击选择" placeholder="点击选择"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!