Browse Source

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

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

Loading…
Cancel
Save