|
|
|
@ -144,9 +144,8 @@
|
|
|
|
|
v-if="isSpCombine"
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="scope.row.thirdId == null
|
|
|
|
|
|| scope.row.thirdId == ''
|
|
|
|
|
|| scope.row.flbm!=null
|
|
|
|
|
:disabled="
|
|
|
|
|
scope.row.originUuid!=null
|
|
|
|
|
|| scope.row.lockStatus===3"
|
|
|
|
|
@click.native.stop="intentSelectUdi(scope.row)"
|
|
|
|
|
>关联DI
|
|
|
|
@ -185,7 +184,7 @@
|
|
|
|
|
v-if="isSpCombine"
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="scope.row.thirdId==scope.row.nameCode || scope.row.thirdId==null || scope.row.nameCode==null"
|
|
|
|
|
:disabled="scope.row.thirdId==scope.row.nameCode || scope.row.thirdId==null || scope.row.nameCode==null || scope.row.lockStatus===3"
|
|
|
|
|
@click.native.stop="splitSelectUdi(scope.row)"
|
|
|
|
|
>拆分产品
|
|
|
|
|
</el-button>
|
|
|
|
@ -715,28 +714,21 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4" class="el-col">
|
|
|
|
|
<el-form-item prop="name">
|
|
|
|
|
<el-checkbox v-model="checked" class="text item itemTag"
|
|
|
|
|
<el-col :span="24" class="el-col">
|
|
|
|
|
<div style="margin-top: 18px;margin-bottom: 18px">
|
|
|
|
|
<el-checkbox v-model="checked" :disabled="!isUseDyCheck"
|
|
|
|
|
>以使用单元数量入库
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="3" class="el-col">
|
|
|
|
|
<el-form-item prop="name">
|
|
|
|
|
<el-checkbox v-model="editQuery.isDisable" class="text item itemTag"
|
|
|
|
|
<el-checkbox v-model="editQuery.isDisable"
|
|
|
|
|
>是否禁用
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="3" class="el-col">
|
|
|
|
|
<el-form-item prop="name">
|
|
|
|
|
<el-checkbox v-model="editQuery.isAdavence" class="text item itemTag"
|
|
|
|
|
<el-checkbox v-model="editQuery.isAdavence"
|
|
|
|
|
>是否寄售
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-checkbox v-model="editQuery.allowNoBatch"
|
|
|
|
|
>是否允许无批次号扫码
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
@ -1260,37 +1252,31 @@
|
|
|
|
|
size="small"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
v-model="editQuery.versionNumber"
|
|
|
|
|
disabled
|
|
|
|
|
></el-input>
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="selectVersion()"
|
|
|
|
|
style="margin-left: 5%"
|
|
|
|
|
>切换版本
|
|
|
|
|
</el-button>
|
|
|
|
|
<!-- <el-button type="text" size="small" @click.native.stop="selectVersion()"-->
|
|
|
|
|
<!-- style="margin-left: 5%"-->
|
|
|
|
|
<!-- >切换版本-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4" class="el-col">
|
|
|
|
|
<el-form-item prop="name">
|
|
|
|
|
<el-checkbox v-model="checked" class="text item itemTag" disabled
|
|
|
|
|
<el-col :span="24" class="el-col">
|
|
|
|
|
<div style="margin-top: 18px;margin-bottom: 18px">
|
|
|
|
|
<el-checkbox v-model="checked" disabled
|
|
|
|
|
>以使用单元数量入库
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="3" class="el-col">
|
|
|
|
|
<el-form-item prop="name">
|
|
|
|
|
<el-checkbox v-model="editQuery.isDisable" class="text item itemTag" disabled
|
|
|
|
|
<el-checkbox v-model="editQuery.isDisable" disabled
|
|
|
|
|
>是否禁用
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="3" class="el-col">
|
|
|
|
|
<el-form-item prop="name">
|
|
|
|
|
<el-checkbox v-model="editQuery.isAdavence" class="text item itemTag" disabled
|
|
|
|
|
<el-checkbox v-model="editQuery.isAdavence" disabled
|
|
|
|
|
>是否寄售
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-checkbox v-model="editQuery.allowNoBatch" disabled
|
|
|
|
|
>是否允许无批次号扫码
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
@ -1492,6 +1478,7 @@ export default {
|
|
|
|
|
5: '拒绝反审',
|
|
|
|
|
},
|
|
|
|
|
lockStatusMap: {1: "未提交", 2: "已提交", 3: "已锁定"},
|
|
|
|
|
isUseDyCheck: false,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -1552,9 +1539,15 @@ export default {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
filterByUuid(detailQuery)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.isUseDyCheck = false;
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.detailList = response.data || [];
|
|
|
|
|
this.productType = this.detailList[0].productType;
|
|
|
|
|
this.detailList.forEach((item, index, array) => {
|
|
|
|
|
if (item.zxxsbzbhsydysl > 1) {
|
|
|
|
|
this.isUseDyCheck = true;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -1919,15 +1912,17 @@ export default {
|
|
|
|
|
this.selectVersionVisible = false;
|
|
|
|
|
},
|
|
|
|
|
onAddSubmit() {
|
|
|
|
|
this.relevanceEdit.isDisable = this.editQuery.isDisable;
|
|
|
|
|
this.relevanceEdit.isLock = this.editQuery.isLock;
|
|
|
|
|
this.relevanceEdit.isAdavence = this.editQuery.isAdavence;
|
|
|
|
|
this.relevanceEdit = this.editQuery;
|
|
|
|
|
if (this.checked == true) {
|
|
|
|
|
this.relevanceEdit.isUseDy = 1;
|
|
|
|
|
} else {
|
|
|
|
|
this.relevanceEdit.isUseDy = 0;
|
|
|
|
|
}
|
|
|
|
|
this.relevanceEdit.isDisable = this.editQuery.isDisable;
|
|
|
|
|
this.relevanceEdit.isAdavence = this.editQuery.isAdavence;
|
|
|
|
|
|
|
|
|
|
console.log(this.relevanceEdit.isUseDy);
|
|
|
|
|
this.relevanceEdit.id = this.editQuery.rlId,
|
|
|
|
|
console.log(this.relevanceEdit.isUseDy);
|
|
|
|
|
updatetUdiInfos(this.relevanceEdit)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|