Browse Source

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

lijuncheng0816
niexiting 1 month ago
parent
commit
1def4a9f0a
  1. 2
      src/common/basic.js
  2. 13
      src/pages/fg/receiptByPlan.vue
  3. 6
      src/pages/point/index.vue
  4. 7
      src/pages/productReceipt/job/fgProductReceiptDetail.vue

2
src/common/basic.js

@ -344,9 +344,7 @@ export function getInspectReasonList(value) {
export function getSwitchInfoByCode(code) {
var isCheck = false
var resultInfo = ""
if (switchList.length == 0) {
switchList = uni.getStorageSync("switch")
}
for (let item of switchList) {
if (item.code == code) {

13
src/pages/fg/receiptByPlan.vue

@ -132,6 +132,7 @@
import {
Exception
} from 'sass';
import { nextTick } from 'vue';
export default {
components: {
@ -217,6 +218,8 @@
this.showList = []
this.loadingType = "";
this.showList = this.getDataPage(this.index, this.pageSize)
this.dataContent.handleQty = this.showList.length;
},
getDataPage(pageNo, pageSize) {
@ -352,9 +355,17 @@
throw new Error("未查找到单据信息")
}
uni.hideLoading()
this.showCommitSuccessMessage("提交成功<br>生成装配收货记录<br>" + list[0].requestNumber, list)
this.showList = [];
this.allList = [];
this.index = 1;
this.dataContent.handleQty = 0;
nextTick(()=>{
this.showCommitSuccessMessage("提交成功<br>生成装配收货记录<br>" + list[0].requestNumber, list)
})
} catch (error) {
uni.hideLoading()
var hint = error.message ? error.message : error

6
src/pages/point/index.vue

@ -199,7 +199,8 @@
}, 1000)
} else {
var url = this.picUrl[index]
let i = this.picUrl.length - 1 - index
var url = this.picUrl[i]
// #ifdef APP
plus.io.resolveLocalFileSystemURL(url, (entry) => {
// entrytest.html
@ -207,7 +208,8 @@
let fileReader = new plus.io.FileReader();
fileReader.onloadend = (evt) => {
console.log("文件路径" + evt.target.result)
this.data[index].barcodeBase64 = evt.target.result
let i = this.data.length - 1 - index
this.data[i].barcodeBase64 = evt.target.result
this.generateBase64(index + 1)
}
fileReader.readAsDataURL(file);

7
src/pages/productReceipt/job/fgProductReceiptDetail.vue

@ -232,9 +232,9 @@
that.jobStatus = res.data.status
that.jobToLocationCode = that.subList[0].toLocationCode
that.productionLineCode = that.subList[0].productionLineCode;
if (that.jobContent.allowModifyLocation == 'FALSE') {
that.toLocationCode = that.subList[0].toLocationCode
}
// if (that.jobContent.allowModifyLocation == 'FALSE') {
// that.toLocationCode = that.subList[0].toLocationCode
// }
that.toLocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)
that.detailSource = getDataSource(that.subList)
@ -441,7 +441,6 @@
// this.showErrorMessage("0,")
// return;
// }
var valiDate = getSwitchInfoByCode("fgProductReceipCommitValidate")
//
if(valiDate){

Loading…
Cancel
Save