Browse Source

工单新增修改

dev-xx
马远东 1 year ago
parent
commit
9db95aa8c4
  1. 18
      src/views/aftersales/aftersalesWorkOrderAdd.vue
  2. 17
      src/views/basicdata/brand/basicZonePriceFrom.vue
  3. 6
      src/views/distribution/inventory/delivery/distributionStockArticle.vue
  4. 4
      src/views/distribution/inventory/delivery/distributionStockArticleDiscuss.vue
  5. 4
      src/views/distribution/inventory/delivery/distributionStockArticleMarket.vue
  6. 4
      src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue

18
src/views/aftersales/aftersalesWorkOrderAdd.vue

@ -15,7 +15,7 @@
ref="IndexForm"
:rules="rules"
>
<el-form-item label="异常类型" prop="workOrderType" class="el_inputTop">
<el-form-item label="异常类型" prop="workOrderType" class="el_inputTop ">
<el-select
v-model="Indexform.workOrderType"
clearable
@ -924,6 +924,9 @@ const abnormalChange = val => {
// } else {
// Indexform.value.packageCode = null;
// }
//
Indexform.value['packList']=[]
console.log(Indexform.value);
};
//
@ -1050,6 +1053,8 @@ const AddPackage = () => {
brandName: '',
state: false,
mallName: '',
secondary:'',
first:'',
});
};
//
@ -1094,6 +1099,8 @@ const TopChange = val => {
brandName: '',
state: false,
mallName: '',
secondary:'',
first:'',
},
]; //
Indexform.value = {}; //
@ -1246,6 +1253,8 @@ const ConfirmForm = () => {
waybillNumber: item.waybillNumber ? item.waybillNumber : null, //
orderCode: item.orderCode ? item.orderCode : null, //
brandName: item.brandName ? item.brandName : null, //
first:item.first ? item.first : null, //
secondary:item.secondary ? item.secondary : null, //
});
}
});
@ -1779,7 +1788,7 @@ const isShowFormItem4 = computed(() => {
border: 1px solid #ccc;
.el-form-item {
display: flex;
align-items: center;
align-items: flex-start;
margin: 0;
margin-bottom: 18px;
flex: 1 0 30%;
@ -1938,7 +1947,7 @@ const isShowFormItem4 = computed(() => {
}
.maxBox {
display: flex;
align-items: center;
align-items: flex-start;
width: 30%;
margin-right: 16px;
font-size: 14px;
@ -2195,6 +2204,7 @@ const isShowFormItem4 = computed(() => {
}
:deep(.el_inputTop) {
margin-bottom: 0 !important;
margin: 5px 0 !important;
}
:deep(.el-form-item.is-required:not(.is-no-asterisk).asterisk-left > .el-form-item__label:before){
color: #ff0000;
@ -2211,6 +2221,6 @@ const isShowFormItem4 = computed(() => {
}
.el_btn_remove{
padding-top: 6px;
// padding-top: 6px;
}
</style>

17
src/views/basicdata/brand/basicZonePriceFrom.vue

@ -107,9 +107,9 @@
v-model="item.remark"
placeholder="请输入费用"
:disabled="this.form?.freightMark?.indexOf(item.dictKey) == -1"
@change="$event, index"
@change="textbox($event,index)"
/>
<el-select v-model="item.identification" placeholder="请选择单位" style="width: 100px">
<el-select clearable v-model="item.identification" @change="optunit($event,index)" placeholder="请选择单位" style="width: 100px">
<el-option
v-for="item in optionsunit"
:key="item.value"
@ -162,6 +162,8 @@ export default {
name: 'basicZonePriceFrom',
data() {
return {
UnitList:[],//
optionsunit:[{
label:'件',
value:'1',
@ -323,6 +325,12 @@ export default {
textbox(e, index) {
console.log('e,index', e, index);
this.costList[index + 1] = e;
console.log(this.costList);
},
optunit(e,index){
this.UnitList[index + 1]= e
console.log(this.UnitList,'this.UnitList');
console.log(e,index);
},
handleCheckedCities(value) {
if (value.length < 1) {
@ -517,6 +525,11 @@ export default {
this.form.provinceEnd = this.form.provinceEnd[0];
this.form.brandList = this.form.brand.join(',');
this.form.brand = this.form.brand[this.form.brand.length - 1];
this.form.identification = {};
this.UnitList.forEach((item, index) => {
const key = index;
this.form.identification[key] = item[Object.keys(item)[0]];
});
console.log('提交的数据》》》', this.form);
add(this.form).then(() => {
this.box = false;

6
src/views/distribution/inventory/delivery/distributionStockArticle.vue

@ -43,9 +43,9 @@
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left">
<el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-if="handler"
>创建异常</el-button
>
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-if="handler"
></el-button
> -->
<!-- <el-button type="danger" icon="el-icon-edit" @click="handleMoke" v-if="handler"
>转预约单</el-button
> -->

4
src/views/distribution/inventory/delivery/distributionStockArticleDiscuss.vue

@ -37,9 +37,9 @@
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left">
<el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-if="handler"
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-if="handler"
>创建异常</el-button
>
> -->
<el-button type="danger" icon="Edit" @click="handleCallDelivery('3')" v-if="handler"
>修改客户信息</el-button
>

4
src/views/distribution/inventory/delivery/distributionStockArticleMarket.vue

@ -34,9 +34,9 @@
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left">
<el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-if="handler"
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-if="handler"
>创建异常</el-button
>
> -->
<!-- <el-button type="danger" icon="el-icon-edit" @click="handleMoke" v-if="handler"
>转预约单</el-button
> -->

4
src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue

@ -35,9 +35,9 @@
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left">
<el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-if="handler"
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-if="handler"
>创建异常</el-button
>
> -->
<el-button type="primary" icon="el-icon-plus" @click="handlebill" v-if="handler"
>创建提货单</el-button
>

Loading…
Cancel
Save