Commit d3f5def1 by 岑成威

fix: 更新

1 parent 7bd20c9c
......@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 5cdptest
*/
let index = 0;
let index = 2;
const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion;
......
......@@ -229,6 +229,18 @@ var formatBrandLabel = function (label, brandName) {
var hmReg = getRegExp('鸿蒙', 'g')
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 = {
subStatus: subStatus,
subStatusName: subStatusName,
btnPermissions: btnPermissions,
formatBrandLabel: formatBrandLabel
formatBrandLabel: formatBrandLabel,
getSalesTypeName: getSalesTypeName
}
......@@ -154,7 +154,7 @@ value="{{ orderObj.remark }}"
<gl-cell
border
label="客户来源"
value="{{ Sourcecolumns[orderObj.customer.salesType].name }}"
value="{{ filter.getSalesTypeName(Sourcecolumns, orderObj.customer.salesType) }}"
bind:click="toSelectCustomerSource"
haveArrow="{{ true }}"
placeholder="点击选择"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!