瀏覽代碼

页面修改

master
yangpeilai 2 週之前
父節點
當前提交
69b17fee55
共有 1 個檔案被更改,包括 11 行新增14 行删除
  1. 11
    14
      src/views/inventoryControl/newInventory/allocationManagement/addOrUpdate.vue

+ 11
- 14
src/views/inventoryControl/newInventory/allocationManagement/addOrUpdate.vue 查看文件

</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>

<el-col :span="24">
<!-- filePath multiple--> <!-- filePath multiple-->
<el-form-item label="附件"> <el-form-item label="附件">
<!-- <el-upload v-if="!(typeOption === 'view' || typeOption === 'sure')" ref="uploadRef"--> <!-- <el-upload v-if="!(typeOption === 'view' || typeOption === 'sure')" ref="uploadRef"-->
<img w-full :src="dialogImageUrl" alt="Preview Image"/> <img w-full :src="dialogImageUrl" alt="Preview Image"/>
</el-dialog> </el-dialog>
</el-form-item> </el-form-item>
</el-col>
</el-row>
</div> </div>
</el-card> </el-card>
<el-card class="box-card"> <el-card class="box-card">


<el-table-column label="操作" width="340" v-if="typeOption === 'add' || typeOption === 'edit'"> <el-table-column label="操作" width="340" v-if="typeOption === 'add' || typeOption === 'edit'">
<template v-slot="scope"> <template v-slot="scope">
<el-button class="op-btn" type="primary"
@click="validHandle(scope.row, scope.$index)">校验
</el-button>
<el-button class="op-btn" type="primary" @click="validHandle(scope.row, scope.$index)">校验</el-button>
<!-- <el-button class="op-btn" type="primary" @click="validDetailHandle(scope.row)" v-if="scope.row.isShowBtn">校验失败明细</el-button>--> <!-- <el-button class="op-btn" type="primary" @click="validDetailHandle(scope.row)" v-if="scope.row.isShowBtn">校验失败明细</el-button>-->
<el-button class="op-btn" type="danger" v-if="scope.$index > 0"
@click="deleteHandle(scope.row, scope.$index)">删除
</el-button>
<el-button class="op-btn" type="success"
v-if="scope.$index === (addForm.detailList.length - 1)"
@click="addMoreHandle(scope.row)">继续添加
</el-button>
<el-button class="op-btn" type="danger" v-if="scope.$index > 0" @click="deleteHandle(scope.row, scope.$index)">删除</el-button>
<el-button class="op-btn" type="success" v-if="scope.$index === (addForm.detailList.length - 1)" @click="addMoreHandle(scope.row)">继续添加</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
return true; return true;
}; };
const handleSuccess = (response: any) => { const handleSuccess = (response: any) => {
// console.log(fileList.value, 'fileListfileList')
// console.log(response.data, 'response.dataresponse.data')
fileListData.value.push(response.data.ossFilePath) fileListData.value.push(response.data.ossFilePath)
// console.log(fileListData.value, 'fileListData.valuefileListData.value')
}; };
const handlePreview = (file) => { const handlePreview = (file) => {
const isImage = file.type && file.type.includes('image'); const isImage = file.type && file.type.includes('image');
getLowerList(); getLowerList();
// getAgency(); // getAgency();
clearData(); clearData();
fileList.value = []
warrantyList.value = [ warrantyList.value = [
{ {
label: "一年质保期", label: "一年质保期",
let bizContent = res.data let bizContent = res.data
let data = bizContent.transferApply || {}; let data = bizContent.transferApply || {};
let detailList = bizContent.transferDetails || []; let detailList = bizContent.transferDetails || [];
let files = [];
files.push({url:data.filePath,name:data.filePath});
fileList.value = files;
let list: any = []; let list: any = [];
detailList.map((item) => { detailList.map((item) => {
let start = item.startId.slice(3); let start = item.startId.slice(3);

Loading…
取消
儲存