组盘入库添加功能
This commit is contained in:
@@ -73,7 +73,9 @@
|
|||||||
"Keyword": "Keyword",
|
"Keyword": "Keyword",
|
||||||
"Pointlocation": "Point location",
|
"Pointlocation": "Point location",
|
||||||
"Pointlocationcarrier": "Point - location carrier",
|
"Pointlocationcarrier": "Point - location carrier",
|
||||||
"Unitmeasurement": "Unit of measurement"
|
"Unitmeasurement": "Unit of measurement",
|
||||||
|
"WarehousingType": "Warehousing Type",
|
||||||
|
"MaterialQRCode": "Material QR Code"
|
||||||
},
|
},
|
||||||
"th": {
|
"th": {
|
||||||
"MaterialBoxNumber": "Material Box Number",
|
"MaterialBoxNumber": "Material Box Number",
|
||||||
|
|||||||
@@ -73,7 +73,9 @@
|
|||||||
"Keyword": "Từ khóa",
|
"Keyword": "Từ khóa",
|
||||||
"Pointlocation": "Điểm",
|
"Pointlocation": "Điểm",
|
||||||
"Pointlocationcarrier": "Vật chở tại điểm",
|
"Pointlocationcarrier": "Vật chở tại điểm",
|
||||||
"Unitmeasurement": "Đơn vị đo"
|
"Unitmeasurement": "Đơn vị đo",
|
||||||
|
"WarehousingType": "Loại nhập kho",
|
||||||
|
"MaterialQRCode": "Mã QR vật liệu"
|
||||||
},
|
},
|
||||||
"th": {
|
"th": {
|
||||||
"MaterialBoxNumber": "Số hộp vật liệu",
|
"MaterialBoxNumber": "Số hộp vật liệu",
|
||||||
|
|||||||
@@ -73,7 +73,9 @@
|
|||||||
"Keyword": "关键字",
|
"Keyword": "关键字",
|
||||||
"Pointlocation": "点位",
|
"Pointlocation": "点位",
|
||||||
"Pointlocationcarrier": "点位载具",
|
"Pointlocationcarrier": "点位载具",
|
||||||
"Unitmeasurement": "计量单位"
|
"Unitmeasurement": "计量单位",
|
||||||
|
"WarehousingType": "入库类型",
|
||||||
|
"MaterialQRCode": "物料二维码"
|
||||||
},
|
},
|
||||||
"th": {
|
"th": {
|
||||||
"MaterialBoxNumber": "料框号",
|
"MaterialBoxNumber": "料框号",
|
||||||
|
|||||||
@@ -29,6 +29,18 @@
|
|||||||
<uni-data-select :placeholder="$t('utils.selectPlaceholder')" :emptyTips="$t('utils.selectEmptyTips')" v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
<uni-data-select :placeholder="$t('utils.selectPlaceholder')" :emptyTips="$t('utils.selectEmptyTips')" v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="is-required">
|
||||||
|
<view class="filter_label">{{$t('label.WarehousingType')}}</view>
|
||||||
|
<view class="filter_select">
|
||||||
|
<uni-data-select :placeholder="$t('utils.selectPlaceholder')" :emptyTips="$t('utils.selectEmptyTips')" v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<view class="filter_label">{{$t('label.MaterialQRCode')}}</view>
|
||||||
|
<search-box
|
||||||
|
v-model="qrcode"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<view class="filter_label">{{$t('label.MaterialName')}}</view>
|
<view class="filter_label">{{$t('label.MaterialName')}}</view>
|
||||||
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_name" disabled>
|
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_name" disabled>
|
||||||
@@ -70,7 +82,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-6 button-default" @tap="clearUp">{{$t('button.clear')}}</button>
|
<button class="zd-col-6 button-default" @tap="clearUp">{{$t('button.clear')}}</button>
|
||||||
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2 || !index}" :disabled="disabled" @tap="_confirmIn">{{$t('button.confirm')}}</button>
|
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2 || !index || !index1}" :disabled="disabled" @tap="_confirmIn">{{$t('button.confirm')}}</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -78,7 +90,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 {getSect, getVehicleMaterial, confirmIn} from '@/utils/getData.js'
|
import {getSect, getVehicleMaterial, confirmIn, dictDetail} from '@/utils/getData.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -91,6 +103,9 @@
|
|||||||
val2: '',
|
val2: '',
|
||||||
options: [],
|
options: [],
|
||||||
index: '',
|
index: '',
|
||||||
|
options1: [],
|
||||||
|
index1: '',
|
||||||
|
qrcode: '',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
currentData: {},
|
currentData: {},
|
||||||
dataList: []
|
dataList: []
|
||||||
@@ -98,16 +113,15 @@
|
|||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
this.title = options.title
|
this.title = options.title
|
||||||
},
|
|
||||||
created () {
|
|
||||||
this._getSect()
|
this._getSect()
|
||||||
|
this._dictDetail()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async _getSect () {
|
async _getSect () {
|
||||||
try {
|
try {
|
||||||
let res = await getSect()
|
let res = await getSect()
|
||||||
if (res) {
|
if (res) {
|
||||||
this.options = res
|
this.options = [...res]
|
||||||
} else {
|
} else {
|
||||||
this.options =[]
|
this.options =[]
|
||||||
}
|
}
|
||||||
@@ -115,9 +129,24 @@
|
|||||||
this.options = []
|
this.options = []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async _dictDetail () {
|
||||||
|
try {
|
||||||
|
let res = await dictDetail('ST_INV_IN_TYPE')
|
||||||
|
if (res && res.code === '200') {
|
||||||
|
this.options1 = [...res.content]
|
||||||
|
} else {
|
||||||
|
this.options1 =[]
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.options1 = []
|
||||||
|
}
|
||||||
|
},
|
||||||
selectChange (e) {
|
selectChange (e) {
|
||||||
this.index = e
|
this.index = e
|
||||||
},
|
},
|
||||||
|
selectChange1 (e) {
|
||||||
|
this.index1 = e
|
||||||
|
},
|
||||||
handleChange (e) {
|
handleChange (e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
this._getVehicleMaterial(e)
|
this._getVehicleMaterial(e)
|
||||||
@@ -142,18 +171,20 @@
|
|||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
this.index = ''
|
this.index = ''
|
||||||
|
this.index1 = ''
|
||||||
|
this.qrcode = ''
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
this.currentData = {}
|
this.currentData = {}
|
||||||
this.dataList = []
|
this.dataList = []
|
||||||
},
|
},
|
||||||
async _confirmIn () {
|
async _confirmIn () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val1 || !this.val2 || !this.index) {
|
if (!this.val1 || !this.val2 || !this.index || !this.index1) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await confirmIn(this.val1, this.val2, this.index)
|
let res = await confirmIn(this.val1, this.val2, this.index, this.index1, this.qrcode)
|
||||||
if (res.status === '200') {
|
if (res.status === '200') {
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,9 +60,9 @@ export const getVehicleMaterial = (search) => request({
|
|||||||
url:'api/pda/iosIn/getVehicleMaterial',
|
url:'api/pda/iosIn/getVehicleMaterial',
|
||||||
data: {search: search}
|
data: {search: search}
|
||||||
})
|
})
|
||||||
export const confirmIn = (vcode, sitecode, sid) => request({
|
export const confirmIn = (vcode, sitecode, sid, type, barcode) => request({
|
||||||
url:'api/pda/iosIn/confirmIn',
|
url:'api/pda/iosIn/confirmIn',
|
||||||
data: {vehicle_code: vcode, site_code: sitecode, sect_id: sid}
|
data: {vehicle_code: vcode, site_code: sitecode, sect_id: sid, in_type: type, barcode: barcode}
|
||||||
})
|
})
|
||||||
|
|
||||||
// 人工叫料
|
// 人工叫料
|
||||||
@@ -132,4 +132,8 @@ export const addTaskV2 = (Value, point1, point2) => request({
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
export const dictDetail = (code) => request({
|
||||||
|
url:'api/dict/dictDetail?code=' + code + '&page=0&size=9999',
|
||||||
|
method: 'GET'
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user