订单等修复

dev_2022-03-03
yujialong 3 years ago
parent 2f0607780a
commit 79f1208ac0
  1. 3
      src/views/customer/AddCustomer.vue
  2. 3
      src/views/order/AddOrder.vue
  3. 14
      src/views/serve/projectAdd.vue

@ -122,7 +122,8 @@
</el-table-column> </el-table-column>
<el-table-column label="状态" align="center"> <el-table-column label="状态" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch v-model="scope.row.isEnable" :active-value="1" :inactive-value="0" :active-text="scope.row.isEnable ? '启用' : '禁用'" :disabled="isDetail" @change="switchOff($event,scope.row,scope.$index)"></el-switch> <el-switch v-if="scope.row.ship" v-model="scope.row.isEnable" :active-value="1" :inactive-value="0" :active-text="scope.row.isEnable ? '启用' : '禁用'" :disabled="isDetail" @change="switchOff($event,scope.row,scope.$index)"></el-switch>
<span v-else>未发货</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

@ -1268,8 +1268,7 @@ export default {
// //
userAmount(val, row) { userAmount(val, row) {
if (val && row.totalAmount) { if (val && row.totalAmount) {
// row.accountNum = Math.floor(row.totalAmount / val); // row.accountNum = this.handleNaN(Math.round(row.totalAmount / val))
row.accountNum = this.handleNaN(Math.round(row.totalAmount / val))
} }
}, },
// //

@ -133,6 +133,13 @@
:height="100" /> :height="100" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="score" label="分数" align="center" width="120">
<template slot-scope="scope">
<!--type="number" @blur="updateProjectJudgment"-->
<el-input :disabled="isDetail" v-model.trim="scope.row.score"
@input="scoreChange(scope.row, scope.$index,$event)"></el-input>
</template>
</el-table-column>
<el-table-column label="操作" width="140" align="center"> <el-table-column label="操作" width="140" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button :disabled="isDetail" type="text" style="margin-right: 10px" @click="toJudgePoint('edit', scope.row)">自定义</el-button> <el-button :disabled="isDetail" type="text" style="margin-right: 10px" @click="toJudgePoint('edit', scope.row)">自定义</el-button>
@ -141,13 +148,6 @@
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="score" label="分数" align="center" width="120">
<template slot-scope="scope">
<!--type="number" @blur="updateProjectJudgment"-->
<el-input :disabled="isDetail" v-model.trim="scope.row.score"
@input="scoreChange(scope.row, scope.$index,$event)"></el-input>
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</el-card> </el-card>

Loading…
Cancel
Save