|
|
@@ -25,7 +25,7 @@
|
|
|
<template slot="goodsTypeId" slot-scope="{ disabled }">
|
|
|
<div style="display:flex;">
|
|
|
<avue-cascader
|
|
|
- :disabled="disabled||editDisabled"
|
|
|
+ :disabled="disabled || editDisabled"
|
|
|
:emit-path="false"
|
|
|
check-strictly
|
|
|
:show-all-levels="false"
|
|
|
@@ -39,7 +39,14 @@
|
|
|
</template>
|
|
|
<template slot="unit" slot-scope="{ disabled }">
|
|
|
<div style="display:flex;">
|
|
|
- <avue-select :disabled="disabled||editDisabled" v-model="form.unit" filterable placeholder="请选择单位" :dic="unitList" :props="props2"></avue-select>
|
|
|
+ <avue-select
|
|
|
+ :disabled="disabled || editDisabled"
|
|
|
+ v-model="form.unit"
|
|
|
+ filterable
|
|
|
+ placeholder="请选择单位"
|
|
|
+ :dic="unitList"
|
|
|
+ :props="props2"
|
|
|
+ ></avue-select>
|
|
|
<i class="el-icon-circle-plus-outline" style="font-size:18px;line-height: 32px;margin-left:4px" @click="$refs.dictbiz.open()"></i>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -56,30 +63,55 @@
|
|
|
</template>
|
|
|
<template slot="whetherIntegral" slot-scope="{ disabled }">
|
|
|
<!--<el-switch v-model="form.whetherIntegral" active-text="是" inactive-text="否" active-value="1" inactive-value="0" @change="whetherChange"/>-->
|
|
|
- <el-switch v-model="form.whetherIntegral" :disabled="disabled||editDisabled" active-text="是" inactive-text="否" active-value="1" inactive-value="0" />
|
|
|
+ <el-switch
|
|
|
+ v-model="form.whetherIntegral"
|
|
|
+ :disabled="disabled || editDisabled"
|
|
|
+ active-text="是"
|
|
|
+ inactive-text="否"
|
|
|
+ active-value="1"
|
|
|
+ inactive-value="0"
|
|
|
+ />
|
|
|
</template>
|
|
|
|
|
|
<template slot="explosionProof" slot-scope="{ disabled }">
|
|
|
<!--<el-switch v-model="form.explosionProof" :disabled="disabled||editDisabled" active-text="是" inactive-text="否"-->
|
|
|
<!-- active-value="1" inactive-value="0" />-->
|
|
|
<!--<el-radio v-model="form.explosionProof"></el-radio>-->
|
|
|
- <el-checkbox v-model="form.explosionProof" :checked="form.explosionProof == 1" :true-label="1" :false-label="0" :disabled="editDisabled"></el-checkbox>
|
|
|
+ <el-checkbox
|
|
|
+ v-model="form.explosionProof"
|
|
|
+ :checked="form.explosionProof == 1"
|
|
|
+ :true-label="1"
|
|
|
+ :false-label="0"
|
|
|
+ :disabled="editDisabled"
|
|
|
+ ></el-checkbox>
|
|
|
</template>
|
|
|
|
|
|
<template slot="originalFactory" slot-scope="{ disabled }">
|
|
|
<!--<el-switch v-model="form.originalFactory" :disabled="disabled||editDisabled" active-text="是" inactive-text="否"-->
|
|
|
<!-- active-value="1" inactive-value="0" />-->
|
|
|
- <el-checkbox v-model="form.originalFactory" :checked="form.originalFactory == 1" :true-label="1" :false-label="0" :disabled="editDisabled"></el-checkbox>
|
|
|
+ <el-checkbox
|
|
|
+ v-model="form.originalFactory"
|
|
|
+ :checked="form.originalFactory == 1"
|
|
|
+ :true-label="1"
|
|
|
+ :false-label="0"
|
|
|
+ :disabled="editDisabled"
|
|
|
+ ></el-checkbox>
|
|
|
</template>
|
|
|
<template slot="selfRecovery" slot-scope="{ disabled }">
|
|
|
<!--<el-switch v-model="form.selfRecovery" :disabled="disabled||editDisabled" active-text="是" inactive-text="否"-->
|
|
|
<!-- active-value="1" inactive-value="0" />-->
|
|
|
- <el-checkbox v-model="form.selfRecovery" :checked="form.selfRecovery == 1" :true-label="1" :false-label="0" :disabled="editDisabled"></el-checkbox>
|
|
|
+ <el-checkbox
|
|
|
+ v-model="form.selfRecovery"
|
|
|
+ :checked="form.selfRecovery == 1"
|
|
|
+ :true-label="1"
|
|
|
+ :false-label="0"
|
|
|
+ :disabled="editDisabled"
|
|
|
+ ></el-checkbox>
|
|
|
</template>
|
|
|
</avue-form>
|
|
|
</trade-card>
|
|
|
<containerTitle title="附件信息"></containerTitle>
|
|
|
- <c-upload :data="filesList" display deleteUrl="/api/blade-sales-part/goodsfiles/remove" :enumerationValue="160.1" :disabled="editDisabled"/>
|
|
|
+ <c-upload :data="filesList" display deleteUrl="/api/blade-sales-part/goodsfiles/remove" :enumerationValue="160.1" :disabled="editDisabled" />
|
|
|
<el-dialog
|
|
|
title="设置产品分类"
|
|
|
v-dialogDrag
|
|
|
@@ -785,18 +817,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
saveGoodstype() {
|
|
|
- this.$refs["goodsType"].validate((valid, done) => {
|
|
|
- done();
|
|
|
- if (valid) {
|
|
|
- goodsTypesubmit({ ...this.form2, status: 0 }).then(res => {
|
|
|
- this.getDetail(res.data.data.id);
|
|
|
- this.getAllWorkDicts();
|
|
|
- });
|
|
|
- this.goodsTypeVisible = false;
|
|
|
- } else {
|
|
|
- return false;
|
|
|
- }
|
|
|
+ getCorpType({ corpType: "SP" }).then(res => {
|
|
|
+ console.log(res);
|
|
|
+ this.goodsTypeList = res.data.data;
|
|
|
});
|
|
|
+ this.goodsTypeVisible = false;
|
|
|
},
|
|
|
savestorage() {
|
|
|
// this.$refs["storage"].validate((valid, done) => {
|
|
|
@@ -835,7 +860,7 @@ export default {
|
|
|
}
|
|
|
this.whetherChange(res.data.data.whether);
|
|
|
//如果modifiable为0则不能修改
|
|
|
- if (this.form.modifiable == 1) {
|
|
|
+ if (this.form.modifiable == 1) {
|
|
|
console.log(this.form.modifiable, "1");
|
|
|
for (let item of this.option.column) {
|
|
|
item.disabled = false;
|