|
|
@@ -22,7 +22,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="$t('user.stockistCode')">
|
|
|
- <el-input v-model="form.decUserName" />
|
|
|
+ <el-input v-model="form.decUserName" :disabled="isDec == '1'"/>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
|
@@ -406,7 +406,8 @@ export default {
|
|
|
allDecLevel: usersInfo.getBaseInfo().decLevels,
|
|
|
allOpenBank: [],
|
|
|
|
|
|
- activeName: 'product'
|
|
|
+ activeName: 'product',
|
|
|
+ isDec:null
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -420,6 +421,15 @@ export default {
|
|
|
return text
|
|
|
}
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ isDec: {
|
|
|
+ handler(newValue, old) {
|
|
|
+ if (newValue == '1') {
|
|
|
+ this.form.decUserName = usersInfo.userName();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ }
|
|
|
+ },
|
|
|
created() {
|
|
|
const regionInfo = this.$store.getters.regionInfo
|
|
|
// console.log(this.$store.state.region)
|
|
|
@@ -436,7 +446,8 @@ export default {
|
|
|
this.allGoods = response.data.allGoods
|
|
|
this.userBalance = response.data.userBalance
|
|
|
this.categoryType = 1
|
|
|
-
|
|
|
+ //是否是报单中心
|
|
|
+ this.isDec = response.data.isDec
|
|
|
const settingObj = this.allGoods
|
|
|
for (const i in this.allGoods) {
|
|
|
this.storeNums[i] = 1
|
|
|
@@ -646,7 +657,7 @@ export default {
|
|
|
insertUserName: this.form.insertUserName,
|
|
|
decLv: this.form.decLv,
|
|
|
realName: this.form.realName,
|
|
|
- decUserName: this.form.decUserName,
|
|
|
+ decUserName: null,
|
|
|
conUserName: this.form.conUserName,
|
|
|
recUserName: this.form.recUserName,
|
|
|
insertUserIdCard: this.form.insertUserIdCard,
|