| | |
| | | <view class="coreshop-ff"> |
| | | <up-list> |
| | | <up-list-item> |
| | | <up-cell :title="workerInfo.userWorker.name"> |
| | | <up-cell :title="workerInfo.userWorker?workerInfo.userWorker.name:''"> |
| | | <template #icon> |
| | | <up-avatar shape="square" size="35" :src="workerInfo.avatar" |
| | | customStyle="margin: -3px 5px -3px 0"></up-avatar> |
| | |
| | | </up-cell> |
| | | <up-cell title="数量" :border='false' v-if="dakaList.workerType==1"> |
| | | <template #right-icon v-if="dakaList.isShenPiName!=='已结算'"> |
| | | <up-input v-model="dakaList.workCount" |
| | | <up-input v-model="dakaList.workCount" type="digit" |
| | | @blur='(val) => {dakaList.todaySalary=$util.roundToTwo(dakaList.workCount*dakaList.workPrice)}' |
| | | border="none" placeholder="请填写数量"></up-input> |
| | | </template> |
| | |
| | | </view> --> |
| | | </up-list> |
| | | <view class="tabbtns"> |
| | | <up-button color='#fece01' class="text-69" text="确认" @click="saveDakaDetailCompany" |
| | | v-if="dakaList.isShenPiName!=='已结算'"></up-button> |
| | | <up-button color='#fece01' class="text-69" text="确认" :loading='isLoading' loadingText="确认中" |
| | | @click="saveDakaDetailCompany" v-if="dakaList.isShenPiName!=='已结算'"></up-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | workCount: '', //计件数量 |
| | | todaySalary: '' //当日工资 |
| | | }, |
| | | workerInfo: '' |
| | | workerInfo: '', |
| | | isLoading: false |
| | | } |
| | | }, |
| | | onLoad(options) { |
| | |
| | | if (this.dakaList.workCount) { |
| | | obj.workCount = this.dakaList.workCount |
| | | } |
| | | this.isLoading = true |
| | | this.$api.saveDakaDetailCompany(obj).then(res => { |
| | | if (res.code == 1) { |
| | | this.$util.showToast({ |
| | | title: '确认成功!', |
| | | icon: 'success' |
| | | }) |
| | | } else { |
| | | this.$util.showToast({ |
| | | title: res.msg ? res.msg : '失败!' |
| | | }) |
| | | } |
| | | console.log(res, '----'); |
| | | this.isLoading = false |
| | | }) |
| | | }, |
| | | } |