Browse Source

修改测试文档中有关供应链管理--车辆管理-车型管理中的问题

master
yunuo970428 3 years ago
parent
commit
9ab143b973
  1. 932
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexing.vue
  2. 1164
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/changyongpeizhi.vue
  3. 1287
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue
  4. 185
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingpeizhijiageweihuAdd.vue

932
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexing.vue

File diff suppressed because it is too large

1164
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/changyongpeizhi.vue

File diff suppressed because it is too large

1287
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue

File diff suppressed because it is too large

185
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingpeizhijiageweihuAdd.vue

@ -7,46 +7,45 @@
<el-form ref="weihuForm" :model="temp" label-position="right" class="formadd" :rules="rules"> <el-form ref="weihuForm" :model="temp" label-position="right" class="formadd" :rules="rules">
<el-row class="tleftb_one"> <el-row class="tleftb_one">
<el-col :span="6" class="tleftb"> <el-col :span="6" class="tleftb">
<span><span class="icon">*</span>车型名称</span> <!--modelName--> <span>车型名称</span>
</el-col> </el-col>
<el-col :span="18"> <el-col :span="18">
<el-form-item> <el-form-item>
<span>{{temp.modelName}}</span> <span>{{ temp.modelName }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="6" class="tleftb"> <el-col :span="6" class="tleftb">
<span><span class="icon">*</span>常用配置</span> <span>常用配置</span>
</el-col> </el-col>
<el-col :span="18"> <el-col :span="18">
<el-form-item> <el-form-item>
<span>{{temp.configName}}</span> <span>{{ temp.configName }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="6" class="tleftb"> <el-col :span="6" class="tleftb">
<span><span class="icon">*</span>更多配置</span> <span>更多配置</span>
</el-col> </el-col>
<el-col :span="18"> <el-col :span="18">
<el-form-item> <el-form-item>
<span>{{temp.otherConfig}}</span> <span>{{ temp.otherConfig }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="6" class="tleftb"> <el-col :span="6" class="tleftb">
<span><span class="icon">*</span>厂家结算价</span> <span>厂家结算价</span>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item> <el-form-item>
<el-input v-model="temp.manufactorSettlementPrice" type="textarea" maxlength="125" placeholder="请输入" <el-input v-model="temp.manufactorSettlementPrice" maxlength="125" placeholder="请输入" class="addinputw" clearable/>
class="addinputw" clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" class="tleftb"> <el-col :span="6" class="tleftb">
<span><span class="icon">*</span>销售指导价</span> <span>销售指导价</span>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item> <el-form-item>
@ -64,124 +63,72 @@
</template> </template>
<script> <script>
import { import { fetchBySid, update } from '@/api/cheliang/basemodelconfig'
mapGetters
} from 'vuex'
import {
fetchBySid,
update
} from '@/api/cheliang/basemodelconfig'
export default { export default {
name: 'chexingpeizhijiageweihu', name: 'chexingpeizhijiageweihu',
data() { data() {
return { return {
// --------- temp: {
fieldShow: 0, // 0. 1. 2. sid: '', // sid
// --------- modelName: '', // ( 1)
imgList: [], manufactorSettlementPrice: '', //
menuState: { guidedPrice: '' //
add: false, // },
edit: false, // rules: {}
delete: false, // }
view: false, // },
audit: false, // methods: {
input: false, // showWeiHu(sid) {
output: false, // this.$nextTick(() => {
upload: false, // this.$refs['weihuForm'].clearValidate()
release: false // })
}, fetchBySid(sid).then(resp => {
FormLoading: false, if (resp.success) {
listLoading: false, const data = resp.data
useOrgArry: [], // 使 this.temp = data
createOrgArry: [], // this.temp.sid = sid
temp: { }
sid: '', // sid })
modelName: '', // ( 1)
manufactorSettlementPrice: '', //
guidedPrice: '' //
}, //
templook: {}, //
textMap: {
update: '修改',
create: '创建'
},
carBrand_list: [],
stateId: 0,
dataArr: [],
pdateChe: null,
pdateChang: null,
side: [],
dialogFormVisible: false, //
dialogFormShowVisible: false, //
dialogStatus: '', //
fenzuOptions: [],
rules: {}
}
},
computed: {
...mapGetters(['id', 'roles', 'rolesIds', 'departmentId', 'departmentCode'])
}, },
created() { //
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.temp = {}
this.$emit('doback')
console.log('价格维护返回', 112233)
}, },
methods: { //
showWeiHu(sid) { handleCreate() {
this.$nextTick(() => { this.$refs['weihuForm'].validate(valid => {
this.$refs['weihuForm'].clearValidate() if (valid) {
}) const temp = {
fetchBySid(sid).then(resp => { sid: this.temp.sid,
if (resp.success) { manufactorSettlementPrice: this.temp.manufactorSettlementPrice,
const data = resp.data guidedPrice: this.temp.guidedPrice
this.temp = data
this.temp.sid = sid
} }
}) update(temp).then(resp => {
}, if (resp.success) {
// ------------------------------------------------------ const data = resp.data
// this.temp = data
handleReturn(isreload) { this.handleReturn('true')
if (isreload === 'true') this.$emit('reloadlist')
this.temp = {}
this.$emit('doback')
console.log('价格维护返回', 112233)
// this.$router.go(-1)
},
//
resetTemp() {
this.temp = {}
},
//
handleCreate() {
this.$refs['weihuForm'].validate(valid => {
if (valid) {
const temp = {
sid: this.temp.sid,
manufactorSettlementPrice: this.temp.manufactorSettlementPrice,
guidedPrice: this.temp.guidedPrice
} }
update(temp).then(resp => { })
if (resp.success) { }
const data = resp.data })
this.temp = data
this.handleReturn('true')
}
})
}
})
}
} }
} }
}
</script> </script>
<style scoped> <style scoped>
.tleftb_one { .tleftb_one {
border-top: 1px solid #e0e3eb; border-top: 1px solid #e0e3eb;
} }
.form_btn { .form_btn {
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
</style> </style>

Loading…
Cancel
Save