|
@@ -94,6 +94,7 @@ export default {
|
|
|
name: "detailsPage",
|
|
|
data() {
|
|
|
return {
|
|
|
+ isDisabled:false,
|
|
|
switchDialog:false,
|
|
|
activeName: "sale_detail",
|
|
|
disabled: false,
|
|
@@ -267,10 +268,7 @@ export default {
|
|
|
label: '商品名称',
|
|
|
prop: 'goodsId',
|
|
|
width: 200,
|
|
|
- disabled: function (row) {
|
|
|
- // 根据行数据进行条件判断
|
|
|
- return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
|
|
|
- },
|
|
|
+ disabled: false,
|
|
|
overHidden: true,
|
|
|
type: 'select',
|
|
|
props: {
|
|
@@ -282,18 +280,12 @@ export default {
|
|
|
label: '物料编码',
|
|
|
prop: 'goodsNo',
|
|
|
overHidden: true,
|
|
|
- disabled: function (row) {
|
|
|
- // 根据行数据进行条件判断
|
|
|
- return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
|
|
|
- },
|
|
|
+ disabled: false,
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '品牌',
|
|
|
prop: 'brandId',
|
|
|
- disabled: function (row) {
|
|
|
- // 根据行数据进行条件判断
|
|
|
- return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
|
|
|
- },
|
|
|
+ disabled: false,
|
|
|
width: 100,
|
|
|
overHidden: true,
|
|
|
type: 'select',
|
|
@@ -306,46 +298,31 @@ export default {
|
|
|
label: '规格型号',
|
|
|
prop: 'propertyName',
|
|
|
overHidden: true,
|
|
|
- disabled: function (row) {
|
|
|
- // 根据行数据进行条件判断
|
|
|
- return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
|
|
|
- },
|
|
|
+ disabled: false,
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '花纹',
|
|
|
prop: 'pattern',
|
|
|
overHidden: true,
|
|
|
- disabled: function (row) {
|
|
|
- // 根据行数据进行条件判断
|
|
|
- return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
|
|
|
- },
|
|
|
+ disabled: false,
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '商品描述',
|
|
|
prop: 'goodsDescription',
|
|
|
- disabled: function (row) {
|
|
|
- // 根据行数据进行条件判断
|
|
|
- return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
|
|
|
- },
|
|
|
+ disabled: false,
|
|
|
overHidden: true,
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '数量',
|
|
|
prop: 'goodsNum',
|
|
|
overHidden: true,
|
|
|
- disabled: function (row) {
|
|
|
- // 根据行数据进行条件判断
|
|
|
- return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
|
|
|
- },
|
|
|
+ disabled: false,
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '单位',
|
|
|
prop: 'units',
|
|
|
type: "select",
|
|
|
- disabled: function (row) {
|
|
|
- // 根据行数据进行条件判断
|
|
|
- return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
|
|
|
- },
|
|
|
+ disabled: false,
|
|
|
props: {
|
|
|
label: "dictValue",
|
|
|
value: "dictValue"
|
|
@@ -368,19 +345,17 @@ export default {
|
|
|
dicUrl: "/api/blade-sales-part/stockDesc/dotList",
|
|
|
overHidden: true,
|
|
|
},
|
|
|
- // {
|
|
|
- // label: '价格',
|
|
|
- // prop: 'price',
|
|
|
- // overHidden: true,
|
|
|
- // width: 100
|
|
|
- // },
|
|
|
+ {
|
|
|
+ label: '价格',
|
|
|
+ prop: 'price',
|
|
|
+ overHidden: true,
|
|
|
+ width: 100,
|
|
|
+ disabled: false,
|
|
|
+ },
|
|
|
{
|
|
|
label: '发货数量',
|
|
|
prop: 'sendNum',
|
|
|
- disabled: function (row) {
|
|
|
- // 根据行数据进行条件判断
|
|
|
- return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
|
|
|
- },
|
|
|
+ disabled: false,
|
|
|
overHidden: true,
|
|
|
width: 100
|
|
|
},
|
|
@@ -486,6 +461,7 @@ export default {
|
|
|
detailData: Object
|
|
|
},
|
|
|
async created() {
|
|
|
+
|
|
|
this.optionContacts = await this.getColumnData(this.getColumnName(269.1), this.optionContactsBack);
|
|
|
this.findObject(this.optionContacts.column, "goodsId").change = ({ value, column }) => {
|
|
|
if (this.formContacts.goodsId !== value) {
|
|
@@ -581,7 +557,13 @@ export default {
|
|
|
})
|
|
|
getDetails({ id: id }).then(res => {
|
|
|
this.form = res.data.data
|
|
|
+ // console.log(this.form.businessSource);
|
|
|
loading.close();
|
|
|
+ if(this.form.businessSource == "外部销售"){
|
|
|
+ this.optionContactsBack.column.forEach(item=>{
|
|
|
+ item.disabled = true
|
|
|
+ })
|
|
|
+ }
|
|
|
}).catch(() => {
|
|
|
loading.close();
|
|
|
})
|