|
@@ -281,6 +281,24 @@ export default {
|
|
|
|
|
|
this.download('/material/change/downloadInner',{}, `变更单物料信息模板${new Date().getTime()}.xlsx`);
|
|
this.download('/material/change/downloadInner',{}, `变更单物料信息模板${new Date().getTime()}.xlsx`);
|
|
},
|
|
},
|
|
|
|
+ // 批号及库存状态管理
|
|
|
|
+ changeIsInventoryStatus(row){
|
|
|
|
+
|
|
|
|
+ if(row.isInventoryStatus === '2'){
|
|
|
|
+
|
|
|
|
+ row.expiryDateManagerment = '2';
|
|
|
|
+
|
|
|
|
+ row.serialNoManager = '2';
|
|
|
|
+ }
|
|
|
|
+ this.changeExpiryDateManagerment(row);
|
|
|
|
+ },
|
|
|
|
+ changeExpiryDateManagerment(row){
|
|
|
|
+
|
|
|
|
+ if(row.expiryDateManagerment === '2'){
|
|
|
|
+
|
|
|
|
+ row.usefulLife = '';
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -445,6 +463,72 @@ export default {
|
|
>
|
|
>
|
|
</component>
|
|
</component>
|
|
</template>
|
|
</template>
|
|
|
|
+ <!-- 批号及库存状态管理 -->
|
|
|
|
+ <template slot="isInventoryStatus" slot-scope="scope">
|
|
|
|
+ <component
|
|
|
|
+ v-bind="scope.attr"
|
|
|
|
+ v-model="scope.row[scope.item.key]"
|
|
|
|
+ :size="$attrs.size"
|
|
|
|
+ :source.sync="scope.row"
|
|
|
|
+ @change="changeIsInventoryStatus(scope.row)"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in dict.type[scope.attr.dictName]"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </component>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 效期管理 -->
|
|
|
|
+ <template slot="expiryDateManagerment" slot-scope="scope">
|
|
|
|
+ <component
|
|
|
|
+ v-bind="scope.attr"
|
|
|
|
+ v-model="scope.row[scope.item.key]"
|
|
|
|
+ :size="$attrs.size"
|
|
|
|
+ :source.sync="scope.row"
|
|
|
|
+ :disabled="scope.row.isInventoryStatus !=='0' "
|
|
|
|
+ @change="changeExpiryDateManagerment(scope.row)"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in dict.type[scope.attr.dictName]"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </component>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 是否序列号管理 -->
|
|
|
|
+ <template slot="serialNoManager" slot-scope="scope">
|
|
|
|
+ <component
|
|
|
|
+ v-bind="scope.attr"
|
|
|
|
+ v-model="scope.row[scope.item.key]"
|
|
|
|
+ :size="$attrs.size"
|
|
|
|
+ :source.sync="scope.row"
|
|
|
|
+ :disabled="scope.row.isInventoryStatus !=='0' "
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in dict.type[scope.attr.dictName]"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </component>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 有效期 -->
|
|
|
|
+ <template slot="usefulLife" slot-scope="scope">
|
|
|
|
+ <component
|
|
|
|
+ v-bind="scope.attr"
|
|
|
|
+ v-model="scope.row[scope.item.key]"
|
|
|
|
+ :size="$attrs.size"
|
|
|
|
+ :source.sync="scope.row"
|
|
|
|
+ :disabled="scope.row.expiryDateManagerment !=='0'"
|
|
|
|
+ >
|
|
|
|
+ </component>
|
|
|
|
+ </template>
|
|
|
|
|
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="120" align="center">
|
|
<el-table-column fixed="right" label="操作" width="120" align="center">
|