|
@@ -30,7 +30,7 @@
|
|
|
</el-divider>
|
|
|
|
|
|
<el-row>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="6">
|
|
|
<el-form-item label="采购员" prop="buyerid">
|
|
|
<el-select
|
|
|
v-model="ruleForm.buyerid"
|
|
@@ -59,7 +59,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="6">
|
|
|
<el-form-item label="采购毛利率" label-width="110px" prop="cgd_tax">
|
|
|
<el-input-number
|
|
|
v-model="ruleForm.cgd_tax"
|
|
@@ -75,8 +75,8 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="平台" prop="platform_id">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="所属平台" prop="platform_id">
|
|
|
<!-- <search-pay
|
|
|
:value="ruleForm.platform_id"
|
|
|
:disabled="id !== '003'"
|
|
@@ -88,16 +88,15 @@
|
|
|
@searchChange="platform_id_change"
|
|
|
/> -->
|
|
|
|
|
|
- <el-col :span="6" style="width: 240px">
|
|
|
- <search-terrace
|
|
|
- :value="ruleForm.platform_id"
|
|
|
- :disabled="false"
|
|
|
- :size="'mini'"
|
|
|
- :is-detail="false"
|
|
|
- :is_show="'0'"
|
|
|
- :placeholder="'所属平台'"
|
|
|
- @searchChange="platform_codesearchChange"
|
|
|
- /></el-col>
|
|
|
+ <search-terrace
|
|
|
+ :value="ruleForm.platform_id"
|
|
|
+ :disabled="false"
|
|
|
+ :size="'mini'"
|
|
|
+ :is-detail="false"
|
|
|
+ :is_show="'0'"
|
|
|
+ :placeholder="'所属平台'"
|
|
|
+ @searchChange="platform_codesearchChange"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -137,9 +136,10 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
+ <!-- :disabled="id !== '003'" -->
|
|
|
<el-form-item label="销售方公司" label-width="110px" prop="companyNo">
|
|
|
<search-work-company
|
|
|
- :disabled="id !== '003'"
|
|
|
+ disabled
|
|
|
:value="ruleForm.companyNo"
|
|
|
:names="''"
|
|
|
:size="'mini'"
|
|
@@ -234,11 +234,12 @@
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="商品分类" prop="cat_id">
|
|
|
- <search-sort
|
|
|
+ <company-sort
|
|
|
:value="ruleForm.cat_id"
|
|
|
:placeholder="'商品分类'"
|
|
|
:disabled="id !== '003'"
|
|
|
:size="'mini'"
|
|
|
+ :company-no="ruleForm.companyNo"
|
|
|
:names="cat_id_name"
|
|
|
:is-detail="type !== 'add'"
|
|
|
@searchChange="goods_class_change"
|
|
@@ -342,6 +343,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import asyncRequest from '@/apis/service/netOrderEntry/netOrderEnter'
|
|
|
+import companyHelper from '@/mixins/companyHelper'
|
|
|
import { accMul, isPhone, isMobile } from '@/utils/validate'
|
|
|
import resToken from '@/mixins/resToken'
|
|
|
|
|
@@ -370,7 +372,7 @@ const defaultData = {
|
|
|
|
|
|
export default {
|
|
|
name: 'Terrace',
|
|
|
- mixins: [resToken],
|
|
|
+ mixins: [resToken, companyHelper],
|
|
|
props: ['showModel', 'id', 'sitem'],
|
|
|
data() {
|
|
|
const validatemobile = (rule, value, callback) => {
|
|
@@ -652,6 +654,14 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+ console.log(this.id)
|
|
|
+
|
|
|
+ if (this.id === '003') {
|
|
|
+ this.ruleForm.companyNo = this.currentCompany
|
|
|
+ console.log(this.ruleForm.companyNo)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
if (this.id !== '003') this.getDetail()
|
|
|
},
|
|
|
async getDetail() {
|