|
@@ -81,7 +81,7 @@
|
|
|
<vxe-column min-width="100" align="center" field="remarks" title="备注"></vxe-column>
|
|
<vxe-column min-width="100" align="center" field="remarks" title="备注"></vxe-column>
|
|
|
<vxe-column align="center" title="操作" fixed="right" width="80">
|
|
<vxe-column align="center" title="操作" fixed="right" width="80">
|
|
|
<template v-slot="scope">
|
|
<template v-slot="scope">
|
|
|
- <vxe-button status="primary" size="small" :disabled="false"
|
|
|
|
|
|
|
+ <vxe-button v-show="false" status="primary" size="small" :disabled="false"
|
|
|
@click="seeFileInfo(scope.$rowIndex)" plain>附件</vxe-button>
|
|
@click="seeFileInfo(scope.$rowIndex)" plain>附件</vxe-button>
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-column>
|
|
</vxe-column>
|
|
@@ -135,7 +135,7 @@
|
|
|
<vxe-column min-width="110px" align="center" field="remarks" title="备注"></vxe-column>
|
|
<vxe-column min-width="110px" align="center" field="remarks" title="备注"></vxe-column>
|
|
|
<vxe-column align="center" fixed="right" title="操作" width="80px">
|
|
<vxe-column align="center" fixed="right" title="操作" width="80px">
|
|
|
<template v-slot="scope">
|
|
<template v-slot="scope">
|
|
|
- <vxe-button status="primary" size="small" v-if="scope.row.upFlag !== '1'"
|
|
|
|
|
|
|
+ <vxe-button v-show="false" status="primary" size="small" v-if="scope.row.upFlag !== '1'"
|
|
|
:disabled="false" @click="seeFileInfo2(scope.$rowIndex)" plain>附件</vxe-button>
|
|
:disabled="false" @click="seeFileInfo2(scope.$rowIndex)" plain>附件</vxe-button>
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-column>
|
|
</vxe-column>
|
|
@@ -301,7 +301,7 @@
|
|
|
<template v-slot="scope">
|
|
<template v-slot="scope">
|
|
|
<el-button size="small" type="primary"
|
|
<el-button size="small" type="primary"
|
|
|
@click="updateWareHouse(scope.$rowIndex)">修改</el-button>
|
|
@click="updateWareHouse(scope.$rowIndex)">修改</el-button>
|
|
|
- <el-button size="small" type="primary" @click="sss2(scope.$rowIndex)">上传附件</el-button>
|
|
|
|
|
|
|
+ <el-button size="small" type="primary" v-show="false" @click="sss2(scope.$rowIndex)">上传附件</el-button>
|
|
|
<el-button size="small" type="danger"
|
|
<el-button size="small" type="danger"
|
|
|
@click="removeEvent(scope.row, scope.$rowIndex, 'detail')">删除</el-button>
|
|
@click="removeEvent(scope.row, scope.$rowIndex, 'detail')">删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
@@ -323,7 +323,11 @@
|
|
|
<MaterialManagementDialog ref="materialManagementDialog" @getUpload="getUpload"></MaterialManagementDialog>
|
|
<MaterialManagementDialog ref="materialManagementDialog" @getUpload="getUpload"></MaterialManagementDialog>
|
|
|
<UpdateInfoForm ref="updateInfoForm"></UpdateInfoForm>
|
|
<UpdateInfoForm ref="updateInfoForm"></UpdateInfoForm>
|
|
|
<PurchaseChooseForm ref="purchaseChooseForm" @getProject="getContract"></PurchaseChooseForm>
|
|
<PurchaseChooseForm ref="purchaseChooseForm" @getProject="getContract"></PurchaseChooseForm>
|
|
|
- <UpLoadComponent ref="uploadComponent"></UpLoadComponent>
|
|
|
|
|
|
|
+ <div v-show="method === 'view'">
|
|
|
|
|
+ <div v-show="false">
|
|
|
|
|
+ <UpLoadComponent ref="uploadComponent"></UpLoadComponent>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
<CwProgramPageForm ref="cwProgramPageForm" @getProgram="getProgram"></CwProgramPageForm>
|
|
<CwProgramPageForm ref="cwProgramPageForm" @getProgram="getProgram"></CwProgramPageForm>
|
|
|
<MaterialTypePullForm ref="materialTypePullForm" @getProgramForType="getProgramForType"></MaterialTypePullForm>
|
|
<MaterialTypePullForm ref="materialTypePullForm" @getProgramForType="getProgramForType"></MaterialTypePullForm>
|
|
|
<UserPullForm ref="userPullForm" @getProgramForUser="getProgramForUser"></UserPullForm>
|
|
<UserPullForm ref="userPullForm" @getProgramForUser="getProgramForUser"></UserPullForm>
|
|
@@ -915,6 +919,13 @@ export default {
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
|
},
|
|
},
|
|
|
getProgramForType(rows) {
|
|
getProgramForType(rows) {
|
|
|
|
|
+ const exists = this.inputForm.wareHouse.some((item, index) => {
|
|
|
|
|
+ return String(index) !== String(this.indexRow) && String(item.wareHouseTypeId) === String(rows.id)
|
|
|
|
|
+ })
|
|
|
|
|
+ if (exists) {
|
|
|
|
|
+ this.$message.warning('同种商品只能选择一次')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
this.inputForm.wareHouse[this.indexRow].wareHouseTypeId = rows.id
|
|
this.inputForm.wareHouse[this.indexRow].wareHouseTypeId = rows.id
|
|
|
this.inputForm.wareHouse[this.indexRow].wareHouseType = rows.name
|
|
this.inputForm.wareHouse[this.indexRow].wareHouseType = rows.name
|
|
|
this.inputForm.wareHouse[this.indexRow].tradeName = rows.name
|
|
this.inputForm.wareHouse[this.indexRow].tradeName = rows.name
|