代码更新
This commit is contained in:
@@ -185,6 +185,17 @@
|
||||
>
|
||||
设置站点
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="left"
|
||||
class="filter-item"
|
||||
type="warning"
|
||||
icon="el-icon-check"
|
||||
:disabled="button5"
|
||||
size="mini"
|
||||
@click="allSetPoint"
|
||||
>
|
||||
一键设置
|
||||
</el-button>
|
||||
</span>
|
||||
</div>
|
||||
<el-card class="box-card" shadow="never" :body-style="{padding:'0'}">
|
||||
@@ -279,6 +290,7 @@ export default {
|
||||
button2: true,
|
||||
button3: true,
|
||||
button4: true,
|
||||
button5: true,
|
||||
tableDtl: [],
|
||||
openParam: [],
|
||||
mstrow: {},
|
||||
@@ -423,21 +435,25 @@ export default {
|
||||
if (current.bill_status === '10') {
|
||||
this.button1 = false
|
||||
this.button2 = true
|
||||
this.button5 = false
|
||||
this.button3 = false
|
||||
} else if (current.bill_status === '30') {
|
||||
this.button1 = false
|
||||
this.button2 = false
|
||||
this.button3 = false
|
||||
this.button5 = false
|
||||
} else if (current.bill_status === '40') {
|
||||
this.button1 = true
|
||||
this.button2 = false
|
||||
this.button3 = true
|
||||
this.button5 = false
|
||||
}
|
||||
this.queryTableDdis(current.iostorinvdtl_id)
|
||||
} else {
|
||||
this.button1 = true
|
||||
this.button2 = true
|
||||
this.button3 = true
|
||||
this.button5 = true
|
||||
this.mstrow.iostorinvdtl_id = ''
|
||||
this.currentRow = {}
|
||||
this.tabledis = []
|
||||
@@ -534,6 +550,23 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
allSetPoint() {
|
||||
debugger
|
||||
if (this.form2.point_code === '') {
|
||||
this.crud.notify('请先选择站点!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
if (this.currentRow === '') {
|
||||
this.crud.notify('请选择明细!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
this.currentRow.point_code = this.form2.point_code
|
||||
checkoutbill.allSetPoint(this.currentRow).then(res => {
|
||||
this.queryTableDdis(this.currentRow.iostorinvdtl_id)
|
||||
this.crud.notify('设置成功!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
}).catch(() => {
|
||||
})
|
||||
},
|
||||
queryTableDtl() {
|
||||
checkoutbill.getOutBillDtl({ 'iostorinv_id': this.mstrow.iostorinv_id }).then(res => {
|
||||
this.tableDtl = res
|
||||
|
||||
@@ -211,4 +211,11 @@ export function cancelTask(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
export default { add, edit, del, allDiv, allCancel, getOutBillDtl, getOutBillDis, setPoint, oneSetPoint, getOutBillTask, getStructIvt, manualDiv, confirm, issueTask, finishTask, cancleTaskfinish, getInvTypes, paramByCodeType, schAreaType, backConfirm, getOutBillDisDtl, getType, allDivOne, moneySubmit, getDisNum, queryBox, getOutBillTask2, oneCancel, cancelTask }
|
||||
export function allSetPoint(data) {
|
||||
return request({
|
||||
url: '/api/checkoutbill/allSetPoint',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export default { add, edit, del, allDiv, allCancel, getOutBillDtl, getOutBillDis, setPoint, oneSetPoint, getOutBillTask, getStructIvt, manualDiv, confirm, issueTask, finishTask, cancleTaskfinish, getInvTypes, paramByCodeType, schAreaType, backConfirm, getOutBillDisDtl, getType, allDivOne, moneySubmit, getDisNum, queryBox, getOutBillTask2, oneCancel, cancelTask, allSetPoint }
|
||||
|
||||
Reference in New Issue
Block a user