作者 张晓杰

修改产品类型展示字段

@@ -226,6 +226,7 @@ export default { @@ -226,6 +226,7 @@ export default {
226 }, 226 },
227 edit(record) { 227 edit(record) {
228 this.model = Object.assign({}, record) 228 this.model = Object.assign({}, record)
  229 + console.log('this.model',this.model)
229 this.modelDefault = this.model 230 this.modelDefault = this.model
230 this.choose = this.model.chooseStatus 231 this.choose = this.model.chooseStatus
231 if(!this.model.chooseStatus){ 232 if(!this.model.chooseStatus){
@@ -322,6 +323,8 @@ export default { @@ -322,6 +323,8 @@ export default {
322 httpurl += this.url.edit 323 httpurl += this.url.edit
323 method = 'put' 324 method = 'put'
324 } 325 }
  326 + console.log(this.model)
  327 + // return
325 httpAction(httpurl, this.model, method) 328 httpAction(httpurl, this.model, method)
326 .then((res) => { 329 .then((res) => {
327 if (res.success) { 330 if (res.success) {
@@ -160,7 +160,7 @@ @@ -160,7 +160,7 @@
160 { 160 {
161 title:'产品类型', 161 title:'产品类型',
162 align:"center", 162 align:"center",
163 - dataIndex: 'productType', 163 + dataIndex: 'productTypeName',
164 // customRender: function (text) { 164 // customRender: function (text) {
165 // if (text === 'XC') { 165 // if (text === 'XC') {
166 // return '线槽' 166 // return '线槽'
@@ -251,7 +251,7 @@ @@ -251,7 +251,7 @@
251 /* 分页参数 */ 251 /* 分页参数 */
252 ipagination:{ 252 ipagination:{
253 current: 1, 253 current: 1,
254 - pageSize: 5, 254 + pageSize: 10,
255 pageSizeOptions: ['5', '10', '50'], 255 pageSizeOptions: ['5', '10', '50'],
256 showTotal: (total, range) => { 256 showTotal: (total, range) => {
257 return range[0] + "-" + range[1] + " 共" + total + "条" 257 return range[0] + "-" + range[1] + " 共" + total + "条"
@@ -156,7 +156,7 @@ @@ -156,7 +156,7 @@
156 { 156 {
157 title:'产品类型', 157 title:'产品类型',
158 align:"center", 158 align:"center",
159 - dataIndex: 'productType', 159 + dataIndex: 'productTypeName',
160 // customRender: function (text) { 160 // customRender: function (text) {
161 // if (text === 'XC') { 161 // if (text === 'XC') {
162 // return '线槽' 162 // return '线槽'
@@ -222,7 +222,7 @@ @@ -222,7 +222,7 @@
222 /* 分页参数 */ 222 /* 分页参数 */
223 ipagination:{ 223 ipagination:{
224 current: 1, 224 current: 1,
225 - pageSize: 5, 225 + pageSize: 10,
226 pageSizeOptions: ['5', '10', '50'], 226 pageSizeOptions: ['5', '10', '50'],
227 showTotal: (total, range) => { 227 showTotal: (total, range) => {
228 return range[0] + "-" + range[1] + " 共" + total + "条" 228 return range[0] + "-" + range[1] + " 共" + total + "条"
@@ -148,6 +148,9 @@ export default { @@ -148,6 +148,9 @@ export default {
148 deliveryTime: [ 148 deliveryTime: [
149 { required: true, message: '请输入要求到货时间!' }, 149 { required: true, message: '请输入要求到货时间!' },
150 ], 150 ],
  151 + wuType:[
  152 + { required: true, message: '请选择物料类别!' },
  153 + ]
151 // pics: [ 154 // pics: [
152 // { required: true, message: '请输入主料图片!' }, 155 // { required: true, message: '请输入主料图片!' },
153 // ], 156 // ],
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 </a-form-model-item> 20 </a-form-model-item>
21 </a-col> 21 </a-col>
22 <a-col :span="24"> 22 <a-col :span="24">
23 - <a-form-model-item label="数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="quantity" style="margin-bottom: -50px"> 23 + <a-form-model-item label="数量(套)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="quantity" style="margin-bottom: -50px">
24 {{model.quantity}} 24 {{model.quantity}}
25 </a-form-model-item> 25 </a-form-model-item>
26 </a-col> 26 </a-col>
@@ -178,7 +178,7 @@ export default { @@ -178,7 +178,7 @@ export default {
178 if(record){ 178 if(record){
179 this.titlea = '编辑' 179 this.titlea = '编辑'
180 this.model = Object.assign({}, record); 180 this.model = Object.assign({}, record);
181 - console.log('this.model=======',this.model) 181 + // console.log('this.model=======',this.model)
182 this.loadDesign(); 182 this.loadDesign();
183 this.loadBiddingSq() 183 this.loadBiddingSq()
184 }else{ 184 }else{
@@ -214,7 +214,7 @@ export default { @@ -214,7 +214,7 @@ export default {
214 let tblBiddingShenq = { 214 let tblBiddingShenq = {
215 orderId:this.model.orderId 215 orderId:this.model.orderId
216 } 216 }
217 - console.log(tblBiddingShenq) 217 + console.log('tblBiddingShenq',tblBiddingShenq)
218 listDesign(tblBiddingShenq).then((res)=>{ 218 listDesign(tblBiddingShenq).then((res)=>{
219 console.log('loadDesign',res) 219 console.log('loadDesign',res)
220 if(res.success){ 220 if(res.success){