修改111

This commit is contained in:
2025-04-17 15:46:32 +08:00
parent 88955a178b
commit 7590d546b2
10 changed files with 115 additions and 21 deletions

View File

@@ -509,10 +509,13 @@
this.disabled1 = true
try {
let res = await easOutInBillSync('ALLO')
uni.showToast({
title: res.desc,
icon: 'none'
})
if (res) {
this._allocationPage()
uni.showToast({
title: res.desc,
icon: 'none'
})
}
this.disabled1 = false
} catch (e) {
this.disabled1 = false
@@ -618,6 +621,21 @@
this.disabled1 = false
return
}
uni.showModal({
title: '提示',
content: '是否确认删除?',
cancelColor: '#fff',
confirmColor: '#fff',
success: (res) => {
if (res.confirm) {
this.__easOutInBillDelete()
} else if (res.cancel) {
this.disabled1 = false
}
}
})
},
async __easOutInBillDelete () {
try {
let res = await easOutInBillDelete('ALLO', this.checkData)
if (res.code === 1) {

View File

@@ -603,10 +603,13 @@
try {
let type = this.id === 'CGRKD' ? 'SRMINOUT' : 'EASINOUT'
let res = await easOutInBillSync(type)
uni.showToast({
title: res.desc,
icon: 'none'
})
if (res) {
this._easOutInBillPage()
uni.showToast({
title: res.desc,
icon: 'none'
})
}
this.disabled1 = false
} catch (e) {
this.disabled1 = false
@@ -619,6 +622,21 @@
this.disabled1 = false
return
}
uni.showModal({
title: '提示',
content: '是否确认删除?',
cancelColor: '#fff',
confirmColor: '#fff',
success: (res) => {
if (res.confirm) {
this.__easOutInBillDelete()
} else if (res.cancel) {
this.disabled1 = false
}
}
})
},
async __easOutInBillDelete () {
try {
let type = this.id === 'CGRKD' ? 'SRMINOUT' : 'EASINOUT'
let res = await easOutInBillDelete(type, this.checkData)

View File

@@ -96,8 +96,8 @@
<view class="zd-checkbox zd-checkbox_i" :class="{'zd-checkbox_active': el.checked}"></view>
</view>
</td>
<td v-if="id !== 'CGRKD'" class="underline fontcol1" @tap="showPop(1, e, el)">{{el.wlbm}}</td>
<td v-if="id === 'CGRKD'" class="fontcol1">{{el.wlbm}}</td>
<td class="underline fontcol1" @tap="showPop(1, e, el)">{{el.wlbm}}</td>
<!-- <td v-if="id === 'CGRKD'" class="fontcol1">{{el.wlbm}}</td> -->
<td>{{el.wlmc}}</td>
<td>{{el.gzhbm}}</td>
<td>{{el.ckmc}}</td>
@@ -573,10 +573,13 @@
try {
let type = this.id === 'CGRKD' ? 'SRMINOUT' : 'EASINOUT'
let res = await easOutInBillSync(type)
uni.showToast({
title: res.desc,
icon: 'none'
})
if (res) {
this._easOutInBillPage()
uni.showToast({
title: res.desc,
icon: 'none'
})
}
this.disabled1 = false
} catch (e) {
this.disabled1 = false
@@ -589,6 +592,21 @@
this.disabled1 = false
return
}
uni.showModal({
title: '提示',
content: '是否确认删除?',
cancelColor: '#fff',
confirmColor: '#fff',
success: (res) => {
if (res.confirm) {
this.__easOutInBillDelete()
} else if (res.cancel) {
this.disabled1 = false
}
}
})
},
async __easOutInBillDelete () {
try {
let type = this.id === 'CGRKD' ? 'SRMINOUT' : 'EASINOUT'
let res = await easOutInBillDelete(type, this.checkData)

View File

@@ -61,7 +61,7 @@
<button class="confirm-button" @tap="toSubSearch(e)">查询</button>
<button class="confirm-button" :class="{'confirm-button_disabled': !e.subOneChecked}" @tap="showPop(1, e, {})">一键设置</button>
<button class="confirm-button" :class="{'confirm-button_disabled': !e.subOneChecked || !e.subStatus1}" @tap="showPop(4, e, {})">库位分配</button>
<button class="confirm-button" :class="{'confirm-button_disabled': !e.subOneChecked || !e.subStatus1}" @tap="inWarehouseSure(e)">库存提交</button>
<button class="confirm-button" :class="{'confirm-button_disabled': !e.subOneChecked || !e.subStatus1}" @tap="inWarehouseSure(e)">提交</button>
<button class="confirm-button" :class="{'confirm-button_disabled': !e.subOneChecked || !e.subStatus1}" :disabled="disabled1" @tap="_receiptBillConfirm(e)">确认收货</button>
</view>
</view>
@@ -620,10 +620,13 @@
this.disabled1 = true
try {
let res = await easOutInBillSync('RECE')
uni.showToast({
title: res.desc,
icon: 'none'
})
if (res) {
this._receiptPage()
uni.showToast({
title: res.desc,
icon: 'none'
})
}
this.disabled1 = false
} catch (e) {
this.disabled1 = false
@@ -661,6 +664,21 @@
this.disabled1 = false
return
}
uni.showModal({
title: '提示',
content: '是否确认删除?',
cancelColor: '#fff',
confirmColor: '#fff',
success: (res) => {
if (res.confirm) {
this.__easOutInBillDelete()
} else if (res.cancel) {
this.disabled1 = false
}
}
})
},
async __easOutInBillDelete () {
try {
let res = await easOutInBillDelete('RECE', this.checkData)
if (res.code === 1) {