| | |
| | | </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" |
| | | @blur='(val) => {dakaList.todaySalary=$util.roundToTwo(dakaList.workCount*dakaList.workPrice)}' |
| | | <up-input v-model="dakaList.workCount" type="digit" @blur='(val) => {dakaList.todaySalary=$util.roundToTwo(dakaList.workCount*dakaList.workPrice)}' |
| | | border="none" placeholder="请填写数量"></up-input> |
| | | </template> |
| | | <template #value v-else> |
| | |
| | | <tem-steps></tem-steps> |
| | | </view> --> |
| | | <view class="tabbtns"> |
| | | <up-button color='#fece01' class="text-69" text="工资申报" v-if="dakaList.isShenPiName!=='已结算'" @click="saveDakaDetail"></up-button> |
| | | <up-button color='#fece01' class="text-69" text="工资申报" :loading='isLoading' loadingText="申报中" v-if="dakaList.isShenPiName!=='已结算'" @click="saveDakaDetail"></up-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | workTime: '', //工作时长 |
| | | workCount: '', //计件数量 |
| | | todaySalary: '' //当日工资 |
| | | } |
| | | }, |
| | | isLoading:false |
| | | } |
| | | }, |
| | | onLoad(options) { |
| | |
| | | if (this.dakaList.workCount) { |
| | | obj.workCount = this.dakaList.workCount |
| | | } |
| | | this.isLoading = true |
| | | this.$api.saveDakaDetail(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 |
| | | }) |
| | | }, |
| | | } |