diff --git a/src/common/http.api.js b/src/common/http.api.js
index 6a55643..278df00 100644
--- a/src/common/http.api.js
+++ b/src/common/http.api.js
@@ -142,6 +142,8 @@ const install = (Vue, vm) => {
// PDA登录接口
pdaLogin: (params = {}) => vm.$u.postJson('/login', params),
pdaLogout: (params = {}) => vm.$u.postJson('/logout', params),
+ // 修改密码:PUT pda/v1/user/updatePassword
+ updatePassword: (params = {}) => vm.$u.putJson('/user/updatePassword', params),
// 登录后获取当前用户信息、菜单与按钮权限
pdaGetInformation: (params = {}) => vm.$u.get('/information', params),
// 获取配布单列表
diff --git a/src/common/scanMixin.js b/src/common/scanMixin.js
index f94dd0e..9a4f527 100644
--- a/src/common/scanMixin.js
+++ b/src/common/scanMixin.js
@@ -19,6 +19,7 @@ export default {
registeredBrands: [],
remoteScannerConfigs: [],
usePhoneScanFallback: false,
+ phoneScanPanelOpen: false,
_scanCallback: null,
}
},
@@ -72,6 +73,15 @@ export default {
return configs.length ? configs[0] : null;
},
+ closePhoneScanPanel() {
+ this.phoneScanPanelOpen = false;
+ },
+
+ /** 半屏连续扫:再次点击同一入口则收起 */
+ togglePhoneScanPanel() {
+ this.phoneScanPanelOpen = !this.phoneScanPanelOpen;
+ },
+
openPhoneScan(options = {}) {
const callback = options.callback || this._scanCallback;
// #ifdef APP-PLUS || MP-WEIXIN
@@ -317,10 +327,12 @@ export default {
onHide() {
this.isPageActive = false;
+ this.closePhoneScanPanel();
},
onUnload() {
this.isPageActive = false;
+ this.closePhoneScanPanel();
this.unregisterScanBroadcast();
}
}
diff --git a/src/components/common/PlusBarcodePanel.vue b/src/components/common/PlusBarcodePanel.vue
new file mode 100644
index 0000000..034af60
--- /dev/null
+++ b/src/components/common/PlusBarcodePanel.vue
@@ -0,0 +1,286 @@
+
+
+
+ {{ tipText }}
+ 收起
+
+
+
+
+
+
+ 当前环境不支持半屏扫码,请使用输入框或系统扫码
+
+
+
+
+
+
+
+
diff --git a/src/components/storefabric/FabricOutDetailList.vue b/src/components/storefabric/FabricOutDetailList.vue
index 7f236c5..22b46e4 100644
--- a/src/components/storefabric/FabricOutDetailList.vue
+++ b/src/components/storefabric/FabricOutDetailList.vue
@@ -4,46 +4,44 @@
-
-
- {{ col.label }}
-
- 暂无出仓明细
-
+
+ {{ col.label }}
+
+
- {{ row.grey_fabric_code || '-' }}
- {{ row.grey_fabric_name || '-' }}
- {{ displayNum(row.roll) }}
- {{ displayNum(row.weight) }}
- 细码
-
-
- 合计
-
- {{ totalRoll }}
- {{ totalWeight }}
-
-
-
+ {{ row.grey_fabric_code || '-' }}
+ {{ row.grey_fabric_name || '-' }}
+ {{ displayNum(row.roll) }}
+ {{ displayNum(row.weight) }}
+ 细码
+
+
+ 合计
+
+ {{ totalRoll }}
+ {{ totalWeight }}
+
+
+
+ 暂无出仓明细
diff --git a/src/components/storegoods/FineCodeSummaryTable.vue b/src/components/storegoods/FineCodeSummaryTable.vue
index 2425b3d..c6d3dfb 100644
--- a/src/components/storegoods/FineCodeSummaryTable.vue
+++ b/src/components/storegoods/FineCodeSummaryTable.vue
@@ -4,39 +4,26 @@
-
-
- {{ col.label }}
-
- {{ emptyText }}
-
+
+ {{ col.label }}
+
+
- {{ formatCell(row, col.key) }}
-
-
- {{ totalCell(col.key) }}
-
-
+ {{ formatCell(row, col.key) }}
+
+
+ {{ totalCell(col.key) }}
+
+
+ {{ emptyText }}
@@ -46,30 +33,26 @@
暂无细码
-
-
- {{ col.label }}
-
-
+
+ {{ col.label }}
+
+
- {{ formatFineCell(fc, col.key) }}
-
-
+ >{{ formatFineCell(fc, col.key) }}
+
+
点击「删除」移除对应细码
@@ -80,6 +63,11 @@
+
+
diff --git a/src/components/t-table/t-td.vue b/src/components/t-table/t-td.vue
new file mode 100644
index 0000000..1e5c81d
--- /dev/null
+++ b/src/components/t-table/t-td.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/components/t-table/t-th.vue b/src/components/t-table/t-th.vue
new file mode 100644
index 0000000..e6cf4d9
--- /dev/null
+++ b/src/components/t-table/t-th.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/components/t-table/t-tr.vue b/src/components/t-table/t-tr.vue
new file mode 100644
index 0000000..9dc5d88
--- /dev/null
+++ b/src/components/t-table/t-tr.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/manifest.json b/src/manifest.json
index 9923e8d..635f197 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -2,8 +2,8 @@
"name" : "浩拓ERP",
"appid" : "__UNI__F79F300",
"description" : "浩拓ERP",
- "versionName" : "1.1.18",
- "versionCode" : 118,
+ "versionName" : "1.1.19",
+ "versionCode" : 119,
"transformPx" : false,
"app-plus" : {
"optimization" : {
diff --git a/src/pages/saleship/salepickscandetail.vue b/src/pages/saleship/salepickscandetail.vue
index 85a9303..98cab2e 100644
--- a/src/pages/saleship/salepickscandetail.vue
+++ b/src/pages/saleship/salepickscandetail.vue
@@ -15,10 +15,22 @@
备注内容:{{ BillRemark }}
+
+ 关闭扫码
diff --git a/src/pages/sys/user/pwd.vue b/src/pages/sys/user/pwd.vue
index 732d9c1..eca9338 100644
--- a/src/pages/sys/user/pwd.vue
+++ b/src/pages/sys/user/pwd.vue
@@ -33,7 +33,7 @@ export default {
model: {
oldPassword: '',
newPassword: '',
- confirmNewPassword: ''
+ confirmPassword: ''
},
rules: {
oldPassword: [
@@ -79,26 +79,27 @@ export default {
submit() {
this.$refs.uForm.validate(valid => {
if (valid) {
- this.$u.api.user.infoSavePwd({
- oldPassword: this.model.oldPassword,
- newPassword: this.model.newPassword
- }).then(res => {
- if(res.code == '200'){
- uni.showModal({
- title: '提示',
- content: res.msg,
- showCancel: false,
- success: function () {
- uni.navigateBack();
- }
- });
- }else{
- uni.showModal({
- title: '提示',
- content: res.msg,
- showCancel: false
+ this.$u.api.updatePassword({
+ old_password: this.model.oldPassword,
+ new_password: this.model.newPassword
+ }).then(() => {
+ const saved = uni.getStorageSync('UserInfo');
+ if (saved && typeof saved === 'object') {
+ uni.setStorageSync('UserInfo', {
+ ...saved,
+ password: this.model.newPassword
});
}
+ uni.showModal({
+ title: '提示',
+ content: '密码修改成功',
+ showCancel: false,
+ success: function () {
+ uni.navigateBack();
+ }
+ });
+ }).catch((error) => {
+ console.log('updatePassword error', error);
});
} else {
this.$u.toast('您填写的信息有误,请根据提示修正。');
@@ -112,15 +113,31 @@ export default {
};
diff --git a/src/pages/sys/user/setting.vue b/src/pages/sys/user/setting.vue
index f67fb1b..67044b7 100644
--- a/src/pages/sys/user/setting.vue
+++ b/src/pages/sys/user/setting.vue
@@ -7,17 +7,12 @@
-
-
- 退出登录
-