This commit is contained in:
2022-10-13 16:56:47 +08:00
parent 57640d8a5b
commit 06995ac3d7
8 changed files with 45 additions and 47 deletions

View File

@@ -206,6 +206,10 @@ uni-button:after {
color: #fff; color: #fff;
} }
/** 下拉框 */
.uni-select__selector {
z-index: 300 !important;
}
/** 弹窗 */ /** 弹窗 */
.msg_wrapper { .msg_wrapper {

View File

@@ -1,6 +1,6 @@
{ {
"name" : "点对点", "name" : "点对点",
"appid" : "__UNI__6B1D710", "appid" : "__UNI__22404A1",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : "100", "versionCode" : "100",
@@ -72,5 +72,10 @@
"uniStatistics" : { "uniStatistics" : {
"enable" : false "enable" : false
}, },
"vueVersion" : "2" "vueVersion" : "2",
"h5" : {
"router" : {
"base" : "./"
}
}
} }

View File

@@ -59,7 +59,7 @@
</view> </view>
<view class="submit-bar"> <view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="_emptyConfirm">入库确认</button> <button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="_emptyConfirm">入库确认</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2 || !index}" @tap="_queryMaterialInfo">查询</button> <button class="submit-button" @tap="_queryMaterialInfo">查询</button>
</view> </view>
</view> </view>
</template> </template>
@@ -88,6 +88,7 @@
}, },
created () { created () {
this._queryProductArea() this._queryProductArea()
this._queryMaterialInfo()
}, },
methods: { methods: {
/** 选择器 */ /** 选择器 */
@@ -101,10 +102,11 @@
}, },
/** 初始化查询 */ /** 初始化查询 */
async _queryMaterialInfo () { async _queryMaterialInfo () {
if (!this.val1 || !this.val2 || !this.index) { let area = ''
return if (this.index !== '') {
area = this.options[this.index].value
} }
let res = await queryMaterialInfo1(this.val1, this.val2, this.options[this.index].value) let res = await queryMaterialInfo1(this.val1, this.val2, area)
this.dataList = [...res.rows] this.dataList = [...res.rows]
}, },
/** 确认 */ /** 确认 */

View File

@@ -77,7 +77,7 @@
</view> </view>
<view class="submit-bar"> <view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !checkArr.length || !val2}" :disabled="disabled" @tap="_casingConfirm">套轴确认</button> <button class="submit-button" :class="{'btn-disabled': !checkArr.length || !val2}" :disabled="disabled" @tap="_casingConfirm">套轴确认</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !index}" @tap="_queryMaterialInfo">查询</button> <button class="submit-button" @tap="_queryMaterialInfo">查询</button>
</view> </view>
</view> </view>
</template> </template>
@@ -105,6 +105,7 @@
}, },
created () { created () {
this._queryProductArea() this._queryProductArea()
this._queryMaterialInfo()
}, },
methods: { methods: {
/** 选择器 */ /** 选择器 */
@@ -118,10 +119,11 @@
}, },
/** 初始化查询 */ /** 初始化查询 */
async _queryMaterialInfo () { async _queryMaterialInfo () {
if (!this.val1 || !this.index) { let area = ''
return if (this.index !== '') {
area = this.options[this.index].value
} }
let res = await queryMaterialInfo2(this.val1, this.options[this.index].value) let res = await queryMaterialInfo2(this.val1, area)
res.rows.map(el => { res.rows.map(el => {
this.$set(el, 'checked', false) this.$set(el, 'checked', false)
}) })

View File

@@ -78,7 +78,7 @@
<view class="submit-bar"> <view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !checkArr.length || checkArr.length > 1}" :disabled="disabled1" @tap="_needVehicle">呼叫载具</button> <button class="submit-button" :class="{'btn-disabled': !checkArr.length || checkArr.length > 1}" :disabled="disabled1" @tap="_needVehicle">呼叫载具</button>
<button class="submit-button" :class="{'btn-disabled': !checkArr.length}" :disabled="disabled2" @tap="_shippingConfirm">配送确认</button> <button class="submit-button" :class="{'btn-disabled': !checkArr.length}" :disabled="disabled2" @tap="_shippingConfirm">配送确认</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2 || !index}" @tap="_queryMaterialInfo">查询</button> <button class="submit-button" @tap="_queryMaterialInfo">查询</button>
</view> </view>
</view> </view>
</template> </template>
@@ -107,6 +107,7 @@
}, },
created () { created () {
this._queryProductArea() this._queryProductArea()
this._queryMaterialInfo()
}, },
methods: { methods: {
/** 选择器 */ /** 选择器 */
@@ -120,10 +121,11 @@
}, },
/** 初始化查询 */ /** 初始化查询 */
async _queryMaterialInfo () { async _queryMaterialInfo () {
if (!this.val1 || !this.index) { let area = ''
return if (this.index !== '') {
area = this.options[this.index].value
} }
let res = await queryMaterialInfo3(this.val1, this.val2, this.options[this.index].value) let res = await queryMaterialInfo3(this.val1, this.val2, area)
res.rows.map(el => { res.rows.map(el => {
this.$set(el, 'checked', false) this.$set(el, 'checked', false)
}) })

View File

@@ -67,7 +67,7 @@
</view> </view>
<view class="submit-bar"> <view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !checkArr.length}" :disabled="disabled" @tap="_outConfirm">子卷出站</button> <button class="submit-button" :class="{'btn-disabled': !checkArr.length}" :disabled="disabled" @tap="_outConfirm">子卷出站</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !index}" @tap="_queryMaterialInfo">查询</button> <button class="submit-button" @tap="_queryMaterialInfo">查询</button>
</view> </view>
</view> </view>
</template> </template>
@@ -95,6 +95,7 @@
}, },
created () { created () {
this._queryProductArea() this._queryProductArea()
this._queryMaterialInfo()
}, },
methods: { methods: {
/** 选择器 */ /** 选择器 */
@@ -108,10 +109,11 @@
}, },
/** 初始化查询 */ /** 初始化查询 */
async _queryMaterialInfo () { async _queryMaterialInfo () {
if (!this.val1 || !this.index) { let area = ''
return if (this.index !== '') {
area = this.options[this.index].value
} }
let res = await queryMaterialInfo4(this.val1, this.options[this.index].value) let res = await queryMaterialInfo4(this.val1, area)
res.rows.map(el => { res.rows.map(el => {
this.$set(el, 'checked', false) this.$set(el, 'checked', false)
}) })

View File

@@ -46,9 +46,9 @@
}) })
}, },
async toLogin() { async toLogin() {
uni.redirectTo({ // uni.redirectTo({
url: '/pages/home/home' // url: '/pages/home/home'
}) // })
this.disabled = true this.disabled = true
if (this.user === '') { if (this.user === '') {
uni.showToast({ uni.showToast({

View File

@@ -9,33 +9,14 @@ export const queryProductArea = () => request({
data: {} data: {}
}) })
// 1.2空纸管库设备物料初始化查询 // 1.2空纸管库设备物料初始化查询
// export const queryMaterialInfo1 = (code, mcode, area) => request({ export const queryMaterialInfo1 = (code, mcode, area) => request({
// url:'api/pda/empty/queryMaterialInfo', url:'api/pda/empty/queryMaterialInfo',
// data: { data: {
// point_code: code, point_code: code,
// material_code: mcode, material_code: mcode,
// product_area: area product_area: area
// }
// })
export const queryMaterialInfo1 = (code, area) => {
let res = {
rows: [
{point_code: 'fdfdfdfdffedfd1',material_code: 'dfdf2', checked: false},
{point_code: '1',material_code: '2', checked: false},
{point_code: '1',material_code: '2', checked: false},
{point_code: '1',material_code: '2', checked: false},
{point_code: '1',material_code: '2', checked: false},
{point_code: '1',material_code: '2', checked: false},
{point_code: '1',material_code: '2', checked: false},
{point_code: '1',material_code: '2', checked: false},
{point_code: '1',material_code: '2', checked: false},
{point_code: '1',material_code: '2', checked: false},
{point_code: '1',material_code: '2', checked: false},
{point_code: '1',material_code: '2', checked: false},
]
} }
return res })
}
// 1.3入库确认 // 1.3入库确认
export const emptyConfirm = (jo, qty, code) => request({ export const emptyConfirm = (jo, qty, code) => request({
url:'api/pda/empty/confirm', url:'api/pda/empty/confirm',