Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into master_hella

# Conflicts:
#	.env.development
hella_online_20240829
niexiting 6 months ago
parent
commit
e4b4632a29
  1. 7
      .env.development
  2. 7
      src/pages.json
  3. 97
      src/pages/package/job/overPackageJobDetail.vue
  4. 5
      src/pages/setter/index.vue

7
.env.development

@ -1 +1,6 @@
VITE_BASE_URL=http://dev.ccwin-in.com:25300/api/admin-api VITE_BASE_URL_IMAGE=http://dev.ccwin-in.com:25300/api/admin-api # 租户配置 VITE_TENANT='[{"text":"长春","value":1},{"text":"成都","value":2}]' <<<<<<< HEAD
VITE_BASE_URL=http://dev.ccwin-in.com:25300/api/admin-api VITE_BASE_URL_IMAGE=http://dev.ccwin-in.com:25300/api/admin-api # 租户配置 VITE_TENANT='[{"text":"长春","value":1},{"text":"成都","value":2}]'
=======
VITE_BASE_URL=http://dev.ccwin-in.com:25300/api/admin-api
VITE_BASE_URL_IMAGE=http://dev.ccwin-in.com:25300/admin-api # 租户配置 VITE_TENANT='[{"text":"长春","value":1},{"text":"成都","value":2}]'
>>>>>>> 1ccdeabc43457dad340e3fdcd18fd01e052931c6

7
src/pages.json

@ -2037,6 +2037,13 @@
"navigationBarTitleText": "打印", "navigationBarTitleText": "打印",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
{
"path": "pages/print/index",
"style": {
"navigationBarTitleText": "打印",
"enablePullDownRefresh": false
}
} }
], ],
"globalStyle": { "globalStyle": {

97
src/pages/package/job/overPackageJobDetail.vue

@ -329,17 +329,22 @@
overPageSubmit(params).then(res => { overPageSubmit(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data) { if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成翻包记录<br>",res.data.map(item=>({ let list = [];
itemNumber: item.itemCode, // res.data.forEach(item => {
itemName: item.itemName, // list.push({
referenceOrderRow: item.poLine, // itemNumber: item.itemCode, //
referenceOrderCode: item.poNumber, // itemName: item.itemName, //
supplierCode: item.supplierCode, // referenceOrderRow: item.poLine, //
packageCode: item.number, // referenceOrderCode: item.poNumber, //
amount: item.qty, // supplierCode: item.supplierCode, //
barcodeString: '', // packageCode: item.number, //
barcodeBase64: '' amount: item.qty, //
}))) barcodeString: item.barcodeString, //
barcodeBase64: ''
})
})
this.showCommitSuccessMessage("提交成功<br>生成翻包记录<br>", list)
} else { } else {
this.showErrorMessage("提交失败[" + res.msg + "]") this.showErrorMessage("提交失败[" + res.msg + "]")
} }
@ -519,26 +524,58 @@
this.$refs.comMessage.showCommitSuccess(); this.$refs.comMessage.showCommitSuccess();
}, },
showCommitSuccessMessage(hint,pointData) { showCommitSuccessMessage(hint, pointData) {
Promise.all(pointData.map(item=>{ this.$refs.comMessage.showSuccessMessage(hint, res => {
return getPackageLabel(item.packageCode) if (pointData.length > 0) {
})).then(res=>{ uni.navigateTo({
res.forEach(item=>{ url: `/pages/point/index?points=${JSON.stringify(pointData)}`
const point = pointData.find(pointItem=>pointItem.packageCode==item.data.list[0].relateNumber) });
point.barcodeString = item.data.list[0].barcodeString } else {
}) navigateBack(1)
this.$refs.comMessage.showSuccessMessage(hint, res => { }
if(pointData.length>0){
uni.navigateTo({
url: `/pages/point/index?points=${JSON.stringify(pointData)}`
});
}else{
navigateBack(1)
}
})
}) })
// let packageResult = []
// pointData.forEach( async (item) => {
// let res = await getPackageLabel(item.packageCode)
// packageResult.push(res)
// if(packageResult.length==pointData.length){
// packageResult.forEach(item => {
// const point = pointData.find(pointItem => pointItem.packageCode == item.data.list[0]
// .relateNumber)
// point.barcodeString = item.data.list[0].barcodeString
// })
// this.$refs.comMessage.showSuccessMessage(hint, res => {
// if (pointData.length > 0) {
// uni.navigateTo({
// url: `/pages/point/index?points=${JSON.stringify(pointData)}`
// });
// } else {
// navigateBack(1)
// }
// })
// }
// })
// Promise.all(pointData.map(item => {
// return getPackageLabel(item.packageCode)
// })).then(res => {
// res.forEach(item => {
// const point = pointData.find(pointItem => pointItem.packageCode == item.data.list[
// 0].relateNumber)
// point.barcodeString = item.data.list[0].barcodeString
// })
// this.$refs.comMessage.showSuccessMessage(hint, res => {
// if (pointData.length > 0) {
// uni.navigateTo({
// url: `/pages/point/index?points=${JSON.stringify(pointData)}`
// });
// } else {
// navigateBack(1)
// }
// })
// })
}, },
showRescanMessage(message) { showRescanMessage(message) {

5
src/pages/setter/index.vue

@ -10,9 +10,10 @@
<u-cell-item v-if="userInfo!=null" icon="file-text" title="部门" :arrow="false">{{userInfo.dept.name}}</u-cell-item> <u-cell-item v-if="userInfo!=null" icon="file-text" title="部门" :arrow="false">{{userInfo.dept.name}}</u-cell-item>
<u-cell-item v-if="userInfo!=null" icon="photo" title="岗位" :arrow="false">{{(userInfo.posts || []).map(post => post.name).join(',')}}</u-cell-item> <u-cell-item v-if="userInfo!=null" icon="photo" title="岗位" :arrow="false">{{(userInfo.posts || []).map(post => post.name).join(',')}}</u-cell-item>
<u-cell-item icon="level" v-if="userInfo!=null" title="角色" :arrow="false">{{(userInfo.roles || []).map(role => role.name).join(',')}}</u-cell-item> <u-cell-item icon="level" v-if="userInfo!=null" title="角色" :arrow="false">{{(userInfo.roles || []).map(role => role.name).join(',')}}</u-cell-item>
<u-cell-item icon="file-text" title="访问地址" :arrow="false">{{url}}</u-cell-item>
<u-cell-item icon="trash" title="清除缓存" @click="clear()" ></u-cell-item> <u-cell-item icon="trash" title="清除缓存" @click="clear()" ></u-cell-item>
<u-cell-item icon="edit-pen" title="修改密码" @click="modifiedPassWord()" ></u-cell-item> <u-cell-item icon="edit-pen" title="修改密码" @click="modifiedPassWord()" ></u-cell-item>
<u-cell-item icon="edit-pen" title="打印" @click="print()" ></u-cell-item> <!-- <u-cell-item icon="edit-pen" title="打印" @click="print()" ></u-cell-item> -->
<u-cell-item icon="order" title="版本号" :arrow="false">{{version}}</u-cell-item> <u-cell-item icon="order" title="版本号" :arrow="false">{{version}}</u-cell-item>
<!-- #ifdef APP --> <!-- #ifdef APP -->
<u-cell-item icon="reload" title="检查更新" @click="update">{{version}}</u-cell-item> <u-cell-item icon="reload" title="检查更新" @click="update">{{version}}</u-cell-item>
@ -55,9 +56,11 @@
import { import {
onLoad onLoad
} from "@dcloudio/uni-app"; } from "@dcloudio/uni-app";
const app = createApp({}); const app = createApp({});
// app.component({ // app.component({
// }); // });
const url =ref(import.meta.env.VITE_BASE_URL)
const userName = ref(store.state.user.name); const userName = ref(store.state.user.name);
let version = ref(); let version = ref();

Loading…
Cancel
Save