修改bug

This commit is contained in:
‘937886381’
2024-03-12 11:18:06 +08:00
parent 3be7ac4237
commit 0457514f1e
10 changed files with 58 additions and 42 deletions

View File

@@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2023-12-12 13:45:25
* @LastEditTime: 2024-03-11 15:43:16
* @LastEditTime: 2024-03-12 11:17:14
* @LastEditors: zhp
* @Description:
-->
@@ -33,6 +33,12 @@
<span v-else>{{ scope.row.glassType }} </span>
</template>
</el-table-column>
<el-table-column prop="productionH" label="厚度" align="center">
<template slot-scope="scope">
<el-input v-if="!disabled" v-model="scope.row.productionH" :disabled="disabled"></el-input>
<span v-else>{{ scope.row.productionH }} </span>
</template>
</el-table-column>
<el-table-column label="规格" align="center">
<el-table-column label="成品" align="center">
<el-table-column :show-header="false">
@@ -154,8 +160,8 @@
</el-table-column>
<!-- </el-table-column> -->
<div class="remark" slot="append">
<el-input placeholder="备注" v-if="disabled" v-model="remark" :disabled="disabled">
<div style="height: 50px;" class="remark" slot="append">
<el-input placeholder="备注" v-if="!disabled" v-model="remark" :disabled="disabled">
</el-input>
<span v-else>{{ remark }} </span>
</div>
@@ -180,8 +186,10 @@
<script>
import {
getAutoDeliveDataList,
updateSumAutoDeliveDataList,
updateAutoDeliveDataList
// updateSumAutoDeliveDataList,
// updateAutoDeliveDataList
updateAutoDeliveDataList,
updateSumAutoDeliveDataList
} from '@/api/report/production';
// import Editor from '@/components/Editor';
import moment from 'moment';
@@ -509,10 +517,10 @@ export default {
let updateArr = this.list
// console.log(JSON.stringify(updateArr[1]))
const result = await Promise.all([
await updateSumProductionDataList(obj),
await updateAutoDeliveDataList(updateArr),
await updateAutoDeliveDataList(obj),
await updateSumAutoDeliveDataList(updateArr),
]);
if (result[0] == true && result[1] == true) {
if (result[0].data == true && result[1].data == true) {
// console.log(res)
this.disabled = true
this.isSave = false