Browse Source

提现管理设为已发

pengyh 1 year ago
parent
commit
653c3f20e3

+ 6 - 6
src/views/auxiliaryFittings/settleAccountManagement/salesWithdraw/index.vue

@@ -33,7 +33,7 @@
 					</tr>
 					<tr>
 						<td class="bold" align="center">师傅身份证号</td>
-						<td>{{formData.idcard}}</td>
+						<td>{{formData.identity}}</td>
 						<td class="bold" align="center">师傅联系电话</td>
 						<td>{{formData.workerMobile}}</td>
 						<td class="bold" align="center">申请时间</td>
@@ -62,7 +62,7 @@
 					<tr>
 						<td class="bold" align="center">转账凭证</td>
 						<td colspan="5">
-							<el-image v-if="formData.certImg" style="width: 80px;height: 80px" :preview-src-list="[formData.certImg]" :src="formData.certImg" fit="fit"></el-image>
+							<el-image style="width: 80px;height: 80px" :preview-src-list="[formData.certImg]" :src="formData.certImg" fit="fit"></el-image>
 						</td>
 					</tr>
 				</table>
@@ -111,7 +111,7 @@
 			</el-card>
 		  <div slot="footer" class="dialog-footer">
 			<el-button size="mini" @click="formDialog = false;formData = {}">取 消</el-button>
-			<el-button size="mini" v-if="formData.status == 0" type="primary" @click="update(formData.id)">设为已发</el-button>
+			<el-button size="mini" v-if="formData.status == 0" type="primary" @click="update(formData.id, formData.certImg)">设为已发</el-button>
 		  </div>
 		</el-dialog>
 	</template-page>
@@ -213,19 +213,19 @@ export default {
 		    })
 		  }}>查看</el-button>
 		  {row.status == 0? <el-button type="text" onClick={() => {
-		  	this.update(row.id)
+		  	this.update(row.id, row.certImg)
 		  }}>设为已发</el-button>:null}
 		  
         </div>
       )
     },
-	update(id){
+	update(id, certImg){
 		this.$confirm('请确认是否设为已发放, 是否继续?', '提示', {
 			confirmButtonText: '确定',
 			cancelButtonText: '取消',
 			type: 'warning'
 		}).then(() => {
-			refund({ id }).then(res => {
+			update({ id, certImg }).then(res => {
 			  if (res.code == 200) {
 			  	this.$message({ type: 'success', message: '设为已发放成功!' })
 			  	this.$refs.pageRef.refreshList()