|
@@ -7,16 +7,16 @@
|
|
<span>单据信息</span>
|
|
<span>单据信息</span>
|
|
</div>
|
|
</div>
|
|
<div class="mymain-container">
|
|
<div class="mymain-container">
|
|
- <el-form ref="formData" :rules="rules" :model="formData" label-width="110px" size="small" label-position="left">
|
|
|
|
|
|
+ <el-form ref="formData" :rules="rules" :model="formData" label-width="110px" size="small" label-position="left" :disabled="formType == 2">
|
|
<el-row :gutter="20" justify="start">
|
|
<el-row :gutter="20" justify="start">
|
|
<el-col :span="8" v-if="id">
|
|
<el-col :span="8" v-if="id">
|
|
<el-form-item label="单据状态">
|
|
<el-form-item label="单据状态">
|
|
- <el-input type="text" :value="formData.flag == 'SAVE'?'已保存':formData.flag == 'OK'?'审核通过':formData.flag == 'OK'?'FAIL':''" disabled></el-input>
|
|
|
|
|
|
+ <el-input type="text" :value="formData.retState == 'WAIT'?'待确认':formData.retState == 'OK'?'已确认':''" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8" v-if="id">
|
|
<el-col :span="8" v-if="id">
|
|
<el-form-item label="单据编号">
|
|
<el-form-item label="单据编号">
|
|
- <el-input type="text" :value="formData.salesId" disabled></el-input>
|
|
|
|
|
|
+ <el-input type="text" :value="formData.salesRetId" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
@@ -60,9 +60,19 @@
|
|
<el-input type="text" v-model="formData.phone" placeholder="请输入"></el-input>
|
|
<el-input type="text" v-model="formData.phone" placeholder="请输入"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="6" v-if="id">
|
|
|
|
- <el-form-item label="单据金额">
|
|
|
|
- <el-input type="text" :value="formData.createBy" disabled></el-input>
|
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
+ <el-form-item label="销售订单号" :required="true">
|
|
|
|
+ <el-input type="text" v-model="formData.salesId" @change="getDetail" placeholder="请输入销售订单号"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6">
|
|
|
|
+ <el-form-item label="销售金额">
|
|
|
|
+ <el-input type="text" :value="salesDetail.createBy" disabled></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6">
|
|
|
|
+ <el-form-item label="时间">
|
|
|
|
+ <el-input type="text" :value="salesDetail.createBy" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6" v-if="id">
|
|
<el-col :span="6" v-if="id">
|
|
@@ -103,12 +113,12 @@
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
<span>辅材信息</span>
|
|
<span>辅材信息</span>
|
|
</div>
|
|
</div>
|
|
- <el-button size="small" type="primary" @click="add()">添加</el-button>
|
|
|
|
|
|
+ <!-- <el-button size="small" type="primary" @click="add()">添加</el-button> -->
|
|
<div class="table">
|
|
<div class="table">
|
|
<el-table :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
|
|
<el-table :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
|
|
<el-table-column label="大类名称" align="center">
|
|
<el-table-column label="大类名称" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-select v-model="scope.row.parentCategory" value-key="categoryId" @change="changeMain" :disabled="isEdit != scope.$index" placeholder="请选择" style="width: 100%;">
|
|
|
|
|
|
+ <el-select v-model="scope.row.parentCategory" value-key="categoryId" @change="changeMain" :disabled="isEdit != scope.$index || formType == 2" placeholder="请选择" style="width: 100%;">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in mainList"
|
|
v-for="item in mainList"
|
|
:key="item.categoryId"
|
|
:key="item.categoryId"
|
|
@@ -122,7 +132,7 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-select v-model="scope.row.goodsCategory" @change="changeSmall" @focus="()=>{
|
|
<el-select v-model="scope.row.goodsCategory" @change="changeSmall" @focus="()=>{
|
|
if(!scope.row.parentCategory){return this.$message.warning('请先选择大类!');}
|
|
if(!scope.row.parentCategory){return this.$message.warning('请先选择大类!');}
|
|
- }" :disabled="isEdit != scope.$index" value-key="categoryId" placeholder="请选择" style="width: 100%;">
|
|
|
|
|
|
+ }" :disabled="isEdit != scope.$index || formType == 2" value-key="categoryId" placeholder="请选择" style="width: 100%;">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in scope.row.parentCategory.items"
|
|
v-for="item in scope.row.parentCategory.items"
|
|
:key="item.categoryId"
|
|
:key="item.categoryId"
|
|
@@ -134,7 +144,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="辅材名称" align="center">
|
|
<el-table-column label="辅材名称" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-select v-model="scope.row.goods" @change="changeGoods" value-key="goodsId" :disabled="isEdit != scope.$index" placeholder="请选择" style="width: 100%;">
|
|
|
|
|
|
+ <el-select v-model="scope.row.goods" @change="changeGoods" value-key="goodsId" :disabled="isEdit != scope.$index || formType == 2" placeholder="请选择" style="width: 100%;">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in scope.row.goodsList"
|
|
v-for="item in scope.row.goodsList"
|
|
:key="item.goodsId"
|
|
:key="item.goodsId"
|
|
@@ -145,18 +155,18 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="goods.goodsSalesUnit" align="center" label="单位" ></el-table-column>
|
|
<el-table-column prop="goods.goodsSalesUnit" align="center" label="单位" ></el-table-column>
|
|
- <el-table-column prop="" align="center" label="数量" >
|
|
|
|
|
|
+ <el-table-column prop="" align="center" label="退货数量" >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-input type="number" v-model="scope.row.salesQty" :disabled="isEdit != scope.$index" placeholder="请输入"></el-input>
|
|
|
|
|
|
+ <el-input type="number" v-model="scope.row.retQty" :disabled="isEdit != scope.$index || formType == 2" placeholder="请输入"></el-input>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="goods.goodsCode" align="center" label="商品代码"></el-table-column>
|
|
<el-table-column prop="goods.goodsCode" align="center" label="商品代码"></el-table-column>
|
|
<el-table-column prop="goods.goodsSpecification" align="center" label="规格型号"></el-table-column>
|
|
<el-table-column prop="goods.goodsSpecification" align="center" label="规格型号"></el-table-column>
|
|
- <el-table-column prop="goods.price" align="center" label="销售价格"></el-table-column>
|
|
|
|
- <el-table-column prop="goods.saleAmount" align="center" label="销售金额" ></el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="goods.price" align="center" label="采购价格"></el-table-column>
|
|
|
|
+ <el-table-column prop="goods.saleAmount" align="center" label="采购金额" ></el-table-column>
|
|
<el-table-column prop="goods.qty" align="center" label="库存数量"></el-table-column>
|
|
<el-table-column prop="goods.qty" align="center" label="库存数量"></el-table-column>
|
|
<el-table-column label="操作" align="right" width="140">
|
|
<el-table-column label="操作" align="right" width="140">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template slot-scope="scope" v-if="formType != 2">
|
|
<el-button size="mini" type="primary" v-if="scope.$index != isEdit" @click="isEdit = scope.$index">编辑</el-button>
|
|
<el-button size="mini" type="primary" v-if="scope.$index != isEdit" @click="isEdit = scope.$index">编辑</el-button>
|
|
<el-button size="mini" type="danger" @click="dataList.splice(scope.$index,1)">删除</el-button>
|
|
<el-button size="mini" type="danger" @click="dataList.splice(scope.$index,1)">删除</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -166,10 +176,8 @@
|
|
</el-card>
|
|
</el-card>
|
|
<div class="page-footer">
|
|
<div class="page-footer">
|
|
<div class="footer">
|
|
<div class="footer">
|
|
- <el-button v-if="formType == 0 || (formType == 1 && formData.flag == 'SAVE')" size="small" type="primary" @click="save()">保存</el-button>
|
|
|
|
- <el-button v-if="formType != 0 && formData.flag == 'SAVE'" size="small" type="primary" @click="submit()">提交</el-button>
|
|
|
|
- <el-button v-if="formData.flag == 'SUBMIT' && formData.payType == 'WECHAT'" size="small" type="primary" @click="wxPay()">微信支付</el-button>
|
|
|
|
- <el-button v-if="formData.flag == 'PAY_NOT_TAKE'" size="small" type="primary" @click="confirm()">确认收货</el-button>
|
|
|
|
|
|
+ <el-button v-if="formType == 0 || (formType == 1 && formData.retState == 'WAIT')" size="small" type="primary" @click="save()">保存</el-button>
|
|
|
|
+ <el-button v-if="formData.retState == 'WAIT'" size="small" type="primary" @click="confirm()">确认收货</el-button>
|
|
<el-button size="small" type="info" @click="goBack">返回</el-button>
|
|
<el-button size="small" type="info" @click="goBack">返回</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -183,7 +191,8 @@
|
|
<script>
|
|
<script>
|
|
import { getWebsit } from "@/api/customerManagement";
|
|
import { getWebsit } from "@/api/customerManagement";
|
|
import ImageUpload from '@/components/file-upload'
|
|
import ImageUpload from '@/components/file-upload'
|
|
- import { getWorker, getCategory, getGoods, getDetail, add, edit, confirm, submit, getCode } from "@/api/auxiliaryFittings/auxiliarySalesOrder";
|
|
|
|
|
|
+ import { getWorker, getCategory, getGoods, getDetail } from "@/api/auxiliaryFittings/auxiliarySalesOrder";
|
|
|
|
+ import { add, edit, getReturnDetail } from "@/api/auxiliaryFittings/auxiliarySalesReturnOrder";
|
|
export default {
|
|
export default {
|
|
components: { ImageUpload },
|
|
components: { ImageUpload },
|
|
props: ['id','title','formType'],
|
|
props: ['id','title','formType'],
|
|
@@ -195,13 +204,15 @@
|
|
mainList: [],
|
|
mainList: [],
|
|
isPay: false,
|
|
isPay: false,
|
|
payCodeUrl: '',
|
|
payCodeUrl: '',
|
|
|
|
+ salesDetail: {},
|
|
formData: {
|
|
formData: {
|
|
websit: {},
|
|
websit: {},
|
|
websitId: '',
|
|
websitId: '',
|
|
websitName: '',
|
|
websitName: '',
|
|
file_url: [],
|
|
file_url: [],
|
|
salesId: '',
|
|
salesId: '',
|
|
- flag: '',
|
|
|
|
|
|
+ salesRetId: '',
|
|
|
|
+ retState: '',
|
|
createBy: '',
|
|
createBy: '',
|
|
createTime: '',
|
|
createTime: '',
|
|
confirmBy: '',
|
|
confirmBy: '',
|
|
@@ -210,9 +221,7 @@
|
|
workerName: '',
|
|
workerName: '',
|
|
workerId: '',
|
|
workerId: '',
|
|
idcard: '',
|
|
idcard: '',
|
|
- phone: '',
|
|
|
|
- source: '',
|
|
|
|
- payType: ''
|
|
|
|
|
|
+ phone: ''
|
|
},
|
|
},
|
|
isEdit: 0,
|
|
isEdit: 0,
|
|
companyName: JSON.parse(localStorage.getItem('greemall_user')).companyName,
|
|
companyName: JSON.parse(localStorage.getItem('greemall_user')).companyName,
|
|
@@ -223,12 +232,6 @@
|
|
worker: [
|
|
worker: [
|
|
{ required: true, message: '请选择师傅', trigger: 'change' }
|
|
{ required: true, message: '请选择师傅', trigger: 'change' }
|
|
],
|
|
],
|
|
- source: [
|
|
|
|
- { required: true, message: '请选择订单来源', trigger: 'change' }
|
|
|
|
- ],
|
|
|
|
- payType: [
|
|
|
|
- { required: true, message: '请选择订单来源', trigger: 'change' }
|
|
|
|
- ],
|
|
|
|
idcard: [
|
|
idcard: [
|
|
{ required: true, message: '请输入师傅身份证', trigger: 'blur' },
|
|
{ required: true, message: '请输入师傅身份证', trigger: 'blur' },
|
|
],
|
|
],
|
|
@@ -241,7 +244,7 @@
|
|
computed: {},
|
|
computed: {},
|
|
created() {
|
|
created() {
|
|
if(this.id){
|
|
if(this.id){
|
|
- this.getDetail()
|
|
|
|
|
|
+ this.getReturnDetail()
|
|
}
|
|
}
|
|
this.getWebsit()
|
|
this.getWebsit()
|
|
},
|
|
},
|
|
@@ -250,10 +253,10 @@
|
|
goBack() {
|
|
goBack() {
|
|
this.$emit('back');
|
|
this.$emit('back');
|
|
},
|
|
},
|
|
- async getDetail(){
|
|
|
|
|
|
+ getDetail(salesId){
|
|
const that = this
|
|
const that = this
|
|
- getDetail({salesId: this.id}).then(res => {
|
|
|
|
- this.formData.flag = res.data.flag
|
|
|
|
|
|
+ getDetail({salesId}).then(res => {
|
|
|
|
+ this.formData.retState = res.data.retState
|
|
this.formData.websit = {websitId: res.data.websitId,name: res.data.websitName}
|
|
this.formData.websit = {websitId: res.data.websitId,name: res.data.websitName}
|
|
this.formData.websitId = res.data.websitId
|
|
this.formData.websitId = res.data.websitId
|
|
this.formData.websitName = res.data.websitName
|
|
this.formData.websitName = res.data.websitName
|
|
@@ -268,8 +271,6 @@
|
|
this.formData.workerId = res.data.workerId
|
|
this.formData.workerId = res.data.workerId
|
|
this.formData.idcard = res.data.identity
|
|
this.formData.idcard = res.data.identity
|
|
this.formData.phone = res.data.workerMobile
|
|
this.formData.phone = res.data.workerMobile
|
|
- this.formData.source = res.data.source
|
|
|
|
- this.formData.payType = res.data.payType
|
|
|
|
this.getCategory(res.data.websitId)
|
|
this.getCategory(res.data.websitId)
|
|
this.formData.remark = res.data.remark
|
|
this.formData.remark = res.data.remark
|
|
res.data.items.forEach(item=>{
|
|
res.data.items.forEach(item=>{
|
|
@@ -286,6 +287,41 @@
|
|
console.log(this.dataList)
|
|
console.log(this.dataList)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ getReturnDetail(){
|
|
|
|
+ const that = this
|
|
|
|
+ getReturnDetail({id: this.id}).then(res => {
|
|
|
|
+ this.formData.retState = res.data.retState
|
|
|
|
+ this.formData.websit = {websitId: res.data.websitId,name: res.data.websitName}
|
|
|
|
+ this.formData.websitId = res.data.websitId
|
|
|
|
+ this.formData.websitName = res.data.websitName
|
|
|
|
+ this.getWorker()
|
|
|
|
+ this.formData.salesId = res.data.salesId
|
|
|
|
+ this.formData.salesRetId = res.data.salesRetId
|
|
|
|
+ this.formData.createBy = res.data.createBy
|
|
|
|
+ this.formData.createTime = res.data.createTime
|
|
|
|
+ this.formData.confirmBy = res.data.confirmBy
|
|
|
|
+ this.formData.confirmTime = res.data.confirmTime
|
|
|
|
+ this.formData.worker = {nickName: res.data.workerName,userId: res.data.workerId}
|
|
|
|
+ this.formData.workerName = res.data.workerName
|
|
|
|
+ this.formData.workerId = res.data.workerId
|
|
|
|
+ this.formData.idcard = res.data.identity
|
|
|
|
+ this.formData.phone = res.data.workerMobile
|
|
|
|
+ this.getCategory(res.data.websitId)
|
|
|
|
+ this.formData.remark = res.data.remark
|
|
|
|
+ res.data.websitSalesRetItems.forEach(item=>{
|
|
|
|
+ item.parentCategory = {categoryId: item.parentCategoryId,categoryName: item.parentCategoryName,items: [{categoryId: item.goodsCategoryId,categoryName: item.goodsCategoryName}]}
|
|
|
|
+ item.goodsCategory = {categoryId: item.goodsCategoryId,categoryName: item.goodsCategoryName}
|
|
|
|
+ that.getGoods(item.goodsCategoryId,item.goodsName,1).then(ress => {
|
|
|
|
+ item.goods = {...ress.data,oldPrice:ress.data.price}
|
|
|
|
+ item.goodsList = [{...ress.data,oldPrice:ress.data.price}]
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ this.dataList = res.data.websitSalesRetItems
|
|
|
|
+ },200)
|
|
|
|
+ console.log(this.dataList)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
getWebsit(){
|
|
getWebsit(){
|
|
getWebsit({type: 'C'}).then(res => {
|
|
getWebsit({type: 'C'}).then(res => {
|
|
this.websitList = res.data
|
|
this.websitList = res.data
|
|
@@ -349,7 +385,7 @@
|
|
this.dataList[this.isEdit].goodsCode = '',
|
|
this.dataList[this.isEdit].goodsCode = '',
|
|
this.dataList[this.isEdit].price = '',
|
|
this.dataList[this.isEdit].price = '',
|
|
this.dataList[this.isEdit].saleAmount = '',
|
|
this.dataList[this.isEdit].saleAmount = '',
|
|
- this.dataList[this.isEdit].salesQty = ''
|
|
|
|
|
|
+ this.dataList[this.isEdit].retQty = ''
|
|
this.dataList[this.isEdit].qty = '',
|
|
this.dataList[this.isEdit].qty = '',
|
|
this.dataList[this.isEdit].goodsType = 'M'
|
|
this.dataList[this.isEdit].goodsType = 'M'
|
|
},
|
|
},
|
|
@@ -362,7 +398,7 @@
|
|
this.dataList[this.isEdit].goodsCode = '',
|
|
this.dataList[this.isEdit].goodsCode = '',
|
|
this.dataList[this.isEdit].price = '',
|
|
this.dataList[this.isEdit].price = '',
|
|
this.dataList[this.isEdit].saleAmount = '',
|
|
this.dataList[this.isEdit].saleAmount = '',
|
|
- this.dataList[this.isEdit].salesQty = ''
|
|
|
|
|
|
+ this.dataList[this.isEdit].retQty = ''
|
|
this.dataList[this.isEdit].qty = '',
|
|
this.dataList[this.isEdit].qty = '',
|
|
this.dataList[this.isEdit].goodsCategoryId = e.categoryId
|
|
this.dataList[this.isEdit].goodsCategoryId = e.categoryId
|
|
this.dataList[this.isEdit].goodsCategoryName = e.categoryName
|
|
this.dataList[this.isEdit].goodsCategoryName = e.categoryName
|
|
@@ -397,64 +433,35 @@
|
|
goodsCode: '',
|
|
goodsCode: '',
|
|
price: '',
|
|
price: '',
|
|
saleAmount: '',
|
|
saleAmount: '',
|
|
- salesQty: 1,
|
|
|
|
|
|
+ retQty: 1,
|
|
qty: '',
|
|
qty: '',
|
|
goodsType: 'M'
|
|
goodsType: 'M'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- submit(){
|
|
|
|
- this.$confirm(`请确定是否提交订单, 是否继续?`, '提示', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- type: 'warning'
|
|
|
|
- }).then(() => {
|
|
|
|
- submit({
|
|
|
|
- salesId: this.formData.salesId
|
|
|
|
- }).then(res => {
|
|
|
|
- if(res.code == 200){
|
|
|
|
- this.$message.success('提交成功!')
|
|
|
|
- if(this.formData.payType == 'WECHAT'){
|
|
|
|
- this.isPay = true
|
|
|
|
- }else{
|
|
|
|
- this.goBack()
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
confirm(){
|
|
confirm(){
|
|
this.$confirm(`请确定是否确认提货, 是否继续?`, '提示', {
|
|
this.$confirm(`请确定是否确认提货, 是否继续?`, '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- confirm({
|
|
|
|
- salesId: this.formData.salesId
|
|
|
|
|
|
+ edit({
|
|
|
|
+ retState: 'OK',
|
|
|
|
+ salesRetId: this.formData.salesRetId,
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if(res.code == 200){
|
|
if(res.code == 200){
|
|
- this.$message.success('审核成功!')
|
|
|
|
|
|
+ this.$message.success('确认提货成功!')
|
|
this.goBack()
|
|
this.goBack()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- wxPay(){
|
|
|
|
- getCode({
|
|
|
|
- salesId: this.formData.salesId
|
|
|
|
- }).then(res => {
|
|
|
|
- if(res.code == 200){
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
save(){
|
|
save(){
|
|
this.$refs.formData.validate((valid, invalidFields, errLabels) => {
|
|
this.$refs.formData.validate((valid, invalidFields, errLabels) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
if(this.formType == 0){
|
|
if(this.formType == 0){
|
|
add({
|
|
add({
|
|
|
|
+ salesId: this.formData.salesId,
|
|
goodsType: 'M',
|
|
goodsType: 'M',
|
|
- source: this.formData.source,
|
|
|
|
- payType: this.formData.payType,
|
|
|
|
remark: this.formData.remark,
|
|
remark: this.formData.remark,
|
|
websitId: this.formData.websitId,
|
|
websitId: this.formData.websitId,
|
|
websitName: this.formData.websitName,
|
|
websitName: this.formData.websitName,
|
|
@@ -462,7 +469,7 @@
|
|
workerId: this.formData.workerId,
|
|
workerId: this.formData.workerId,
|
|
identity: this.formData.idcard,
|
|
identity: this.formData.idcard,
|
|
workerMobile: this.formData.phone,
|
|
workerMobile: this.formData.phone,
|
|
- items: this.dataList,
|
|
|
|
|
|
+ websitSalesRetItems: this.dataList,
|
|
file_url: this.formData.file_url.map(item=>item.url).join(","),
|
|
file_url: this.formData.file_url.map(item=>item.url).join(","),
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if(res.code == 200){
|
|
if(res.code == 200){
|
|
@@ -473,9 +480,8 @@
|
|
}else if(this.formType == 1){
|
|
}else if(this.formType == 1){
|
|
edit({
|
|
edit({
|
|
salesId: this.formData.salesId,
|
|
salesId: this.formData.salesId,
|
|
|
|
+ salesRetId: this.formData.salesRetId,
|
|
goodsType: 'M',
|
|
goodsType: 'M',
|
|
- source: this.formData.source,
|
|
|
|
- payType: this.formData.payType,
|
|
|
|
remark: this.formData.remark,
|
|
remark: this.formData.remark,
|
|
websitId: this.formData.websitId,
|
|
websitId: this.formData.websitId,
|
|
websitName: this.formData.websitName,
|
|
websitName: this.formData.websitName,
|
|
@@ -483,7 +489,7 @@
|
|
workerId: this.formData.workerId,
|
|
workerId: this.formData.workerId,
|
|
identity: this.formData.idcard,
|
|
identity: this.formData.idcard,
|
|
workerMobile: this.formData.phone,
|
|
workerMobile: this.formData.phone,
|
|
- items: this.dataList,
|
|
|
|
|
|
+ websitSalesRetItems: this.dataList,
|
|
file_url: this.formData.file_url.map(item=>item.url).join(","),
|
|
file_url: this.formData.file_url.map(item=>item.url).join(","),
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if(res.code == 200){
|
|
if(res.code == 200){
|