change
This commit is contained in:
@@ -16,6 +16,9 @@
|
|||||||
"autoclose" : true,
|
"autoclose" : true,
|
||||||
"delay" : 0
|
"delay" : 0
|
||||||
},
|
},
|
||||||
|
"compatible":{
|
||||||
|
"ignoreVersion":true
|
||||||
|
},
|
||||||
/* 模块配置 */
|
/* 模块配置 */
|
||||||
"modules" : {},
|
"modules" : {},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.checked}">
|
<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)"></span></td>
|
<td><span class="iconfont icon_unchecked" :class="{'icon_checked': e.checked}" @tap="toCheck(e)"></span></td>
|
||||||
<td>{{['维修单', '保养单', '点检单', '润滑单'][Number(e.job_type) - 1]}}</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_code}}</td>
|
||||||
<td>{{e.device_name}}</td>
|
<td>{{e.device_name}}</td>
|
||||||
<td>结束</td>
|
<td>结束</td>
|
||||||
@@ -132,5 +132,8 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus">
|
<style lang="stylus" scoped>
|
||||||
|
.c_link
|
||||||
|
color #ff6a00
|
||||||
|
cursor pointer
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="(e, i) in dataList" :key="i">
|
<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_code}}</td>
|
||||||
<td>{{e.item_name}}</td>
|
<td>{{e.item_name}}</td>
|
||||||
<td v-show="val2 !== '1'">{{['日常', '一级', '二级'][Number(e.item_level) - 1]}}</td>
|
<td v-show="val2 !== '1'">{{['日常', '一级', '二级'][Number(e.item_level) - 1]}}</td>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
userName: this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).username : '',
|
userName: '',
|
||||||
menuList: [
|
menuList: [
|
||||||
{menu_id: '1', icon: 'RF06', name: '仓储管理', sonTree: [
|
{menu_id: '1', icon: 'RF06', name: '仓储管理', sonTree: [
|
||||||
{menu_id: '1', name: '原辅料收料', path: '/pages/warehouse/RawmaterialRevice'},
|
{menu_id: '1', name: '原辅料收料', path: '/pages/warehouse/RawmaterialRevice'},
|
||||||
@@ -60,6 +60,9 @@
|
|||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.$store.dispatch('setPublicObj', '')
|
this.$store.dispatch('setPublicObj', '')
|
||||||
|
if (this.$store.getters.userInfo) {
|
||||||
|
this.userName = JSON.parse(this.$store.getters.userInfo).username
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toPage1 (e) {
|
toPage1 (e) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<view class="zd_wrapper">
|
<view class="zd_wrapper">
|
||||||
<view class="input-wrap">
|
<view class="input-wrap">
|
||||||
<view class="input-label">服务器地址</view>
|
<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>
|
</view>
|
||||||
<!-- <view class="zd_wrapper">
|
<!-- <view class="zd_wrapper">
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
<view class="filter_label">工序</view>
|
<view class="filter_label">工序</view>
|
||||||
<view class="filter_input_wraper">
|
<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>
|
</view>
|
||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
@@ -51,10 +51,16 @@
|
|||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</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>
|
</view>
|
||||||
<view class="submit-bar">
|
<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>
|
<button class="submit-button" @tap="toCancle">清空</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -63,7 +69,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {getWork, BcpConfirm} from '@/utils/getData2.js'
|
import {getWork, getPoint, BcpConfirm} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -75,8 +81,10 @@
|
|||||||
val2: '',
|
val2: '',
|
||||||
val3: '',
|
val3: '',
|
||||||
sale_id: '',
|
sale_id: '',
|
||||||
options: [],
|
options1: [],
|
||||||
index: '',
|
index1: '',
|
||||||
|
options2: [],
|
||||||
|
index2: '',
|
||||||
bar_code: '',
|
bar_code: '',
|
||||||
dataList: [],
|
dataList: [],
|
||||||
pkId: '',
|
pkId: '',
|
||||||
@@ -96,6 +104,7 @@
|
|||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this._getWork()
|
this._getWork()
|
||||||
|
this._getPoint()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getMater () {
|
getMater () {
|
||||||
@@ -103,23 +112,36 @@
|
|||||||
url: '/pages/warehouse/SemifinishedMaterSearch'
|
url: '/pages/warehouse/SemifinishedMaterSearch'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/** 选择器 */
|
/** 选择器1 */
|
||||||
selectChange(e) {
|
selectChange1(e) {
|
||||||
this.index = e
|
this.index1 = e
|
||||||
},
|
},
|
||||||
/** 下拉框查询 */
|
/** 选择器2 */
|
||||||
|
selectChange2(e) {
|
||||||
|
this.index2 = e
|
||||||
|
},
|
||||||
|
/** 工序下拉框查询 */
|
||||||
async _getWork () {
|
async _getWork () {
|
||||||
let res = await getWork()
|
let res = await getWork()
|
||||||
res.data.map(el => {
|
res.data.map(el => {
|
||||||
this.$set('value', el.workprocedure_id)
|
this.$set(el, 'value', el.workprocedure_id)
|
||||||
this.$set('text', el.workprocedure_name)
|
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 () {
|
async toSure () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val1 || !this.val3 || !this.bar_code ) {
|
if (!this.val1 || !this.val3 || !this.bar_code || !this.index2 ) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -129,8 +151,9 @@
|
|||||||
material_code: this.val2,
|
material_code: this.val2,
|
||||||
qty: this.val3,
|
qty: this.val3,
|
||||||
sale_id: this.sale_id,
|
sale_id: this.sale_id,
|
||||||
workprocedure_id: this.index,
|
workprocedure_id: this.index1,
|
||||||
bar_code: this.bar_code
|
bar_code: this.bar_code,
|
||||||
|
point_code: this.index2
|
||||||
}
|
}
|
||||||
let res = await BcpConfirm(from)
|
let res = await BcpConfirm(from)
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
@@ -148,8 +171,9 @@
|
|||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
this.val3 = ''
|
this.val3 = ''
|
||||||
this.sale_id = ''
|
this.sale_id = ''
|
||||||
this.index = ''
|
this.index1 = ''
|
||||||
this.bar_code = ''
|
this.bar_code = ''
|
||||||
|
this.index2 = ''
|
||||||
this.$store.dispatch('setPublicObj', '')
|
this.$store.dispatch('setPublicObj', '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
<td>{{e.material_spec}}</td>
|
<td>{{e.material_spec}}</td>
|
||||||
<td>{{e.material_code}}</td>
|
<td>{{e.material_code}}</td>
|
||||||
<td>{{e.material_name}}</td>
|
<td>{{e.material_name}}</td>
|
||||||
<td>{{e.product_name}}</td>
|
|
||||||
<td>{{e.net_weight}}</td>
|
<td>{{e.net_weight}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -90,8 +89,8 @@
|
|||||||
/** grid查询 */
|
/** grid查询 */
|
||||||
async _getMaterial (e) {
|
async _getMaterial (e) {
|
||||||
let res = await getMaterial(e, this.pageNum + '', this.pageSize + '')
|
let res = await getMaterial(e, this.pageNum + '', this.pageSize + '')
|
||||||
this.totalCount = res.size
|
this.totalCount = res.totalCount
|
||||||
if (res.size > 0) {
|
if (res.totalCount > 0) {
|
||||||
const dataMap = res.data
|
const dataMap = res.data
|
||||||
this.dataList = this.reload ? dataMap : this.dataList.concat(dataMap)
|
this.dataList = this.reload ? dataMap : this.dataList.concat(dataMap)
|
||||||
this.reload = false
|
this.reload = false
|
||||||
|
|||||||
@@ -50,6 +50,11 @@ export const BcpConfirm = (from) => request({
|
|||||||
url:'api/pda/hrBcp/iosIn/confirm',
|
url:'api/pda/hrBcp/iosIn/confirm',
|
||||||
data: from
|
data: from
|
||||||
})
|
})
|
||||||
|
// 1.4点位下拉框
|
||||||
|
export const getPoint = (sp) => request({
|
||||||
|
url:'api/pda/hrBcp/iosIn/getPoint',
|
||||||
|
data: {}
|
||||||
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备维修作业
|
* 设备维修作业
|
||||||
|
|||||||
Reference in New Issue
Block a user