| | |
| | | <up-tag class="button-layout__item c-m-l-18" text="拒绝" size="mini" type="error" |
| | | @click="selectBtn(item,false)"></up-tag> |
| | | </template> |
| | | |
| | | <template #right-icon v-else class="chuany-flex"> |
| | | <template class="" v-if="item.workPrice&&!item.showEdit"> |
| | | <up-text type="error" |
| | | :text="detailItem.workerType==0?`${item.workPrice}元/小时`:`${item.workPrice}元/件` " |
| | | size='14'></up-text> |
| | | <up-icon name="edit-pen" @click='isShow(item)'></up-icon> |
| | | <up-icon name="trash" @click='deleteWorker(item)'></up-icon> |
| | | </template> |
| | | <up-input v-model="item.workPrice" border="none" v-else type="digit"> |
| | | <template #suffix> |
| | |
| | | const isShow = (item) => { |
| | | item.showEdit = true |
| | | } |
| | | const deleteWorker = (item) => { |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: `确认删除${item.workerName}?`, |
| | | success: function(res) { |
| | | if (res.confirm) { |
| | | // 执行确认后的操作 |
| | | isLoading.value = true |
| | | $api.saveDeltoudi({ |
| | | orderBiddingId: item.id |
| | | }).then(req => { |
| | | if (req.code == 1) { |
| | | $util.showToast({ |
| | | title: '删除成功!' |
| | | }) |
| | | getOrder(orderIdVal) |
| | | } else { |
| | | $util.showToast({ |
| | | title: req.error |
| | | }) |
| | | } |
| | | isLoading.value = false |
| | | }) |
| | | } else { |
| | | // 执行取消后的操作 |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | const saveWorkPrice = (item) => { |
| | | let obj = { |
| | | orderBiddingId: item.id, |