| | |
| | | {{dakaList.workPrice}} {{dakaList.workerType==0?'元/小时':'元/件'}} |
| | | </template> |
| | | </up-cell> |
| | | <up-cell title="数量" :border='false' v-if="dakaList.workerType==1" > |
| | | <up-cell title="数量" :border='false' v-if="dakaList.workerType==1"> |
| | | <template #right-icon v-if="dakaList.isShenPiName!=='已结算'"> |
| | | <up-input v-model="dakaList.workCount" type="digit" @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="工资申报" :loading='isLoading' loadingText="申报中" 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> |
| | |
| | | workCount: '', //计件数量 |
| | | todaySalary: '' //当日工资 |
| | | }, |
| | | isLoading:false |
| | | isLoading: false |
| | | } |
| | | }, |
| | | onLoad(options) { |
| | |
| | | this.isLoading = true |
| | | this.$api.saveDakaDetail(obj).then(res => { |
| | | console.log(res); |
| | | if(res.code==1){ |
| | | if (res.code == 1) { |
| | | this.$util.showToast({ |
| | | title: '申报成功!', |
| | | icon: 'success' |
| | | }) |
| | | }else{ |
| | | } else { |
| | | this.$util.showToast({ |
| | | title: res.error?res.error:'失败!' |
| | | title: res.error ? res.error : '失败!' |
| | | }) |
| | | } |
| | | this.isLoading = false |
| | |
| | | background-color: #2979ff; |
| | | } |
| | | } |
| | | .u-cell__body{ |
| | | |
| | | .u-cell__body { |
| | | padding: 6px 15px !important; |
| | | } |
| | | </style> |