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 4 months ago
parent
commit
1def4a9f0a
  1. 4
      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

4
src/common/basic.js

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

13
src/pages/fg/receiptByPlan.vue

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

6
src/pages/point/index.vue

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

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

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

Loading…
Cancel
Save