This commit is contained in:
2023-09-18 10:23:27 +08:00
8 changed files with 61 additions and 24 deletions

View File

@@ -16,6 +16,9 @@
"autoclose" : true,
"delay" : 0
},
"compatible":{
"ignoreVersion":true
},
/* */
"modules" : {},
/* */

View File

@@ -40,7 +40,7 @@
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.checked}">
<td><span class="iconfont icon_unchecked" :class="{'icon_checked': e.checked}" @tap="toCheck(e)">&#xe66b;</span></td>
<td>{{['维修单', '保养单', '点检单', '润滑单'][Number(e.job_type) - 1]}}</td>
<td @tap="toJump(e)">{{e.job_code}}</td>
<td class="c_link" @tap="toJump(e)">{{e.job_code}}</td>
<td>{{e.device_code}}</td>
<td>{{e.device_name}}</td>
<td>结束</td>
@@ -132,5 +132,8 @@
}
</script>
<style lang="stylus">
<style lang="stylus" scoped>
.c_link
color #ff6a00
cursor pointer
</style>

View File

@@ -43,7 +43,7 @@
</thead>
<tbody>
<tr v-for="(e, i) in dataList" :key="i">
<td>{{['否', '是'][Number(e.isfinish) - 1]}}</td>
<td>{{['否', '是'][Number(e.isfinish)]}}</td>
<td>{{e.item_code}}</td>
<td>{{e.item_name}}</td>
<td v-show="val2 !== '1'">{{['日常', '一级', '二级'][Number(e.item_level) - 1]}}</td>

View File

@@ -38,7 +38,7 @@
export default {
data() {
return {
userName: this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).username : '',
userName: '',
menuList: [
{menu_id: '1', icon: 'RF06', name: '仓储管理', sonTree: [
{menu_id: '1', name: '原辅料收料', path: '/pages/warehouse/RawmaterialRevice'},
@@ -60,6 +60,9 @@
},
created () {
this.$store.dispatch('setPublicObj', '')
if (this.$store.getters.userInfo) {
this.userName = JSON.parse(this.$store.getters.userInfo).username
}
},
methods: {
toPage1 (e) {

View File

@@ -5,7 +5,7 @@
<view class="zd_wrapper">
<view class="input-wrap">
<view class="input-label">服务器地址</view>
<input type="text" class="setup-input" placeholder="请输入服务器地址" v-model="addrip">
<input type="text" class="setup-input" placeholder="请输入服务器地址" v-model.trim="addrip">
</view>
</view>
<!-- <view class="zd_wrapper">

View File

@@ -38,7 +38,7 @@
<view class="filter_item">
<view class="filter_label">工序</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
</view>
</view>
<view class="filter_item">
@@ -51,10 +51,16 @@
/>
</view>
</view>
<view class="filter_item">
<view class="filter_label">点位</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
</view>
</view>
</view>
</view>
<view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !val1 || !val3 || !bar_code}" :disabled="disabled" @tap="toSure">确认入库</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !val3 || !bar_code || !index2}" :disabled="disabled" @tap="toSure">确认入库</button>
<button class="submit-button" @tap="toCancle">清空</button>
</view>
</view>
@@ -63,7 +69,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {getWork, BcpConfirm} from '@/utils/getData2.js'
import {getWork, getPoint, BcpConfirm} from '@/utils/getData2.js'
export default {
components: {
NavBar,
@@ -75,8 +81,10 @@
val2: '',
val3: '',
sale_id: '',
options: [],
index: '',
options1: [],
index1: '',
options2: [],
index2: '',
bar_code: '',
dataList: [],
pkId: '',
@@ -96,6 +104,7 @@
},
created () {
this._getWork()
this._getPoint()
},
methods: {
getMater () {
@@ -103,23 +112,36 @@
url: '/pages/warehouse/SemifinishedMaterSearch'
})
},
/** 选择器 */
selectChange(e) {
this.index = e
/** 选择器1 */
selectChange1(e) {
this.index1 = e
},
/** 下拉框查询 */
/** 选择器2 */
selectChange2(e) {
this.index2 = e
},
/** 工序下拉框查询 */
async _getWork () {
let res = await getWork()
res.data.map(el => {
this.$set('value', el.workprocedure_id)
this.$set('text', el.workprocedure_name)
this.$set(el, 'value', el.workprocedure_id)
this.$set(el, 'text', el.workprocedure_name)
})
this.options = [...res.data]
this.options1 = [...res.data]
},
/** 点位下拉框查询 */
async _getPoint () {
let res = await getPoint()
res.data.map(el => {
this.$set(el, 'value', el.point_code)
this.$set(el, 'text', el.point_name)
})
this.options2 = [...res.data]
},
/** 确认 */
async toSure () {
this.disabled = true
if (!this.val1 || !this.val3 || !this.bar_code ) {
if (!this.val1 || !this.val3 || !this.bar_code || !this.index2 ) {
this.disabled = false
return
}
@@ -129,8 +151,9 @@
material_code: this.val2,
qty: this.val3,
sale_id: this.sale_id,
workprocedure_id: this.index,
bar_code: this.bar_code
workprocedure_id: this.index1,
bar_code: this.bar_code,
point_code: this.index2
}
let res = await BcpConfirm(from)
this.disabled = false
@@ -148,8 +171,9 @@
this.val2 = ''
this.val3 = ''
this.sale_id = ''
this.index = ''
this.index1 = ''
this.bar_code = ''
this.index2 = ''
this.$store.dispatch('setPublicObj', '')
}
}

View File

@@ -33,7 +33,6 @@
<td>{{e.material_spec}}</td>
<td>{{e.material_code}}</td>
<td>{{e.material_name}}</td>
<td>{{e.product_name}}</td>
<td>{{e.net_weight}}</td>
</tr>
</tbody>
@@ -90,8 +89,8 @@
/** grid查询 */
async _getMaterial (e) {
let res = await getMaterial(e, this.pageNum + '', this.pageSize + '')
this.totalCount = res.size
if (res.size > 0) {
this.totalCount = res.totalCount
if (res.totalCount > 0) {
const dataMap = res.data
this.dataList = this.reload ? dataMap : this.dataList.concat(dataMap)
this.reload = false

View File

@@ -50,6 +50,11 @@ export const BcpConfirm = (from) => request({
url:'api/pda/hrBcp/iosIn/confirm',
data: from
})
// 1.4点位下拉框
export const getPoint = (sp) => request({
url:'api/pda/hrBcp/iosIn/getPoint',
data: {}
})
/**
* 设备维修作业