缓存线
This commit is contained in:
@@ -107,5 +107,10 @@
|
|||||||
"uniStatistics" : {
|
"uniStatistics" : {
|
||||||
"enable" : false
|
"enable" : false
|
||||||
},
|
},
|
||||||
"vueVersion" : "2"
|
"vueVersion" : "2",
|
||||||
|
"h5" : {
|
||||||
|
"router" : {
|
||||||
|
"base" : "./"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -181,27 +181,27 @@
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
,
|
// ,
|
||||||
async checkMpaasScan () {
|
// async checkMpaasScan () {
|
||||||
var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
|
// var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
|
||||||
mpaasScanModule.mpaasScan({
|
// mpaasScanModule.mpaasScan({
|
||||||
// 扫码识别类型,参数可多选,qrCode、barCode,不设置,默认识别所有
|
// // 扫码识别类型,参数可多选,qrCode、barCode,不设置,默认识别所有
|
||||||
'scanType': ['qrCode','barCode'],
|
// 'scanType': ['qrCode','barCode'],
|
||||||
// 是否隐藏相册,默认false不隐藏
|
// // 是否隐藏相册,默认false不隐藏
|
||||||
'hideAlbum': false
|
// 'hideAlbum': false
|
||||||
},
|
// },
|
||||||
(ret) => {
|
// (ret) => {
|
||||||
uni.showModal({
|
// uni.showModal({
|
||||||
title: "弹窗标题",
|
// title: "弹窗标题",
|
||||||
// 返回值中,resp_code 表示返回结果值,10:用户取消,11:其他错误,1000:成功
|
// // 返回值中,resp_code 表示返回结果值,10:用户取消,11:其他错误,1000:成功
|
||||||
// 返回值中,resp_message 表示返回结果信息
|
// // 返回值中,resp_message 表示返回结果信息
|
||||||
// 返回值中,resp_result 表示扫码结果,只有成功才会有返回
|
// // 返回值中,resp_result 表示扫码结果,只有成功才会有返回
|
||||||
content: JSON.stringify(ret),
|
// content: JSON.stringify(ret),
|
||||||
showCancel: false,
|
// showCancel: false,
|
||||||
confirmText: "确定"
|
// confirmText: "确定"
|
||||||
})
|
// })
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="material-item-wrap">
|
<view class="material-item-wrap">
|
||||||
<view class="material-item" v-for="(e, i) in dataList" :key="i" :class="['bg-gray', 'bg-green', 'bg-yellow','bg-red', 'bg-none'][Number(e.vehicle_status) - 1]" @tap="toInfo(e)">
|
<view v-if="Number(e.vehicle_status) !== 5" class="material-item" v-for="(e, i) in dataList" :key="i" :class="['bg-gray', 'bg-green', 'bg-yellow','bg-red'][Number(e.vehicle_status) - 1]" @tap="toInfo(e)">
|
||||||
<view class="material-title">{{e.vehicle_code}}</view>
|
<view class="material-title">{{e.vehicle_code}}</view>
|
||||||
<view class="material-spec">{{e.material_spec}}</view>
|
<view class="material-spec">{{e.material_spec}}</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -152,7 +152,10 @@
|
|||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
// for(let i = 1; i < 16; i++) {
|
// for(let i = 1; i < 16; i++) {
|
||||||
// this.dataList.push({vehicle_code: i + '', material_spec: 'a', status: '4'})
|
// this.dataList.push({vehicle_code: i + '', material_spec: 'a', vehicle_status: '4'})
|
||||||
|
// if (i === 5) {
|
||||||
|
// this.dataList.push({vehicle_code: i + '', material_spec: 'a', vehicle_status: '5'})
|
||||||
|
// }
|
||||||
// }
|
// }
|
||||||
this._getCacheLine('A1')
|
this._getCacheLine('A1')
|
||||||
this._workprocedureQuery()
|
this._workprocedureQuery()
|
||||||
@@ -165,7 +168,7 @@
|
|||||||
this.val2 = this.$store.getters.publicObj.material_code
|
this.val2 = this.$store.getters.publicObj.material_code
|
||||||
this.val3 = this.$store.getters.publicObj.material_name
|
this.val3 = this.$store.getters.publicObj.material_name
|
||||||
this.val4 = this.$store.getters.publicObj.material_spec
|
this.val4 = this.$store.getters.publicObj.material_spec
|
||||||
this.val5 = this.$store.getters.publicObj.material_id
|
this.val5 = this.$store.getters.publicObj.material_uuid
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -228,7 +231,7 @@
|
|||||||
this.val2 = this.obj.material_code
|
this.val2 = this.obj.material_code
|
||||||
this.val3 = this.obj.material_name
|
this.val3 = this.obj.material_name
|
||||||
this.val4 = this.obj.material_spec
|
this.val4 = this.obj.material_spec
|
||||||
this.val5 = this.obj.material_id
|
this.val5 = this.obj.material_uuid
|
||||||
this.val6 = this.obj.quantity
|
this.val6 = this.obj.quantity
|
||||||
this.val7 = this.obj.weight
|
this.val7 = this.obj.weight
|
||||||
},
|
},
|
||||||
@@ -247,14 +250,15 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.$set(this.obj, 'position_code', this.obj.position_code)
|
let obj = {}
|
||||||
this.$set(this.obj, 'vehicle_code', this.val1)
|
this.$set(obj, 'position_code', this.obj.position_code)
|
||||||
this.$set(this.obj, 'material_id', this.val5)
|
this.$set(obj, 'vehicle_code', this.val1)
|
||||||
this.$set(this.obj, 'workprocedure_code', this.index3)
|
this.$set(obj, 'material_uuid', this.val5)
|
||||||
this.$set(this.obj, 'wcsdevice_code', this.obj.wcsdevice_code)
|
this.$set(obj, 'workprocedure_code', this.index3)
|
||||||
this.$set(this.obj, 'quantity', this.val6)
|
this.$set(obj, 'wcsdevice_code', this.obj.wcsdevice_code)
|
||||||
this.$set(this.obj, 'weight', this.val7)
|
this.$set(obj, 'quantity', this.val6)
|
||||||
let res = await setfullBox(this.obj)
|
this.$set(obj, 'weight', this.val7)
|
||||||
|
let res = await setfullBox(obj)
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
this.toSearch()
|
this.toSearch()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -274,6 +278,7 @@
|
|||||||
try {
|
try {
|
||||||
let obj = {}
|
let obj = {}
|
||||||
this.$set(obj, 'vehicle_code', this.val1)
|
this.$set(obj, 'vehicle_code', this.val1)
|
||||||
|
this.$set(obj, 'wcsdevice_code', this.obj.wcsdevice_code)
|
||||||
this.$set(obj, 'position_code', this.obj.position_code)
|
this.$set(obj, 'position_code', this.obj.position_code)
|
||||||
let res = await setEmptyBox(obj)
|
let res = await setEmptyBox(obj)
|
||||||
this.disabled2 = false
|
this.disabled2 = false
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="e in dataList" :key="e.material_uuid" @click="toRadio(e)">
|
<tr v-for="e in dataList" :key="e.material_uuid" @click="toRadio(e)">
|
||||||
<td>
|
<td>
|
||||||
<view class="iconfont icon-check" :class="{'icon-checked': pkId === e.material_id}"></view>
|
<view class="iconfont icon-check" :class="{'icon-checked': pkId === e.material_uuid}"></view>
|
||||||
</td>
|
</td>
|
||||||
<td>{{e.material_code}}</td>
|
<td>{{e.material_code}}</td>
|
||||||
<td>{{e.material_name}}</td>
|
<td>{{e.material_name}}</td>
|
||||||
@@ -68,8 +68,8 @@
|
|||||||
this.dataList = [...res]
|
this.dataList = [...res]
|
||||||
},
|
},
|
||||||
toRadio (e) {
|
toRadio (e) {
|
||||||
this.pkId = this.pkId === e.material_id ? '' : e.material_id
|
this.pkId = this.pkId === e.material_uuid ? '' : e.material_uuid
|
||||||
this.pkObj = this.pkId === e.material_id ? e : {}
|
this.pkObj = this.pkId === e.material_uuid ? e : {}
|
||||||
},
|
},
|
||||||
toSure () {
|
toSure () {
|
||||||
if (!this.pkId) {
|
if (!this.pkId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user